I started with an ODE (first ODE) :
$-(1-x^2)y''(x) +x y'(x) - q(x) y(x) = \lambda y(x).$
Then I got a more sophisticated differential equation ( second one) and is given by $$-(1-x^2)y''(x) +x y'(x) - q(x)y(x) + \frac{1}{(1-x^2)}y(x) = \lambda y(x).$$ What I want is to understand the following:
Given a solution of equation (1), how can I generalize this one to a solution of equation (2).





You can transform your final equation to Sturm-Liouville form by the substitution $$ y = (1-x^{2})^{1/4}f. $$ I believe that the new equation has the Sturm-Liouville form $$ -\frac{d}{dx}(1-x^{2})\frac{df}{dx}+\left[\frac{u^{2}}{1-x^{2}}+\frac{1}{4}-\alpha x-\gamma x^{2}\right]f= \lambda f. $$ This form makes the equation look a little more classical. And it seems to suggest you'll have an orthogonality for the original solutions in the form $$ \int_{-1}^{1}\frac{1}{\sqrt{1-x^{2}}}y_{1}y_{2}\,dx = 0. $$ Of course you'll need to find the right endpoint conditions.
Classical Case: If you start with the equation $$ (1-x^{2})y''-2xy'+n(n+1)y = 0, $$ and you differentiate all terms $m$ times, you get $$ (1-x^{2})y^{(m+2)}+{{m}\choose{1}}(-2x)y^{(m+1)}+{{m}\choose{2}}(-2)y^{(m)}\\ -2xy^{(m+1)}+{{m}\choose{1}}(-2)y^{(m)}\\+n(n+1)y^{(m)}=0. $$ That gives you a different form of the Associated Legendre Equation $$ (1-x^{2})y^{(m+2)}-2(m+1)xy^{(m+1)}+[n(n+1)-m(m-1)-2m]y^{(m)}=0. (?) $$ This is a related second-order differentiation equation for $y^{(m)}$ which, after a change of variable $y=(1-x^{2})^{-m/2}f$ leads to the standard form of the Associated Legendre equation.
Even if you try clearing denominators in your posted DiffEQ and trying the same trick, the order of the derived equation will be too high. The classical trick works only because the coefficients are polynomial with orders that match the order of the derivative for that term, including the lowest order term which is classically constant.
You need some other type of ladder operator, and I'm not good at constructing those devices. BTW: I think it was Schrodinger who came up with ladder operators. I ran across one of his early publications on that. Amazing genius.