This page is the "worked-out drill" child of the parent topic . The parent proved why real symmetric matrices behave. Here we hit every kind of case a problem can throw at you and grind each one to a numeric answer.
Before we begin, one plain-words reminder so nothing is used before it is built.
Definition The three objects we keep reusing
A symmetric matrix A is a square grid of numbers that reads the same across its main diagonal: the number in row i , column j equals the number in row j , column i . Symbolically A = A ⊤ , where A ⊤ (say "A transpose") is A flipped across that diagonal.
An eigenvalue λ and its eigenvector v satisfy A v = λ v : feeding v into A just stretches it by the number λ , no turning. See Eigenvalues and Eigenvectors .
Orthogonal means "at a right angle": two vectors u , v are orthogonal when their dot product u ⋅ v = u 1 v 1 + u 2 v 2 + ⋯ = 0 . Why the dot product? Because u ⋅ v = ∥ u ∥ ∥ v ∥ cos θ , so it is zero exactly when the angle θ is 9 0 ∘ .
Every symmetric-matrix problem falls into one of these cells. The examples below are labelled with the cell they cover, so together they leave no gap .
#
Case class
What is unusual
Example
C1
Both eigenvalues positive
ordinary "stretch/stretch"
Ex 1
C2
Mixed signs (one + , one − )
a reflection hides inside
Ex 2
C3
A zero eigenvalue (singular A )
A squashes a whole direction to 0
Ex 3
C4
Repeated eigenvalue (multiplicity 2)
eigenvectors not forced — you choose them
Ex 4
C5
Diagonal A (degenerate/limiting)
eigenvectors are the axes themselves
Ex 5
C6
3 × 3 with a clean block
full spectral decomposition in 3D
Ex 6
C7
Word problem (real-world)
you must build the symmetric matrix first
Ex 7
C8
Exam twist — rebuild A from Q , Λ
run the theorem backwards
Ex 8
Orthogonally diagonalize A = ( 4 1 1 4 ) .
Forecast: trace = 8 , det = 16 − 1 = 15 . Which two numbers add to 8 and multiply to 15 ? Guess before reading on.
Steps:
Solve λ 2 − 8 λ + 15 = 0 = ( λ − 5 ) ( λ − 3 ) , so λ = 5 , 3 .
Why this step? The characteristic quadratic is built straight from trace and det — no need to expand det ( A − λ I ) by hand.
λ = 5 : solve ( A − 5 I ) x = ( − 1 1 1 − 1 ) x = 0 . The two rows both say − x 1 + x 2 = 0 , so x = ( 1 , 1 ) .
Why this step? An eigenvector is any nonzero vector the shifted matrix sends to 0 ; both rows agree, confirming the eigenvalue is right.
λ = 3 : ( A − 3 I ) x = ( 1 1 1 1 ) x = 0 ⇒ x = ( 1 , − 1 ) .
Normalize (divide each by its length 2 ): q 1 = 2 1 ( 1 , 1 ) , q 2 = 2 1 ( 1 , − 1 ) .
Why this step? Only unit-length columns make Q ⊤ = Q − 1 , which is what turns P Λ P − 1 into the tidy Q Λ Q ⊤ . See Diagonalization and Orthogonal Matrices .
Q = 2 1 ( 1 1 1 − 1 ) , Λ = ( 5 0 0 3 ) .
Verify: dot product ( 1 , 1 ) ⋅ ( 1 , − 1 ) = 0 ✓ (orthogonal, as promised for distinct eigenvalues). Rebuild: Q Λ Q ⊤ = ( 4 1 1 4 ) = A ✓. Both λ > 0 , so A stretches (never flips) — it is positive definite , see Positive Definite Matrices .
Both eigenvalues positive means every direction gets pushed outward . The picture below shows the eigen-axes (the only two directions A leaves pointing the same way) and how a circle balloons into an ellipse.
Diagonalize A = ( 1 2 2 1 ) .
Forecast: trace = 2 , det = 1 − 4 = − 3 . A negative determinant means the eigenvalues have opposite signs (their product is negative). Guess them.
Steps:
λ 2 − 2 λ − 3 = 0 = ( λ − 3 ) ( λ + 1 ) , so λ = 3 , − 1 .
Why this step? The negative eigenvalue is not an error — it means A reflects along that eigen-axis (points come back pointing the opposite way).
λ = 3 : ( − 2 2 2 − 2 ) x = 0 ⇒ x = ( 1 , 1 ) .
λ = − 1 : ( 2 2 2 2 ) x = 0 ⇒ x = ( 1 , − 1 ) .
Same normalized Q as Example 1, but now Λ = ( 3 0 0 − 1 ) .
Verify: ( 1 , 1 ) ⋅ ( 1 , − 1 ) = 0 ✓. Product of eigenvalues 3 × ( − 1 ) = − 3 = det ✓, sum 3 + ( − 1 ) = 2 = trace ✓. Along q 2 the vector A ( 1 , − 1 ) = ( − 1 , 1 ) = − 1 ⋅ ( 1 , − 1 ) — genuinely flipped.
The magenta arrow below is the reflected eigen-direction: same line, reversed arrow.
Diagonalize A = ( 1 1 1 1 ) .
Forecast: trace = 2 , det = 1 − 1 = 0 . A zero determinant means one eigenvalue is 0 (product of eigenvalues is 0 ). The other must be the whole trace. Guess them.
Steps:
λ 2 − 2 λ + 0 = 0 = λ ( λ − 2 ) , so λ = 2 , 0 .
Why this step? A zero eigenvalue means A flattens an entire direction onto the origin — that direction is the null space.
λ = 2 : ( − 1 1 1 − 1 ) x = 0 ⇒ x = ( 1 , 1 ) .
λ = 0 : A x = 0 directly ⇒ ( 1 , 1 ) ⋅ ( x 1 , x 2 ) ... solve x 1 + x 2 = 0 ⇒ x = ( 1 , − 1 ) .
Why this step? The eigenvector for λ = 0 is the null space: everything on the line x = ( t , − t ) is sent to 0 .
Q = 2 1 ( 1 1 1 − 1 ) , Λ = ( 2 0 0 0 ) .
Verify: A ( 1 , − 1 ) = ( 0 , 0 ) ✓ (squashed). A ( 1 , 1 ) = ( 2 , 2 ) = 2 ( 1 , 1 ) ✓. Spectral sum: A = 2 q 1 q 1 ⊤ = 2 ⋅ 2 1 ( 1 1 1 1 ) = A ✓ (the λ = 0 piece contributes nothing — this is exactly why singular matrices lose rank).
The orange line below is the squashed direction — every point on it lands at the origin.
Diagonalize A = ( 3 0 0 3 ) ... wait, that is too easy. Take the disguised version A = ( 3 0 0 3 ) but prove the eigenvalue repeats and any orthonormal pair works.
Forecast: trace = 6 , det = 9 . Two numbers summing to 6 , multiplying to 9 : they must both be 3 . What are the eigenvectors then?
Steps:
λ 2 − 6 λ + 9 = ( λ − 3 ) 2 , so λ = 3 twice.
Why this step? A repeated root warns you the eigenvector is not forced to a single line.
Solve ( A − 3 I ) x = ( 0 0 0 0 ) x = 0 . Every vector solves this.
Why this step? The shifted matrix is all zeros, so the eigenspace is the entire plane — a 2D eigenspace, never defective (the parent's promise for symmetric matrices).
Since any two perpendicular unit vectors form a valid Q , pick the axes q 1 = ( 1 , 0 ) , q 2 = ( 0 , 1 ) , OR the rotated pair 2 1 ( 1 , 1 ) , 2 1 ( 1 , − 1 ) . Both give Λ = ( 3 0 0 3 ) .
Why this step? When you can't distinguish eigen-directions, you choose an orthonormal basis (use Gram-Schmidt Process in higher dimensions).
Verify: For the rotated pair, Q Λ Q ⊤ = 3 Q Q ⊤ = 3 I = A ✓ because Q Q ⊤ = I for any orthogonal Q . A scalar-multiple-of-identity is invariant to your choice of axes — that is the geometric meaning of "repeated eigenvalue."
Diagonalize A = ( 7 0 0 − 2 ) (already diagonal).
Forecast: If A is already diagonal, what work is left? Guess Q and Λ .
Steps:
Off-diagonals are 0 , so the eigenvalues are simply the diagonal entries: λ = 7 , − 2 .
Why this step? A e 1 = ( 7 , 0 ) = 7 e 1 and A e 2 = ( 0 , − 2 ) = − 2 e 2 — the standard axes are already eigenvectors.
Q = I = ( 1 0 0 1 ) , Λ = A .
Why this step? This is the degenerate/limiting case: "find the special axes" is trivial because A was written in its own eigen-basis to start with.
Verify: I Λ I ⊤ = Λ = A ✓. Note one eigenvalue is negative — mixed signs again, consistent with det = − 14 < 0 .
Diagonalize A = 5 0 0 0 2 1 0 1 2 .
Forecast: The top-left is decoupled from the 2 × 2 bottom block. What are the three eigenvalues?
Steps:
The isolated 5 gives λ = 5 with eigenvector ( 1 , 0 , 0 ) .
Why this step? Row/column 1 has no coupling, so e 1 passes straight through: A e 1 = 5 e 1 .
Bottom block ( 2 1 1 2 ) : trace 4 , det 3 , so λ = 3 , 1 (eigenvectors ( 1 , 1 ) and ( 1 , − 1 ) in the y , z slots).
Why this step? Reuse the exact 2 × 2 trick from Ex 1 on the sub-block; block-diagonal problems split into independent smaller ones.
Full eigenvectors: λ = 5 : ( 1 , 0 , 0 ) ; λ = 3 : ( 0 , 1 , 1 ) ; λ = 1 : ( 0 , 1 , − 1 ) . Normalize the last two by 2 .
Q = 1 0 0 0 2 1 2 1 0 2 1 − 2 1 , Λ = 5 0 0 0 3 0 0 0 1 .
Verify: All three eigenvectors pairwise orthogonal: ( 1 , 0 , 0 ) ⋅ ( 0 , 1 , 1 ) = 0 , ( 1 , 0 , 0 ) ⋅ ( 0 , 1 , − 1 ) = 0 , ( 0 , 1 , 1 ) ⋅ ( 0 , 1 , − 1 ) = 1 − 1 = 0 ✓. Rebuild Q Λ Q ⊤ = A ✓. This links to Singular Value Decomposition : for symmetric positive-definite A , the SVD equals the spectral decomposition.
A stretchy sheet deforms so that a point at position ( x , y ) moves to ( x + 0.5 y , 0.5 x + y ) . The strain is symmetric. Find the two perpendicular directions of pure stretch and their stretch factors.
Forecast: The transformation matrix is A = ( 1 0.5 0.5 1 ) . Trace = 2 , det = 1 − 0.25 = 0.75 . Guess the stretch factors.
Steps:
Confirm A is symmetric: off-diagonals both 0.5 ✓, so the Spectral Theorem applies and pure-stretch axes exist .
Why this step? Physically, a symmetric strain has principal axes with no shear — the theorem guarantees them.
λ 2 − 2 λ + 0.75 = 0 . Using λ = 2 2 ± 4 − 3 = 2 2 ± 1 , so λ = 1.5 , 0.5 .
Why this step? These are the stretch factors: 1.5 (stretch by 50%) and 0.5 (compress to half).
λ = 1.5 : direction ( 1 , 1 ) (the 4 5 ∘ diagonal). λ = 0.5 : direction ( 1 , − 1 ) (the anti-diagonal).
Why this step? Along ( 1 , 1 ) the sheet stretches most; along the perpendicular ( 1 , − 1 ) it compresses. This is exactly the Quadratic Forms geometry of an ellipse's axes.
Verify: A ( 1 , 1 ) = ( 1.5 , 1.5 ) = 1.5 ( 1 , 1 ) ✓; A ( 1 , − 1 ) = ( 0.5 , − 0.5 ) = 0.5 ( 1 , − 1 ) ✓. Directions perpendicular: ( 1 , 1 ) ⋅ ( 1 , − 1 ) = 0 ✓. Units: stretch factors are dimensionless ratios (new length / old length) ✓.
You are given Q = 2 1 ( 1 1 − 1 1 ) and Λ = ( 6 0 0 2 ) . Reconstruct the symmetric matrix A = Q Λ Q ⊤ and confirm it is symmetric.
Forecast: With eigenvalues 6 and 2 (both positive) and 4 5 ∘ -rotated eigen-axes, guess whether A has equal diagonal entries and a nonzero off-diagonal.
Steps:
First Λ Q ⊤ : Λ Q ⊤ = ( 6 0 0 2 ) ⋅ 2 1 ( 1 − 1 1 1 ) = 2 1 ( 6 − 2 6 2 ) .
Why this step? Multiplying right-to-left keeps each matrix small; Q ⊤ is Q with rows and columns swapped.
Then Q ( Λ Q ⊤ ) = 2 1 ( 1 1 − 1 1 ) ⋅ 2 1 ( 6 − 2 6 2 ) = 2 1 ( 8 4 4 8 ) = ( 4 2 2 4 ) .
Why this step? This is the spectral theorem used constructively — you can manufacture any symmetric matrix from chosen orthonormal axes and chosen eigenvalues.
Verify: A = ( 4 2 2 4 ) has A = A ⊤ ✓ (off-diagonals both 2 ). Trace = 8 = 6 + 2 ✓, det = 16 − 4 = 12 = 6 × 2 ✓. Eigenvalues recovered match Λ .
Recall Quick self-test
Given det A < 0 for a symmetric 2 × 2 matrix, what can you say about its eigenvalues? ::: They have opposite signs (product is negative), so A reflects along one eigen-axis (Case C2).
A symmetric matrix has det = 0 . What does one eigenvalue equal, and what happens geometrically? ::: One eigenvalue is 0 ; that eigen-direction is squashed onto the origin — A is singular (Case C3).
For a repeated eigenvalue on a symmetric matrix, are eigenvectors uniquely determined? ::: No — the eigenspace is full-dimensional, so you choose an orthonormal basis (Gram–Schmidt) (Case C4).
2 × 2 symmetric matrix at a glance
T race tells the sum , D eterminant tells the product . Sign of det: + = same-sign eigenvalues, − = mixed, 0 = one eigenvalue vanishes.