4.5.38 · D4Linear Algebra (Full)

Exercises — Symmetric matrices — spectral theorem (real eigenvalues, orthogonal eigenvectors)

2,224 words10 min readBack to topic

Reminders in one place, so you never meet a symbol cold:

  • A matrix is symmetric if — flipping it across its main diagonal (top-left to bottom-right) changes nothing. See the mirror picture below.
  • ("A transpose") means "swap rows with columns": the entry in row , column moves to row , column .
  • An eigenvector of is a non-zero arrow that only stretches, not turns: . The stretch factor ("lambda") is the eigenvalue. See Eigenvalues and Eigenvectors.
  • Two arrows are orthogonal (perpendicular) when their dot product is zero: .
  • is orthogonal when its columns are perpendicular unit arrows, which forces and hence . See Orthogonal Matrices.

Figure below — read it now, it recurs throughout. The left panel shows what "symmetric" looks like: the amber pair straddling the dashed mirror line are forced equal, which is precisely the condition Exercise 1.1 tests. The right panel shows the payoff proven in Exercise 3.1: the two eigen-axes meet at a clean and merely stretches along them (cyan by , amber by ) — no twisting. Keep this picture in mind; L2, L3 and L5 all live inside it.

Figure — Symmetric matrices — spectral theorem (real eigenvalues, orthogonal eigenvectors)

Level 1 — Recognition

Exercise 1.1

Which of these matrices are symmetric?

Recall Solution

What we do: compare each matrix with its own transpose — mirror across the diagonal (exactly the dashed line in the figure above).

  • : the off-diagonal entries are (row 1) and (row 1 of transpose) — they match. Symmetric ✓.
  • : entry but entry . Mirroring flips the sign, so . Not symmetric (it is antisymmetric).
  • : check each mirror pair: , , . All match. Symmetric ✓.

Answer: and are symmetric; is not.

Exercise 1.2

For , verify that is an eigenvector and find its eigenvalue.

Recall Solution

What we do: multiply and see whether the output is a scalar multiple of the input arrow. The output points the same way as , just longer. So is an eigenvector with eigenvalue .


Level 2 — Application

Exercise 2.1

Fully orthogonally diagonalize : find , with .

Recall Solution

Step 1 — eigenvalues. Why: eigenvalues are the stretch factors; find where collapses an arrow to zero, i.e. where . So and — both real (as the Spectral Theorem promises).

Step 2 — eigenvectors. Solve .

  • : .
  • : .

Step 3 — orthogonality check. ✓ (distinct eigenvalues ⇒ perpendicular — the right panel of the opening figure, with these exact axes).

Step 4 — normalize (divide by length so columns are unit arrows, making orthogonal): Then . See Diagonalization.

Exercise 2.2

Using Exercise 2.1's data, write as a spectral sum and confirm it reproduces .

Recall Solution

What we do: each is a rank-1 projector onto eigen-axis ; scale by and add. With , :


Level 3 — Analysis

Exercise 3.1

Show from scratch that if is symmetric and are eigenvectors with different eigenvalues , then . (No numbers — a proof.)

Recall Solution

Idea: compute the single number in two different ways and compare. This is a classic "evaluate one quantity two ways" trick.

Way 1 — let act on :

Way 2 — slide onto using symmetry. Since and :

Compare: . Since the first factor is non-zero, so , i.e. . ∎ (Here is just the dot product written as a matrix product.)

Exercise 3.2

The matrix is not symmetric. Its eigenvectors are (for ) and (for ). Are they orthogonal? What does this reveal?

Recall Solution

Check: . Not orthogonal. What it reveals: orthogonality of eigenvectors is a gift of symmetry, not a universal law. The proof in 3.1 used in "Way 2"; drop that hypothesis and the two ways no longer agree, so nothing forces . A non-symmetric matrix can still be diagonalized (), but .


Level 4 — Synthesis

Exercise 4.1

A symmetric matrix with a repeated eigenvalue: . Find all eigenvalues; then, treating the repeated eigenvalue carefully, produce a full orthonormal eigenbasis, running Gram–Schmidt inside the repeated eigenspace when the raw basis you pick is not already perpendicular.

Recall Solution

Step 1 — eigenvalues. is diagonal, so its eigenvalues are its diagonal entries: once, and with multiplicity 2. This is exactly the repeated-eigenvalue case.

Step 2 — the simple eigenvalue . Solving forces , giving the eigenvector — already unit length.

Step 3 — the repeated eigenvalue (the interesting case). Solving : The eigenspace is the whole plane — a 2-dimensional space (symmetric matrices are never defective, so the eigenspace has full dimension). Suppose the two raw basis vectors we happen to pick are not already orthogonal, say Gram–Schmidt fixes this inside the eigenspace (Gram-Schmidt Process): Subtract from its shadow along : then normalize (already unit): . Now ✓.

Step 4 — assemble the full orthonormal eigenbasis. Combining the vector with the two orthonormalized vectors: Moral: a distinct eigenvalue hands you its eigen-axis for free; a repeated eigenvalue gives you a whole plane, and inside it you must build an orthonormal basis by hand with Gram–Schmidt.

Exercise 4.2

Let be symmetric with spectral decomposition . Prove that , and use it to state .

Recall Solution

Key fact: the are orthonormal, so if and otherwise. Square via : The middle collapses (that is orthogonality doing the work). Since is diagonal with entries : General power: . The eigen-axes are frozen; only the stretch factors get raised to the power.


Level 5 — Mastery

Exercise 5.1

For (from Exercise 2.1, eigenvalues ), the quadratic form traces a curve when set to . Using the eigen-axes, identify the shape, its axis directions, and its semi-axis lengths.

Recall Solution

Rotate into eigen-coordinates. Put with from Exercise 2.1. Then The cross term vanished — that is exactly what the eigen-axes buy you. See Quadratic Forms. Set : , i.e. . This is an ellipse (drawn in the figure below).

  • Semi-axis along has length .
  • Semi-axis along has length .

Axis directions in the original –coordinates: the ellipse's short axis points along (the line), and its long axis points along (the line). These are exactly the eigen-axes — the ellipse is tilted at , not aligned with the – and –axes.

Reading it off: larger eigenvalue ⇒ steeper form ⇒ shorter semi-axis, so gives the short axis and gives the long axis . Both eigenvalues positive ⇒ the curve closes into an ellipse ⇒ is positive definite.

Figure — Symmetric matrices — spectral theorem (real eigenvalues, orthogonal eigenvectors)

Exercise 5.2

Let . Its singular values are the numbers appearing in the SVD. Explain why, for this , the singular values equal , and give them numerically.

Recall Solution

Eigenvalues (parent Example 1): . Singular values are . For symmetric , , whose eigenvalues are . So singular values . Here , , so singular values are . Subtlety: they equal , the absolute values. If an eigenvalue were negative, its singular value would be its magnitude — the sign gets absorbed into the SVD's orthogonal factors.

Exercise 5.3

Suppose symmetric has eigenvalues (eigenvector ) and (eigenvector ). Reconstruct from its spectral sum.

Recall Solution

Check: trace ✓, ✓. The negative eigenvalue makes indefinite — the quadratic form would be a hyperbola, not an ellipse.


Flashcards

For a real symmetric matrix, why must eigenvectors of distinct eigenvalues be orthogonal?
Computing two ways gives ; distinct forces .
What are the singular values of a symmetric matrix in terms of its eigenvalues?
The absolute values .
For symmetric , what is ?
— same axes, powered stretches.