A symmetric matrix has real eigenvalues and perpendicular eigenvectors, so it is nothing but a stretch along perpendicular axes. That is the spectral theorem, the most useful theorem in linear algebra, and Apostol's chapter 5 that MATH 375 only touched.
Taught in 375/376Apostol, not taughtApostol 5.1 to 5.9Spagnolie, Lecture 19 (fluid deformation)Axler, Linear Algebra Done Right, 7A to 7B
Chapter 2.8 showed that diagonalizing can fail: a shear has too few eigenvectors, and a rotation has no real ones. This chapter finds a large class of matrices for which nothing can go wrong. If a real matrix equals its own transpose, its eigenvalues are real, its eigenvectors can be chosen perpendicular, and it is diagonalized by a rotation of axes. Symmetric matrices appear everywhere: second derivatives, covariance in statistics, stress in materials, energy in physics. That is why this theorem is used more than any other in linear algebra.
Quick checkFor the dot product on Rn, which identity is true for every matrix A?
(Ax)⋅y=(Ax)Ty=xTATy=x⋅(ATy). The second identity holds only when AT=A, which is this chapter's subject.Review: the transpose
Quick checkWhich matrix has no real eigenvectors?
A quarter turn moves every direction off its own line; its eigenvalues are ±i. The shear has one eigenline (too few for a basis), and the diagonal matrix has two.Review: when diagonalization fails
The picture
The symmetric matrix [2112] stretches by 3 along (1,1) and by 1 along (1,−1), and these two directions are perpendicular. Compare with “Eigen example” (not symmetric): its eigenlines are not perpendicular. And “Rotate 90°” has none. A symmetric matrix is always the clean case: stretch along perpendicular axes, nothing else.
Where this came from· From the axes of a spinning body to Hilbert's 'spectrum'
Every rigid body, however lumpy, has three perpendicular axes about which it can spin steadily: the principal axes. Leonhard Euler worked them out in his mechanics of rigid bodies in the 1700s. In matrix language they are the eigenvectors of a symmetric matrix, the inertia tensor. Astronomers met the same mathematics from another side: to find out whether planetary orbits stay stable, they needed the roots of a “secular equation”, and in 1829 Augustin-Louis Cauchy showed that those roots are real when the underlying quadratic form is symmetric. That is our first theorem. Between about 1904 and 1910 David Hilbert, studying integral equations, called the set of eigenvalues the “spectrum”, with no physics in mind. When quantum mechanics arrived in the 1920s, the spectral lines of atoms turned out to be eigenvalues of Hermitian operators, so his word fitted better than he could have known.
Definitions
Chapter 2.9 defined inner products over the real numbers. The first theorem below needs eigenvalues that might be complex, so we need the complex version too. For complex vectors x=(x1,…,xn) and y=(y1,…,yn) define
(x,y)=x1y1+⋯+xnyn,
where the bar is the conjugate of 0.6. Three facts are all we use. It is linear in the first slot: (cx,y)=c(x,y). It is conjugate-linear in the second: (x,cy)=cˉ(x,y), because the bar acts on c. And (x,x)=∣x1∣2+⋯+∣xn∣2 is a positive real number when x=O. The bar is there for the third fact: without it, (x,x) for x=(i) would be i2=−1, and lengths would break. For real vectors the bars do nothing and this is the dot product.
Definition A
Adjoint
Let V be a finite-dimensional inner product space. The adjoint of a linear map A:V→V is the linear map A∗ with
(Ax,y)=(x,A∗y)for all x,y∈V.
For Rn with the dot product, A∗=AT. For Cn with (x,y)=∑xiyi, A∗=AT, the conjugate transpose.
In one lineThe adjoint A∗ is the map with (Ax,y)=(x,A∗y) for all x,y; for real matrices with the dot product it is the transpose.
Why it existsIt moves a map from one side of an inner product to the other, which is the step every proof in this chapter uses.
Spagnolie put it this way in Lecture 19: in general, “transpose” is whatever operation makes (v,Aw)=(ATv,w) true. For real matrices the check is index bookkeeping: (Ax)⋅y=∑i,jaijxjyi=x⋅(ATy).
Definition T
Symmetric operator
A linear map A on a real inner product space is symmetric (Apostol: Hermitian when complex, self-adjoint in general) if A∗=A, that is, (Ax,y)=(x,Ay) for all x,y. A real matrix is symmetric when AT=A: entry aij=aji.
In one lineA real linear map with A∗=A, that is (Ax,y)=(x,Ay); for a matrix, AT=A.
Why it existsThese are exactly the maps that can be diagonalized by perpendicular axes.
Definition A
Hermitian
A complex matrix is Hermitian if AT=A. A real symmetric matrix is Hermitian, since conjugating real numbers changes nothing.
In one lineA complex matrix equal to its conjugate transpose: aij=aji.
Why it existsIt is the complex version of symmetric, and the setting of quantum mechanics.
Definition A
Orthogonally diagonalizable
A real square matrix A is orthogonally diagonalizable if A=QΛQT where Λ is diagonal and Q is an orthogonal matrix: its columns form an orthonormal basis, so QTQ=I and Q−1=QT. Equivalently, Rn has an orthonormal basis of eigenvectors of A (the columns of Q).
In one lineA=QΛQT with Λ diagonal and Q having orthonormal columns: diagonalized by a rotation or reflection of axes.
Why it existsThen Q−1=QT costs nothing to compute, and the eigen-directions are perpendicular.
The three facts
Theorem TApostol Thm 5.2; Spagnolie Lecture 19
Symmetric matrices have real eigenvalues
If A is Hermitian and Ax=λx with x=O (allowing complex λ and x), then λ is real.
In one lineEvery eigenvalue of a Hermitian (in particular real symmetric) matrix is a real number.
Why it is true(Ax, x) = λ(x, x) and also (x, Ax) = conj(λ)(x, x); symmetry makes these equal, so λ equals its own conjugate.
The idea: Compute (Ax, x) in two ways: pull λ out of the first slot, and move A across with symmetry and pull λ out of the second slot, where it comes out conjugated. Compare.
(Ax,x)=(λx,x)=λ(x,x).
Use Ax=λx; an inner product is linear in its first slot.
(Ax,x)=(x,Ax)=(x,λx).
A is Hermitian, so (Ax,x)=(x,Ax).
(x,λx)=λˉ(x,x).
A complex inner product is conjugate-linear in its second slot: (x,cy)=cˉ(x,y).Spagnolie's notes write y where x is needed here; the argument uses the same vector x in both slots.
λ(x,x)=λˉ(x,x).
The two computations equal the same number.
λ=λˉ, so λ is real. ■
(x,x)=∥x∥2>0 because x=O, so we may divide.
Theorem TApostol Thm 5.4; Spagnolie Lecture 19
Eigenvectors of a symmetric matrix are orthogonal
If A is symmetric, Ax=λx and Ay=μy with λ=μ, then (x,y)=0.
In one lineEigenvectors of a symmetric matrix for different eigenvalues are perpendicular.
Why it is true(Ax, y) gives λ(x, y) and, moving A across, μ(x, y); with λ ≠ μ the only way out is (x, y) = 0.
ProofSpagnolie Lecture 19
The idea: Compute (Ax, y) two ways: as λ(x, y), and by moving A to y as μ(x, y). Subtract.
(Ax,y)=λ(x,y).
Ax=λx.
(Ax,y)=(x,Ay)=μ(x,y).
Symmetry, then Ay=μy (and μ is real by the previous theorem, so no conjugate appears).
(λ−μ)(x,y)=0.
Subtract the two lines.
Hence (x,y)=0. ■
λ=μ, so the first factor is not zero.
Proof workshopGive the reason for each line: eigenvectors are orthogonal
Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.
(Ax,y)=λ(x,y)
(Ax,y)=(x,Ay)
(x,Ay)=μ(x,y)
(λ−μ)(x,y)=0, so (x,y)=0
Theorem AApostol Thm 5.6 and 5.8; Axler 7.29
Spectral theorem
Let A be a real symmetric n×n matrix. Then Rn has an orthonormal basis q1,…,qn of eigenvectors of A. Equivalently, A=QΛQT with Q=[q1⋯qn] orthogonal and Λ=diag(λ1,…,λn) real. The theorem holds even when eigenvalues repeat.
In one lineEvery real symmetric matrix is orthogonally diagonalizable: A=QΛQT, with real eigenvalues and an orthonormal basis of eigenvectors.
Why it is trueFind one unit eigenvector; the space perpendicular to it is mapped into itself, so the same argument repeats there, one dimension down.
Why· The picture behind the proof
Find one eigenvector q1 of length 1. Look at the plane (or hyperplane) W perpendicular to it. A symmetric matrix maps W into itself: if w⊥q1, then Aw⊥q1 too. So inside W you have a smaller symmetric problem, one dimension down, and the same argument finds the next eigenvector, perpendicular to the first. Repeating peels off one perpendicular axis at a time.
ProofApostol 5.6, Axler 7.29
The idea: Induction on n. A real eigenvalue exists (complex eigenvalues always exist and are real here). Take a unit eigenvector q₁. The orthogonal complement W = q₁⊥ is invariant under A, and A restricted to W is symmetric. By induction W has an orthonormal eigenbasis; add q₁.
Base case n=1: true. Assume the theorem for symmetric maps on spaces of dimension n−1.
Induction on the dimension n. For n=1 every unit vector is an eigenvector of the 1×1 matrix.
A has a real eigenvalue λ1 with a real eigenvector; scale it to length 1 and call it q1.
The characteristic polynomial has a complex root (fundamental theorem of algebra, 0.6), and a real symmetric matrix is Hermitian, so by the first theorem that root is real. Then A−λ1I is a real matrix with determinant 0, so the real system (A−λ1I)x=O has a non-zero real solution (2.8).
Let W={w:(w,q1)=0}.
The vectors perpendicular to q1 form a subspace of dimension n−1 (orthogonal complement, 2.9).
If w∈W, then Aw∈W: W is invariant under A.
Symmetry moves A across: (Aw,q1)=(w,Aq1)=λ1(w,q1)=0.This is the step that needs symmetry. For a non-symmetric matrix W need not be mapped into itself.
A restricted to W is a symmetric map on the (n−1)-dimensional inner product space W.
The identity (Ax,y)=(x,Ay) holds for all vectors, in particular those in W.
W has an orthonormal basis q2,…,qn of eigenvectors of A.
Induction hypothesis.
q1,q2,…,qn is an orthonormal basis of eigenvectors of A. ■
q1 is a unit vector perpendicular to all of W, and n orthonormal vectors in Rn form a basis (orthonormal sets are independent, 2.9).
Proof workshopRebuild the spectral theorem proof
Tap the lines in the order a proof would write them. Each line can only use what is already above it.
Base case: a 1×1 matrix only multiplies by a number.
A root of the characteristic polynomial exists, and it is real by the first theorem.
First set up the induction, so you know what you are proving.
An orthogonal complement of one non-zero vector.
You need q1 before you can talk about vectors perpendicular to it.
Symmetry moves A across the inner product. This is where symmetry is used.
This is a statement about W, so W must be defined first.
W has dimension n−1 and A maps W into itself.
The induction hypothesis only applies once you know A maps W into W.
q1 is a unit vector perpendicular to W, and n orthonormal vectors in Rn form a basis.
This conclusion uses the eigenbasis of W.
Same idea elsewhere· Why A = QΛQᵀ is the same statement
With Q having columns qi: AQ=[λ1q1⋯λnqn]=QΛ. Orthonormal columns give QTQ=I, so Q−1=QT, and A=QΛQT. This is the change of basis of 2.5 with the cheapest possible inverse, the transpose.
Quick checkIn the spectral theorem's proof, where is symmetry used?
(Aw,q1)=(w,Aq1) needs symmetry. For a non-symmetric matrix the perpendicular space is generally not invariant, and the induction cannot continue.
Examples
Worked example
Orthogonally diagonalize A=[2112].
Solution.
Eigenvalues.det(A−λI)=(2−λ)2−1=(λ−3)(λ−1). So λ=3,1. Characteristic polynomial (2.8). Both real, as the theorem promises.
Eigenvectors.λ=3: (A−3I)x=O gives x=(1,1). λ=1: x=(1,−1). Solve each null space.
Check perpendicular, then normalize.(1,1)⋅(1,−1)=0. Unit vectors: q1=21(1,1), q2=21(1,−1). Different eigenvalues, so perpendicular automatically; divide by the length to get an orthonormal basis.
Assemble.Q=21[111−1], Λ=[3001], and A=QΛQT. Columns of Q in the same order as the eigenvalues in Λ.
Answer.A stretches by 3 along the diagonal y=x and leaves the perpendicular diagonal unchanged: the picture at the top.
Worked example
Spagnolie's Lecture 19 example: diagonalize D=2/31012/3000−4/3 and explain its trace.
Solution.
Use structure.D=A−34I with A=210120000, whose eigenvalues are 3,1,0 (the 2×2 block from the previous example, and 0). Subtracting cI shifts every eigenvalue by c and keeps eigenvectors.
Eigenvalues of D.3−34=35, 1−34=−31, 0−34=−34. Shift each by −34.
Eigenvectors.(1,1,0), (1,−1,0), (0,0,1), mutually perpendicular; divide the first two by 2. Same as for A.
Trace.35−31−34=0=trD. Trace = sum of eigenvalues (2.8). Spagnolie’s point: zero trace means the flow below preserves volume.
Answer.D=QΛQT with Λ=diag(35,−31,−34). In the fluid flow, a ball of fluid stretches fastest along (1,1,0).
Worked example
Show B=[1023] is diagonalizable but NOT orthogonally diagonalizable.
Solution.
Eigenvalues. Triangular, so 1 and 3, distinct, so B is diagonalizable (2.8). Distinct eigenvalues give independent eigenvectors.
Angle.(1,0)⋅(1,1)=1=0, not perpendicular, and each eigenspace is a single line, so no other choice exists. An orthonormal eigenbasis would need perpendicular eigenlines.
Answer. Diagonalizable, but not by perpendicular axes. In fact a real matrix is orthogonally diagonalizable exactly when it is symmetric (problem below), and B=BT.
Python labSymmetric versus not symmetric, on a computer
import numpy as npA = np.array([[2.0, 1.0], [1.0, 2.0]])w, Q = np.linalg.eigh(A) # eigh is for symmetric matricesprint("eigenvalues:", w)print("Q^T Q =", np.round(Q.T @ Q, 12).tolist())print("Q diag(w) Q^T =", np.round(Q @ np.diag(w) @ Q.T, 12).tolist())B = np.array([[1.0, 2.0], [0.0, 3.0]]) # not symmetricw2, V = np.linalg.eig(B)print("non-symmetric eigenvectors dot product:", round(float(V[:, 0] @ V[:, 1]), 4))
Try this.Run it. For the symmetric matrix, eigh returns an orthogonal Q (so QTQ=I) and QΛQT rebuilds A. For the non-symmetric matrix, the two eigenvectors have dot product 0.7071, not 0: they are not perpendicular. Change B to [[1.0, 2.0], [2.0, 3.0]] (symmetric) and the dot product becomes 0 up to rounding.
Your answerWhat is the larger eigenvalue of the symmetric matrix [5222]?
Trace is 7 and determinant is 6.
det(A−λI)=(5−λ)(2−λ)−4=λ2−7λ+6=(λ−6)(λ−1), so the eigenvalues are 6 and 1.
Worked example
Compute A10 for A=[2112] using A=QΛQT.
Solution.
Use the decomposition from the first example.A=QΛQT with Λ=diag(3,1) and Q=21[111−1]. We already have the eigen-data, so no new eigenvalue work is needed.
Collapse the product.A2=QΛQTQΛQT=QΛ2QT, because QTQ=I sits in the middle. The same cancellation repeats, so A10=QΛ10QT. Each neighbouring pair QTQ becomes I. This is why diagonalizing makes powers cheap.
Power the diagonal matrix entry by entry.Λ10=diag(310,110)=diag(59049,1). A diagonal matrix multiplies each diagonal entry by itself.
Multiply back.QΛ10QT=21[111−1][59049001][111−1]=21[59050590485904859050]. The factor 21 is (21)2, from the two copies of Q.
Answer.A10=[29525295242952429525]. Check with A2=[5445]: the formula 21[32+132−132−132+1] gives the same.
Your answerFor A=[2112], what is the top-left entry of A10?
The eigenvalues are 3 and 1, so only 310 matters.
A10=21[310+1310−1310−1310+1] and 310=59049, so the entry is 259050=29525.
Worked example Spagnolie Lecture 19
Split A=[1132] into its symmetric and antisymmetric parts, and find the eigenvalues of each.
Solution.
Symmetric part.E=21(A+AT)=21[2444]=[1222]. Adding A and its transpose makes entry (i,j) equal to entry (j,i).
Antisymmetric part.R=21(A−AT)=21[0−220]=[0−110]. Subtracting makes entry (i,j) the negative of entry (j,i).
Check they add up.E+R=[1132]=A. The halves of AT cancel.
Eigenvalues of E.λ2−3λ−2=0, so λ=23±17, about 3.56 and −0.56. Trace 3 and determinant 2−4=−2. Real, as the spectral theorem promises for symmetric E.
Eigenvalues of R.λ2+1=0, so λ=±i. Purely imaginary: R is a quarter turn, so no real direction stays on its line.
Answer.E=[1222] (a stretch along perpendicular axes) and R=[0−110] (a rotation).
Worked example Apostol 5.5 style
Prove: if A is orthogonally diagonalizable, then A is symmetric.
Solution.
Write down the hypothesis.A=QΛQT with QTQ=I and Λ diagonal. This is the definition of orthogonally diagonalizable.
Transpose both sides.AT=(QΛQT)T. Goal: show AT=A.
Reverse the order of the product.(QΛQT)T=(QT)TΛTQT. The transpose of a product is the product of transposes in reverse order (2.5).
Simplify each factor.(QT)T=Q and ΛT=Λ. Transposing twice gives the original, and a diagonal matrix is unchanged by transposing.
Compare.AT=QΛQT=A.
Answer.A is symmetric. ■ With the spectral theorem, a real matrix is orthogonally diagonalizable if and only if it is symmetric.
Worked example
Prove: every eigenvalue of a real antisymmetric matrix (AT=−A) is zero or purely imaginary. Test on [0−220].
Solution.
Set up. Let Ax=λx with x=O, where x and λ may be complex. Eigenvalues of a real matrix can be complex, so we use the complex inner product defined above.
Compute (Ax,x) two ways. First, (Ax,x)=λ(x,x). Second, moving A across, (Ax,x)=(x,A∗x)=(x,−Ax)=(x,−λx)=−λˉ(x,x). For a real matrix A∗=AT=−A. The conjugate appears because λ comes out of the second slot.
Compare.λ(x,x)=−λˉ(x,x), and (x,x)>0, so λ=−λˉ. Divide by the positive number (x,x).
Read off. Write λ=a+bi. Then a+bi=−a+bi, so a=0. The real parts must be opposites of each other and equal, so they are 0.
Test.[0−220] has λ2+4=0, so λ=±2i. Purely imaginary, as proved.
Answer. Every eigenvalue of a real antisymmetric matrix has real part 0. ■
Worked example
Write A=[2112] as a sum of eigenvalue times projection, and show each piece is a projection.
Solution.
Take the unit eigenvectors.q1=21(1,1), q2=21(1,−1), with eigenvalues 3 and 1. From the first example.
Build each rank-one matrix.q1q1T=21[1111] and q2q2T=21[1−1−11]. A column times a row is a matrix.
Show it is a projection. For any x, (q1q1T)x=q1(q1Tx)=(x⋅q1)q1. This is the projection of x onto the line through the unit vector q1 (2.9).
Add up.3q1q1T+1q2q2T=21[3+13−13−13+1]=[2112]. Matches A, so the decomposition is right.
Answer.A=3q1q1T+1q2q2T: project onto each axis, then scale by that axis’s eigenvalue. In general, A=∑iλiqiqiT, because the column-times-row expansion of QΛQT has exactly these terms.
Worked example Axler 7B
For A=[2112] and x=(1,2), compute xTAx in the eigenbasis and see why it lies between the eigenvalues.
Solution.
Compute directly.Ax=(4,5), so xTAx=4+10=14, and ∥x∥2=5. The ratio xTxxTAx=2.8 is what we explain next.
Find the coordinates in the eigenbasis.c1=x⋅q1=23 and c2=x⋅q2=−21, so x=c1q1+c2q2. In an orthonormal basis the coordinates are dot products (2.9).
Expand.xTAx=λ1c12+λ2c22=3⋅29+1⋅21=14. Ax=λ1c1q1+λ2c2q2, and the dot product with x keeps only matching pairs, because q1⋅q2=0.
Bound it.c12+c22=5=∥x∥2, so 14=3c12+c22 is a weighted average (weights 59/2 and 51/2) of the eigenvalues 3 and 1, times 5. An average of 3 and 1 lies between them. Here 2.8 is between 1 and 3.
Answer.xTAx=14, and the ratio 2.8 lies between the smallest and largest eigenvalue. Taking x=q1 gives the top value 3, and any x=O gives a positive value when both eigenvalues are positive.
Your answerFor A=[2112], what is the largest value of xTAx over all unit vectors x?
Put all the weight on the biggest eigenvalue.
In the eigenbasis xTAx=3c12+c22 with c12+c22=1, which is at most 3, reached at x=q1.
Your answerWhat is the sum of the squares of the two eigenvalues of the symmetric matrix [1440]?
The trace of A2 equals the sum of the squares of the eigenvalues.
If A=QΛQT then A2=QΛ2QT, so tr(A2)=λ12+λ22. And A2=[174416] has trace 33. (The eigenvalues are 21±65, and their squares add to 33.)
Quick checkWhich real matrices can be orthogonally diagonalized (that is, A=QΛQT with Q orthogonal)?
Symmetric implies orthogonally diagonalizable by the spectral theorem, and the converse is the transpose computation in the example above. The matrix [1023] has real eigenvalues and is diagonalizable, but is not symmetric, so its eigenlines are not perpendicular.
Quick checkA real 5×5 symmetric matrix has eigenvalues 2,2,2,7,7. How many independent eigenvectors does it have?
The spectral theorem guarantees an orthonormal eigenbasis for every symmetric matrix, repeated eigenvalues included. The shear's failure (2.8) cannot happen for symmetric matrices.
Where it is used
Used inside maths· Inside maths: quadratic forms, the Hessian, and PCA
Chapter 3.2 uses the spectral theorem to remove the cross term from ax2+2bxy+cy2 by rotating axes, which classifies every conic. Chapter 5.6 applies it to the Hessian (the symmetric matrix of second derivatives) to decide whether a critical point is a maximum, minimum or saddle. Chapter 3.4 applies it to ATA to build the SVD.
Used in the real world· Fluid mechanics: how a blob of fluid deforms (Spagnolie, Lecture 19)
In a steady linear flow dtdx=xA, split A=E+R into its symmetric part E=21(A+AT) and antisymmetric part R=21(A−AT). R rotates the fluid. E is symmetric, so by the spectral theorem it is a pure stretch along three perpendicular axes qi: in those coordinates each component grows like eλit, and a ball of fluid becomes an ellipsoid. Engineers call E the strain-rate tensor, and its eigenvectors the principal strain directions. A shear flow, in which the layers slide past each other, is half rotation and half stretching along the diagonals (one of the problems below splits one).
Used in the real world· Physics and engineering: principal axes and real measurements
The inertia matrix of a rigid body is symmetric, so every body has three perpendicular principal axes; satellites and spinning tops are analysed in those coordinates. The stress tensor in a loaded beam is symmetric; its eigenvectors are the principal stress directions, along which materials crack. In quantum mechanics every measurable quantity is a Hermitian operator, and the first theorem of this chapter is why every measurement gives a real number.
Eigenvectors for DIFFERENT eigenvalues of a symmetric matrix are automatically perpendicular. Inside one eigenspace (a repeated eigenvalue) they need not be; run Gram–Schmidt inside that eigenspace, as in the step-through.
Watch out· Symmetric means equal to its transpose, not 'looks balanced'
[1221] is symmetric; [1−221] is not (it is a rotation times a scale, with complex eigenvalues).
Watch out· Complex inner products conjugate the second slot
The proof that eigenvalues are real works because (x,λx)=λˉ(x,x). Forgetting the conjugate “proves” every eigenvalue real, which is false for rotations.
Problems
check
Which are symmetric: [1440], [0−110], [5005]?
Solution
The first and third. The second equals minus its transpose (antisymmetric); its eigenvalues are ±i.
check
A symmetric matrix has eigenvectors (1,2) for λ=4. Find an eigenvector for its other eigenvalue without knowing the matrix.
Solution
Eigenvectors of a symmetric 2×2 matrix for different eigenvalues are perpendicular, so (2,−1) (or any multiple). (If the other eigenvalue were also 4, every vector would be an eigenvector, and (2,−1) still works.)
check
If Q is orthogonal, what is Q−1? Why does that matter for computing A=QΛQ−1?
Solution
Q−1=QT. Inverting a matrix normally takes elimination; for an orthogonal matrix it is a transpose, which is free and numerically exact.
A10=QΛ10QT with Λ10=diag(310,1). Multiplying out: A10=21[310+1310−1310−1310+1]=[29525295242952429525].
useSpagnolie Lecture 19
Split A=[0010] (a shear flow) into symmetric and antisymmetric parts, and find the principal stretching directions of the symmetric part.
Solution
E=21[0110], R=21[0−110]. E has eigenvalues ±21 with eigenvectors (1,1) (stretching) and (1,−1) (compressing): the diagonals.
proveApostol 5.5 style
Prove that if A is orthogonally diagonalizable, then A is symmetric. (So for real matrices, orthogonally diagonalizable is the same as symmetric.)
Solution
A=QΛQT gives AT=(QT)TΛTQT=QΛQT=A, since Λ is diagonal so ΛT=Λ.
prove
Prove that every eigenvalue of an antisymmetric real matrix (AT=−A) is purely imaginary or zero.
Solution
If Ax=λx, x=O complex: λ(x,x)=(Ax,x)=(x,A∗x)=(x,−Ax)=(x,−λx)=−λˉ(x,x). So λ=−λˉ, meaning the real part of λ is 0. (This is Spagnolie’s “antisymmetric part = pure rotation”.)
prove
Prove the spectral decomposition: if A=QΛQT then A=∑i=1nλiqiqiT, and each qiqiT is the projection onto the line through qi.
Solution
QΛQT=[λ1q1⋯λnqn]QT=∑iλiqiqiT (column times row expansion of a product). And (qiqiT)x=qi(qiTx)=(x⋅qi)qi, the projection onto the unit vector qi (2.9).
proveAxler 7B
Prove that a symmetric A with all eigenvalues positive satisfies xTAx>0 for every x=O.
Solution
Write x=∑ciqi in the orthonormal eigenbasis. Then Ax=∑λiciqi and xTAx=∑iλici2 (orthonormality kills cross terms). Each term is ≥0 and at least one ci=0, so the sum is positive. (Such matrices are called positive definite; 3.2.)
stretch
Let A be real symmetric with largest eigenvalue λmax. Prove max∥x∥=1xTAx=λmax (the Rayleigh quotient), and say where it is attained.
Solution
With x=∑ciqi, ∥x∥2=∑ci2=1 and xTAx=∑λici2≤λmax∑ci2=λmax. Equality at x=qmax, a unit eigenvector for λmax. This is how PCA (3.4) finds the direction of greatest variance.
Summary
The adjoint moves a map across an inner product: (Ax,y)=(x,A∗y); for real matrices it is the transpose.
A symmetric matrix (AT=A) has real eigenvalues, and eigenvectors for different eigenvalues are perpendicular.
Spectral theorem: every real symmetric matrix is A=QΛQT, an orthonormal eigenbasis with real eigenvalues, even with repeated eigenvalues. Proof: one unit eigenvector, then its perpendicular space is invariant, and induct.
For real matrices, orthogonally diagonalizable is exactly the same as symmetric.
A symmetric matrix is a pure stretch along perpendicular axes: principal axes, principal strains, principal components.
Watch and read
The same ideas explained by someone else. Use these when an explanation here does not land.
MATH 375: Lecture 19 proved the two key facts (real eigenvalues, perpendicular eigenvectors) for symmetric matrices, with the fluid-flow example below. The full theorem, Apostol 5.6, was not proved in class.
MATH 376: The second-derivative test in several variables uses the Hessian, a symmetric matrix; its eigenvalues decide maximum, minimum or saddle (5.6).
AI / CS 532: Covariance matrices are symmetric. Diagonalizing one is principal component analysis (3.4).