A741 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A7 · Lesson 41 · Symmetric matrices

Real eigenvalues and perpendicular axes

A resistor network's conductance matrix is symmetric. So is the covariance matrix of a set of noisy measurements, the stiffness matrix of a vibrating board, and the inductance matrix of coupled coils. Symmetric matrices are the best-behaved matrices there are: their eigenvalues are always real, their eigenvectors are always perpendicular, and they can always be diagonalized by a rotation. Geometrically, a symmetric matrix is a stretch along perpendicular axes, and nothing more.

  • The ellipse is every 𝐱 with 𝐱TS𝐱=1, for S=[abbd].
  • The arrows are the eigenvectors. However you set the sliders, they stay perpendicular and point along the ellipse's axes.
  • The semi-axes are 1λ: the larger eigenvalue gives the shorter axis.

Predict

Can a real symmetric matrix have complex eigenvalues, like a rotation does?

Name it

The spectral theorem

Every real symmetric matrix S has

  • real eigenvalues, and
  • orthonormal eigenvectors (eigenvectors for different eigenvalues are automatically perpendicular; for a repeated eigenvalue you can choose them perpendicular).

So S is diagonalized by an orthogonal matrix:

S=QΛQT=λ1𝐪1𝐪1T+⋯+λn𝐪n𝐪nT

The second form says S is a sum of projections onto its eigenvectors, each weighted by its eigenvalue.

Why the eigenvectors are perpendicular

If S𝐱=λ𝐱 and S𝐲=μ𝐲 with λ≠μ, then λ𝐲T𝐱=𝐲TS𝐱=(S𝐲)T𝐱=μ𝐲T𝐱, using ST=S. Since λ≠μ, 𝐲T𝐱=0.

Quadratic forms

The number 𝐱TS𝐱 is a quadratic form, such as 2x2+2xy+2y2. In the eigenvector coordinates it becomes λ1y12+⋯+λnyn2, with no cross terms: the eigenvectors are the principal axes. The Rayleigh quotient 𝐱TS𝐱𝐱T𝐱 always lies between the smallest and largest eigenvalue, reaching them along the eigenvectors.

Where they appear

  • Conductance matrices of resistor networks (reciprocity, lesson 11).
  • Covariance matrices of noisy data: the eigenvectors are the directions of greatest and least spread (principal components, A11 and S14).
  • Energy: stored energies like 12𝐯TC𝐯 in a capacitor network are quadratic forms.

Worked example

Diagonalize S=[2112] and write it as a sum of projections.

Show the solution
  1. Eigenvalues and unit eigenvectors. The eigenvalues are 2±1: λ1=3 with 𝐪1=12(1,1), and λ2=1 with 𝐪2=12(1,−1).
  2. Sum of projections. 3⋅12[1111]+1⋅12[1−1−11]=[2112]

Answer S=3𝐪1𝐪1T+1𝐪2𝐪2T, with 𝐪1=12(1,1) and 𝐪2=12(1,−1).

Worked example

Describe the curve 2x2+2xy+2y2=1.

Show the solution
  1. Write it as a quadratic form. It's 𝐱TS𝐱=1 for the S above.
  2. Change to eigenvector coordinates. 3y12+y22=1
  3. Read off the axes. It's an ellipse with semi-axis 13=0.577 along (1,1) and semi-axis 1 along (1,−1).

Answer an ellipse, with semi-axis 0.577 along (1,1) and 1 along (1,−1).

Worked example

What are the largest and smallest values of x2+4xy+y2 on the unit circle?

Show the solution
  1. Write it as a quadratic form. It's 𝐱TS𝐱 with S=[1221]
  2. Range on the unit circle. There the quadratic form ranges between the smallest and largest eigenvalues of S, which are −1 and 3.
  3. Where they're reached. The maximum, 3, is reached along the eigenvector 12(1,1), and the minimum, −1, along 12(1,−1).
  4. Check the first. 12+4⋅12+12=3

Answer the largest value is 3 and the smallest is −1.

Check

What is the larger eigenvalue of [2−1−12]?

Check

What is the larger eigenvalue of [3112]?

Check

The ellipse 𝐱TS𝐱=1 has S=[4114]. How long is its longer semi-axis?

Check

What is the Rayleigh quotient 𝐱TS𝐱𝐱T𝐱 for S=[2115] and 𝐱=(1,1)?

Check

S has eigenvalue 5 along 12(1,1) and 1 along 12(1,−1). What is its off-diagonal entry?

Check

S is real and symmetric with eigenvalues 2 and 5. What can you say about its eigenvectors?

Check

The quadratic form 3x2+2⋅1xy+3y2 on the unit circle.

(a)

What is its largest value?

(b)

What is its smallest value?

Check

Take S=[xyyx].

Step 1

What is the eigenvalue for (1,1)?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Explain geometrically what a symmetric matrix does to the plane.

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.