I have to solve the problem: $(x^2-x+1)\frac{d^2y}{dx^2}-(x^2+x)\frac{dy}{dx}+(x+1)y=0$.
I've tried using the substitution $y=x^r$, and that gives me a long string of r's and x's and exponents that I'm not sure what to do with: $(r-1)x^{r-2}(r(x^2-x+1)-x^2(x+1))=0$. From what I understand of the Cauchy-Euler method, I'm supposed to find the characteristic equation, but I don't see how to from the initial result.