I need to solve:
$$y''+y=x^2$$
Taking the Laplace transform (and using the fact that it is a linear operator) on both sides I get:
$$\mathscr{L}(y)=\frac{2}{s^3(s^2+1)}+y(0)\frac{s}{s^2+1}+y'(0)\frac{1}{s^2+1}$$
And hence:
$$y=2G(x)+y(0)\cos x +y'(0)\sin x$$
Where $G(x)$ is the inverse Laplace transform of:
$$\frac{1}{s^3(s^2+1)}$$
My question is how do I find this inverse Laplace transform, I'm used to splitting the fraction into partial fractions but I don't think I'm used to doing a partial fraction like in the above.
As for the Laplace solution you asked for, you can split the fraction like this: $$\frac 1{s^3(s^2+2)}=\frac As+\frac B{s^2}+\frac C{s^3}+\frac{Ds+E}{s^2+1}$$ $$=\frac{As^4+As^2+Bs^3+Bs+Cs^2+2C+Ds^4+Es^3}{s^3(s^2+1)}$$ $$=\frac{(A+D)s^4+(B+E)s^3+(A+C)s^2+Bs+C}{s^3(s^2+1)}$$
By identification, you find $B=0,E=0,C=1,A=-1,D=1$