By choosing the proper weight function $\sigma (x) $ solve the Sturm-Liouville problem and determine its eigenvalues and eigenfunctions.
$$ \frac{d}{dx}\left[x\frac{dy(x)}{dx}\right] + \frac{2}{x}y(x) +\lambda \sigma (x)y(x)=0,\; y'(1)=y'(2)=0,\; 1 \leq x \leq 2. $$
I don't understand what it means to "choose" the proper weight function. I tried to rewrite the problem in this form.
$$\frac{1}{\sigma(x)}\left[\frac{d}{dx}\left[x\frac{dy(x)}{dx} + \frac{2}{x}y(x)\right] +\lambda\sigma(x)=0\right], $$
then calculate it by setting $p(x)=A(x)\sigma (x), p'(x)=B(x)\sigma(x)$ and using this formula:
$$\sigma(x)=e^{\int \frac{A-B'}{B}\,dX}, $$ but it doesn't get me anywhere; solving this gives you just $1=1.$
I tried extracting information about the weight function from the boundary condition but i am failing at that too and i tried solving the differential equation using an infinite series but that won't work either because of the unknown weight function. Any tips?
For generic 2nd order (homogeneous) ODE:
$ a(x)y''(x) + b(x)y'(x) +c(x)y(x) = 0 $
To transform it to Sturm Liouville form you need:
$ a(x)>0$ and $a,b,c$ to be on continuous on the interval of definition.
Now the weight function is defined as follows:
$w(x) = \dfrac{1}{a(x)}e^{\int \frac{b(x)}{a(x)}dx}$
We now set:
$ p(x) = w(x)a(x)\\ q(x)=w(x)c(x)$
To do a sanity check find $p'(x)$ which is $b(x)w(x)$
so now you can rewrite the DE to:
$\dfrac{1}{w(x)} \left[ w(x)a(x)y'' + w(x)b(x)y' + w(x)c(x)y \right] =0\\ \dfrac{1}{w(x)} \left[ p(x)y'' + p'(x)y' + q(x) \right] = 0\\ \dfrac{1}{w(x)} \left[ (p(x)y')' + q(x) \right] = 0 $
That's how you reformulate to SL form. Hope this helps and you can work the details for your problem.