Given the boundary problem
$$X''=\mu X,\;X(0)=0,\;X'(L)=0$$
We need to find the non trivial solution $X(x)$ that satisfies the above equations. Let $\mu<0$, $\mu=-k^2$ for some $k>0$. The general solution for $\mu<0$ can be described as
$$X(x)=A\sin(k x)+B\cos(k x)$$
For some constants $A$, $B$. How do I formulate the solution $X(x)$ that satisfies $X(0)=0$ and $X(L)=0$
Hint.
From the boundary conditions
$$ A\sin(0)+B\cos(0) = 0\\ A k\cos(k L)-B k\sin(k L) = 0 $$
or
$$ \left( \begin{array}{cc} 0& 1\\ k\cos(kL) & -k\sin(kL) \end{array} \right) \left( \begin{array}{c} A\\ B \end{array} \right)=\left( \begin{array}{c} 0\\ 0 \end{array} \right) $$
This linear system has a non trivial solution for
$$ \det\left( \begin{array}{cc} 0& 1\\ k\cos(kL) & -k\sin(kL) \end{array} \right) = -k\cos(k L) = 0 $$
or for $k L = \frac{\pi}{2}+\nu \pi$
hence
$$ k = \frac 1L\left(\frac{\pi}{2}+\nu \pi\right)\ \ \ \nu = 1,2,3,\cdots $$
now once we have the set of eigenfunctions we proceed with the determination of $A, B$