Principal Directions
& Quadratic Forms
Discover how symmetric matrices determine the shape and orientation of quadratic forms, and learn to find their principal axes through eigenvalues and eigenvectors.
What Is a Quadratic Form?
A quadratic form is a scalar-valued function of a vector \(\mathbf{x} \in \mathbb{R}^n\) defined by a symmetric matrix \(A\):
For \(\mathbf{x} = \begin{pmatrix} x_1 \\ x_2 \end{pmatrix}\) and \(A = \begin{pmatrix} a & b \\ b & c \end{pmatrix}\), this expands to:
Visualizing Level Curves
Setting \(Q(\mathbf{x}) = c\) for constant \(c\) produces level curves: ellipses, hyperbolas, or lines depending on \(A\). The shape reveals how the matrix "stretches" space.
Why Principal Directions Matter
The Spectral Theorem
Every real symmetric matrix \(A\) can be orthogonally diagonalized:
Diagonalizing the Quadratic Form
Substituting \(\mathbf{x} = P\mathbf{y}\) (a change to the eigenvector basis) into \(Q\):
So in the new coordinates \(\mathbf{y}\), the quadratic form becomes:
No cross terms remain. The eigenvalues tell you the curvature along each principal direction.
Definite vs Indefinite Forms
How to Find Principal Directions
Example 1: Diagonalize a Quadratic Form
Given the quadratic form:
Step 1: The associated symmetric matrix is:
Note: the coefficient of \(x_1 x_2\) is 4, so \(a_{12} = a_{21} = \frac{4}{2} = 2\).
Example 1: Finding Eigenvalues
Step 2: Solve \(\det(A - \lambda I) = 0\):
Example 1: Principal Directions
Step 3: For \(\lambda_1=7\): solve \((A-7I)\mathbf{v}=\mathbf{0}\), giving \(\mathbf{v}_1 = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\1\end{pmatrix}\). For \(\lambda_2=3\): \(\mathbf{v}_2 = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\-1\end{pmatrix}\).
Example 2: An Indefinite Form
Consider \(Q(x_1, x_2) = x_1^2 - 6x_1 x_2 + x_2^2\). The matrix is:
Characteristic equation: \((1-\lambda)^2 - 9 = 0 \implies \lambda^2 - 2\lambda - 8 = 0\).
Example 2: Hyperbolic Level Curves
Example 3: Three Dimensions
For \(Q = 2x_1^2 + 2x_2^2 + 2x_3^2 + 2x_1x_2\), the symmetric matrix is:
Common Mistakes
Classification Summary
| Type | Eigenvalue Signs | Level Curves (2D) | \(Q(\mathbf{x})\) for \(\mathbf{x}\neq\mathbf{0}\) |
|---|---|---|---|
| Positive Definite | All \(\lambda_i > 0\) | Ellipses | \(Q > 0\) |
| Pos. Semi-Definite | All \(\lambda_i \ge 0\) | Parallel lines | \(Q \ge 0\) |
| Indefinite | Mixed signs | Hyperbolas | Both signs possible |
| Negative Definite | All \(\lambda_i < 0\) | Ellipses (inverted) | \(Q < 0\) |
| Neg. Semi-Definite | All \(\lambda_i \le 0\) | Parallel lines | \(Q \le 0\) |
Question 1 of 5
What is the symmetric matrix \(A\) associated with the quadratic form \(Q = 3x_1^2 + 8x_1 x_2 + x_2^2\)?
Question 2 of 5
If a \(2\times 2\) symmetric matrix has eigenvalues \(\lambda_1 = 5\) and \(\lambda_2 = -1\), what type is the associated quadratic form?
Question 3 of 5
After diagonalizing \(Q(\mathbf{x}) = \mathbf{x}^T A \mathbf{x}\) via the substitution \(\mathbf{x} = P\mathbf{y}\), the quadratic form becomes:
Question 4 of 5
For \(A = \begin{pmatrix} 4 & 2 \\ 2 & 1 \end{pmatrix}\), the eigenvalues are \(\lambda_1 = 5\) and \(\lambda_2 = 0\). What is the classification of \(\mathbf{x}^T A \mathbf{x}\)?
Question 5 of 5
In the diagonal form \(Q = 7y_1^2 + 3y_2^2\), which principal direction has greater curvature (shorter semi-axis on the level ellipse)?