Find a differential equation that $y$ satisfies. The ODE should not contain any arbitrary constants. $$y(x)=C_1(x^2-1)+C_2x$$ I proceeded with finding the two derivatives (since it is second-order): $$y'(x)=2C_1x+C_2$$ $$y''(x)=2C_1$$
Then, using the general formula $y''+Ay'+By = 2C_1+A2C_1x+AC_2+BC_1x^2-BC_1+BC_2x$ Which results in $C_1(2+2Ax+Bx^2-B)+C_2(A+Bx)$
Solving the systems of equations, I found that $A=-2x$, $B=2$. Which means the ODE required is $$y''-2xy'+2y=0$$
Can anyone kindly advise if this approach is correct? Thanks.
Edit: Sorry, I found a computational error afterwards. Hence, $$A=-\frac{2x}{x^2+1}$$ $$B=\frac{2}{x^2+1}$$
And it would then arrive at the recommended solution below.