Source scope: §3.11.1. Worked numerical examples, experiments, and practice are teaching supplements unless identified as source results.
Fix the output
For f(x)=4x12+x22, the level f(x)=1 meets the horizontal axis at ±1/2 and the vertical axis at ±1. A larger quadratic coefficient requires a smaller coordinate to keep the output fixed.
A level set, or c-isocontour, is {x∈domf:f(x)=c}. Let f(x)=xTAx with real symmetric positive definite A.
The square root and the change of variable
Use A=QΛQT. All eigenvalues are positive, so define
A1/2=QΛ1/2QT,Λ1/2=diag(λ1,…,λn).
This matrix is symmetric positive definite, and multiplying it by itself gives A. Source clarification: The source calls it the “unique matrix square root.” The precise assertion is the unique symmetric positive definite square root; other matrix square roots can exist (for instance −I also squares to I). The source does not prove uniqueness here.
Fix c≥0. Symmetry gives
c=xTAx=xTA1/2A1/2x=∥A1/2x∥22.
Set z=A1/2x. Then ∥z∥2=c: the transformed level set is a sphere. Write z=cz^, with ∥z^∥2=1. Since A−1/2=QΛ−1/2QT,
x=A−1/2z=cQΛ−1/2QTz^=cQΛ−1/2z~,
where z~=QTz^ also has unit length. For c>0, this is the image of the unit sphere under an invertible linear map. At c=0, the map with factor c is no longer invertible, and the level set is just {0}. For c<0 it is empty. This makes explicit the degenerate case in the source’s derivation.
Scale, then orient
The diagonal factor scales axis i by λi−1/2. Multiplying by c gives semiaxis length
ri=c/λi.
Then Q rotates or reflects the axis-aligned ellipsoid while preserving length and angle. The ith unit coordinate vector has entries [ei]j=δij, so
Qei=j∑[ei]jqj=qi.
Thus each final axis points along its corresponding eigenvector. The isocontours are ellipsoids for c>0, with radii inversely proportional to square roots of eigenvalues. In two dimensions they are ellipses. This is the source’s complete sphere-to-ellipsoid derivation; the interactive planar view illustrates it without replacing the general argument.
Explore it yourself
Build a level ellipse
Increase one eigenvalue. Does its corresponding level-set axis grow or shrink?
Preparing interactive controls…
Explore in three dimensions
Explore it yourself
From a sphere to a level ellipsoid
Scale by inverse square roots, then orient the axes. A larger eigenvalue should make its axis shorter.
Preparing interactive controls…
Transfer
For eigenvalues nine and one at level four, what are the two semiaxis lengths?
Take the inverse square root
They are 2/3 and 2. The eigenvector for nine gives the short axis. Multiplying by λ instead would describe the wrong level set.