This is same as example 1, but with nonzero on RHS. The solution is \(y=y_{h}+y_{p}\). Where \(y_{h}\) was found above as
This is same as example 1, but with nonzero on RHS. The solution is \(y=y_{h}+y_{p}\). Where \(y_{h}\) was found above as
To find \(y_{p}\) we assume it has power series
Substituting the above into the ode and simplifying as we did in first example gives EQ. 3 in the first example, but now with \(\sin x\) on RHS
For \(n=0\) the above becomes
Hence \(r=-1\) and \(\left ( r+1\right ) c_{0}=1\) which gives \(0c_{0}=1\). So not possible to solve for \(c_{0}\). Since we can not find \(c_{0}\), can not find \(y_{p}\). This is an example where there is no series solution. This ode of course can be easily solved directly which gives solution \(y=\frac {c_{1}}{x}+\frac {1}{x}\ln x\), but not using series method.