Quadratic Form
A quadratic form is a homogeneous polynomial of degree in the coordinates of a vector. Quadratic forms are intimately connected to symmetric bilinear forms: each determines the other (in characteristic ). They arise throughout mathematics -- in optimization, number theory, differential geometry, and physics.
Definition
A quadratic form on a vector space over is a function such that:
- for all , .
- The function is bilinear.
In characteristic , and its associated symmetric bilinear form determine each other via:
(the most general quadratic form on ).
Associated bilinear form: .
Gram matrix: .
- : (positive definite).
- : (indefinite).
- : (indefinite, ).
- : (degenerate, rank ).
. The matrix is:
.
The coefficient of (with ) is , so (half of the coefficient of ) and (half of ).
Classification: positive definite, negative definite, indefinite
A real quadratic form (or its matrix ) is:
- Positive definite if for all .
- Positive semi-definite if for all .
- Negative definite if for all .
- Negative semi-definite if for all .
- Indefinite if takes both positive and negative values.
with .
- Positive definite iff and .
- Negative definite iff and .
- Indefinite iff .
- Semi-definite (degenerate) iff .
Examples:
- : . , . Positive definite.
- : . Indefinite.
- : . Positive semi-definite (but not positive definite).
.
Leading principal minors: , , .
All positive, so is positive definite.
Completing the square
Every real quadratic form can be reduced to a sum of squares (with signs) by a change of variables:
where are linear combinations of and (after further scaling).
.
.
Set , : (sum of two positive squares, so positive definite).
Matrix check: , , . Positive definite ✓.
.
.
Set , , : .
The form has rank (only squares). Signature with rank out of variables, so it is positive semi-definite but degenerate.
.
.
Set , : (indefinite, signature ).
The signature
After diagonalization, where and . Let be the number of positive and the number of negative . The signature of is the pair , with .
By Sylvester's Law of Inertia, the signature is independent of the choice of diagonalization.
- : signature (positive definite).
- : signature (indefinite, the "light cone" form).
- : signature (negative definite).
- : signature (hyperbolic form).
- : on , this has signature and rank (degenerate).
Quadratic forms in applications
The second-order Taylor expansion of at a critical point is:
where is the Hessian matrix. The nature of the critical point depends on the quadratic form :
- positive definite: local minimum.
- negative definite: local maximum.
- indefinite: saddle point.
For at : , eigenvalues . Local minimum ✓.
The conic is classified by the quadratic part :
- : ellipse (or circle if and ).
- : hyperbola.
- : parabola.
(circle): , . (hyperbola): . (parabola): , .
The question "which integers are sums of two squares?" is equivalent to asking for which the equation has integer solutions.
Fermat's theorem: a prime is a sum of two squares iff or .
The form has discriminant . Forms of different discriminants represent different sets of integers. This is the beginning of the theory of binary quadratic forms (Gauss).
The moment of inertia of a rigid body about an axis is , a quadratic form in the direction . The inertia tensor is a positive semi-definite symmetric matrix.
The principal axes are the eigenvectors of , and the principal moments of inertia are the eigenvalues.
For a uniform cube of side and mass : (isotropic), so regardless of the axis direction.
Equivalence of quadratic forms
Two quadratic forms and on are equivalent (over ) if there is an invertible linear change of variables taking one to the other, equivalently if their Gram matrices are congruent: for some invertible .
By Sylvester's Law, real quadratic forms are equivalent iff they have the same rank and signature.
and : both have signature and rank . They are equivalent over (set , : ).
and : both have signature . They are equivalent (set , : ... after scaling, same signature).
and : signatures and . Not equivalent.
Summary
Quadratic forms bridge algebra and geometry:
- Their definiteness classifies critical points in optimization.
- Their signature classifies real quadratic forms up to equivalence (Sylvester).
- In number theory, they determine which integers can be represented.
- In physics, they appear as energy forms, inertia tensors, and metrics.
- The passage from to its associated bilinear form (and back) is the bridge between "self-pairing" and "cross-pairing" data.