Find orthogonal principal directions and classify the sign of a quadratic form.
80 minYou need Modules 7 and 9
In this module you will
Use an orthonormal eigenbasis for a real symmetric matrix
Read the signs of a quadratic form from eigenvalues
Connect eigenvalues with the shape of level curves
1
Orthogonal eigenvectors
A real symmetric matrix satisfies AT=A. Suppose Au=λu and Av=μv. Symmetry gives (Au)⋅v=u⋅(Av). If λ=μ, this forces u⋅v=0.
The spectral theorem says every real symmetric matrix has an orthonormal basis of real eigenvectors. Here is why there is a first direction. The quantity vTAv attains its maximum at some unit vector on the compact unit sphere. For a unit w perpendicular to the maximiser v, the unit direction (v+tw)/1+t2 cannot give a larger value. Expanding and clearing the denominator gives
2twTAv+t2(wTAw−vTAv)≤0.
The coefficient of t must vanish. Otherwise, sufficiently small t with the same sign as that coefficient would make the left side positive. Thus Av is parallel to v. Symmetry makes its orthogonal complement invariant. Repeat the argument there until you have an orthonormal basis. With these vectors as columns of Q, write A=QΛQT.
2
Shapes in principal coordinates
The quadratic form of A is q(x)=xTAx. In eigenvector coordinates z=QTx it becomes ∑iλizi2. If every eigenvalue is positive, the form is positive definite. If all are nonnegative, it is positive semidefinite, with a flat direction when one is zero. Eigenvalues of both signs give an indefinite form.
Example 10.1A rotated bowl✓ Checked
For A=(2112) the unit directions are (1,1)T/2 and (1,−1)T/2, with eigenvalues 3 and 1. Its form is 3z12+z22 in these coordinates. The level curve with value one meets the first axis at distance 1/3 and the second at distance one.
Try it
Compare the principal directions and the contours of the symmetric presets. Try a positive definite form, an indefinite form and one with a flat direction.
Compute itEigenvalues and a quadratic form
Python
from sympy import Matrix
A = Matrix([[2, 1], [1, 2]])
x = Matrix([1, -1])
print(sorted(A.eigenvals()))
print((x.T * A * x)[0])
Output
[1, 3]
2
3
Exercises
Exercise 10.1★Flat direction
Classify q(x,y)=4x2 and give a nonzero vector where it vanishes.
Show solution✓ Checked
Its matrix has eigenvalues 4 and 0. The form is positive semidefinite and vanishes at (0,1)T.
Exercise 10.2★★A saddle direction
Classify q(x,y)=2xy by finding its values at (1,1) and (1,−1).
Show solution✓ Checked
The values are 2 and −2. The form is indefinite. Its symmetric matrix has off-diagonal entries one and diagonal entries zero.
Exercise 10.3★★★A uniform lower bound
Show that 2∥x∥2≤xTAx whenever the symmetric matrix A has every eigenvalue at least 2. Give a case of equality.
Show solution✓ Checked
Use orthonormal eigenvector coordinates, where the squared norm is ∑izi2. Each difference (λi−2)zi2 is nonnegative. Equality is attained for an eigenvector with eigenvalue 2, for example the first coordinate vector for diag(2,5).
4
Check yourself
1
Which matrices have an orthonormal real eigenbasis by the spectral theorem?
Symmetry supplies invariant orthogonal complements, giving a basis by induction.
2
What does a zero eigenvalue imply for a positive semidefinite form?
An eigenvector with zero eigenvalue gives zero quadratic value.
3
In principal coordinates, what are the coefficients of the squares?
Orthogonal diagonalisation leaves a sum of independent squared coordinates.