Question
Question: Given $y_1(x) = x$ is a solution of $y''-(\frac{2}{x^2}+\frac{1}{x})(xy'-y)=0$, $x \in (0,\infty)$, ...
Given y1(x)=x is a solution of y′′−(x22+x1)(xy′−y)=0, x∈(0,∞), find another linearly independent solution, and hence the general solution.

Another linearly independent solution is y2(x)=xex. The general solution is y(x)=c1x+c2xex.
Another linearly independent solution is y2(x)=ex. The general solution is y(x)=c1x+c2ex.
Another linearly independent solution is y2(x)=x2. The general solution is y(x)=c1x+c2x2.
Another linearly independent solution is y2(x)=x2ex. The general solution is y(x)=c1x+c2x2ex.
Another linearly independent solution is y2(x)=xex. The general solution is y(x)=c1x+c2xex.
Solution
Let w=xy′−y. Then w′=xy′′. Substituting into the ODE gives xw′−(x22+x1)w=0. This simplifies to w′−(x2+1)w=0. Separating variables, wdw=(x2+1)dx. Integrating yields ln∣w∣=2lnx+x+K1, so w=Cx2ex. Substituting back w=xy′−y, we get xy′−y=Cx2ex, or y′−x1y=Cxex. The integrating factor is x1. Multiplying by the integrating factor gives dxd(xy)=Cex. Integrating yields xy=Cex+K2, so y(x)=K2x+Cxex. The general solution is y(x)=c1x+c2xex. Given y1(x)=x, another linearly independent solution is y2(x)=xex. The Wronskian W(y1,y2)=x1xexex+xex=x(ex+xex)−xex=x2ex=0 for x∈(0,∞).