# Revision history [back]

### Is there any way to find the eigenvalues of a matrix in terms of a variable?

I have the following matrix

M=

2n-1 & n-1 & n

1 & 2n-3 & 0

1& 0 & 1

Here $n$ is a variable

I want to find its eigenvalues.

Is there any way to find the eigenvalues of this matrix in terms of $n$ in sagemath.

I even cant input a matrix in terms of a variable.