Skip to content
Family Table Math
Auto

Eigenvalues and Eigenvectors

When you multiply a vector by a matrix, the vector usually changes direction. But for most matrices there are a few special directions that stay put: vectors along them only get stretched or shrunk. Those vectors are eigenvectors, and the stretch factors are eigenvalues. They make it easy to find high powers of a matrix, which is exactly what you need to predict where a population, a market share or a system ends up in the long run.

A non-zero vector v⃗\vec{v} is an eigenvector of a square matrix AA if multiplying by AA just scales it:

Av⃗=λv⃗A\vec{v} = \lambda\vec{v}

The number λ\lambda (Greek “lambda”) is the eigenvalue that goes with v⃗\vec{v}. For example, with A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}:

A(11)=(55)=5(11),A(1−2)=(2−4)=2(1−2)A\begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 5 \end{pmatrix} = 5\begin{pmatrix} 1 \\ 1 \end{pmatrix}, \qquad A\begin{pmatrix} 1 \\ -2 \end{pmatrix} = \begin{pmatrix} 2 \\ -4 \end{pmatrix} = 2\begin{pmatrix} 1 \\ -2 \end{pmatrix}

So (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix} is an eigenvector with eigenvalue 55, and (1−2)\begin{pmatrix} 1 \\ -2 \end{pmatrix} is an eigenvector with eigenvalue 22. But A(10)=(42)A\begin{pmatrix} 1 \\ 0 \end{pmatrix} = \begin{pmatrix} 4 \\ 2 \end{pmatrix} points in a new direction, so (10)\begin{pmatrix} 1 \\ 0 \end{pmatrix} is not an eigenvector.

Eigenvectors keep their direction 2 4 6 −4 −2 2 4 6 A(1, 1) = (5, 5) (1, 1) A(1, −2) = (2, −4) (1, −2) A(1, 0) = (4, 2) (1, 0)
Eigenvectors of AA (blue, with their images in orange) stay on their own lines; (1,0)(1, 0) (green) gets turned to (4,2)(4, 2).

Any non-zero multiple of an eigenvector is also an eigenvector with the same eigenvalue: (33)\begin{pmatrix} 3 \\ 3 \end{pmatrix} works just as well as (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}. So an eigenvector is really a direction, and you can choose any convenient one.

Rewrite Av⃗=λv⃗A\vec{v} = \lambda\vec{v} as (A−λI)v⃗=0⃗(A - \lambda I)\vec{v} = \vec{0}. For a non-zero v⃗\vec{v} to satisfy this, A−λIA - \lambda I must be singular, so

det⁡(A−λI)=0\det(A - \lambda I) = 0

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}:

det⁡(a−λbcd−λ)=(a−λ)(d−λ)−bc\det\begin{pmatrix} a - \lambda & b \\ c & d - \lambda \end{pmatrix} = (a - \lambda)(d - \lambda) - bc

This quadratic in λ\lambda is the characteristic polynomial. Setting it to 00 gives the characteristic equation, and its roots are the eigenvalues. Expanding gives a handy shortcut:

λ2−(a+d)λ+(ad−bc)=0\lambda^2 - (a + d)\lambda + (ad - bc) = 0

that is, λ2−(sum of the leading diagonal)λ+det⁡A=0\lambda^2 - (\text{sum of the leading diagonal})\lambda + \det A = 0.

For each eigenvalue λ\lambda, solve (A−λI)v⃗=0⃗(A - \lambda I)\vec{v} = \vec{0}. Because A−λIA - \lambda I is singular, its two rows give the same equation, so you get a direction rather than a single vector. Pick a simple vector in that direction.

This is the one place in the course where you work with a matrix that has no inverse: you can’t solve (A−λI)v⃗=0⃗(A - \lambda I)\vec{v} = \vec{0} with an inverse matrix.

If a 2×22 \times 2 matrix AA has two distinct real eigenvalues λ1\lambda_1 and λ2\lambda_2 with eigenvectors v⃗1\vec{v}_1 and v⃗2\vec{v}_2, put the eigenvectors in the columns of PP and the eigenvalues, in the same order, on the diagonal of DD:

P=(v⃗1v⃗2),D=(λ100λ2),A=PDP−1P = \begin{pmatrix} \vec{v}_1 & \vec{v}_2 \end{pmatrix}, \qquad D = \begin{pmatrix} \lambda_1 & 0 \\ 0 & \lambda_2 \end{pmatrix}, \qquad A = PDP^{-1}

Writing AA like this is diagonalization. It makes powers easy, because the P−1PP^{-1}P pairs in the middle cancel:

An=(PDP−1)(PDP−1)⋯(PDP−1)=PDnP−1,Dn=(λ1n00λ2n)A^n = (PDP^{-1})(PDP^{-1})\cdots(PDP^{-1}) = PD^nP^{-1}, \qquad D^n = \begin{pmatrix} \lambda_1^n & 0 \\ 0 & \lambda_2^n \end{pmatrix}

If x⃗n=Anx⃗0\vec{x}_n = A^n\vec{x}_0 describes a system after nn steps, the eigenvalues control what happens:

  • An eigenvalue with ∣λ∣<1|\lambda| \lt 1 gives a term λn→0\lambda^n \to 0: that part dies away.
  • An eigenvalue λ=1\lambda = 1 gives a term that stays the same: that’s the steady state.
  • An eigenvalue with ∣λ∣>1|\lambda| \gt 1 gives a term that grows.

For a population moving between two places (a transition matrix whose columns add to 11), one eigenvalue is always 11, and its eigenvector gives the long-term split. This links to Markov chains, and eigenvalues also describe the solutions of coupled differential equations in phase portraits.

Your GDC can find eigenvalues and eigenvectors for you, and can check PDP−1PDP^{-1} and AnA^n. You should also be able to do 2×22 \times 2 matrices by hand.

Let B=(3214)B = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}. Decide whether each vector is an eigenvector of BB, and if so, give its eigenvalue.

(a) (2−1)(b) (12)\text{(a) } \begin{pmatrix} 2 \\ -1 \end{pmatrix} \qquad \text{(b) } \begin{pmatrix} 1 \\ 2 \end{pmatrix}

Solution.

(a) B(2−1)=(6−22−4)=(4−2)=2(2−1)B\begin{pmatrix} 2 \\ -1 \end{pmatrix} = \begin{pmatrix} 6 - 2 \\ 2 - 4 \end{pmatrix} = \begin{pmatrix} 4 \\ -2 \end{pmatrix} = 2\begin{pmatrix} 2 \\ -1 \end{pmatrix}. Yes: it’s an eigenvector with eigenvalue 22.

(b) B(12)=(3+41+8)=(79)B\begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 3 + 4 \\ 1 + 8 \end{pmatrix} = \begin{pmatrix} 7 \\ 9 \end{pmatrix}. Is this a multiple of (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix}? It would need 7=λ7 = \lambda and 9=2λ9 = 2\lambda, which can’t both be true. So no, it’s not an eigenvector.

Example 2: Eigenvalues and eigenvectors by hand

Section titled “Example 2: Eigenvalues and eigenvectors by hand”

Find the eigenvalues and corresponding eigenvectors of A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}.

Solution. The characteristic equation:

det⁡(A−λI)=(4−λ)(3−λ)−1(2)=0λ2−7λ+10=0(λ−5)(λ−2)=0\begin{aligned} \det(A - \lambda I) = (4 - \lambda)(3 - \lambda) - 1(2) &= 0 \\ \lambda^2 - 7\lambda + 10 &= 0 \\ (\lambda - 5)(\lambda - 2) &= 0 \end{aligned}

The eigenvalues are λ=5\lambda = 5 and λ=2\lambda = 2. (Shortcut check: sum of the diagonal =7= 7, det⁡A=12−2=10\det A = 12 - 2 = 10.)

For λ=5\lambda = 5: A−5I=(−112−2)A - 5I = \begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}. With v⃗=(xy)\vec{v} = \begin{pmatrix} x \\ y \end{pmatrix}, the first row gives −x+y=0-x + y = 0, so y=xy = x. (The second row, 2x−2y=02x - 2y = 0, says the same thing.) Take v⃗1=(11)\vec{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}.

For λ=2\lambda = 2: A−2I=(2121)A - 2I = \begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}. Both rows give 2x+y=02x + y = 0, so y=−2xy = -2x. Take v⃗2=(1−2)\vec{v}_2 = \begin{pmatrix} 1 \\ -2 \end{pmatrix}.

Check: A(1−2)=(4−22−6)=(2−4)=2(1−2)A\begin{pmatrix} 1 \\ -2 \end{pmatrix} = \begin{pmatrix} 4 - 2 \\ 2 - 6 \end{pmatrix} = \begin{pmatrix} 2 \\ -4 \end{pmatrix} = 2\begin{pmatrix} 1 \\ -2 \end{pmatrix} ✓.

Example 3: Diagonalizing and finding a power

Section titled “Example 3: Diagonalizing and finding a power”

For A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix} from Example 2:

  • (a) Write AA in the form PDP−1PDP^{-1}.
  • (b) Find an expression for AnA^n, and use it to find A3A^3.

Solution.

(a) Put the eigenvectors in the columns of PP, and the eigenvalues in the same order in DD:

P=(111−2),D=(5002)P = \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}, \qquad D = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}

det⁡P=−2−1=−3\det P = -2 - 1 = -3, so

P−1=1−3(−2−1−11)=13(211−1)P^{-1} = \frac{1}{-3}\begin{pmatrix} -2 & -1 \\ -1 & 1 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}

(b)

An=PDnP−1=(111−2)(5n002n)13(211−1)=13(5n2n5n−2⋅2n)(211−1)=13(2⋅5n+2n5n−2n2⋅5n−2⋅2n5n+2⋅2n)\begin{aligned} A^n = PD^nP^{-1} &= \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}\begin{pmatrix} 5^n & 0 \\ 0 & 2^n \end{pmatrix}\frac{1}{3}\begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix} \\ &= \frac{1}{3}\begin{pmatrix} 5^n & 2^n \\ 5^n & -2 \cdot 2^n \end{pmatrix}\begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix} \\ &= \frac{1}{3}\begin{pmatrix} 2 \cdot 5^n + 2^n & 5^n - 2^n \\ 2 \cdot 5^n - 2 \cdot 2^n & 5^n + 2 \cdot 2^n \end{pmatrix} \end{aligned}

For n=3n = 3, with 53=1255^3 = 125 and 23=82^3 = 8:

A3=13(258117234141)=(86397847)A^3 = \frac{1}{3}\begin{pmatrix} 258 & 117 \\ 234 & 141 \end{pmatrix} = \begin{pmatrix} 86 & 39 \\ 78 & 47 \end{pmatrix}

Check: calculating A3A^3 directly on a GDC gives the same matrix. ✓

Each year, 10%10\% of the people in town AA move to town BB, and 20%20\% of the people in town BB move to town AA. Everyone else stays. At the start, 50005000 people live in AA and 70007000 in BB. Assume the total stays the same.

  • (a) Write down the matrix MM with (an+1bn+1)=M(anbn)\begin{pmatrix} a_{n+1} \\ b_{n+1} \end{pmatrix} = M\begin{pmatrix} a_n \\ b_n \end{pmatrix}.
  • (b) Find the eigenvalues and eigenvectors of MM.
  • (c) Find expressions for ana_n and bnb_n, and describe the long-term populations.

Solution.

(a) Next year, town AA keeps 90%90\% of its people and gains 20%20\% of BB‘s: an+1=0.9an+0.2bna_{n+1} = 0.9a_n + 0.2b_n. Similarly bn+1=0.1an+0.8bnb_{n+1} = 0.1a_n + 0.8b_n.

M=(0.90.20.10.8)M = \begin{pmatrix} 0.9 & 0.2 \\ 0.1 & 0.8 \end{pmatrix}

(b) λ2−1.7λ+(0.72−0.02)=0\lambda^2 - 1.7\lambda + (0.72 - 0.02) = 0, that is, λ2−1.7λ+0.7=0\lambda^2 - 1.7\lambda + 0.7 = 0, which factors as (λ−1)(λ−0.7)=0(\lambda - 1)(\lambda - 0.7) = 0. So λ=1\lambda = 1 or λ=0.7\lambda = 0.7.

For λ=1\lambda = 1: M−I=(−0.10.20.1−0.2)M - I = \begin{pmatrix} -0.1 & 0.2 \\ 0.1 & -0.2 \end{pmatrix} gives −0.1x+0.2y=0-0.1x + 0.2y = 0, so x=2yx = 2y: v⃗1=(21)\vec{v}_1 = \begin{pmatrix} 2 \\ 1 \end{pmatrix}.

For λ=0.7\lambda = 0.7: M−0.7I=(0.20.20.10.1)M - 0.7I = \begin{pmatrix} 0.2 & 0.2 \\ 0.1 & 0.1 \end{pmatrix} gives x+y=0x + y = 0: v⃗2=(1−1)\vec{v}_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix}.

(c) With P=(211−1)P = \begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}, D=(1000.7)D = \begin{pmatrix} 1 & 0 \\ 0 & 0.7 \end{pmatrix} and P−1=13(111−2)P^{-1} = \dfrac{1}{3}\begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}:

(anbn)=PDnP−1(50007000)=(211−1)(1000.7n)(4000−3000)=(211−1)(4000−3000(0.7)n)=(8000−3000(0.7)n4000+3000(0.7)n)\begin{aligned} \begin{pmatrix} a_n \\ b_n \end{pmatrix} = PD^nP^{-1}\begin{pmatrix} 5000 \\ 7000 \end{pmatrix} &= \begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & 0.7^n \end{pmatrix}\begin{pmatrix} 4000 \\ -3000 \end{pmatrix} \\ &= \begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} 4000 \\ -3000(0.7)^n \end{pmatrix} = \begin{pmatrix} 8000 - 3000(0.7)^n \\ 4000 + 3000(0.7)^n \end{pmatrix} \end{aligned}

As n→∞n \to \infty, 0.7n→00.7^n \to 0, so the populations approach 80008000 in town AA and 40004000 in town BB. That’s the eigenvector (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix} scaled to the total of 12 00012\,000.

Check after one year: a1=8000−3000(0.7)=5900a_1 = 8000 - 3000(0.7) = 5900, and directly 0.9(5000)+0.2(7000)=59000.9(5000) + 0.2(7000) = 5900 ✓.

Accepting the zero vector as an eigenvector. A0⃗=λ0⃗A\vec{0} = \lambda\vec{0} for every λ\lambda, so it tells you nothing. Eigenvectors must be non-zero.

Subtracting λ from every entry. A−λIA - \lambda I subtracts λ\lambda only from the leading diagonal. The other entries stay the same.

Expecting a single answer for an eigenvector. The equations from (A−λI)v⃗=0⃗(A - \lambda I)\vec{v} = \vec{0} always reduce to one relation like y=−2xy = -2x. Any non-zero vector satisfying it is correct, so (1−2)\begin{pmatrix} 1 \\ -2 \end{pmatrix} and (−36)\begin{pmatrix} -3 \\ 6 \end{pmatrix} are both fine.

Mismatching the orders in P and D. The eigenvalue in column 11 of DD must belong to the eigenvector in column 11 of PP. Swap one without the other and PDP−1PDP^{-1} is no longer AA.

Writing Aⁿ = PⁿDⁿ(P⁻¹)ⁿ or PⁿDⁿP⁻¹. Only DD gets the power: An=PDnP−1A^n = PD^nP^{-1}. That’s the whole point of diagonalizing.

Raising a non-diagonal matrix to a power entry by entry. DnD^n is found by raising each diagonal entry to the power nn, but this only works because DD is diagonal. For any other matrix, AnA^n is not found entry by entry.

1. (Warm-up) Show that (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix} is an eigenvector of (3214)\begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}, and state its eigenvalue.

Solution(3214)(11)=(55)=5(11)\begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}\begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 5 \end{pmatrix} = 5\begin{pmatrix} 1 \\ 1 \end{pmatrix}

It’s an eigenvector with eigenvalue 55.

2. (Warm-up) Find the characteristic polynomial and the eigenvalues of C=(5−212)C = \begin{pmatrix} 5 & -2 \\ 1 & 2 \end{pmatrix}.

Solutiondet⁡(C−λI)=(5−λ)(2−λ)−(−2)(1)=λ2−7λ+10+2=λ2−7λ+12\det(C - \lambda I) = (5 - \lambda)(2 - \lambda) - (-2)(1) = \lambda^2 - 7\lambda + 10 + 2 = \lambda^2 - 7\lambda + 12

λ2−7λ+12=(λ−3)(λ−4)=0\lambda^2 - 7\lambda + 12 = (\lambda - 3)(\lambda - 4) = 0, so the eigenvalues are 33 and 44.

3. (Warm-up) Find the eigenvalues of T=(305−1)T = \begin{pmatrix} 3 & 0 \\ 5 & -1 \end{pmatrix}. What do you notice?

Solutiondet⁡(T−λI)=(3−λ)(−1−λ)−0(5)=0\det(T - \lambda I) = (3 - \lambda)(-1 - \lambda) - 0(5) = 0

So λ=3\lambda = 3 or λ=−1\lambda = -1. These are just the entries on the leading diagonal: when one of the off-diagonal entries is 00, the eigenvalues are the diagonal entries.

4. (Core) Find an eigenvector for each eigenvalue of C=(5−212)C = \begin{pmatrix} 5 & -2 \\ 1 & 2 \end{pmatrix} from question 2.

Solution

λ=3\lambda = 3: C−3I=(2−21−1)C - 3I = \begin{pmatrix} 2 & -2 \\ 1 & -1 \end{pmatrix}, giving x−y=0x - y = 0. Eigenvector (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}.

λ=4\lambda = 4: C−4I=(1−21−2)C - 4I = \begin{pmatrix} 1 & -2 \\ 1 & -2 \end{pmatrix}, giving x=2yx = 2y. Eigenvector (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}.

Check: C(21)=(10−22+2)=(84)=4(21)C\begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 10 - 2 \\ 2 + 2 \end{pmatrix} = \begin{pmatrix} 8 \\ 4 \end{pmatrix} = 4\begin{pmatrix} 2 \\ 1 \end{pmatrix} ✓.

5. (Core) For C=(5−212)C = \begin{pmatrix} 5 & -2 \\ 1 & 2 \end{pmatrix}:

  • (a) Write C=PDP−1C = PDP^{-1}, giving PP, DD and P−1P^{-1}.
  • (b) Use C5=PD5P−1C^5 = PD^5P^{-1} to find C5C^5.
Solution

(a) Using question 4:

P=(1211),D=(3004),P−1=1−1(1−2−11)=(−121−1)P = \begin{pmatrix} 1 & 2 \\ 1 & 1 \end{pmatrix}, \qquad D = \begin{pmatrix} 3 & 0 \\ 0 & 4 \end{pmatrix}, \qquad P^{-1} = \frac{1}{-1}\begin{pmatrix} 1 & -2 \\ -1 & 1 \end{pmatrix} = \begin{pmatrix} -1 & 2 \\ 1 & -1 \end{pmatrix}

(b) 35=2433^5 = 243 and 45=10244^5 = 1024.

C5=(1211)(243001024)(−121−1)=(24320482431024)(−121−1)=(−243+2048486−2048−243+1024486−1024)=(1805−1562781−538)\begin{aligned} C^5 &= \begin{pmatrix} 1 & 2 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 243 & 0 \\ 0 & 1024 \end{pmatrix}\begin{pmatrix} -1 & 2 \\ 1 & -1 \end{pmatrix} \\ &= \begin{pmatrix} 243 & 2048 \\ 243 & 1024 \end{pmatrix}\begin{pmatrix} -1 & 2 \\ 1 & -1 \end{pmatrix} \\ &= \begin{pmatrix} -243 + 2048 & 486 - 2048 \\ -243 + 1024 & 486 - 1024 \end{pmatrix} = \begin{pmatrix} 1805 & -1562 \\ 781 & -538 \end{pmatrix} \end{aligned}

A GDC calculation of C5C^5 agrees.

6. (Core) A matrix AA has eigenvalue 33 with eigenvector (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix} and eigenvalue −1-1 with eigenvector (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}. Find AA.

Solution

A=PDP−1A = PDP^{-1} with P=(2111)P = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix} and D=(300−1)D = \begin{pmatrix} 3 & 0 \\ 0 & -1 \end{pmatrix}. det⁡P=2−1=1\det P = 2 - 1 = 1, so P−1=(1−1−12)P^{-1} = \begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix}.

A=(6−13−1)(1−1−12)=(6+1−6−23+1−3−2)=(7−84−5)A = \begin{pmatrix} 6 & -1 \\ 3 & -1 \end{pmatrix}\begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix} = \begin{pmatrix} 6 + 1 & -6 - 2 \\ 3 + 1 & -3 - 2 \end{pmatrix} = \begin{pmatrix} 7 & -8 \\ 4 & -5 \end{pmatrix}

(Here PD=(6−13−1)PD = \begin{pmatrix} 6 & -1 \\ 3 & -1 \end{pmatrix}.) Check: A(21)=(14−88−5)=(63)=3(21)A\begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 14 - 8 \\ 8 - 5 \end{pmatrix} = \begin{pmatrix} 6 \\ 3 \end{pmatrix} = 3\begin{pmatrix} 2 \\ 1 \end{pmatrix} ✓.

7. (Core) A town has two gyms with 10001000 members between them. Each month, 15%15\% of Gym AA‘s members switch to Gym BB, and 5%5\% of Gym BB‘s members switch to Gym AA. At the start, Gym AA has 600600 members and Gym BB has 400400.

  • (a) Write down the matrix GG such that (an+1bn+1)=G(anbn)\begin{pmatrix} a_{n+1} \\ b_{n+1} \end{pmatrix} = G\begin{pmatrix} a_n \\ b_n \end{pmatrix}.
  • (b) Find the eigenvalues of GG and an eigenvector for each.
  • (c) Find expressions for ana_n and bnb_n, and the long-term number of members at each gym.
Solution

(a)

G=(0.850.050.150.95)G = \begin{pmatrix} 0.85 & 0.05 \\ 0.15 & 0.95 \end{pmatrix}

(b) λ2−1.8λ+(0.8075−0.0075)=λ2−1.8λ+0.8=(λ−1)(λ−0.8)=0\lambda^2 - 1.8\lambda + (0.8075 - 0.0075) = \lambda^2 - 1.8\lambda + 0.8 = (\lambda - 1)(\lambda - 0.8) = 0, so λ=1\lambda = 1 or 0.80.8.

λ=1\lambda = 1: −0.15x+0.05y=0-0.15x + 0.05y = 0, so y=3xy = 3x: eigenvector (13)\begin{pmatrix} 1 \\ 3 \end{pmatrix}.

λ=0.8\lambda = 0.8: 0.05x+0.05y=00.05x + 0.05y = 0, so y=−xy = -x: eigenvector (1−1)\begin{pmatrix} 1 \\ -1 \end{pmatrix}.

(c) P=(113−1)P = \begin{pmatrix} 1 & 1 \\ 3 & -1 \end{pmatrix}, det⁡P=−4\det P = -4, P−1=14(113−1)P^{-1} = \dfrac{1}{4}\begin{pmatrix} 1 & 1 \\ 3 & -1 \end{pmatrix}, and P−1(600400)=(250350)P^{-1}\begin{pmatrix} 600 \\ 400 \end{pmatrix} = \begin{pmatrix} 250 \\ 350 \end{pmatrix}.

(anbn)=(113−1)(250350(0.8)n)=(250+350(0.8)n750−350(0.8)n)\begin{pmatrix} a_n \\ b_n \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 3 & -1 \end{pmatrix}\begin{pmatrix} 250 \\ 350(0.8)^n \end{pmatrix} = \begin{pmatrix} 250 + 350(0.8)^n \\ 750 - 350(0.8)^n \end{pmatrix}

As n→∞n \to \infty, 0.8n→00.8^n \to 0: in the long run Gym AA has about 250250 members and Gym BB about 750750.

Check: a1=250+280=530a_1 = 250 + 280 = 530, and directly 0.85(600)+0.05(400)=510+20=5300.85(600) + 0.05(400) = 510 + 20 = 530 ✓.

8. (Challenge) Let M=(0.70.60.30.4)M = \begin{pmatrix} 0.7 & 0.6 \\ 0.3 & 0.4 \end{pmatrix}.

  • (a) Show that the eigenvalues of MM are 11 and 0.10.1, and find an eigenvector for each.
  • (b) Find MnM^n in terms of nn.
  • (c) Find the matrix that MnM^n approaches as n→∞n \to \infty, and explain what its columns tell you.
Solution

(a) λ2−1.1λ+(0.28−0.18)=λ2−1.1λ+0.1=(λ−1)(λ−0.1)=0\lambda^2 - 1.1\lambda + (0.28 - 0.18) = \lambda^2 - 1.1\lambda + 0.1 = (\lambda - 1)(\lambda - 0.1) = 0. ✓

λ=1\lambda = 1: −0.3x+0.6y=0-0.3x + 0.6y = 0, so x=2yx = 2y: (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}. λ=0.1\lambda = 0.1: 0.6x+0.6y=00.6x + 0.6y = 0: (1−1)\begin{pmatrix} 1 \\ -1 \end{pmatrix}.

(b) P=(211−1)P = \begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}, P−1=13(111−2)P^{-1} = \dfrac{1}{3}\begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}.

Mn=(211−1)(1000.1n)13(111−2)=13(20.1n1−0.1n)(111−2)=13(2+0.1n2−2(0.1)n1−0.1n1+2(0.1)n)\begin{aligned} M^n &= \begin{pmatrix} 2 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 0 & 0.1^n \end{pmatrix}\frac{1}{3}\begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix} \\ &= \frac{1}{3}\begin{pmatrix} 2 & 0.1^n \\ 1 & -0.1^n \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 2 + 0.1^n & 2 - 2(0.1)^n \\ 1 - 0.1^n & 1 + 2(0.1)^n \end{pmatrix} \end{aligned}

Check n=1n = 1: 13(2.11.80.91.2)=(0.70.60.30.4)\dfrac{1}{3}\begin{pmatrix} 2.1 & 1.8 \\ 0.9 & 1.2 \end{pmatrix} = \begin{pmatrix} 0.7 & 0.6 \\ 0.3 & 0.4 \end{pmatrix} ✓.

(c) As n→∞n \to \infty, 0.1n→00.1^n \to 0:

Mn→13(2211)=(23231313)M^n \to \frac{1}{3}\begin{pmatrix} 2 & 2 \\ 1 & 1 \end{pmatrix} = \begin{pmatrix} \frac{2}{3} & \frac{2}{3} \\ \frac{1}{3} & \frac{1}{3} \end{pmatrix}

Both columns are the same: whatever the starting split, the long-term split is 23\dfrac{2}{3} and 13\dfrac{1}{3}, the eigenvector (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix} scaled so its entries add to 11.

9. (Challenge) The matrix A=(1k23)A = \begin{pmatrix} 1 & k \\ 2 & 3 \end{pmatrix} has an eigenvalue of 55.

  • (a) Find kk.
  • (b) Find the other eigenvalue, and an eigenvector for each eigenvalue.
Solution

(a) 55 is a root of det⁡(A−λI)=0\det(A - \lambda I) = 0:

det⁡(1−5k23−5)=(−4)(−2)−2k=8−2k=0⇒k=4\det\begin{pmatrix} 1 - 5 & k \\ 2 & 3 - 5 \end{pmatrix} = (-4)(-2) - 2k = 8 - 2k = 0 \quad\Rightarrow\quad k = 4

(b) With k=4k = 4: λ2−4λ+(3−8)=λ2−4λ−5=(λ−5)(λ+1)=0\lambda^2 - 4\lambda + (3 - 8) = \lambda^2 - 4\lambda - 5 = (\lambda - 5)(\lambda + 1) = 0. The other eigenvalue is −1-1. (The two eigenvalues add to the sum of the diagonal, 1+3=41 + 3 = 4.)

λ=5\lambda = 5: A−5I=(−442−2)A - 5I = \begin{pmatrix} -4 & 4 \\ 2 & -2 \end{pmatrix}, so y=xy = x: eigenvector (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}.

λ=−1\lambda = -1: A+I=(2424)A + I = \begin{pmatrix} 2 & 4 \\ 2 & 4 \end{pmatrix}, so x=−2yx = -2y: eigenvector (−21)\begin{pmatrix} -2 \\ 1 \end{pmatrix}.

Check: A(−21)=(−2+4−4+3)=(2−1)=−1(−21)A\begin{pmatrix} -2 \\ 1 \end{pmatrix} = \begin{pmatrix} -2 + 4 \\ -4 + 3 \end{pmatrix} = \begin{pmatrix} 2 \\ -1 \end{pmatrix} = -1\begin{pmatrix} -2 \\ 1 \end{pmatrix} ✓.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

You may use your GDC to check, but show the characteristic equation and the eigenvector equations by hand. Give non-exact answers to 3 significant figures.

H1. (Foundations) Let A=(1232)A = \begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix}. Decide whether each vector is an eigenvector of AA. If it is, state its eigenvalue.

  • (a) (23)\begin{pmatrix} 2 \\ 3 \end{pmatrix}
  • (b) (1−1)\begin{pmatrix} 1 \\ -1 \end{pmatrix}
  • (c) (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix}

H2. (Foundations) Let E=(6−43−1)E = \begin{pmatrix} 6 & -4 \\ 3 & -1 \end{pmatrix}.

  • (a) Write down E−λIE - \lambda I and expand det⁡(E−λI)\det(E - \lambda I) to get the characteristic polynomial.
  • (b) Solve the characteristic equation to find the eigenvalues of EE.
  • (c) Check your polynomial with the shortcut λ2−(sum of the leading diagonal)λ+det⁡E\lambda^2 - (\text{sum of the leading diagonal})\lambda + \det E.

H3. (Core) For E=(6−43−1)E = \begin{pmatrix} 6 & -4 \\ 3 & -1 \end{pmatrix} from H2:

  • (a) Find an eigenvector for each eigenvalue, and check one of them using Ev⃗=λv⃗E\vec{v} = \lambda\vec{v}.
  • (b) Write E=PDP−1E = PDP^{-1}, giving PP, DD and P−1P^{-1}.

H4. (Core) Use your answer to H3.

  • (a) Find an expression for EnE^n in terms of nn.
  • (b) Check that your expression gives EE when n=1n = 1.
  • (c) Use your expression to find E4E^4, then check it on your GDC.

H5. (Core) (IB style) In a hypothetical town in the Okanagan Valley, 20 00020\,000 households each use one of two internet providers, XX and YY. Each month, 6%6\% of XX‘s customers switch to YY, and 9%9\% of YY‘s customers switch to XX. Everyone else stays. At the start, XX has 80008000 customers and YY has 12 00012\,000. Let xnx_n and yny_n be the numbers of customers after nn months.

  • (a) Write down the transition matrix TT such that (xn+1yn+1)=T(xnyn)\begin{pmatrix} x_{n+1} \\ y_{n+1} \end{pmatrix} = T\begin{pmatrix} x_n \\ y_n \end{pmatrix}.
  • (b) Find the eigenvalues of TT and an eigenvector for each.
  • (c) Write T=PDP−1T = PDP^{-1}, and hence show that xn=12 000−4000(0.85)nx_n = 12\,000 - 4000(0.85)^n and find a similar expression for yny_n.
  • (d) Describe the long-term number of customers for each provider, and the long-term proportions.
  • (e) Find the first month in which XX has more than 11 00011\,000 customers.

H6. (Core) A matrix AA has eigenvalue 33 with eigenvector (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix}, and eigenvalue 0.50.5 with eigenvector (1−1)\begin{pmatrix} 1 \\ -1 \end{pmatrix}. Let x⃗0=(54)\vec{x}_0 = \begin{pmatrix} 5 \\ 4 \end{pmatrix}.

  • (a) Write down suitable matrices PP and DD, and find P−1x⃗0P^{-1}\vec{x}_0.
  • (b) Hence find an expression for Anx⃗0A^n\vec{x}_0 in terms of nn.
  • (c) Find A10x⃗0A^{10}\vec{x}_0, with each entry to 3 significant figures.
  • (d) Describe what happens to Anx⃗0A^n\vec{x}_0 for large nn: its size, and the ratio of its two entries.

H7. (Challenge) A student is asked to diagonalize A=(1232)A = \begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix} (from H1) and to find A3A^3. Here is their work.

  • Eigenvalues 44 and −1-1, with eigenvectors (23)\begin{pmatrix} 2 \\ 3 \end{pmatrix} and (1−1)\begin{pmatrix} 1 \\ -1 \end{pmatrix}.
  • P=(213−1)P = \begin{pmatrix} 2 & 1 \\ 3 & -1 \end{pmatrix} and D=(−1004)D = \begin{pmatrix} -1 & 0 \\ 0 & 4 \end{pmatrix}.
  • “So A3A^3 is found by cubing every entry: A3=(18278)A^3 = \begin{pmatrix} 1 & 8 \\ 27 & 8 \end{pmatrix}.”

Answer these:

  • (a) Their eigenvalues and eigenvectors are correct. Explain what is wrong with their DD, and show that their PDP−1PDP^{-1} is not AA.
  • (b) Explain why cubing every entry does not give A3A^3.
  • (c) Use a correct PD3P−1PD^3P^{-1} to find A3A^3, and check your answer by working out A2A^2 and then A3=A⋅A2A^3 = A \cdot A^2.

H8. (Challenge) Let K=(2k13)K = \begin{pmatrix} 2 & k \\ 1 & 3 \end{pmatrix}, where kk is a real number.

  • (a) Show that the characteristic equation is λ2−5λ+(6−k)=0\lambda^2 - 5\lambda + (6 - k) = 0.
  • (b) Find all values of kk for which KK has two distinct real eigenvalues.
  • (c) Find the value of kk for which 11 is an eigenvalue. For this kk, find the other eigenvalue and an eigenvector for each eigenvalue.
  • (d) When k=−1k = -1, explain why no non-zero vector keeps its direction (or reverses it) when multiplied by KK.

H9. (Challenge) Every two-state transition matrix (columns adding to 11) can be written as

M=(1−pqp1−q),0<p<1,0<q<1M = \begin{pmatrix} 1 - p & q \\ p & 1 - q \end{pmatrix}, \qquad 0 \lt p \lt 1, \quad 0 \lt q \lt 1

where pp is the fraction that leaves state 11 each step and qq is the fraction that leaves state 22.

  • (a) Show that the characteristic polynomial of MM factors as (λ−1)(λ−(1−p−q))(\lambda - 1)(\lambda - (1 - p - q)).
  • (b) Show that (qp)\begin{pmatrix} q \\ p \end{pmatrix} is an eigenvector for λ=1\lambda = 1.
  • (c) Explain why the other eigenvalue always satisfies −1<1−p−q<1-1 \lt 1 - p - q \lt 1, and what this means for the long-term behaviour.
  • (d) Deduce a formula for the long-term fraction in state 11, and use it to check your answer to H5.

H10. (Challenge) A hypothetical model for a lake trout population in a northern Ontario lake counts juveniles jnj_n and adults ana_n (in thousands) each year:

(jn+1an+1)=L(jnan),L=(01.50.40.7)\begin{pmatrix} j_{n+1} \\ a_{n+1} \end{pmatrix} = L\begin{pmatrix} j_n \\ a_n \end{pmatrix}, \qquad L = \begin{pmatrix} 0 & 1.5 \\ 0.4 & 0.7 \end{pmatrix}
  • (a) Explain what each of the numbers 1.51.5, 0.40.4 and 0.70.7 means in context.
  • (b) Find the eigenvalues of LL and an eigenvector for each.
  • (c) Describe the long-term behaviour of the population: how fast it grows each year, and the long-term ratio of juveniles to adults. What does the other eigenvalue do?
  • (d) A biologist thinks the adult survival rate is really lower than 0.70.7. Find the value cc of adult survival (replacing 0.70.7) for which the population levels off instead of growing, and find the long-term ratio of juveniles to adults in that case.