I'm working with a mechanics problem where I try to find the eigenmodes of the system. The system contains of $n$ masses all connected with springs to one another (same spring constant $k$), the outer most springs, meaning the first and last mass, have their springs connected to a wall. In principal, something like this:
Now, I want to calculate the eigenfrequencies of the system, and so I have managed to find the general equation for this system:
$$\begin{pmatrix} \ddot{x}_1 \\\vdots \\ \ddot{x}_n \end{pmatrix} + \frac{k}{m}\begin{pmatrix} 2 & -1 & 0 & 0 & 0 & 0\\ -1 & 2 & -1 & 0 & 0 & 0 \\ 0 & -1 & 2 & -1 & 0 & 0 \\ \vdots& \vdots& \vdots& \ddots & \vdots & \vdots \\ \vdots& \vdots& \vdots& \vdots & \ddots & \vdots\\ 0 & 0& 0& 0 & -1 & 2 \\ \end{pmatrix} \begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} = 0 $$
In order to find the solutions of this system, we make an ansatz of the form $$\begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} = Me^{i\lambda \sqrt{k/m} \cdot t}$$ for some $n$ by $1$ matrix $M$, and for non zero solutions, we get the eigenvalue problem, meaning we have to find the determinant of the following matrix:
$$\begin{pmatrix} 2 - \lambda^2& -1 & 0 & 0 & 0 & 0\\ -1 & 2 - \lambda^2& -1 & 0 & 0 & 0 \\ 0 & -1 & 2 - \lambda^2& -1 & 0 & 0 \\ \vdots& \vdots& \vdots& \ddots & \vdots & \vdots \\ \vdots& \vdots& \vdots& \vdots & \ddots & \vdots\\ 0 & 0& 0& 0 & -1 & 2 - \lambda^2\\ \end{pmatrix}$$
Now, I managed to solve it numerically using a python code, for which I found the eigenvalues for some input for a general $n$ and thus the eigenfrequencies of the system. But is there any other way to find the exact solutions using analytical methods? I would think not since we get a polynomial of degree $2n$, but maybe the determinant simplifies itself in a neat way. It at least looked like that when I tried to calculate it for $n=3$.
Thanks for any feedback.

If I'm not mistaken, you have a tridiagonal Toeplitz matrix. The eigenvalues are known : https://en.wikipedia.org/wiki/Tridiagonal_matrix#Eigenvalues