MATH-125 · Lesson 5 of 5 · 40 min
Eigenvalues and eigenvectors
When a matrix multiplies a vector, the vector usually changes direction. But almost every square matrix has a few special directions that it leaves alone, stretching or shrinking vectors along them without turning them. Those directions are the eigenvectors, and the stretch factors are the eigenvalues.
This may sound like a curiosity, but eigenvalues are among the most useful ideas in engineering. The natural frequencies at which a bridge, a building or a turbine blade vibrates are eigenvalues. The principal stresses that decide whether a part yields are eigenvalues. Whether a control system or a chemical reactor is stable depends on eigenvalues, and so does the long-run behaviour of any process that repeats step after step. This chapter shows how to find them, what they mean and how they are used.
The idea
A non-zero vector \(\mathbf{v}\) is an eigenvector of the square matrix \(A\) if multiplying by \(A\) only scales it:
The scale factor \(\lambda\) (lambda) is the eigenvalue belonging to \(\mathbf{v}\). If \(\lambda = 3\), vectors in that direction are stretched to three times their length. If \(\lambda = 0.5\) they are halved; if \(\lambda\) is negative they are flipped; if \(\lambda = 0\) they are crushed to zero. The zero vector is excluded, since \(A\mathbf{0} = \lambda\mathbf{0}\) for every \(\lambda\) and would tell us nothing.
Any multiple of an eigenvector is also an eigenvector with the same eigenvalue, because \(A(c\mathbf{v}) = cA\mathbf{v} = \lambda(c\mathbf{v})\). So an eigenvector really names a direction, a whole line through the origin. You can scale it however is convenient.
The picture shows something more. The eigenvectors point along the axes of the ellipse that the unit circle becomes. In the eigenvector directions, the matrix is just a pair of independent stretches. That is the main reason eigenvectors are useful: they are the natural coordinates in which a complicated matrix becomes simple.
Finding eigenvalues: the characteristic equation
Rewrite \(A\mathbf{v} = \lambda\mathbf{v}\) as \(A\mathbf{v} - \lambda I\mathbf{v} = \mathbf{0}\), that is:
This homogeneous system has a non-zero solution \(\mathbf{v}\) only if \(A - \lambda I\) is singular (Lesson 4). So the eigenvalues are exactly the numbers that make its determinant zero:
This is the characteristic equation. For an \(n \times n\) matrix, the determinant is a polynomial of degree \(n\) in \(\lambda\), so there are \(n\) eigenvalues counting repeats, though some may be complex.
The procedure:
- Subtract \(\lambda\) from each diagonal entry and set the determinant equal to zero.
- Solve the polynomial for the eigenvalues.
- For each eigenvalue, solve \((A - \lambda I)\mathbf{v} = \mathbf{0}\) by elimination. There will always be at least one free variable (that is what singular means). Choose a convenient value for it.
Worked problem
A symmetric 2×2
Find the eigenvalues and eigenvectors of \(A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}\).
Show solution
- \[\det\begin{pmatrix} 2 - \lambda & 1 \\ 1 & 2 - \lambda \end{pmatrix} = (2 - \lambda)^2 - 1 = \lambda^2 - 4\lambda + 3 = (\lambda - 1)(\lambda - 3)\]
- Eigenvalues: \(\lambda_1 = 3\) and \(\lambda_2 = 1\).
- For \(\lambda = 3\): \(A - 3I = \begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}\). The equation \(-x + y = 0\) gives \(y = x\), so \(\mathbf{v}_1 = (1, 1)\).
- For \(\lambda = 1\): \(A - I = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}\). The equation \(x + y = 0\) gives \(\mathbf{v}_2 = (1, -1)\).
- Check: \(A(1, 1) = (3, 3) = 3(1, 1)\) and \(A(1, -1) = (1, -1)\).
Answer: λ = 3 with v = (1, 1); λ = 1 with v = (1, −1). These are the red directions in the figure
Worked problem
A non-symmetric 2×2
Find the eigenvalues and eigenvectors of \(A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}\).
Show solution
- \(\det(A - \lambda I) = (4 - \lambda)(3 - \lambda) - 2 = \lambda^2 - 7\lambda + 10 = (\lambda - 5)(\lambda - 2)\).
- For \(\lambda = 5\): \(A - 5I = \begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}\). The rows are proportional (they must be). From \(-x + y = 0\): \(\mathbf{v}_1 = (1, 1)\).
- For \(\lambda = 2\): \(A - 2I = \begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}\). From \(2x + y = 0\): \(\mathbf{v}_2 = (1, -2)\).
- Check: \(A(1, -2) = (4 - 2, 2 - 6) = (2, -4) = 2(1, -2)\).
Answer: λ = 5 with v = (1, 1); λ = 2 with v = (1, −2). Unlike the symmetric case, these eigenvectors are not perpendicular
Two quick checks
For any square matrix, the eigenvalues add up to the trace (the sum of the diagonal entries) and multiply to the determinant:
For the last example: \(5 + 2 = 7 = 4 + 3\) and \(5 \times 2 = 10 = 12 - 2\). For 2×2 matrices this means the characteristic equation is always \(\lambda^2 - (\operatorname{tr} A)\lambda + \det A = 0\), which is the fastest way to write it down. It also shows that a matrix is singular exactly when 0 is one of its eigenvalues.
A 3×3 example
For larger matrices the characteristic polynomial is harder to factor, so look for structure, such as a row or column with zeros.
Worked problem
Block structure
Find the eigenvalues and eigenvectors of \(A = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 3 & 4 \\ 0 & 4 & -3 \end{pmatrix}\).
Show solution
- Expand \(\det(A - \lambda I)\) along the first row, which has two zeros:
- \[(2 - \lambda)\big[(3 - \lambda)(-3 - \lambda) - 16\big] = (2 - \lambda)(\lambda^2 - 25)\]
- Eigenvalues: \(2\), \(5\), \(-5\). Check: the sum is 2, which equals the trace \(2 + 3 - 3\).
- \(\lambda = 2\): the first column of \(A - 2I\) is zero, so \(x\) is free and the other rows force \(y = z = 0\). \(\mathbf{v} = (1, 0, 0)\).
- \(\lambda = 5\): rows 2 and 3 of \(A - 5I\) are \((0, -2, 4)\) and \((0, 4, -8)\), so \(y = 2z\), and row 1 gives \(-3x = 0\). \(\mathbf{v} = (0, 2, 1)\).
- \(\lambda = -5\): rows \((0, 8, 4)\) and \((0, 4, 2)\) give \(z = -2y\); \(x = 0\). \(\mathbf{v} = (0, 1, -2)\).
Answer: λ = 2, 5, −5 with eigenvectors (1, 0, 0), (0, 2, 1), (0, 1, −2). The matrix is symmetric, and the three eigenvectors are mutually perpendicular
Beyond 3×3, nobody finds eigenvalues by factoring polynomials. Software uses iterative methods (the QR algorithm, or the power method below) that never form the polynomial at all.
Special cases
Symmetric matrices
Symmetric matrices, which include stiffness matrices, stress tensors and inertia tensors, are the best-behaved case. Their eigenvalues are always real, and eigenvectors belonging to different eigenvalues are always perpendicular. A symmetric \(n \times n\) matrix always has \(n\) perpendicular eigenvector directions. Engineering relies on this guarantee every day.
Complex eigenvalues
A rotation turns every vector, so in the real plane it has no eigenvector directions at all. The algebra agrees: for the 90° rotation \(\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\), the characteristic equation is \(\lambda^2 + 1 = 0\), so \(\lambda = \pm i\). Complex eigenvalues signal rotation or oscillation. In a dynamic system they mean the response oscillates, and their real part says whether the oscillation grows or decays. You will rely on this in differential equations and control courses.
Repeated eigenvalues
The shear \(\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}\) has characteristic equation \((1 - \lambda)^2 = 0\), so \(\lambda = 1\) twice. But \(A - I = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}\) gives only \(y = 0\), so there is only one eigenvector direction, \((1, 0)\). A matrix like this, with fewer independent eigenvectors than its size, is called defective. Symmetric matrices are never defective.
Diagonalization and matrix powers
Suppose an \(n \times n\) matrix has \(n\) independent eigenvectors. Put them as the columns of a matrix \(P\), and put the eigenvalues on the diagonal of \(D\). The equations \(A\mathbf{v}_i = \lambda_i\mathbf{v}_i\) together say \(AP = PD\), so
This is diagonalization. It says that in eigenvector coordinates, \(A\) acts like the diagonal matrix \(D\): an independent stretch along each axis. Its first big payoff is powers. Because the inner \(P^{-1}P\) pairs cancel,
and powers of a diagonal matrix just raise each diagonal entry to the power.
Worked problem
A fifth power
Use diagonalization to find \(A^5\) for \(A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}\).
Show solution
- From the first example, \(P = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}\), \(D = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix}\), and \(P^{-1} = \tfrac12\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}\).
- \(D^5 = \begin{pmatrix} 243 & 0 \\ 0 & 1 \end{pmatrix}\).
- \[A^5 = \frac12\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} 243 & 0 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} = \frac12\begin{pmatrix} 244 & 242 \\ 242 & 244 \end{pmatrix} = \begin{pmatrix} 122 & 121 \\ 121 & 122 \end{pmatrix}\]
Answer: A⁵ = [[122, 121], [121, 122]]. In general Aᵏ has entries (3ᵏ ± 1)/2
The long-run behaviour is now obvious: the largest eigenvalue dominates. As \(k\) grows, \(3^k\) swamps \(1^k\), and \(A^k\mathbf{x}\) lines up with the eigenvector \((1, 1)\) for almost any starting \(\mathbf{x}\). If every eigenvalue had absolute value less than 1, \(A^k\mathbf{x}\) would die away to zero; if any exceeds 1, it grows. That is the stability test for any process that repeats a linear step.
The power method
The same observation gives a simple way to compute the dominant eigenvalue numerically: start with almost any vector and keep multiplying by \(A\). Starting from \((1, 0)\) with the matrix above gives \((2, 1)\), \((5, 4)\), \((14, 13)\), \((41, 40)\), \((122, 121)\). The direction approaches \((1, 1)\), and the ratio of successive lengths approaches 3 (for instance \(122/41 \approx 2.98\)). Search engines have used variants of this method on matrices with billions of rows.
Engineering applications
Principal stresses
The state of stress at a point in a loaded part is described by a symmetric stress matrix. In two dimensions it is \(\begin{pmatrix} \sigma_x & \tau_{xy} \\ \tau_{xy} & \sigma_y \end{pmatrix}\), with normal stresses on the diagonal and shear stress off it. Rotating the axes changes these numbers. In the eigenvector directions the shear vanishes, and the normal stresses there, the eigenvalues, are the largest and smallest normal stresses at that point. These principal stresses are what failure criteria for metals and concrete are written in terms of.
Worked problem
Principal stresses in a bracket
At a point in a steel bracket, \(\sigma_x = 50\) MPa, \(\sigma_y = -10\) MPa and \(\tau_{xy} = 30\) MPa. Find the principal stresses and their directions.
Show solution
- Stress matrix \(S = \begin{pmatrix} 50 & 30 \\ 30 & -10 \end{pmatrix}\): trace 40, determinant \(-500 - 900 = -1400\).
- Characteristic equation: \(\lambda^2 - 40\lambda - 1400 = 0\), so \(\lambda = 20 \pm \sqrt{400 + 1400} = 20 \pm 42.43\).
- Principal stresses: \(\sigma_1 = 62.4\) MPa (tension) and \(\sigma_2 = -22.4\) MPa (compression).
- Direction of \(\sigma_1\): \((50 - 62.43)x + 30y = 0\) gives \(y = 0.4142\,x\), an angle of \(\arctan 0.4142 = 22.5^\circ\) from the \(x\)-axis. \(\sigma_2\) acts at 90° to that.
Answer: σ₁ = 62.4 MPa at 22.5°, σ₂ = −22.4 MPa at 112.5°. The peak tension is 25% higher than the 50 MPa you would see by looking only at σx
Mechanics of materials teaches the same result through Mohr's circle, a graphical way of finding these eigenvalues.
Natural frequencies and mode shapes
A structure vibrating freely obeys \(M\ddot{\mathbf{x}} = -K\mathbf{x}\), where \(M\) is the mass matrix and \(K\) the stiffness matrix. Looking for motions in which every part oscillates at the same frequency, \(\mathbf{x} = \mathbf{v}\cos\omega t\), turns this into an eigenvalue problem: \(K\mathbf{v} = \omega^2 M\mathbf{v}\). The eigenvalues give the natural frequencies and the eigenvectors give the mode shapes, the pattern in which the structure moves.
Worked problem
Two masses, three springs
Two 1 kg masses are connected to each other and to two walls by three springs, each with \(k = 100\) N/m. Find the natural frequencies and mode shapes.
Show solution
- Each mass is held by two springs, and the middle spring couples them: \(K = \begin{pmatrix} 200 & -100 \\ -100 & 200 \end{pmatrix}\), \(M = I\).
- Eigenvalues of \(K\): trace 400, determinant \(40\,000 - 10\,000 = 30\,000\). \(\lambda^2 - 400\lambda + 30\,000 = 0\) gives \(\lambda = 100\) and \(300\).
- So \(\omega^2 = 100\) and \(300\): \(\omega_1 = 10\) rad/s and \(\omega_2 = 17.3\) rad/s, or \(f = \omega/2\pi = 1.59\) Hz and \(2.76\) Hz.
- Mode for \(\lambda = 100\): \((K - 100I)\mathbf{v} = 0\) gives \(\mathbf{v} = (1, 1)\), the masses move together and the middle spring never stretches.
- Mode for \(\lambda = 300\): \(\mathbf{v} = (1, -1)\), the masses move in opposite directions and the middle spring works hard, hence the higher frequency.
Answer: ω₁ = 10 rad/s, mode (1, 1); ω₂ = 17.3 rad/s, mode (1, −1)
If a machine or the wind drives a structure near one of its natural frequencies, the response can grow very large: resonance. Engineers compute these eigenvalues for every building in an earthquake zone, every aircraft wing and every rotating shaft, and design to keep them away from the frequencies of the expected loads.
Long-run behaviour of a repeated process
Worked problem
Equipment availability
Each day, a pump that is working has a 90% chance of still working tomorrow (10% chance of failing). A failed pump has a 20% chance of being repaired by tomorrow. In the long run, what fraction of the time is the pump working?
Show solution
- With state vector (working, failed) as probabilities, each day multiplies by \(P = \begin{pmatrix} 0.9 & 0.2 \\ 0.1 & 0.8 \end{pmatrix}\). Starting from working, \((1, 0)\) becomes \((0.9, 0.1)\), then \((0.83, 0.17)\), then \((0.781, 0.219)\).
- The long-run state is unchanged by \(P\): \(P\mathbf{v} = \mathbf{v}\), an eigenvector with eigenvalue 1.
- \((P - I)\mathbf{v} = \mathbf{0}\): \(-0.1x + 0.2y = 0\), so \(x = 2y\). Scale so the probabilities add to 1: \(\mathbf{v} = (2/3, 1/3)\).
- The other eigenvalue is \(\operatorname{tr} P - 1 = 0.7\). Its powers \(0.7^k\) set how quickly the starting condition is forgotten: after a week, \(0.7^7 \approx 0.08\).
Answer: The pump is working 2/3 of the time (about 67% availability) in the long run
Common mistakes
MistakeSubtracting λ from every entry of A instead of only the diagonal.
InsteadForm A − λI: λ comes off the diagonal entries only.
MistakeGiving v = 0 as an eigenvector.
InsteadEigenvectors are non-zero by definition. If elimination gives only v = 0, the eigenvalue is wrong.
MistakeThinking an eigenvector is unique.
InsteadAny non-zero multiple is also an eigenvector. (1, 1), (2, 2) and (−5, −5) are the same answer.
MistakeFinding eigenvalues of A by row-reducing A first.
InsteadRow operations change the eigenvalues. Work with det(A − λI) on the original matrix.
MistakeAssuming eigenvectors are always perpendicular.
InsteadThat is guaranteed only for symmetric matrices.
MistakeTaking natural frequency as the eigenvalue itself.
InsteadIn Kv = ω²Mv the eigenvalue is ω². Take the square root for ω, and divide by 2π for hertz.
Summary and key terms
- An eigenvector is a non-zero vector that A only scales: Av = λv. The scale factor λ is its eigenvalue.
- Eigenvalues solve det(A − λI) = 0. For 2×2, this is λ² − (tr A)λ + det A = 0.
- For each eigenvalue, solve (A − λI)v = 0; there is always a free variable.
- The eigenvalues sum to the trace and multiply to the determinant. A is singular exactly when 0 is an eigenvalue.
- Symmetric matrices have real eigenvalues and perpendicular eigenvectors. Complex eigenvalues signal rotation or oscillation.
- Diagonalization A = PDP⁻¹ makes powers easy: Aᵏ = PDᵏP⁻¹. The largest eigenvalue controls long-run growth or decay.
- Principal stresses, natural frequencies and steady states are all eigenvalue problems.
- Eigenvector
- A non-zero vector whose direction is unchanged by A.
- Eigenvalue
- The factor λ by which A scales its eigenvector.
- Characteristic equation
- det(A − λI) = 0, whose roots are the eigenvalues.
- Trace
- The sum of the diagonal entries; equals the sum of the eigenvalues.
- Diagonalization
- Writing A = PDP⁻¹ with eigenvectors in P and eigenvalues in D.
- Defective matrix
- A matrix with too few independent eigenvectors to be diagonalized.
- Principal stresses
- The eigenvalues of the stress matrix: extreme normal stresses, with no shear.
- Natural frequency
- A frequency at which a structure vibrates freely; ω² is an eigenvalue of Kv = ω²Mv.
- Mode shape
- The eigenvector giving the pattern of a natural vibration.
- Steady state
- A state left unchanged by a repeated process: an eigenvector with eigenvalue 1.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Find the eigenvalues and eigenvectors of \(\begin{pmatrix} 3 & 0 \\ 0 & -2 \end{pmatrix}\).
Show answer
A diagonal matrix: eigenvalues 3 and −2, with eigenvectors (1, 0) and (0, 1).
Find the eigenvalues and eigenvectors of \(\begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}\).
Show answer
λ² − 2λ − 3 = (λ − 3)(λ + 1). λ = 3: v = (1, 1). λ = −1: v = (1, −1).
Find the eigenvalues of \(\begin{pmatrix} 5 & 4 \\ 1 & 2 \end{pmatrix}\) and check with the trace and determinant.
Show answer
λ² − 7λ + 6 = (λ − 6)(λ − 1). λ = 6, 1. Sum 7 = trace; product 6 = 10 − 4.
Is \((2, 1)\) an eigenvector of \(\begin{pmatrix} 4 & -2 \\ 1 & 1 \end{pmatrix}\)? If so, with what eigenvalue?
Show answer
A(2, 1) = (8 − 2, 2 + 1) = (6, 3) = 3(2, 1). Yes, with λ = 3.
What are the eigenvalues of an upper triangular matrix with diagonal 2, −1, 7?
Show answer
det(A − λI) is the product of the diagonal (2 − λ)(−1 − λ)(7 − λ), so the eigenvalues are 2, −1, 7.
Find the eigenvalues of \(\begin{pmatrix} 1 & -2 \\ 2 & 1 \end{pmatrix}\). What does the answer tell you?
Show answer
λ² − 2λ + 5 = 0, λ = 1 ± 2i. Complex: the matrix rotates (and scales by √5), so no real direction is preserved.
If \(A\) has eigenvalue 4 with eigenvector \(\mathbf{v}\), what are the eigenvalues of \(A^2\), \(A^{-1}\) and \(A + 3I\) for that same \(\mathbf{v}\)?
Show answer
A²v = 16v, A⁻¹v = v/4, (A + 3I)v = 7v. So 16, 1/4 and 7.
Find the principal stresses for \(\sigma_x = 80\) MPa, \(\sigma_y = 20\) MPa, \(\tau_{xy} = 40\) MPa.
Show answer
Trace 100, det 1600 − 1600 = 0. λ² − 100λ = 0, so σ₁ = 100 MPa and σ₂ = 0.
Repeat the two-mass vibration example with \(m = 2\) kg for each mass (springs still 100 N/m).
Show answer
K v = ω² (2I) v, so ω² = λ/2 = 50 and 150: ω = 7.07 and 12.2 rad/s. The mode shapes (1, 1) and (1, −1) are unchanged.
A machine is busy or idle. A busy machine stays busy next hour with probability 0.8; an idle one becomes busy with probability 0.4. Find the long-run fraction of time it is busy.
Show answer
P = [[0.8, 0.4], [0.2, 0.6]]. (P − I)v = 0: −0.2x + 0.4y = 0, x = 2y. Busy 2/3 of the time.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.