Tutorials › Linear Algebra › Trace, Determinant, And The Two-By-Two Eigenvalues

Eigenvalues and Eigenvectors · Tutorial 497 of 1000

Trace, Determinant, And The Two-By-Two Eigenvalues

Use the characteristic polynomial’s coefficients to connect the two eigenvalues of a two-by-two matrix with its trace and determinant.

Intermediate 9 min read

What You'll Learn

  • Expand the characteristic polynomial of a two-by-two matrix using the course sign convention.
  • Prove the sum-of-roots and product-of-roots identities by comparing coefficients.
  • Distinguish the trace from the coefficient of the linear term.
  • Verify the identities when the roots are real, repeated, or complex.
  • Recognize the trace-determinant condition for a repeated root.

What Trace and Determinant Tell Us About the Roots

For a two-by-two matrix, the characteristic polynomial is a quadratic, so its two roots contain all the eigenvalue information that the polynomial records. Its coefficients are also familiar matrix quantities: the trace and determinant. The connection is precise: counting a repeated root twice when necessary, the sum of the two roots is the trace, and their product is the determinant.

We work with a matrix \(\mathbf{A}\in\mathbb{R}^{2\times2}\). Its roots are considered in \(\mathbb{C}\), so the statement includes matrices whose characteristic polynomial has nonreal roots. A root is an eigenvalue, as established by the eigenvalue equation and the definition of the characteristic polynomial. For this tutorial, the essential task is to relate those roots to two quantities computed directly from the entries of \(\mathbf{A}\).

Definition: If \(\mathbf{A}=\begin{bmatrix}a&b\\c&d\end{bmatrix}\), its trace is \(\operatorname{tr}\mathbf{A}=a+d\), the sum of its diagonal entries, and its determinant is \(\det\mathbf{A}=ad-bc\). Its characteristic polynomial, using the convention for this course, is \(p_{\mathbf{A}}(\lambda)=\det(\mathbf{A}-\lambda\mathbf{I}_2)\). The roots are counted with their multiplicities: if there is a repeated root, it is listed twice.

Expanding the Characteristic Polynomial

Writing out \(\mathbf{A}-\lambda\mathbf{I}_2\) gives \(\begin{bmatrix}a-\lambda&b\\c&d-\lambda\end{bmatrix}\). Its determinant is \((a-\lambda)(d-\lambda)-bc\). Expanding each term shows exactly where the trace and determinant appear:

$$ \begin{aligned} p_{\mathbf{A}}(\lambda) &=(a-\lambda)(d-\lambda)-bc\\ &=ad-a\lambda-d\lambda+\lambda^2-bc\\ &=\lambda^2-(a+d)\lambda+(ad-bc)\\ &=\lambda^2-(\operatorname{tr}\mathbf{A})\lambda+\det\mathbf{A}. \end{aligned} $$

The leading coefficient is \(1\), so this is a monic quadratic. The minus sign on the trace term matters: it is the negative of the coefficient of \(\lambda\) that gives the sum of the roots. The constant term is the determinant.

Theorem (Trace and determinant from the two roots): Let \(\mathbf{A}\in\mathbb{R}^{2\times2}\), and let \(\lambda_1,\lambda_2\in\mathbb{C}\) be the two roots of \(p_{\mathbf{A}}(\lambda)\), counted with multiplicity. Then $$ \lambda_1+\lambda_2=\operatorname{tr}\mathbf{A}, \qquad \lambda_1\lambda_2=\det\mathbf{A}. $$

Proof. The expansion above gives \(p_{\mathbf{A}}(\lambda)=\lambda^2-(\operatorname{tr}\mathbf{A})\lambda+\det\mathbf{A}\). Since the polynomial is quadratic, its roots counted with multiplicity give the factorization \(p_{\mathbf{A}}(\lambda)=(\lambda-\lambda_1)(\lambda-\lambda_2)\). Expanding that factorization gives \(p_{\mathbf{A}}(\lambda)=\lambda^2-(\lambda_1+\lambda_2)\lambda+\lambda_1\lambda_2\). These are equal polynomials. Equality of the coefficients of \(\lambda\) yields \(-\operatorname{tr}\mathbf{A}=-(\lambda_1+\lambda_2)\), and equality of the constant terms yields \(\det\mathbf{A}=\lambda_1\lambda_2\). Thus both identities hold, including when the roots coincide. \(\square\)

The quadratic formula also makes the roots explicit. If \(t=\operatorname{tr}\mathbf{A}\) and \(d=\det\mathbf{A}\), then the characteristic polynomial is \(\lambda^2-t\lambda+d\), and completing the square gives \((\lambda-\tfrac{t}{2})^2=\tfrac{t^2-4d}{4}\). Thus the roots are \(\tfrac{t}{2}\pm\tfrac{\sqrt{t^2-4d}}{2}\), with the square root taken in \(\mathbb{C}\) when needed. This expression is consistent with the theorem: the opposite square-root terms cancel in the sum, while their product gives the constant term.

Checking the Identities in Examples

Worked Example: Two Distinct Real Roots

For \(\mathbf{A}=\begin{bmatrix}4&1\\2&3\end{bmatrix}\), calculate the characteristic roots and check their sum and product against the trace and determinant.

First compute the trace and determinant directly from the entries:

$$ \operatorname{tr}\mathbf{A}=4+3=7, \qquad \det\mathbf{A}=4\cdot3-1\cdot2=12-2=10. $$

Next expand the characteristic polynomial using \(p_{\mathbf{A}}(\lambda)=\det(\mathbf{A}-\lambda\mathbf{I}_2)\):

$$ \begin{aligned} p_{\mathbf{A}}(\lambda) &=\det\begin{bmatrix}4-\lambda&1\\2&3-\lambda\end{bmatrix}\\ &=(4-\lambda)(3-\lambda)-2\\ &=12-4\lambda-3\lambda+\lambda^2-2\\ &=\lambda^2-7\lambda+10\\ &=(\lambda-5)(\lambda-2). \end{aligned} $$

The roots are \(\lambda_1=5\) and \(\lambda_2=2\). Their sum is \(5+2=7\), equal to the trace, and their product is \(5\cdot2=10\), equal to the determinant. Substituting either root into the factorization gives zero, so both values are indeed roots of the computed characteristic polynomial.

Worked Example: A Nonreal Pair of Roots

For the real matrix \(\mathbf{B}=\begin{bmatrix}1&-2\\2&1\end{bmatrix}\), find its characteristic roots and verify the identities over \(\mathbb{C}\).

The trace is \(1+1=2\). The determinant is \(1\cdot1-(-2)\cdot2=1+4=5\). Direct expansion gives

$$ \begin{aligned} p_{\mathbf{B}}(\lambda) &=\det\begin{bmatrix}1-\lambda&-2\\2&1-\lambda\end{bmatrix}\\ &=(1-\lambda)(1-\lambda)-(-2)\cdot2\\ &=(1-\lambda)^2+4\\ &=1-2\lambda+\lambda^2+4\\ &=\lambda^2-2\lambda+5. \end{aligned} $$

To solve \(p_{\mathbf{B}}(\lambda)=0\), complete the square: \(\lambda^2-2\lambda+5=(\lambda-1)^2+4\). Hence \((\lambda-1)^2=-4\), so the roots are \(\lambda_1=1+2i\) and \(\lambda_2=1-2i\). Their sum is \((1+2i)+(1-2i)=2\). Their product is \((1+2i)(1-2i)=1-2i+2i-4i^2=1+4=5\), since \(i^2=-1\). These equal the trace and determinant, respectively. Substitution into the completed-square expression gives \((\pm2i)^2+4=-4+4=0\) for each root.

Worked Example: A Repeated Root

For \(\mathbf{C}=\begin{bmatrix}3&1\\0&3\end{bmatrix}\), find the characteristic roots and verify the identities with multiplicity included.

From its diagonal entries, \(\operatorname{tr}\mathbf{C}=3+3=6\). Its determinant is \(3\cdot3-1\cdot0=9\). The characteristic polynomial is

$$ \begin{aligned} p_{\mathbf{C}}(\lambda) &=\det\begin{bmatrix}3-\lambda&1\\0&3-\lambda\end{bmatrix}\\ &=(3-\lambda)(3-\lambda)-1\cdot0\\ &=(3-\lambda)^2\\ &=(\lambda-3)^2. \end{aligned} $$

Thus the two roots counted with multiplicity are \(\lambda_1=3\) and \(\lambda_2=3\). Their sum is \(3+3=6\), and their product is \(3\cdot3=9\). These agree with the trace and determinant. The repeated root is counted twice because the characteristic polynomial has the factor \((\lambda-3)^2\), not just the factor \((\lambda-3)\).

What a Repeated Root Says About Trace and Determinant

The sum-and-product identities give a quick test for when the characteristic polynomial has a repeated root. This statement concerns the roots of the polynomial; it does not, by itself, assert how many linearly independent eigenvectors correspond to that root.

Corollary: For \(\mathbf{A}\in\mathbb{R}^{2\times2}\), the characteristic polynomial has a repeated root if and only if \((\operatorname{tr}\mathbf{A})^2=4\det\mathbf{A}\). When it does, the repeated root is \(\tfrac12\operatorname{tr}\mathbf{A}\).

Proof. Write \(t=\operatorname{tr}\mathbf{A}\) and \(d=\det\mathbf{A}\), so \(p_{\mathbf{A}}(\lambda)=\lambda^2-t\lambda+d\). If the repeated root is \(r\), then \(p_{\mathbf{A}}(\lambda)=(\lambda-r)^2=\lambda^2-2r\lambda+r^2\). Comparing coefficients gives \(t=2r\) and \(d=r^2\). Therefore \(t^2=4r^2=4d\), and \(r=t/2\). Conversely, suppose \(t^2=4d\). Then $$ p_{\mathbf{A}}(\lambda)=\lambda^2-t\lambda+\frac{t^2}{4} =\left(\lambda-\frac{t}{2}\right)^2. $$ This polynomial has the repeated root \(t/2\). Both directions have been established. \(\square\)

Common Sign and Counting Pitfalls

Do not read the sum directly as the coefficient of \(\lambda\). For example, take \(\mathbf{D}=\begin{bmatrix}2&1\\1&2\end{bmatrix}\). Its trace is \(2+2=4\), and its determinant is \(2\cdot2-1\cdot1=3\). Expanding gives \(p_{\mathbf{D}}(\lambda)=(2-\lambda)^2-1=\lambda^2-4\lambda+3\). A wrong reading would say that the roots sum to \(-4\), using the coefficient of \(\lambda\) without changing its sign. In fact, \(\lambda^2-4\lambda+3=(\lambda-1)(\lambda-3)\), so the roots sum to \(1+3=4\), as required. The coefficient is \(-4\); its negative is the sum.

Do not omit multiplicity. In the repeated-root example, listing the root only once would give sum \(3\) and product \(3\), neither of which matches trace \(6\) and determinant \(9\). The polynomial \((\lambda-3)^2\) has two roots when multiplicities are counted: \(3\) and \(3\).

The characteristic polynomial packages both quantities into its coefficients: its linear coefficient is the negative trace and its constant coefficient is the determinant. This is useful as a consistency check when computing roots, and as a way to recover the trace or determinant from a known pair of eigenvalues. The identities apply whether the roots are distinct or repeated, real or nonreal. For a real matrix with nonreal roots, as in the second example, the roots are complex but their sum and product still match the real trace and determinant.

Check Your Understanding

For each question, use the characteristic-polynomial convention \(p_{\mathbf{A}}(\lambda)=\det(\mathbf{A}-\lambda\mathbf{I}_2)\), and count roots with multiplicity.

  1. For \(\mathbf{A}=\begin{bmatrix}5&2\\1&1\end{bmatrix}\), compute the trace, determinant, and characteristic polynomial. Factor the polynomial and verify the root identities.
  2. A two-by-two matrix has characteristic polynomial \(\lambda^2+6\lambda+8\). What are the trace and determinant, and what are the two roots?
  3. For what condition on the trace and determinant does a two-by-two characteristic polynomial have a repeated root? State the repeated root in that case.
  4. Explain why the coefficient of \(\lambda\) is not itself the sum of the roots.
  5. Can a real two-by-two matrix have nonreal roots while its trace and determinant remain real? Explain using the conjugate-root example above.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon