Solution (source code)

= Solution

The transformed inhomogeneous equation is $z\prime\prime+z=x^2$. Taking $z=x^2-2$ gives the particular <integral> $y_p=1-2/x^2$.