$$y''-2y'+y=\frac{e^x}{x}$$
The solution is $$y=xe^xln|x|-xe^x+c_{1}e^x+c_{2}e^x$$
It is said that $y_{1}=e^x$ and $y_{2}=xe^x$ are the solution to the homogeneous equation.
How can I infer it? why for example $y_{1}=ln|x|$ and $y_{2}=xe^x$ are the solutions?
EDIT by S.C.B
The original question asked for solutions to
$$y''-2y'+y=0$$
To those wondering why I wrote the answer below, and why the OP accepted the answer.