Let $M_n$ be the $n \times n$ tridiagonal matrix whose diagonal entries are all equal to 0 and whose sub- and super-diagonal entries all equal 1. (a) Find the eigenvalues and eigenvectors of $M_2$ and $M_3$ directly. (b) Prove that the eigenvalues and eigenvectors of $M_n$ are explicitly given by
$$
\lambda_k=2 \cos \frac{k \pi}{n+1}, \quad \mathbf{v}_k=\left(\sin \frac{k \pi}{n+1}, \sin \frac{2 k \pi}{n+1}, \ldots \sin \frac{n k \pi}{n+1}\right)^T, \quad k=1, \ldots, n .
$$
How do you know that there are no other eigenvalues?