TactivergeLite

Lite / Independent Engineering Research / Week 4

2×2 eigenvalues by hand

Two numbers you can read off a matrix in two seconds, the trace and the determinant, give you its eigenvalues. How?

About 45 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Most stability and vibration questions in a first engineering design come down to a 2×2 or small block. Doing it by hand, fast and reliably, is a core skill that also lets you sanity-check software.

Predict

A = [[4, 1], [2, 3]] has trace 7 and determinant 10. Which pair could be its eigenvalues?

  1. 3 and 4
  2. 5 and 2
  3. 7 and 10
Guess first, then reveal

Eigenvalues add to the trace (5 + 2 = 7) and multiply to the determinant (5 × 2 = 10). 3 and 4 add to 7 but multiply to 12.

Discover

Choose [[4, 1], [2, 3]]. Find both eigen-lines with the slider and read λ. Then press 'Show the eigen-lines' and compare with the characteristic polynomial printed in the readout.

What the interactive shows (text version)

The eigen-finder shows a vector and its image under the matrix, reports the turning angle in text, and when revealed prints the characteristic polynomial and the eigenvalues.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: The mean ± √(mean² − product) formula. Check it gives the same answer as the quadratic formula.

A fast way to find 2×2 eigenvalues from the trace and determinant, which you can check against the characteristic polynomial.

“A quick trick for computing eigenvalues | Chapter 15, Essence of linear algebra” by 3Blue1Brown (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

The recipe

  1. Compute tr A and det A. 2. Solve λ² − (tr)λ + det = 0. 3. For each λ, find v from a non-zero row of A − λI. 4. Check A·v = λ·v. Example: [[4, 1], [2, 3]]: λ² − 7λ + 10 = 0, λ = 5, 2. A − 5I = [[−1, 1], [2, −2]] gives v = (1, 1); A − 2I = [[2, 1], [2, 1]] gives v = (1, −2).

Reading the discriminant

Δ = tr² − 4 det. Δ > 0: two distinct real eigenvalues. Δ = 0: a repeated eigenvalue (maybe only one eigen-line). Δ < 0: a complex pair tr/2 ± i√(−Δ)/2. For a system x′ = Ax, the real part tr/2 then sets growth or decay and the imaginary part sets the oscillation frequency.

Triangular and symmetric shortcuts

For a triangular matrix the eigenvalues are the diagonal entries. For a symmetric matrix [[a, b], [b, d]], Δ = (a − d)² + 4b² ≥ 0, so the eigenvalues are always real, and the eigenvectors are perpendicular.

Explain it another way

Intuitive

Subtracting λ from the diagonal and asking for a squashed matrix is asking: by how much would I have to 'shift' A so that some direction gets flattened? Those shifts are the eigenvalues.

Technical

The characteristic polynomial p(λ) = det(A − λI) has degree n; its roots (with multiplicity) are the n eigenvalues. Beyond 4×4 there is no general formula, so numerical methods are used.

Mathematical

Cayley–Hamilton: every matrix satisfies its own characteristic polynomial, A² − (tr A)A + (det A)I = 0 for 2×2.

Applied

For a mass–spring–damper written as x′ = Ax, tr A = −c/m and det A = k/m, so a glance tells you damping and stiffness separately.

Derivation: The characteristic polynomial of a 2×2 matrix
  1. A·v = λ·v with v ≠ 0 means (A − λI)·v = 0 has a non-zero solution.

  2. A non-zero solution exists exactly when A − λI is singular: det(A − λI) = 0.

  3. For A = [[a, b], [c, d]]: det [[a − λ, b], [c, d − λ]] = (a − λ)(d − λ) − bc = λ² − (a + d)λ + (ad − bc).

  4. So λ² − (tr A)λ + det A = 0, giving λ = (tr ± √(tr² − 4 det)) / 2, or with m = tr/2 and p = det, λ = m ± √(m² − p).

  5. Comparing with (λ − λ₁)(λ − λ₂) = λ² − (λ₁ + λ₂)λ + λ₁λ₂ shows tr A = λ₁ + λ₂ and det A = λ₁λ₂.

  6. For each λ, solve (A − λI)v = 0: if its first row is (p, q), then v = (q, −p) works (use the other row if the first is zero).

Worked example 1

Find the eigenvalues of [[0, 1], [−2, −3]].

tr = −3, det = 0·(−3) − 1·(−2) = 2. λ² + 3λ + 2 = 0 = (λ + 1)(λ + 2), so λ = −1, −2. Check: sum −3 = tr ✓, product 2 = det ✓. Both negative: as x′ = Ax, every solution decays.

Worked example 2

Find the eigenvalues of [[1, −2], [2, 1]].

tr = 2, det = 1 + 4 = 5. Δ = 4 − 20 = −16. λ = 1 ± 2i: a rotation combined with growth by a factor √5 per step.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 4. A 2×2 matrix has tr = 2 and det = 5. Its eigenvalues are…

Practice 6. You computed eigenvalues 4 and −1 for [[1, 2], [3, 2]]. Quick check?

Apply it

Write eig2(A) in the Code Lab from the derivation (handle the complex case). Test it on ten random matrices by checking tr = λ₁ + λ₂ and det = λ₁λ₂, and on the real ones by checking A·v = λ·v.

Reflect

Which check (trace, determinant, or A·v = λv) catches the most errors in your own working?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Eigenvectors: the directions that surviveStability of x[k+1] = A·x[k] →