I understand that the below is a non-homogeneous second order O.D.E.
$y'' + 4y = sin^2(x)$
and that I can re-arrange the R.H.S to get
$y'' + 4y = \frac{1}{2}(1 - cos2x)$
However, may I know how to proceed from here on?
Thank you.
I understand that the below is a non-homogeneous second order O.D.E.
$y'' + 4y = sin^2(x)$
and that I can re-arrange the R.H.S to get
$y'' + 4y = \frac{1}{2}(1 - cos2x)$
However, may I know how to proceed from here on?
Thank you.
Here is the substantial way of doing it $$\frac{d^2}{dx^2}y+4y=\frac{d}{dx}\Big(\frac{d}{dx}y+2iy\Big)-2i\Big(\frac{d}{dx}y+2iy\Big)$$ Let $$\xi(x)=\frac{d}{dx}y+2iy$$ Then $$\frac{d}{dx}\xi-2i\xi=\sin^{2}(x)$$ Using the integrating factor thing you have $$\xi(x)=\frac{d}{dx}y+2iy=e^{2ix}\Big\{\int_{0}^{x}\sin^{2}(z)e^{-2iz}dz+\xi_{0}\Big\}$$ Using the integrating factor the second time you get $$y(x)=e^{-2ix}\Big\{\int_{0}^{x}e^{4iw}\Big\{\int_{0}^{w}\sin^{2}(z)e^{-2iz}dz+\xi_{0}\Big\}dw+x_{0}\Big\}$$ Then do the integrals)