Euler Hall — free maths guides

Compute the characteristic polynomial of a 2 by 2 matrix

Write det(A - lambda I) as lambda squared minus trace times lambda plus determinant. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Two numbers, one polynomial

The trace is the sum of the diagonal entries; the determinant isad−bcad-bc. Write them asTT andDD. Then

det⁡(A−λI)=λ2−Tλ+D.\det(A-\lambda I)=\lambda^2-T\lambda+D.

ForA=[3124]A=\begin{bmatrix}3&1\\2&4\end{bmatrix}:T=3+4=7T=3+4=7 andD=12−2=10D=12-2=10, so the polynomial isλ2−7λ+10=(λ−2)(λ−5)\lambda^2-7\lambda+10=(\lambda-2)(\lambda-5).

Compare the work. Expanding by hand:(3−λ)(4−λ)−2(3-\lambda)(4-\lambda)-2, one expansion, one chance to drop a sign. Using the form: read3+43+4, read12−212-2, write the quadratic. The form is faster and it cannot silently lose a sign, because both coefficients are built from numbers you wrote down directly.

Why the coefficient is minus the trace

Expand(a−λ)(d−λ)−bc(a-\lambda)(d-\lambda)-bc and collect:

Read the coefficients: theλ\lambda coefficient is−(a+d)-(a+d), which is minus the trace, and the constant isad−bcad-bc, which is the determinant. Nothing was assumed about the matrix. So the identity holds for every2×22\times2, which is why it can be used instead of the expansion rather than as a check on it.

The same expansion explains the general rule: for ann×nn\times n matrix the coefficient ofλn−1\lambda^{n-1} is always−tr⁡A-\operatorname{tr}A and the constant term is alwaysdet⁡A\det A. The middle coefficients carry more information and have no such simple reading, which is exactly why the2×22\times2 case is the one worth memorising.

Worked example

A=[5−310−4]A=\begin{bmatrix}5&-3\\10&-4\end{bmatrix} (a matrix with no zero entries, so no structure to exploit).

T=5+(−4)=1T=5+(-4)=1 andD=5⋅(−4)−(−3)(10)=−20+30=10D=5\cdot(-4)-(-3)(10)=-20+30=10.

Sodet⁡(A−λI)=λ2−λ+10\det(A-\lambda I)=\lambda^2-\lambda+10. Discriminant1−40=−39<01-40=-39<0: the eigenvalues are1±i392\tfrac{1\pm i\sqrt{39}}{2}.

Now the same answer the slow way, to prove the form was not a trick: Same polynomial. The form would have given it in one line and with no chance of losing the+30+30.

By the end you can
  • Write det(A - lambda I) as lambda squared minus trace times lambda plus determinant
  • Read the trace and the determinant straight off the entries
  • Use the two coefficients as checks on a hand expansion
Check yourself

A=[1221]A=\begin{bmatrix}1&2\\2&1\end{bmatrix}. Write the characteristic polynomial with the form, find the eigenvalues, and confirm with the two checks.

Answers

T=1+1=2T=1+1=2 andD=1⋅1−2⋅2=−3D=1\cdot1-2\cdot2=-3, sodet⁡(A−λI)=λ2−2λ−3\det(A-\lambda I)=\lambda^2-2\lambda-3.

Factor:(λ−3)(λ+1)(\lambda-3)(\lambda+1), eigenvalues33 and−1-1.

Checks:3+(−1)=2=T3+(-1)=2=T ✓ and3⋅(−1)=−3=D3\cdot(-1)=-3=D ✓. Both pass, so the pair is certainly the spectrum — the only thing that could still be wrong is which eigenvector belongs to which, and that is a separate question.

(For reference:A(11)=3(11)A\binom11=3\binom11 andA(1−1)=−1(1−1)A\binom{1}{-1}=-1\binom{1}{-1}, so the larger eigenvalue belongs to the vector with equal entries.)

Work out where to start — free, no accountAnswer six real questions — free, no account