I'm trying to find the 2nd order ODE given those two solutions. I usually achieve this by finding the characteristic polynomial by multiplying the root factors, however the solution $x^2$ is giving me some trouble.
As far as I understand, $x^2$ implies that $0$ is a triple root, but by finding the characteristic polynomial $x^3(x+1)$ I only get a 4th degree non quadratic equation, which I do not know how to "convert" to a 2nd degree one.
Am I doing it wrong or should another method be used, ie. differentiating the solutions up to the 2nd derivative and proceeding by trying different polinomials to multiply each derivative? Thanks in advance.
The differential equation must be
$$uy''+vy'+wy=0$$
where $u,v,w$ are functions of the variable $x$.
The solution $y=e^{-x}$ leads to $u-v+w=0$, or $v=u+w$.
The solution $y=x^2$ leads to $2u+2xv+x^2w=0$, which must be true for all $x$.
Replace $v=u+w$, then
$$2u+2x(u+w)+x^2w=0$$
$$2(x+1)u+x(x+2)w=0$$
Now choose functions $u$ and $w$ so that this equality holds. An obvious choice would be
$$u(x)=\frac{1}{x+1}$$ $$w(x)=\frac{-2}{x(x+2)}$$
And then
$$v(x)=\frac{1}{x+1}-\frac{2}{x(x+2)}$$