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 is an eigenvector of a square matrix A if multiplying by A just scales it:
Av=λv
The number λ (Greek “lambda”) is the eigenvalue that goes with v. For example, with A=(4213):
A(11)=(55)=5(11),A(1−2)=(2−4)=2(1−2)
So (11) is an eigenvector with eigenvalue 5, and (1−2) is an eigenvector with eigenvalue 2. But A(10)=(42) points in a new direction, so (10) is not an eigenvector.
Eigenvectors of A (blue, with their images in orange) stay on their own lines; (1,0) (green) gets turned to (4,2).
Any non-zero multiple of an eigenvector is also an eigenvector with the same eigenvalue: (33) works just as well as (11). So an eigenvector is really a direction, and you can choose any convenient one.
Rewrite Av=λv as (A−λI)v=0. For a non-zero v to satisfy this, A−λI must be singular, so
det(A−λI)=0
For A=(acbd):
det(a−λcbd−λ)=(a−λ)(d−λ)−bc
This quadratic in λ is the characteristic polynomial. Setting it to 0 gives the characteristic equation, and its roots are the eigenvalues. Expanding gives a handy shortcut:
λ2−(a+d)λ+(ad−bc)=0
that is, λ2−(sum of the leading diagonal)λ+detA=0.
For each eigenvalue λ, solve (A−λI)v=0. Because A−λ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 with an inverse matrix.
If a 2×2 matrix A has two distinct real eigenvalues λ1 and λ2 with eigenvectors v1 and v2, put the eigenvectors in the columns of P and the eigenvalues, in the same order, on the diagonal of D:
P=(v1v2),D=(λ100λ2),A=PDP−1
Writing A like this is diagonalization. It makes powers easy, because the P−1P pairs in the middle cancel:
If xn=Anx0 describes a system after n steps, the eigenvalues control what happens:
An eigenvalue with ∣λ∣<1 gives a term λn→0: that part dies away.
An eigenvalue λ=1 gives a term that stays the same: that’s the steady state.
An eigenvalue with ∣λ∣>1 gives a term that grows.
For a population moving between two places (a transition matrix whose columns add to 1), one eigenvalue is always 1, 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−1 and An. You should also be able to do 2×2 matrices by hand.
Each year, 10% of the people in town A move to town B, and 20% of the people in town B move to town A. Everyone else stays. At the start, 5000 people live in A and 7000 in B. Assume the total stays the same.
(a) Write down the matrix M with (an+1bn+1)=M(anbn).
(b) Find the eigenvalues and eigenvectors of M.
(c) Find expressions for an and bn, and describe the long-term populations.
Solution.
(a) Next year, town A keeps 90% of its people and gains 20% of B‘s: an+1=0.9an+0.2bn. Similarly bn+1=0.1an+0.8bn.
M=(0.90.10.20.8)
(b) λ2−1.7λ+(0.72−0.02)=0, that is, λ2−1.7λ+0.7=0, which factors as (λ−1)(λ−0.7)=0. So λ=1 or λ=0.7.
For λ=1: M−I=(−0.10.10.2−0.2) gives −0.1x+0.2y=0, so x=2y: v1=(21).
For λ=0.7: M−0.7I=(0.20.10.20.1) gives x+y=0: v2=(1−1).
(c) With P=(211−1), D=(1000.7) and P−1=31(111−2):
Accepting the zero vector as an eigenvector.A0=λ0 for every λ, so it tells you nothing. Eigenvectors must be non-zero.
Subtracting λ from every entry.A−λI subtracts λ 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 always reduce to one relation like y=−2x. Any non-zero vector satisfying it is correct, so (1−2) and (−36) are both fine.
Mismatching the orders in P and D. The eigenvalue in column 1 of D must belong to the eigenvector in column 1 of P. Swap one without the other and PDP−1 is no longer A.
Writing Aⁿ = PⁿDⁿ(P⁻¹)ⁿ or PⁿDⁿP⁻¹. Only D gets the power: An=PDnP−1. That’s the whole point of diagonalizing.
Raising a non-diagonal matrix to a power entry by entry.Dn is found by raising each diagonal entry to the power n, but this only works because D is diagonal. For any other matrix, An is not found entry by entry.
λ2−7λ+12=(λ−3)(λ−4)=0, so the eigenvalues are 3 and 4.
3. (Warm-up) Find the eigenvalues of T=(350−1). What do you notice?
Solutiondet(T−λI)=(3−λ)(−1−λ)−0(5)=0
So λ=3 or λ=−1. These are just the entries on the leading diagonal: when one of the off-diagonal entries is 0, the eigenvalues are the diagonal entries.
4. (Core) Find an eigenvector for each eigenvalue of C=(51−22) from question 2.
7. (Core) A town has two gyms with 1000 members between them. Each month, 15% of Gym A‘s members switch to Gym B, and 5% of Gym B‘s members switch to Gym A. At the start, Gym A has 600 members and Gym B has 400.
(a) Write down the matrix G such that (an+1bn+1)=G(anbn).
(b) Find the eigenvalues of G and an eigenvector for each.
(c) Find expressions for an and bn, and the long-term number of members at each gym.
Solution
(a)
G=(0.850.150.050.95)
(b) λ2−1.8λ+(0.8075−0.0075)=λ2−1.8λ+0.8=(λ−1)(λ−0.8)=0, so λ=1 or 0.8.
λ=1: −0.15x+0.05y=0, so y=3x: eigenvector (13).
λ=0.8: 0.05x+0.05y=0, so y=−x: eigenvector (1−1).
(c) P=(131−1), detP=−4, P−1=41(131−1), and P−1(600400)=(250350).
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.
(a) Find an eigenvector for each eigenvalue, and check one of them using Ev=λv.
(b) Write E=PDP−1, giving P, D and P−1.
H4. (Core) Use your answer to H3.
(a) Find an expression for En in terms of n.
(b) Check that your expression gives E when n=1.
(c) Use your expression to find E4, then check it on your GDC.
H5. (Core)(IB style) In a hypothetical town in the Okanagan Valley, 20000 households each use one of two internet providers, X and Y. Each month, 6% of X‘s customers switch to Y, and 9% of Y‘s customers switch to X. Everyone else stays. At the start, X has 8000 customers and Y has 12000. Let xn and yn be the numbers of customers after n months.
(a) Write down the transition matrix T such that (xn+1yn+1)=T(xnyn).
(b) Find the eigenvalues of T and an eigenvector for each.
(c) Write T=PDP−1, and hence show that xn=12000−4000(0.85)n and find a similar expression for yn.
(d) Describe the long-term number of customers for each provider, and the long-term proportions.
(e) Find the first month in which X has more than 11000 customers.
H6. (Core) A matrix A has eigenvalue 3 with eigenvector (12), and eigenvalue 0.5 with eigenvector (1−1). Let x0=(54).
(a) Write down suitable matrices P and D, and find P−1x0.
(b) Hence find an expression for Anx0 in terms of n.
(c) Find A10x0, with each entry to 3 significant figures.
(d) Describe what happens to Anx0 for large n: its size, and the ratio of its two entries.
H7. (Challenge) A student is asked to diagonalize A=(1322) (from H1) and to find A3. Here is their work.
Eigenvalues 4 and −1, with eigenvectors (23) and (1−1).
P=(231−1) and D=(−1004).
“So A3 is found by cubing every entry: A3=(12788).”
Answer these:
(a) Their eigenvalues and eigenvectors are correct. Explain what is wrong with their D, and show that their PDP−1 is not A.
(b) Explain why cubing every entry does not give A3.
(c) Use a correct PD3P−1 to find A3, and check your answer by working out A2 and then A3=A⋅A2.
H8. (Challenge) Let K=(21k3), where k is a real number.
(a) Show that the characteristic equation is λ2−5λ+(6−k)=0.
(b) Find all values of k for which K has two distinct real eigenvalues.
(c) Find the value of k for which 1 is an eigenvalue. For this k, find the other eigenvalue and an eigenvector for each eigenvalue.
(d) When k=−1, explain why no non-zero vector keeps its direction (or reverses it) when multiplied by K.
H9. (Challenge) Every two-state transition matrix (columns adding to 1) can be written as
M=(1−ppq1−q),0<p<1,0<q<1
where p is the fraction that leaves state 1 each step and q is the fraction that leaves state 2.
(a) Show that the characteristic polynomial of M factors as (λ−1)(λ−(1−p−q)).
(b) Show that (qp) is an eigenvector for λ=1.
(c) Explain why the other eigenvalue always satisfies −1<1−p−q<1, and what this means for the long-term behaviour.
(d) Deduce a formula for the long-term fraction in state 1, 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 jn and adults an (in thousands) each year:
(jn+1an+1)=L(jnan),L=(00.41.50.7)
(a) Explain what each of the numbers 1.5, 0.4 and 0.7 means in context.
(b) Find the eigenvalues of L 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.7. Find the value c of adult survival (replacing 0.7) for which the population levels off instead of growing, and find the long-term ratio of juveniles to adults in that case.