Most vectors change direction when you apply a matrix. An eigenvector does not: A only
scales it. In a basis of eigenvectors the map becomes n independent scalings, and Ak
scales each eigen-direction by λk. So eigenvalues decide the long-run behaviour of
every linear dynamical system: a Markov chain (PageRank), gradient descent on a quadratic, a
linear RNN, a time-stepper for a PDE, a climate model linearized near an equilibrium. Power
iteration, the simplest eigenvalue algorithm, still estimates Hessian sharpness and the
spectral norm in spectral normalization. Matrices without enough eigenvectors (defective
ones) explain the teλt terms of critically damped systems.
Start with D=diag(3,0.5). It stretches e1 by 3 and shrinks e2 by half.
These two axes keep their direction. Every other vector turns toward e1, because its e1
part grows faster.
Hunting for eigenvectors. Take a unit vector x and split Ax into a part along x and a
sideways part. x is an eigenvector exactly when the sideways part is zero; then Ax=λx,
and the part along x is λ=x⋅Ax.
Interactive figure: loading…
Drag x around the circle. The violet arrow is Ax; the dashed magenta
piece is its sideways part, and the chart below plots that part for every direction of x. Its zeros
are the eigenvector directions: for the default matrix there are two, with λ=2 and
λ=−1 (there Ax points backwards). Then try the rotation (the curve never crosses 0) and
the shear (it only touches 0 once).
Now take A=(1243). Two lines are kept:
v1=(1,1)↦(5,5)=5v1 and v2=(2,−1)↦(−2,1)=−v2. In the basis
(v1,v2),A acts like diag(5,−1). For any x=c1v1+c2v2,
Akx=c15kv1+c2(−1)kv2,
so the v1 part wins and Akx soon points almost along v1. This is power iteration.
Two things can go wrong. The 90° rotation (01−10) keeps no
real line: it turns every vector by 90°. The shear keeps too few lines (only the horizontal
axis): it is defective, and no basis of eigenvectors exists.
Quick check
R=(01−10) rotates the plane by 90°. How many real eigenvector lines does it have?
Why.
R turns every nonzero vector by 90°, so Rv is never a multiple of v. For example, Re1=e2 is perpendicular to e1. Keeping lengths is not the same as keeping directions. Section 3 shows that the eigenvalues of R are the complex numbers ±i.
For a square n×n matrix A, a number λ and a vector v=0 with
Av=λv are an eigenvalue and an eigenvector; together they are an eigenpair.
The eigenspaceEλ=N(A−λI) holds all eigenvectors for λ, plus 0.
From Av=λv to a polynomial, step by step.
Write λv=λIv. Then Av=λv is the same as (A−λI)v=0.
So an eigenvector is a nonzero vector in the null space of A−λI.
A square matrix has a nonzero null vector exactly when it is singular, and a matrix is singular
exactly when its determinant is 0 (lesson 03).
So λ is an eigenvalue ⟺det(A−λI)=0.
The characteristic polynomialp(λ)=det(A−λI) has degree n, so over
C it has exactly n roots, counted with multiplicity. First find the roots, then find
each eigenvector by solving (A−λI)v=0.
2×2 case. With τ=trA (sum of the diagonal) and δ=detA:
In every size, ∑iλi=trA and ∏iλi=detA (complex
eigenvalues and repeats included).
Interactive figure: loading…
Slide the entry a21 and watch the roots. The violet curve is p(λ)=λ2−τλ+δ;
its crossings with the λ-axis are the eigenvalues (orange and
blue dots). The lower panel shows the same two roots in the complex plane.
Move a21 from 2 down to −2: the crossings move together, meet at the lowest point
(τ2=4δ), and then leave the real line as a complex pair a±bi. Try rotation 90°
and rotate and scale.
Quick check
A=(41−21). Use the trace and the determinant: what are its eigenvalues?
Why.
τ=4+1=5 and δ=4⋅1−(−2)⋅1=6, so p(λ)=λ2−5λ+6=(λ−3)(λ−2). Two numbers with sum 5 and product 6: 3 and 2. The diagonal entries 4 and 1 are the eigenvalues only for a triangular matrix; here the entry −2 and the entry 1 below the diagonal change them.
The rotation R=(01−10) has τ=0 and δ=1, so
p(λ)=λ2+1. The parabola never touches the axis, and the roots are ±i. With
complex vectors there are eigenvectors: R(1,−i)=(i,1)=i(1,−i). But no real vector is
an eigenvector.
What a complex pair means. Let A be a real 2×2 matrix with τ2<4δ.
The polynomial has real coefficients, so the roots are a conjugate pair λ=a±bi
with b=0:a=τ/2 and b=δ−τ2/4.
Write λ=r(cosθ+isinθ) with r=∣λ∣=a2+b2=δ
and the angle θ.
There is a real basis in which A has the matrix
(ab−ba)=r(cosθsinθ−sinθcosθ):a rotation by θ and a scaling by r (proof in the box below).
So, in the coordinates of that basis, each application of A turns every vector by θ
and multiplies its length by r. No real line is kept.
Example.A=(11−11) has τ=2,δ=2 and
λ=1±i. Here r=2 and θ=45°, and indeed A=2R45° already
in the standard basis. Then A2=(02−20) (rotate by 90°,
scale by 2) and A8=16I (rotate by 360°, scale by (2)8=16). In a linear dynamical
system xk+1=Axk, a complex pair gives a spiral: inward if r<1, outward if r>1.
The real form of a complex pair
Let v=u+iw (with u,w real) be an eigenvector for λ=a+bi,b=0. Then
A(u+iw)=(a+bi)(u+iw), and the right side is (au−bw)+i(bu+aw).A is real, so the real and imaginary parts
must match: Au=au−bw and Aw=bu+aw. In the basis (w,u) the first column of the matrix
holds the coordinates of Aw, which are (a,b), and the second column holds the coordinates of
Au, which are (−b,a). So A has the matrix (ab−ba) in
this basis. It remains to check that w and u are independent, so that they form a basis. If they
were dependent, both would be multiples of one real vector z=0, so v=αz for a complex
α=0. Then Az=λz. But Az is real and λz is not (because b=0): a
contradiction.
Similarity keeps eigenvalues:det(M−1AM−λI)=det(M−1(A−λI)M),
which is det(A−λI), and an eigenvector v of A becomes M−1v (lesson 04).
Row operations are not a similarity, so elimination changes eigenvalues.
Theorem.A=XΛX−1 with Λ diagonal ⟺A has n independent
eigenvectors. The columns of X are the eigenvectors; Λ holds their eigenvalues in the
same order.
Proof.
AX=XΛ, read column by column, says Axi=λixi.
X is invertible ⟺ its columns are independent. Then AX=XΛ is the same as
A=XΛX−1.■
Diagonalization is a change of basis. Compare with lesson 04: A=MBM−1 with M=X and
B=Λ. So Λ=X−1AX is the matrix of the same map in the basis of eigenvectors.
In that basis the map only stretches each coordinate.
Powers, step by step.
A2=(XΛX−1)(XΛX−1), which is XΛ(X−1X)ΛX−1. The middle
X−1X is I, so A2=XΛ2X−1.
Repeat: Ak=XΛkX−1, and Λk=diag(λ1k,…,λnk).
In words: go to eigen-coordinates (X−1), stretch coordinate i by λi,k times
(Λk), and go back (X).
Example.A=(41−21) (the map of lesson 04) has
eigenvalues 3 and 2 (quiz above).
A−3I=(11−2−2), so v1=(2,1).A−2I=(21−2−1), so v2=(1,1).
X=(2111),detX=1,X−1=(1−1−12),Λk=diag(3k,2k).
XΛk=(2⋅3k3k2k2k) (column i times λik).
Multiply by X−1:
Ak=(2⋅3k−2k3k−2k−2⋅3k+2⋅2k−3k+2⋅2k).
Check with k=1:(6−23−2−6+4−3+4)=A ✓. For k=3:A3=(4619−38−11). For large k the 3k terms win:
Ak≈3k(21−2−1), and every column points along v1=(2,1).
That is power iteration again.
Consequences: Ak=XΛkX−1,A−1=XΛ−1X−1 when no λi=0, and
x′=Ax is solved by x(t)=XeΛtX−1x(0).
Theorem. Eigenvectors for distinct eigenvalues are independent. So n distinct eigenvalues
imply diagonalizable.
Proof.
Suppose not. Take a dependence ∑i∈Icivi=0 with all ci=0 and the fewest
terms. It has at least two terms, because each vi=0.
Pick j∈I and apply A−λjI:∑i∈Ici(λi−λj)vi=0.
The j term is gone and the other coefficients stay nonzero: a shorter dependence.
Contradiction. ■
Repeat xk+1=Axk/∥Axk∥, and estimate the eigenvalue with the Rayleigh quotientxk⊤Axk (here ∥xk∥=1).
Theorem. Let A be diagonalizable with eigenpairs (λi,vi),∣λ1∣>∣λ2∣≥⋯≥∣λn∣, and x0=∑icivi with c1=0.
Then the line of xk converges to the line of v1, with error of order ∣λ2/λ1∣k.
Proof.
Normalizing only rescales, so xk is a multiple of Akx0.
Akx0=∑iciλikvi. Take out the factor c1λ1k:
Akx0=c1λ1k(v1+i≥2∑c1ci(λ1λi)kvi).
Every ∣λi/λ1∣≤∣λ2/λ1∣<1, so the sum has norm at most
C∣λ2/λ1∣k, with C=∑i≥2∣ci/c1∣∥vi∥.
The scalar c1λ1k changes only length and sign (the sign alternates when
λ1<0), so the line of xk tends to the line of v1.■
Interactive figure: loading…
Press Step and watch the dots line up.A has the eigenvectors v1=(1,1) and
v2=(2,−1) of the example in section 2, with eigenvalues you set. The chart shows the sine of the angle
between xk and the dominant eigenvector on a log scale: close to a straight line, because each
step multiplies it by about ∣λ2/λ1∣ (the dashed reference line). Try 1 and 0.9:
about 0.05 digits per step. Try the tie 1,−1: no
convergence. Make the dominant λ negative: xk flips sign every step, but its line converges.
In practice:
Linear convergence. Each step gains about log10∣λ1/λ2∣ digits and costs one
product x↦Ax, so it works for huge sparse matrices and for Hessian-vector products.
Eigenvalue estimate. For symmetric A the Rayleigh-quotient error is
O(∣λ2/λ1∣2k) (lesson 06 shows why); for
non-symmetric A only O(∣λ2/λ1∣k).
Failure.∣λ1∣=∣λ2∣ with λ1=λ2 (eigenvalues 1 and −1, or a
complex-conjugate pair): no convergence. Ratio near 1: very slow. c1=0: in exact
arithmetic v1 never appears; in floating point, rounding usually adds a little of it.
Stopping. Use the residual ∥Axk−λxk∥; the test ∥xk−xk−1∥ fails when
λ1<0. Shifts and inverse iteration change the ratio (lesson 14, eigenvalue algorithms).
Quick check
A diagonalizable matrix has eigenvalues 4,−2 and 1. By what factor does the power-iteration error shrink in each step (for a typical start vector)?
Why.
The rate is ∣λ2/λ1∣, where λ2 is the second largest in absolute value: ∣−2∣/4=1/2. The smallest eigenvalue (here 1) does not set the rate; its part shrinks faster, like (1/4)k. A negative λ2 only makes the error change sign; a negative λ1 would make xk flip sign, but its line would still converge.
The algebraic multiplicitya(λ) is the multiplicity of λ as a root of p. The
geometric multiplicityg(λ)=dimN(A−λI)=n−rank(A−λI)
is the number of independent eigenvectors for λ.
Theorem.1≤g(λ)≤a(λ), and A is diagonalizable (over C)⟺g(λ)=a(λ) for every eigenvalue. If g(λ)<a(λ) for some
λ,A is defective.
In words: a root that appears twice in p may give two independent eigenvectors (like I) or
only one (like the shear). Diagonalization needs the full number for every eigenvalue.
Proof of the multiplicity theorem
Let g=g(λ0). Extend a basis v1,…,vg of N(A−λ0I) to a basis of
Cn, the columns of M.
The first g columns of AM are λ0vi, so
M−1AM=(λ0Ig0BC), with characteristic polynomial
(λ0−λ)gdet(C−λI). Similarity keeps p, so a(λ0)≥g.
Bases of different eigenspaces together stay independent (apply the previous theorem to the
parts of a dependence that lie in each eigenspace). So there are
∑λg(λ) independent eigenvectors, and no more: every eigenvector lies in one
eigenspace, so all eigenvectors span a space of dimension ∑λg(λ). Also
∑λa(λ)=n. With each g≤a, the count reaches n exactly when g=a for
every λ.■
Defective example.(2012):p=(λ−2)2, so
a(2)=2, but A−2I=(0010) has rank 1, so g(2)=1.
A repeated eigenvalue alone is not defective: I has a(1)=g(1)=n.
Quick check
A 3×3 matrix has eigenvalues 1,2,2 and rank(A−2I)=2. Is it diagonalizable?
Why.
g(2)=n−rank(A−2I)=3−2=1, but the root 2 appears twice, so a(2)=2. There are only 1+1=2 independent eigenvectors, one short of 3. Counting eigenvalues with repeats is not enough; only distinct eigenvalues (all different) guarantee diagonalization. Example: 100020012.
A defective matrix cannot be made diagonal. The best it can do is the Jordan form: diagonal
blocks with ones just above the diagonal. A Jordan block is Jm(λ)=λIm+N,
where N has ones on the superdiagonal:
J2(λ)=(λ01λ),J3(λ)=λ001λ001λ.
N is nilpotent: Ne1=0,Nej=ej−1,Nm=0. So the block has a=m and
g=1(J−λI=N has rank m−1). Its basis is a chain: e1 is an eigenvector,
and (J−λI)ej=ej−1 makes e2,…,emgeneralized eigenvectors. The shear
is J2(1):e1 is its only eigenvector line, and e2 completes the chain.
Powers and exponentials. For a 2×2 block, N2=0 and N commutes with λI, so the
binomial formula has two terms:
The extra k (or t) comes from the nilpotent part: it is the teλt of ODEs with a
repeated root. Even with ∣λ∣<1, the entry kλk−1 can grow before it decays.
The Jordan normal form theorem
Theorem (Jordan normal form). Every A∈Cn×n can be written
A=XJX−1 with J=diag(Jm1(μ1),…,Jms(μs)), unique up
to the order of the blocks. For each eigenvalue λ, the number of its blocks is
g(λ) and their total size is a(λ). The columns of X are chains:
(A−λI)v=0,(A−λI)w1=v,(A−λI)w2=w1, … . A is
diagonalizable ⟺ every block is 1×1.
Why J is the closest to diagonal.
Similarity keeps every number dj(λ)=dimN((A−λI)j), because
M−1(A−λI)jM=(M−1AM−λI)j.
In J,dj−dj−1 = number of blocks for λ of size ≥j. So the block sizes
are fixed by A.
If a block has size ≥2, then d1=g(λ)<a(λ), and no similar matrix is
diagonal: the off-diagonal entries cannot be removed.
They can be made small, not zero: with D=diag(1,ε,ε2,…),D−1Jm(λ)D has ε on the superdiagonal. Only the pattern of nonzeros is fixed.
So two matrices are similar exactly when they have the same Jordan form. This answers the question
of lesson 04: the shear J2(1) and I=J1(1)⊕J1(1) have the same eigenvalues but
different blocks.
Numerics. The Jordan form is not continuous in A.(2ε12) has eigenvalues 2±ε:
diagonalizable for every ε>0, one Jordan block at ε=0. A change of size
ε moves the eigenvalues by ε, and the eigenvector matrix has
κ(X)≈1/ε. Libraries use the Schur form A=QTQ∗(Q unitary, T
upper triangular) instead: it always exists and is computed stably.
Interactive figure: loading…
Slide ε toward 0. The two eigenvector lines of A(ε) close up like
scissors, and at ε=0 only one is left: the Jordan block. The right panel shows the
eigenvalues 2±ε: they meet at 2 and, for ε<0, turn into a complex
pair. Press ε=10−6: the matrix barely changed, yet the eigenvalues moved by 10−3
and κ(X)=1000.
"Near-defective" means that the eigenvector matrix X is ill-conditioned (nearly parallel
eigenvectors), not that A is: (2ε12) has
κ(A)≈1.64 but κ(X)≈1/ε.
Where are the eigenvalues? Gershgorin discs
Theorem (Gershgorin). Let A be n×n (real or complex), and let
Ri=∑j=i∣aij∣ be the sum of the absolute values of row i without the diagonal entry.
Every eigenvalue of A lies in at least one disc Di={z∈C:∣z−aii∣≤Ri}.
Proof. Let Av=λv,v=0, and pick i with the largest ∣vi∣. Row i of
Av=λv gives (λ−aii)vi=∑j=iaijvj. Divide by vi and use
∣vj/vi∣≤1:∣λ−aii∣≤∑j=i∣aij∣=Ri.■
A stronger form (by continuity in the off-diagonal entries): if k discs form a connected group
that does not touch the other discs, the group contains exactly k eigenvalues.
Example.G=50.501110.50.5−3 has the
discs D(5,1.5),D(1,1) and D(−3,1). They do not touch, so each holds exactly one eigenvalue.
Complex eigenvalues of a real matrix come in conjugate pairs, and each disc is symmetric about the
real axis, so the single eigenvalue in each disc is real. NumPy gives 5.130,0.985 and −3.116.
The three discs of G (coloured) with their centres aii on the real axis, and the three
eigenvalues (black dots). One use: if every disc misses 0, then 0 is not an eigenvalue and A is
invertible. This is the case for a strictly diagonally dominant matrix (∣aii∣>Ri for every
row). For a graph Laplacian L=D−W, disc i has centre and radius equal to the degree di,
so every eigenvalue lies in [0,2dmax].
Perron–Frobenius in two sentences
If all entries of a square matrix are positive, then the eigenvalue of largest absolute value is
real, positive and simple, and its eigenvector can be chosen with all entries positive (the
Perron–Frobenius theorem; it extends to nonnegative irreducible matrices). This is why a
Markov chain with a positive transition matrix (and the damped PageRank matrix) has a unique
stationary distribution, which power iteration finds. A softmax attention matrix is positive and
row-stochastic, so A1=1, and the theorem says that this eigenvalue 1 is simple
and larger in absolute value than all the others.
Answers to section 1. (1) One. The shear has λ=1 twice (a=2), but
A−I=(0010) has rank 1, so g=1: defective.
(2) The error after k steps is about rk with r=∣λ2/λ1∣, so
k≈10/log10(1/r): about 33 steps for P(r=0.5) and about 2,300 for Q(r=0.99).
Power iteration by hand from x0=(1,0), without normalizing (it does not change
directions): (1,2),(9,8),(41,42),(209,208). Since x0=31(v1+v2),Akx0=31(5kv1+(−1)kv2): the v2 coefficient relative to the v1
coefficient is (−1/5)k. The sine of the angle to v1 is 0.32,0.059,0.012,0.0024: about
×0.2 per step. The Rayleigh quotient at (209,208) is 4.9952; its error 0.0048 is of
order 0.24, not 0.28, because A is not symmetric. (The figure in section 3 starts with these
numbers.)
Quick check
Use the formula for Ak from section 3 ("Powers, step by step") for A=(41−21), whose eigenvalues are 3 and 2. What is A2?
Why.
With 32=9 and 22=4, row 1 is (18−4,−18+8)=(14,−10) and row 2 is (9−4,−9+8)=(5,−1). Check by direct multiplication: row 1 of A times column 1 is 4⋅4+(−2)⋅1=14 ✓. Squaring each entry gives the first option, which is wrong: matrix powers are not entrywise. diag(9,4)=Λ2 is A2 in the eigenvector basis, not in the standard basis.
A defective matrix.B=(1−113):τ=4,δ=3+1=4,p(λ)=λ2−4λ+4=(λ−2)2, so a(2)=2.B−2I=(−1−111)
has rank 1, so g(2)=1.
Eigenvector v=(1,1). Generalized eigenvector: (B−2I)w=v means −w1+w2=1; take w=(0,1).
X=[vw]=(1101),X−1=(1−101),J=(2012), and XJX−1=B.
J3=(80128)(12=3⋅22), so
B3=XJ3X−1=(−4−121220).
NumPy checks the hand computations above. The notebook for this lesson has these cells and the exercises.
importnumpyasnpA=np.array([[1.,4.],[2.,3.]])lam,X=np.linalg.eig(A)# columns of X: unit eigenvectorslam,X=lam.real,X.real# real here; np.linalg.eig may return complex dtypeprint(lam)# [-1. 5.] (no fixed order)print(np.allclose(X@np.diag(lam)@np.linalg.inv(X),A))# Trueprint(round(lam.sum(),10),round(lam.prod(),10))# 4.0 -5.0 (= trace, det)# Powers through the eigenbasis: A4 = [[4,-2],[1,1]], eigenvalues 3 and 2A4=np.array([[4.,-2.],[1.,1.]])X4=np.array([[2.,1.],[1.,1.]])# v1 = (2, 1), v2 = (1, 1)A4_3=X4@np.diag([3.**3,2.**3])@np.linalg.inv(X4)print(np.round(A4_3,10),np.allclose(A4_3,np.linalg.matrix_power(A4,3)))# [[ 46. -38.] [ 19. -11.]] True# A complex pair: [[1,-1],[1,1]] = sqrt(2) times a rotation by 45 degreesR=np.array([[1.,-1.],[1.,1.]])w=np.linalg.eigvals(R)print(w,np.abs(w),np.degrees(np.angle(w)))# [1.+1.j 1.-1.j] [1.41421356 1.41421356] [ 45. -45.]print(np.linalg.matrix_power(R,8))# [[16. 0.] [0. 16.]]# The theory behind power iteration: coordinates of A^k x0 in the basis (v1, v2)V=np.array([[1.,2.],[1.,-1.]])# v1 = (1, 1), v2 = (2, -1)x0=np.array([1.,0.])forkin(1,2,3,4):c=np.linalg.solve(V,np.linalg.matrix_power(A,k)@x0)print(k,round(c[1]/c[0],4))# (-0.2)^k: -0.2, 0.04, -0.008, 0.0016# Multiplicities and the Jordan form of the defective exampleB=np.array([[1.,1.],[-1.,3.]])print(np.poly(B))# [ 1. -4. 4.]: p = (λ - 2)^2, a(2) = 2print(2-np.linalg.matrix_rank(B-2*np.eye(2)))# 1 = g(2): defectiveXj=np.array([[1.,0.],[1.,1.]])# columns: v = (1, 1), w = (0, 1)J=np.array([[2.,1.],[0.,2.]])print(np.allclose(Xj@J@np.linalg.inv(Xj),B))# Trueprint(Xj@np.linalg.matrix_power(J,3)@np.linalg.inv(Xj))# [[-4. 12.] [-12. 20.]]# Near-defective: eigenvalues move like sqrt(eps), the eigenvector matrix degradesforepsin(1e-6,1e-10):w,Xe=np.linalg.eig(np.array([[2.,1.],[eps,2.]]))print(eps,np.round(w.real,6),f"{np.linalg.cond(Xe):.0f}")# 1e-06 [2.001 1.999] 1000 then 1e-10 [2.00001 1.99999] 100000
np.poly gives the coefficients of the characteristic polynomial, and matrix_rank uses a
tolerance on the singular values. The exact Jordan form needs exact arithmetic (for example
SymPy's Matrix.jordan_form); in floating point it is ill-posed, as the last loop shows.
PageRank and Markov chains. The stationary distribution is the eigenvector for the
eigenvalue 1 of the column-stochastic Google matrix. With damping d=0.85, every other
eigenvalue has ∣λ∣≤d, so power iteration converges like 0.85k, whatever the
size of the graph.
Sharpness and spectral normalization. Power iteration needs only products: v↦Hv
(Hessian-vector products by autodiff) or v↦W⊤Wv. Spectral normalization runs one
power-iteration step per training step to track σmax(W).
RNNs and linear recurrences.hk=Wkh0 grows or shrinks like ∣λi∣k: exploding
or vanishing signals and gradients. A complex pair makes the state rotate (oscillate) while it
grows or decays. A defective or non-normal W can still grow first.
ML for science: stability and modes. Near an equilibrium, x˙≈Jfx(Jf the
Jacobian) is stable when every Reλ<0; a time-stepper uk+1=Guk needs
spectral radius ρ(G)≤1. Dynamic mode decomposition fits a linear operator to snapshots
of a flow or climate field; its eigenvalues are the growth rates and frequencies of the modes.
The critically damped oscillator x¨+2ωx˙+ω2x=0 has the matrix
(0−ω21−2ω), a double eigenvalue −ω with one
eigenvector, and the solution (c1+c2t)e−ωt.
Row reducing before finding eigenvalues. Elimination is not a similarity; it changes them.
Reading eigenvalues from the diagonal of a full matrix. This works only for triangular (or
diagonal) matrices: (41−21) has eigenvalues 3 and 2, not 4 and 1.
"Repeated eigenvalue ⇒ not diagonalizable." False: I is diagonal. Defective means g<a.
Distinct eigenvalues imply diagonalizable, not the other way round.
Mixing up diagonalizable and invertible.diag(1,0) is diagonalizable and
singular; the shear is invertible and defective.
Expecting real eigenvalues and orthogonal eigenvectors from any real matrix. Only symmetric
matrices guarantee that (lesson 06). A rotation has
complex eigenvalues.
Power iteration details. Not normalizing (overflow or underflow); stopping on
∥xk−xk−1∥ when λ1<0; running it when ∣λ1∣=∣λ2∣.
Comparing eigenvectors with a library without fixing scale and sign. Eigenvectors are
defined only up to a nonzero factor (and up to a basis choice in an eigenspace of dimension >1).
Computing a Jordan form in floating point. It is ill-posed; use the Schur form or the SVD.
Find the eigenpairs of (0−21−3) and check them.Answerp(λ)=λ2+3λ+2=(λ+1)(λ+2).λ=−1 with (1,−1);λ=−2 with (1,−2). Sum −3 = trace, product 2 = det.
A has eigenvalues 1,−1,0.5. Does power iteration converge? How can you fix it?AnswerNo: ∣λ1∣=∣λ2∣=1, so the iterate keeps a part (−1)kc2v2 and alternates between two directions. Shift: A+I has the same eigenvectors and eigenvalues 2,0,1.5, so 2 is strictly dominant with ratio 0.75.
∣λ2/λ1∣=0.9. About how many iterations shrink the eigenvector error by 106? And the Rayleigh-quotient error of a symmetric matrix?Answerk≈6/log10(1/0.9)≈131. The symmetric Rayleigh-quotient error behaves like 0.81k, so about 66 iterations.
A 3×3 matrix has the single eigenvalue 2 and rank(A−2I)=1. What is its Jordan form?Answerg(2)=3−1=2 blocks with total size 3: J2(2)⊕J1(2). (Rank 0 would give 2I; rank 2 would give one block J3(2).)
Why is (2073) diagonalizable, without computing eigenvectors?AnswerIt is triangular, so its eigenvalues are the diagonal entries 2 and 3. They are distinct, so the eigenvectors are independent.
J=(0.9010.9). What happens to the (1,2) entry of Jk?AnswerIt is k⋅0.9k−1. It grows to about 3.87 at k=9 and 10, then decays to 0. ∣λ∣<1 guarantees decay only in the long run.
The real matrix (02−20) has which eigenvalues? What does it do to the plane?Answerτ=0,δ=4, so λ2+4=0 and λ=±2i.∣λ∣=2 and θ=90°: it rotates every vector by 90° and doubles its length. It is 2R90°.
Recall cardsAnswer in your head first, then reveal. Add the cards to your review deck to see them again just before you would forget.
Define an eigenvalue and an eigenvector of A.
A number λ and a vector v=0 with Av=λv:A only stretches v (by a negative factor, the arrow flips).
Why is λ an eigenvalue exactly when det(A−λI)=0?
Av=λv with v=0 means (A−λI)v=0: a nonzero null vector, so A−λI is singular and its determinant is 0.
Write the characteristic polynomial of a 2×2 matrix with trace τ and determinant δ.
p(λ)=λ2−τλ+δ, with roots λ=(τ±τ2−4δ)/2.
How are the eigenvalues related to the trace and the determinant?
Their sum is trA and their product is detA (with repeats and complex eigenvalues counted).
What does a complex pair a±bi mean for a real 2×2 matrix?
No real eigenvector. In a suitable real basis the matrix rotates by the angle θ of λ and scales by ∣λ∣=a2+b2.
When is A diagonalizable, and what is Ak then?
When it has n independent eigenvectors. Then A=XΛX−1 and Ak=XΛkX−1.
Compute the eigenvalues of (41−21).
τ=5,δ=6,p=λ2−5λ+6=(λ−3)(λ−2): eigenvalues 3 and 2.
At what rate does power iteration converge?
The error shrinks by about ∣λ2/λ1∣ per step (second largest over largest absolute eigenvalue).
Define algebraic and geometric multiplicity.
a(λ): multiplicity of λ as a root of p.g(λ)=dimN(A−λI): the number of independent eigenvectors. Always 1≤g≤a.
Give a defective 2×2 matrix and its multiplicities.
The shear (1011):a(1)=2 but g(1)=1 (only the x-axis is kept).
"Top eigenvalue of a 109×109 sparse matrix?" — power iteration (or Lanczos/Arnoldi)
with matrix-vector products only; rate ∣λ2/λ1∣; one sparse product per step.
"Why does PageRank converge, and how fast?" — damping makes the eigenvalue 1 dominant, with
∣λ2∣≤d=0.85.
"Is every matrix diagonalizable?" — no, (1011). Sufficient: n
distinct eigenvalues, or a symmetric matrix.
"Where does teλt come from?" — a Jordan block: eJt=eλt(I+tN).
"Why don't libraries return the Jordan form?" — it jumps under tiny perturbations; they use
the Schur form.
Watch for the vectors that stay on their own line, and for the rotation that has none.
Open on YouTube · the player loads from youtube-nocookie.com when you press playOpen on YouTube · the player loads from youtube-nocookie.com when you press playOpen on YouTube · the player loads from youtube-nocookie.com when you press playOpen on YouTube · the player loads from youtube-nocookie.com when you press playOpen on YouTube · the player loads from youtube-nocookie.com when you press play