I'm trying to solve for the eigenvalues of a matrix $$ A = \begin{pmatrix} 1 & 2 & 0 \\ -1 & -1 & 1 \\ 0 & 1 & 1 \\ \end{pmatrix} $$
I tried expanding $\det(A - \lambda I)$, but that didn't help. I got $-\lambda^3 - \lambda^2 + 2 = 0$, or $(1 - \lambda)(\lambda^2 + 2\lambda + 2)=0$. Either way, I can't factor for $\lambda$. Any ideas?
Your calculation of the characteristic polynomial is incorrect. If you redo the calculation, your problem should be resolved.
However, there are other real matrices for which the polynomial is what you've written. In general, The eigenvalues are always given by the roots of the characteristic polynomial.
The polynomial here has only one real root, 1. You can interpret it in one of two ways, depending on the context:
The matrix has a single eigenvalue, 1.
The matrix has, in addition, two nonreal eigenvalues, which you can find by solving the quadratic term. The eigenvectors will, of course, also be complex.
Complex roots of real matrices are very common, for example, with rotation matrices, such as $\{\{0,1\},\{-1,0\}\}$. There is no real vector which is multiplied by a scalar when this matrix is applied.