Let \(A = \begin{bmatrix} 3 & 0 & 1\\ 2 & 2 & 2\\ 0 & 1 & -1\end{bmatrix}\).
You are given that \(\begin{bmatrix} -1 \\ 3 \\ 1 \end{bmatrix}\) is an eigenvector
of \(A\) with eigenvalue \(\lambda\). What is \(\lambda\)?
The answer is 2.
Let \(x\) denote the vector
\(\begin{bmatrix} -1 \\ 3 \\ 1 \end{bmatrix}\).
Then \(Ax = \lambda x\) since we are given that $x$ is an eigenvector with
eigenvalue 2.