LINEAR-ALGEBRA Β· Interactive Practice | Unit 26 Β· Video 4

From Numbers to Shapes: How a 3Γ—3 Matrix Becomes an Ellipsoid

IKey Formulas

Formula Name Description
A=QΞ›QTA = Q\Lambda Q^T Principal Axis Theorem Symmetric matrix factorization
xTAx=1\mathbf{x}^T A \mathbf{x} = 1 Ellipsoid equation Level set of quadratic form
lengthi=1Ξ»i\text{length}_i = \dfrac{1}{\sqrt{\lambda_i}} Half-axis length Direction qi\mathbf{q}_i, eigenvalue Ξ»i\lambda_i
det⁑(A)=Ξ»1Ξ»2Ξ»3\det(A) = \lambda_1 \lambda_2 \lambda_3 Determinant identity And trace(A)=βˆ‘Ξ»i\text{trace}(A) = \sum \lambda_i

Our matrix from the video: A=[2βˆ’10βˆ’12βˆ’10βˆ’12],Ξ»1=2βˆ’2,Β Ξ»2=2,Β Ξ»3=2+2A = \begin{bmatrix} 2 & -1 & 0 \\ -1 & 2 & -1 \\ 0 & -1 & 2 \end{bmatrix}, \quad \lambda_1 = 2-\sqrt{2},\ \lambda_2 = 2,\ \lambda_3 = 2+\sqrt{2}

IIVisualization 1 β€” Eigenvalues Set the Axis Lengths

In the eigenbasis the principal cross-section is an axis-aligned ellipse with semi-axes 1/Ξ»i1/\sqrt{\lambda_i}.

IIIVisualization 2 β€” Level Sets Grow With √c

Raising the level cc in xTAx=c\mathbf{x}^T A\mathbf{x}=c scales the ellipse like c\sqrt{c} while its shape holds fixed.

This is the x3=0x_3=0 slice of the video's AA; the off-diagonal βˆ’1-1 tilts the ellipse 45Β°45\degree off the axes.

IVVisualization 3 β€” Two Tests for Positive Definiteness

For A(t)=[2t0t2t0t2]A(t)=\begin{bmatrix} 2 & t & 0 \\ t & 2 & t \\ 0 & t & 2 \end{bmatrix}, the eigenvalue test and the leading-minor test flag positive definiteness together.

Positive definiteness holds exactly while ∣t∣<2|t|<\sqrt{2}; past it the smallest eigenvalue and det⁑3\det_3 turn negative together.

VQuiz Questions

Question 1

For the matrix from the video, A=[2βˆ’10βˆ’12βˆ’10βˆ’12],A = \begin{bmatrix} 2 & -1 & 0 \\ -1 & 2 & -1 \\ 0 & -1 & 2 \end{bmatrix}, the three eigenvalues are Ξ»1=2βˆ’2\lambda_1 = 2 - \sqrt{2}, Ξ»2=2\lambda_2 = 2, Ξ»3=2+2\lambda_3 = 2 + \sqrt{2}.

Which eigenvalue corresponds to the longest half-axis of the ellipsoid xTAx=1\mathbf{x}^T A \mathbf{x} = 1?

βœ… Correct! Smallest eigenvalue β†’ longest axis (because length = 1/√λ).

❌ Not quite. Remember: length =1/λ= 1/\sqrt{\lambda}, so larger λ\lambda gives a shorter axis.

Show solution

Solution:

The half-axis length along eigenvector qi\mathbf{q}_i is lengthi=1Ξ»i.\text{length}_i = \frac{1}{\sqrt{\lambda_i}}.

This is a decreasing function of Ξ»\lambda: smaller eigenvalues produce longer axes.

  • Ξ»=2βˆ’2β‰ˆ0.586β‡’\lambda = 2 - \sqrt{2} \approx 0.586 \Rightarrow length β‰ˆ1/0.586β‰ˆ1.31\approx 1/\sqrt{0.586} \approx 1.31 (longest)
  • Ξ»=2β‡’\lambda = 2 \Rightarrow length =1/2β‰ˆ0.71= 1/\sqrt{2} \approx 0.71
  • Ξ»=2+2β‰ˆ3.414β‡’\lambda = 2 + \sqrt{2} \approx 3.414 \Rightarrow length β‰ˆ0.54\approx 0.54 (shortest)

The smallest eigenvalue 2βˆ’22 - \sqrt{2} gives the longest axis.

Question 2

True or False: Since the matrix A=[2βˆ’10βˆ’12βˆ’10βˆ’12]A = \begin{bmatrix} 2 & -1 & 0 \\ -1 & 2 & -1 \\ 0 & -1 & 2 \end{bmatrix} has all diagonal entries equal to 2, the ellipsoid xTAx=1\mathbf{x}^T A \mathbf{x} = 1 is a sphere.

βœ… Correct! Diagonal entries do not determine the axis lengths β€” eigenvalues do, and they are all different.

❌ Not quite. The eigenvalues, not the diagonal, set the axis lengths. Our matrix has three distinct eigenvalues.

Show solution

Solution: False.

A common trap! The diagonal entries of AA do not directly give the axis lengths. The geometry is set by the eigenvalues (lengths) and eigenvectors (directions), not by the matrix entries.

For our AA, the diagonal is 2,2,22, 2, 2, but the eigenvalues are three different numbers: 2βˆ’22 - \sqrt{2}, 22, 2+22 + \sqrt{2}. So the ellipsoid is a lopsided one with three distinct axis lengths, not a sphere.

A sphere requires all three eigenvalues to be equal. The diagonal entries being equal does not force that.

Question 3

For the same matrix AA, the three pivots from elimination are 22, 32\tfrac{3}{2}, 43\tfrac{4}{3}. What is the product of these pivots, and what does it equal?

βœ… Correct! The product of pivots equals the determinant (= product of eigenvalues = 4).

❌ Not quite. Pivots multiply to give the determinant (not the trace). And det⁑(A)=\det(A) = product of eigenvalues.

Show solution

Solution:

Multiply the pivots: 2β‹…32β‹…43=2β‹…3β‹…42β‹…3=4.2 \cdot \frac{3}{2} \cdot \frac{4}{3} = \frac{2 \cdot 3 \cdot 4}{2 \cdot 3} = 4.

In LU decomposition, the determinant of AA equals the product of the pivots (assuming no row swaps). And indeed: det⁑(A)=Ξ»1Ξ»2Ξ»3=(2βˆ’2)β‹…2β‹…(2+2)=2(4βˆ’2)=4.\det(A) = \lambda_1 \lambda_2 \lambda_3 = (2 - \sqrt{2}) \cdot 2 \cdot (2 + \sqrt{2}) = 2(4 - 2) = 4.

All three views β€” pivots, leading determinants, and eigenvalues β€” agree. The trace (sum of diagonal) is 66, which is the sum of eigenvalues, not the product.

Question 4

A symmetric 3Γ—33 \times 3 matrix BB has eigenvalues Ξ»1=4\lambda_1 = 4, Ξ»2=4\lambda_2 = 4, Ξ»3=1\lambda_3 = 1. What kind of shape is the level set xTBx=1\mathbf{x}^T B \mathbf{x} = 1?

βœ… Correct! Two equal eigenvalues plus one different gives a rugby-ball-shaped spheroid.

❌ Not quite. Count distinct eigenvalues: two are equal (4,44,4) and one is different (11). That pattern names the shape.

Show solution

Solution:

All three eigenvalues are positive, so BB is positive definite and the level set is a bounded ellipsoid.

The half-axis lengths are:

  • Along q1\mathbf{q}_1: 1/4=1/21/\sqrt{4} = 1/2
  • Along q2\mathbf{q}_2: 1/4=1/21/\sqrt{4} = 1/2
  • Along q3\mathbf{q}_3: 1/1=11/\sqrt{1} = 1

Two axes have equal length and one is different. Geometrically this is a rugby ball (also called a spheroid): a circular cross-section in the q1,q2\mathbf{q}_1, \mathbf{q}_2 plane, stretched along q3\mathbf{q}_3.

A sphere would require all three eigenvalues equal. A lopsided ellipsoid would require three distinct eigenvalues.

Solved: 0 / 4