<s>[INST] Solve the differential equation: $-x^2 y'' = \lambda y$ I need to solve the differential equation  $-x^2 y'' = \lambda y$ by transforming the differential equation to a equation with constant coefficients. I need to do this by using $f(x) = y(e^x)$. If I do this, I become the equation:
$y''(e^x) + \frac{y'(e^x)}{e^x}+ \frac{\lambda y(e^x)}{(e^x)^2} = 0$
The I find a general solation of: $$y(e^x) = C \exp\left(\frac{-1+\sqrt{1- \frac{4\lambda}{x^2}}}{2(e^x)^2}\right) + C \exp\left(\frac{-1-\sqrt{1- \frac{4\lambda}{x^2}}}{2(e^x)^2}\right) $$
But Wolfram alpha gives the solution:
$$y(x) = c x^{\frac{1}{2} + \frac{1}{2}*\sqrt{1-4\lambda}} + c x^{\frac{1}{2} - \frac{1}{2}*\sqrt{1-4\lambda}}  $$
Can someone help me figure this out?
 [/INST] It is true that using $f(X)=y(e^X)$ allows to transform the ODE into an ODE with constant coefficients, but with a little trick at first beginning :
$f(X)=y(e^X)$ is valid any symbol of variable, for example  $f(t)=y(e^t)$
Let $e^t=x \quad\to\quad f(t)=y(x)$
$dx=e^tdt=xdt \quad\to\quad \frac{dt}{dx}=\frac{1}{x}$
$\frac{dy}{dx}=\frac{df}{dt}\frac{dt}{dx}=\frac{1}{x}\frac{df}{dt}$
$\frac{d^2y}{dx^2}=\frac{d\left(\frac{1}{x}\frac{df}{dt}\right)}{dx} =
-\frac{1}{x^2}\frac{df}{dt}+\frac{1}{x}\frac{d^2f}{dt^2}\frac{dt}{dx}=
-\frac{1}{x^2}\frac{df}{dt}+\frac{1}{x^2}\frac{d^2f}{dt^2}$
$-x^2\frac{d^2y}{dx^2}=\lambda y=x^2\left(-\frac{1}{x^2}\frac{df}{dt}+\frac{1}{x^2}\frac{d^2f}{dt^2}\right)= -\frac{df}{dt}+\frac{d^2f}{dt^2}$
$$\frac{d^2f}{dt^2}-\frac{df}{dt}-\lambda f(t)=0$$
This is a linear ODE with constant coefficients easy to solve.
$$f(t)= c_1e^{\frac{1+\sqrt{4\lambda+1}}{2}t}+c_2e^{\frac{1-\sqrt{4\lambda+1}}{2}t}=c_1(e^t)^{\frac{1+\sqrt{4\lambda+1}}{2}}+c_2(e^t)^{\frac{1-\sqrt{4\lambda+1}}{2}} $$
$$y(x)=c_1 x^{\frac{1+\sqrt{4\lambda+1}}{2}}+c_2x^{\frac{1-\sqrt{4\lambda+1}}{2}}$$
</s>