Let $P$ be a $2 \times2$ transition matrix. $$P=\begin{pmatrix} 1-p & p\\q & 1-q\end{pmatrix}$$ Show that the eigenvalues of $P$ are $1$ and $1-p-q$.
I am able to show that one of the eigenvalues is $1$, however I am not sure how to show that the second eigenvalue is $1-p-q$.
We know that the product of all eigenvalues is equal to the $\det$ and the sum of eigenvalues is equal to the trace of a matrix. Hence $\lambda_1 \lambda_2 = 1 - p - q$ and $\lambda_1+\lambda_2 = 2 -p - q$. I think you are able to continue