I am solving the following Sturm-Liouville system problem
$1.$ $X''(x) + \lambda X(x)=0, 0<x<2 $
$ 2.$ $X'(0)=0 , X(2) =0$
So I have considered the cases when $ \lambda <0 , \lambda=0$ .Now I am at the 3rd case when $\lambda >0$ then the solutions is $X(x)= c_1 \cos(\lambda x)+c_2 \sin(\lambda x )$ .
From $X'(0) =0$ we get that $c_2=0$ and from $X(2)=0 \implies c_1=0 $ is one solution,the other is $\cos(\lambda x)=0$.
Now when $\cos(\lambda x)=0$,how should I proceed with the solution considering $0<x<2$ ?
Now you have $\cos{2\lambda}=0$, from the homogeneous boundary condition, so $2\lambda = \frac{\pi}{2}+n\pi$, for $n \in \mathbb{Z}$