Constrained optimization of quadratic forms
Find the largest and smallest values of xᵀAx on the unit circle and say where they occur: they are the extreme eigenvalues of A, at their unit eigenvectors.
It opens on
Walk once round the unit circle and watch the value of 5x₁² − 4x₁x₂ + 5x₂². At which points is it largest and smallest, and what are the values?
Why it matters
The same problem finds the direction of greatest variance in data, the loudest mode of a vibrating structure and the strongest stretch of a material.
Good to know first
- Principal axes of a conic: in coordinates along the eigenvectors, Q = λ₁y₁² + λ₂y₂²
- orthogonal matrices preserve length, so the unit circle stays the unit circle
- level curves of a function of two variables are the curves where it takes one value
Step by step
See the form on the circle
Read Q on the unit circle from the level curves it crosses and see that the circle meets several levels.
The constraint is x₁² + x₂² = 1, the unit circle, and we ask for the largest and smallest value of Q(x) = 5x₁² − 4x₁x₂ + 5x₂² on it.
A common mix-up
Q is constant on a circle.
In fact: Q takes the values 3, 5 and 7 at three points of this one circle.
The curve that just touches
Show that at an extreme, a level curve touches the circle, which gives Ax = λx, so the extreme values are eigenvalues.
Here ∇Q = 2Ax and ∇g = 2x, so ∇Q = μ∇g says 2Ax = 2μx, that is Ax = μx.
A common mix-up
The maximum of xᵀAx on the circle is the largest entry of A.
In fact: Only the largest eigenvalue counts, here 7 and not the entry 5.
Walk round the circle
Plot Q as a function of the angle on the circle, read the extremes and carry the result to a sphere.
Put x = (cos θ, sin θ): then Q = 5 cos²θ − 4 cos θ sin θ + 5 sin²θ = 5 − 2 sin 2θ.
A common mix-up
The extremes on the circle happen at the points where x₁ or x₂ is largest.
In fact: They happen at the eigenvector directions, here the diagonals.
Try it
Evaluate Q = 5x₁² − 4x₁x₂ + 5x₂² at (−1/√2, 1/√2) and at (0, −1).Answer
7 and 5
Hint: (−1/√2)(1/√2) = −1/2, so the cross term −4x₁x₂ is +2
Why is the maximum of xᵀAx on the unit circle always an eigenvalue of A?Answer
At the maximum ∇Q ∥ ∇g, which gives Ax = μx, and the value there is μ
Hint: Q(x) = xᵀ(μx) = μ when xᵀx = 1
For Q = 3x₁² + 4x₁x₂ + 3x₂², write Q on the circle as a function of θ and give its range.Answer
Q = 3 + 2 sin 2θ, range from 1 to 5
Hint: 4 cos θ sin θ = 2 sin 2θ
So is Q constant on the circle? What do the three values 5, 3 and 7 tell you?Answer
No; it varies, from at most 3 up to at least 7.
A = [[5, −2], [−2, 5]] has eigenvalues 3 and 7, with unit eigenvectors ±(1, 1)/√2 and ±(1, −1)/√2. What are the maximum and the minimum of Q on the circle, and where?Answer
Maximum 7 at ±(1, −1)/√2, minimum 3 at ±(1, 1)/√2.
