Skip to content
Feb 24

Linear Algebra: Quadratic Forms

MT
Mindli Team

AI-Generated Content

Linear Algebra: Quadratic Forms

Quadratic forms are not just abstract algebraic expressions; they are the fundamental mathematical language for describing energy in mechanical systems, optimization landscapes in machine learning, and the shape of surfaces in computer graphics. Mastering them provides you with the tools to analyze stability, classify geometric objects, and solve complex engineering optimization problems by translating a multi-variable quadratic expression into the powerful framework of matrix algebra.

What is a Quadratic Form?

A quadratic form is a homogeneous polynomial of degree two in variables, where "homogeneous" means every term has the same total degree (two). For two variables and , it looks like . The key is that there are no linear terms (like ) or constant terms. In variables , it is a sum where each term is of the form .

The power of linear algebra comes from representing this polynomial compactly. Every quadratic form can be uniquely expressed as , where is a column vector of the variables and is a symmetric matrix (). For example, the form is written with and . Notice how the coefficient 3 of the cross-term is split equally to make the matrix symmetric: . This symmetric representation is crucial for all subsequent analysis.

Classifying Quadratic Forms: Definiteness

The classification of a quadratic form is based on the sign of its output for all non-zero input vectors . This definiteness tells you about the "shape" of the associated surface.

  • Positive Definite: for all . Graphically, this corresponds to an upward-opening paraboloid or ellipsoid. Its matrix has all positive eigenvalues.
  • Positive Semidefinite: for all , and there exists some where . The surface is like a parabolic cylinder or a "bowl" that is flat along certain directions. has all non-negative eigenvalues, with at least one being zero.
  • Negative Definite/Semidefinite: The opposites of the above, with all outputs negative (or non-positive). The matrix has all negative (or non-positive) eigenvalues.
  • Indefinite: takes on both positive and negative values. This describes a hyperbolic paraboloid (a saddle surface). Its matrix has both positive and negative eigenvalues.

In engineering, positive definiteness is a hallmark of stable equilibrium in physical systems (e.g., the stiffness matrix in structural analysis), while an indefinite Hessian matrix in optimization indicates a saddle point, not a local minimum.

Diagonalization: Completing the Square and the Principal Axis Theorem

To simplify and analyze a quadratic form, we seek to eliminate the cross-terms. This process is the multivariate generalization of completing the square. Algebraically, it involves a change of variable to transform into , where is a diagonal matrix.

This is formalized by the Principal Axis Theorem. It states that for any real symmetric matrix , there exists an orthogonal matrix (whose columns are orthonormal eigenvectors of ) such that , where is a diagonal matrix of the eigenvalues of . The new variables represent the coordinates along the principal axes of the quadratic surface. This theorem is the spectral theorem in action and is the most robust, systematic method for diagonalization.

The signature of a quadratic form is a compact summary of its defineness, given as a triple , where is the number of positive eigenvalues, is the number of zero eigenvalues, and is the number of negative eigenvalues. For a matrix, a signature of means positive definite, means indefinite (a saddle), and means positive semidefinite.

Key Applications: Optimization and Conic Sections

The diagonalization process directly enables two major applications.

First, in multivariable optimization, the Hessian matrix of second derivatives is a symmetric matrix defining a quadratic form. The definiteness of this Hessian at a critical point determines the nature of that point: a local minimum if positive definite, a local maximum if negative definite, and a saddle point if indefinite. This is the essence of the second derivative test for functions of several variables.

Second, quadratic forms are used to classify conic sections and quadric surfaces. The general equation for a conic has a quadratic part represented by a matrix. By diagonalizing this matrix (rotating the axes to eliminate the term via the Principal Axis Theorem), you can easily identify the conic as an ellipse, hyperbola, or parabola based on the signs of the eigenvalues (the signature). This extends to 3D for classifying surfaces like ellipsoids, hyperboloids, and paraboloids, which is vital in computer vision and geometric modeling.

Common Pitfalls

  1. Forgetting to Symmetrize the Matrix: A common error is writing the matrix directly from coefficients without splitting cross-terms. For , the incorrect matrix is . The correct, symmetric matrix is . Only the symmetric representation guarantees real eigenvalues and orthogonal eigenvectors, which all major theorems require.
  1. Confusing "Positive" with "Positive Definite": A matrix can have all positive entries yet be indefinite. Definiteness is a property of the eigenvalues, not the entries. For example, has positive entries but eigenvalues and , making it indefinite. Always test using eigenvalues, determinants of leading principal minors, or reliable numerical methods.
  1. Misapplying the 2x2 Determinant Test for Larger Matrices: For a symmetric matrix , if , it's either positive or negative definite. You must check to decide which. For larger matrices, this simple rule fails. You must check that all leading principal minors are positive for positive definiteness (Sylvester's criterion) or find the eigenvalues.
  1. Ignoring the Orthogonal Transformation in the Principal Axis Theorem: The theorem states you can use an orthogonal (a rotation/reflection) to diagonalize a real symmetric matrix. This preserves the geometry (lengths and angles) while aligning the axes. Using a non-orthogonal (from other decompositions like LU) will change the shape of the quadratic surface, defeating the purpose of geometric analysis.

Summary

  • A quadratic form is a degree-2 polynomial that can be uniquely written as where is a symmetric matrix.
  • Forms are classified by definiteness—positive definite, semidefinite, indefinite, etc.—based on the signs of their outputs or, equivalently, the eigenvalues of .
  • Completing the square is generalized by the Principal Axis Theorem, which states a real symmetric matrix can be orthogonally diagonalized, eliminating cross-terms and revealing the signature .
  • These tools are essential for executing the second derivative test in multivariable optimization and for classifying conic sections and quadric surfaces by diagonalizing the associated quadratic form matrix.

Write better notes with AI

Mindli helps you capture, organize, and master any subject with AI-powered summaries and flashcards.