I have the following problem: $\frac{d^2 u}{dx^2}(x)+\lambda u(x)=0, x \in (a,b)$ and $u(a)=u(b)=0$.
The general solution (for $\lambda>0$) is $u(x)=c_1\cos(\sqrt\lambda x)+c_2 \sin (\sqrt\lambda x)$.
I found the following eigenvalues: $\lambda_k=\frac{(k\pi)^2}{(b-a)^2}$. Now I must find the eigenfunctions. This is simple for an interval like $(0,\pi)$, but I'm having troubles with finding the constants $c_1,c_2$ in this general case with an open interval $(a,b)$. The answer should be: $u_k(x)=\sin \frac{k\pi}{b-a}(x-a)$.