Algebra
Bilinear and quadratic forms
Functions linear in each of two vector arguments, or quadratic in one, used to define lengths and angles.
IntuitionMeasuring shape with two vectors at once
The familiar dot product takes two vectors and returns a number, linearly in each one; a bilinear form is this idea generalized, , allowing the matrix to twist and weight the vectors before combining them. Feeding the same vector into both slots gives a quadratic form , whose level sets trace out ellipses, hyperbolas, or degenerate lines depending on the shape of — the conic sections from school geometry, now in any dimension.
SchoolFrom the dot product to a general bilinear form
Definition: Bilinear and quadratic form
A bilinear form on is a function linear in each argument separately; in coordinates it is always for an matrix . When the form is symmetric, and its associated quadratic form is . Conversely, any quadratic form determines its symmetric bilinear form uniquely via the polarization identity , so we always take to be symmetric.
Changing basis by (with invertible) replaces the matrix not by a similarity , but by a congruence . In a basis where is diagonal, the quadratic form becomes a pure sum of squares , and the counts of positive, negative, and zero coefficients form the signature .
| Type | Signature and geometry |
|---|---|
| Positive definite ( for ) | ; level sets are ellipsoids, graph is an upward bowl |
| Negative definite ( for ) | ; level sets are ellipsoids, graph is a downward dome |
| Indefinite (takes both signs) | and ; level sets are hyperboloids, graph is a saddle |
| Semidefinite / degenerate | ; flat directions where vanishes, level sets become cylinders |
UndergraduateDiagonalization and Sylvester's law of inertia
Every real quadratic form can be reduced by an invertible linear change of variables to a purely diagonal form .
Why is it true?
You do not even need eigenvalues to diagonalize a quadratic form: ordinary high-school completing the square, applied one variable at a time, already absorbs every cross term into a square.
Proof
We proceed by induction on the number of variables ; the case is already a single term .
For , if the entire form is zero there is nothing to do. Otherwise, suppose first that some diagonal coefficient is nonzero; after relabeling variables we may assume . Grouping every term that involves gives plus a quadratic form in alone.
Setting and for is an invertible linear change of variables, and matches all terms involving up to a remainder that depends only on ; hence .
If instead every diagonal entry vanishes ( for all ), pick a nonzero cross term with . The invertible substitution , turns into , creating a nonzero diagonal coefficient and reducing us to the previous case. Applying the induction hypothesis to completes the diagonalization.
No matter which invertible change of basis is used to diagonalize a real quadratic form on , the number of positive coefficients, the number of negative coefficients, and the number of zero coefficients are always the same; the triple is an intrinsic invariant of .
Why is it true?
Switching to a new coordinate system can stretch the axes and change the individual magnitudes of the diagonal numbers , but it can never turn an upward-curving direction into a downward-curving one without passing through a flat direction — so the counts of upward, downward, and flat axes are locked in forever.
Proof
Suppose is diagonalized in two bases and , with positive, negative, and zero counts in the first basis and in the second. Order each basis so the positive coefficients come first, then the negative ones, then the zeros.
Suppose toward a contradiction that . Let , a subspace of dimension on which for every nonzero (since only the positive squares in the -expansion are active on ).
Similarly, let , a subspace of dimension on which for every (since only the negative and zero squares in the -expansion are active on ).
Now count dimensions inside : since , we have . By the dimension formula for subspaces, two subspaces whose dimensions add up to more than cannot have trivial intersection; hence there exists a nonzero vector .
Because and , we must have ; because , we must simultaneously have , an outright contradiction. Therefore , and by symmetry of the two bases , so . Applying the exact same argument to gives , and finally .
UndergraduateReal-World Applications and Worked Examples
Quadratic forms and their signatures decide whether a critical point of a multivariable function is a minimum, maximum, or saddle, and they encode the causal structure of spacetime in special relativity.
Example: Second-derivative test via the Hessian quadratic form
Classify the critical point of by finding the signature of its quadratic form.
Solution
Near the function is already a pure quadratic form with symmetric matrix (note the off-diagonal entry is half the coefficient of ).
Complete the square in : . In the new coordinates , , this is .
There is one positive square () and one negative square (), so the signature is — the form is indefinite. Along the function curves upward like , while along it curves downward like , so is a saddle point, neither a local minimum nor a local maximum.
Example: The Minkowski spacetime interval and causal signature
In special relativity (with ), the spacetime interval between an event and the origin is the quadratic form . Find its signature, and explain via Sylvester's law why every inertial observer agrees on whether two events can be causally connected.
Solution
The form is already diagonal with matrix : one and three entries, so its signature is — indefinite, not positive definite like Euclidean distance.
Events with (timelike separation) lie inside the light cone and can be connected by a signal slower than light; events with (spacelike separation) lie outside and cannot influence each other; events with (lightlike) are connected only by a light ray.
Switching from one inertial observer to another is a linear change of coordinates (a Lorentz transformation) that preserves the form , and by Sylvester's law of inertia the signature — one time direction and three space directions — cannot be altered by any invertible coordinate change. Consequently the sign of is invariant, so every observer agrees on which pairs of events are timelike, spacelike, or lightlike.
What is the symmetric matrix associated with the quadratic form ?
What is the signature of ?
What does Sylvester's law of inertia state when a real quadratic form is diagonalized in two different bases?
If the Hessian matrix of a smooth function at a critical point has quadratic form with signature , what kind of critical point is it?
References
- Roger A. Horn, Charles R. Johnson (2012). Matrix Analysis (2nd ed.)
- Gilbert Strang (2016). Introduction to Linear Algebra