The first is an "Euler type" or "equi-potential" equation. The change of variable t= ln(x) changes it into an equation with constant coefficients:
[tex]\frac{du}{dx}= \frac{du}{dt}\frac{dt}{dx}= \frac{1}{x}\frac{du}{dt}[/tex]
[tex]\frac{d^2u}{dx^2}= \frac{d }{dx}(\frac{1}{x}\frac{du}{dt})[/tex]
[tex]= -\frac{1}{x^2}\frac{du}{dt}+ \frac{1}{x}\frac{d }{dt}\frac{du}{dt}[/tex]
and changing that last d/dt to d/ds introduces another 1/x
[tex]= -\frac{1}{x^2}\frac{du}{dt}+ \frac{1}{x^2}\frac{d^2u}{dt^2}[/tex]
Thus
[tex]x^2\frac{d^2u}{dx^2}= x^2(\frac{1}{x^2}\frac{d^2u}{dt^2}- \frac{1}{x^2}\frac{du}{dt}[/tex]
[tex]= \frac{d^2u}{dt^2}- \frac{du}{dt}[/tex]
So the first equation is just
[tex]\frac{d^2u}{dt^2}- \frac{du}{dt}= ku[/tex]
a linear equation with constant coefficients which has characteristic equation
[tex]r^2- r- k= 0[/tex]
That has roots
[tex]\frac{1\pm\sqrt{1+4k}}{2}[/itex] <br />
so the general solution of the equation in terms of t is<br />
[tex]u(t)= e^t\left(C_1e^{\sqrt{1+4k}t}+ C_2e^{-\sqrt{1+4k}t}\right)[/tex]<br />
<br />
In terms of x, <br />
[tex]u(x)= e^{ln x}\left(C_1e^{\sqrt{1+4k}(ln x)}+ C_2e^{-\sqrt{1+4k}(ln x)}\right)[/tex]<br />
[tex]= x\left(C_1x^{\sqrt{1+4k}}+ C_2x^{-\sqrt{1+4k}}\right)[/tex]<br />
<br />
There is no general method for the general equation.[/tex]