Skip to content
Tactiverge

School/✦ Research Engineer/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

1.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.

  • ◇ Derive the characteristic polynomial det(A − λI) = 0 for a 2×2 matrix.
  • ◇ Compute eigenvalues and eigenvectors of a 2×2 matrix by hand and check A·v = λ·v.
  • ◇ Use trace = λ₁ + λ₂ and det = λ₁λ₂ as checks and for quick classification.

2.Predict

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

Guess first. Being wrong here is how the surprise works.

3.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.

Loading the interactive…

Can't use the interactive? Read a description instead

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.

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1 · a fresh version every time

A = [[2, 0], [6, -4]]. Find its smaller eigenvalue.

5.Watch

→ 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.

13 min 12 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

The video is optional: everything you need is also in the lesson text and the interactive.

6.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

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.

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

  • The eigenvalues are the diagonal entries.
    ✓ Only for triangular (or diagonal) matrices.
  • Eigenvectors are unique.
    ✓ Any non-zero multiple of an eigenvector is also one; we choose a convenient scaling.

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

Find the larger eigenvalue of the symmetric matrix A = [[-3, -3], [-3, 5]].

Practice 3 · a fresh version every time

A = [[-1, 0], [0, 1]]. Find its larger eigenvalue.

Practice 4

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

Practice 5

What is the larger eigenvalue of [[3, 7], [0, −1]]?

Practice 6

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

8.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.

9.Reflect

Concepts: Eigenvalues and the stability of dynamic systems