The given problem is
$$\displaystyle -\frac{d^2y}{dx^{2}}+(1+x)y=\lambda y, \qquad x\in(0,1), \qquad y(0) = y(1) = 0$$
This equation can be transformed into a Sturm-Liouville problem of the form
$$-\frac{d}{dx} \left[\frac{d}{dx}\right]y+(1+x)y=\lambda y\ $$
I do not get how to proceed, as I only know the way of solving equations of the kind
$$\displaystyle \frac{d^2y}{dx^2}+\lambda y=0$$
Please help.
Thank you.
$f(\lambda) $ vs
Just an idea, use the eigenfunctions of the last equation (a Fourier expansion) which are
$$ \phi_n(x)=\sin(n \pi x) $$
ie
$$ y(x)=\sum_{k=1}^\infty a_k \phi_k(x) $$ Write y'', y and x in terms of $\phi_n$ and get a system for the coefficients. Look for non-zero solutions. You may have to rely on numerical methods in case there are no analytic solutions.