"Show that all solutions of $y''(x)=\lambda y(x)$ on $0\leqslant x \leqslant L$ with $y(0)=y(L)=0$ are of the form $c\sin\left(\frac{k\pi}{L}\right)x.$ (Hint: write down all solutions of the o.d.e and impose boundary conditions.)"
Here is an image from the textbook I'm using describing this problem. I'm not sure what the hint means; what entails "writing down all solutions"? I'm not sure what method I should use to begin approaching this problem.
Use the auxiliar equation $m^2= \lambda$. If $\lambda<0$, $\lambda= -\alpha^2$. You have $m^2=-\alpha ^2$. The solutions are $m_1= \alpha i$ and $m_2=-\alpha i$. The solution is $y(x)=c_1 \cos (\alpha x) +c_2 \sin (\alpha x)$. Now $$ y(0)= c_1=0$$ $$y(L)=c_2\sin (\alpha L)= 0$$ Then $\sin (\alpha L)=0$. So $\alpha L=\pi k$ then $ \alpha = \pi k / L$. The solution is $$y(x)=c_2 \sin \left (\dfrac{\pi k}{L} x \right )$$