$$(\sin\lambda_nx)'=\lambda_n\cos\lambda_nx$$
$$(\sin\lambda_nx)'=-\lambda_n^2\sin\lambda_nx$$
So putting $\,\psi(x):=\sin\lambda_nx\,$ , we easily find the above are solutions to the given differential equation, and in order to have $\,\psi(1)=0\,$ we must choose $\,\lambda_n=k_n\pi\,\,,\,\,k_n\in\Bbb Z\,$