Consider the ODE $$(1+x^2)y''+3xy'+y=0$$ Find a solution in the form of $y=\sum a_nx^n$.
So after doing the algebra using these 2: $$y'=\sum_{n=1}^\infty n a_n(x-x_0)^{n-1}$$ $$y''=\sum_{n=2}^\infty n(n-1)a_n(x-x_0)^{n-2}$$ I got this relation: $$a_{n+2}=-a_n \cdot \frac{n+1}{n+2}$$ [Which is correct]. How do I get general solution? When n is odd i.e $n=1,2,3,\cdots$ I have $$a_3=-a_1\cdot \frac{2}{3} \\ a_5=-a_3\cdot \frac{4}{5} \\ a_7=-a_5\cdot \frac{6}{7}$$ and so on. The same is with the even $n$'s. I don't know how to write the general even $n$'s and the general odd $n$'s and finally the combination of the two.
Hint:
It seems that we have $$a_{n+2}=-a_n\cdot \frac{n+1}{n+2}$$ at least for every odd $n$. Perhaps, you should try to substitute the expression for $a_n$ in terms of $a_{n-2}$ into the above equation, and keep on repeating this step until you see an pattern that will lead you to your general expression.