Bilinear and Quadratic Forms
A bilinear form is the two-slot generalization of the dot product: a scalar-valued machine that is linear in each argument separately, so once a basis is fixed it becomes a matrix, . Close both slots onto the same vector and you get a quadratic form — a homogeneous degree-two polynomial in the coordinates, the object that appears every time physics writes down an energy, a metric, or a second-order expansion of a potential. These forms sit one layer beyond linear operators, and the difference is not cosmetic: an operator returns a vector, so it transforms by similarity ; a form returns a number, so it transforms by congruence . Getting that one transpose right, or wrong, is the whole game. The deepest fact about real symmetric forms is that congruence has almost nothing to remember. Sylvester's law of inertia says that no matter how you diagonalize — by rotating, shearing, rescaling — the numbers of positive, negative, and zero diagonal entries never change. Those three integers , the signature, are the complete congruence invariant, and they are what make "positive-definite", "Lorentzian", and "indefinite" meaningful adjectives rather than accidents of a chosen basis. Two diagonalization routes coexist: Lagrange's completion of squares, fast and metric-blind, delivering s; and the principal-axis theorem, an orthogonal congruence built from eigenvectors, where congruence and similarity coincide and the diagonal entries are the genuine eigenvalues that set the semi-axes of a quadric. This article grounds the algebra, proves the law, and shows why one invariant decides whether an equilibrium is stable, a conic is an ellipse, or a spacetime is causal.
- A bilinear form is linear in each slot, ; its diagonal restriction is a quadratic form, and only the symmetric part of survives.
- Forms transform by congruence , not similarity — the two agree only for orthogonal .
- Sylvester's law of inertia: the counts of positive, negative, and zero squares are congruence-invariant; the signature classifies a real form completely.
- Positive-definiteness is equivalent to all eigenvalues positive, all leading principal minors positive (Sylvester's criterion), and a Cholesky factorization .
- The principal-axis theorem diagonalizes by an orthogonal congruence from the eigenvectors of , giving while preserving lengths and angles.
- Signature is the physics: it fixes stability of equilibria, the shape of conics and quadrics, and the Riemannian-versus-Lorentzian character of a metric.
- Key idea: A quadratic form is a symmetric matrix viewed through congruence rather than similarity; its only real invariants are the eigenvalue signs (the signature), and diagonalizing it means either completing squares (Lagrange) or rotating to principal axes (spectral theorem).
A quadratic form is a symmetric matrix viewed through congruence rather than similarity; its only real invariants are the eigenvalue signs — the signature — and diagonalizing it means either completing squares (Lagrange) or rotating to principal axes (the spectral theorem).
Where this lives today
Quadratic forms are the daily arithmetic of computational physics. Every second-order optimization method — Newton's method, trust-region and interior-point solvers behind machine learning and structural design — tests the Hessian's signature at each step to tell a minimum from a saddle, and factors it by Cholesky when positive-definite. Molecular and lattice dynamics diagonalize the mass-weighted Hessian to extract normal-mode frequencies ; an imaginary frequency — a negative eigenvalue, a defect in the signature — flags a transition state or a soft phonon mode that triggers a phase transition. In numerical relativity the signature is monitored as a hard constraint, since a code that drifts to the wrong signature has lost causal structure. Statistics leans on the same object: a covariance matrix is a positive-semidefinite form, and principal component analysis is its principal-axis decomposition. And in convex optimization, semidefinite programming optimizes directly over the cone of positive-semidefinite matrices, making Sylvester's classification the geometry a solver navigates in real time.
The physical picture
Picture a quadratic form as a landscape over the vector space: at each point the height is . Because is homogeneous of degree two, doubling quadruples the height, so the entire shape is encoded in one level set : a conic in the plane, a quadric in space. It is an ellipse if the bowl opens upward in every direction, a hyperbola if it climbs some ways and falls others, a straight-walled trough if it is flat along a direction where vanishes. The eigenvectors of point along the principal axes and the eigenvalues are the reciprocal squared semi-axes, signs included. Sylvester's law says you may shear and rescale the picture however you like but can never turn a bowl into a saddle: the tally of upward versus downward directions is fixed.
The reason a form obeys while an operator obeys is pure index bookkeeping. A form carries two lower (covariant) indices , so a basis change contracts onto both slots and appears twice, once transposed; an operator carries one upper and one lower index , so appears once with its inverse. The two collapse into one only for orthogonal — exactly what the principal-axis theorem exploits: rotate to the eigenvectors of , the cross terms vanish, the diagonal entries become the true eigenvalues, and the metric is untouched. The second figure makes that rotation concrete.
The core equations
A bilinear form is defined by one property: linearity in each argument with the other held fixed. Everything algebraic follows from squeezing that into a basis.
where: — the bilinear form, a map ; — vectors in ; — scalars in the field . Reading: fixing one slot and varying the other reproduces ordinary linearity, so is determined by its action on a basis. Fixing a basis , bilinearity forces into a matrix sandwich. The entries form the Gram matrix, and every evaluation is a double sum over coordinates.
where: — Gram matrix of in the basis ; — coordinate column vectors of the two arguments. Reading: the two-slot machine and the matrix carry the same information once a basis is chosen. The quadratic form is the diagonal restriction . The antisymmetric part of contributes nothing — is a scalar equal to its own transpose , so it vanishes — so one always symmetrizes, , and takes from the outset.
where: — the quadratic form ; — the symmetric matrix , the only part that survives. Reading: a quadratic form and a symmetric matrix are two names for one object. Under with invertible, both arguments carry a factor of , so the matrix transforms by congruence — note the transpose, not an inverse. This single line is the source of every subtlety that follows.
where: — invertible change-of-basis matrix; — the matrix of the same form in the new coordinates. Reading: for an operator one would instead get (similarity); the two coincide only when , i.e. orthogonal. Sylvester's law of inertia guarantees any real symmetric form can be congruence-diagonalized into a canonical string of , , and — and, crucially, that the three counts are unique.
where: — the numbers of positive, negative, and zero entries, invariant under any congruence; — the signature, with . Reading: this canonical form is unique even though the diagonalizing is wildly non-unique. When the congruence is chosen orthogonal — built from the orthonormal eigenvectors of — congruence and similarity fuse and the diagonal entries become the actual eigenvalues, the principal-axis theorem.
where: — orthogonal matrix whose columns are unit eigenvectors of ; — the real eigenvalues, the principal-axis coefficients. Reading: under the form becomes with the metric preserved. Definiteness has a determinant test needing no eigenvalues: a symmetric is positive-definite exactly when every leading principal minor is positive (Sylvester's criterion), equivalent to the existence of a Cholesky factorization.
where: — the top-left leading principal submatrix; — the unique lower-triangular Cholesky factor with positive diagonal. Reading: nested positive determinants certify definiteness cheaply, and is the constructive witness. Finally, the determinant ties to the signature: nonzero exactly when the form is nondegenerate, its sign counting the negative eigenvalues modulo two.
where: — the discriminant of the form; — the number of negative eigenvalues. Reading: a single determinant already reveals whether an even or odd number of directions "point downward".
The goal is to prove that the signature is a genuine invariant: if a real quadratic form is reduced to a sum and difference of squares in two entirely different ways, the counts of positive and of negative squares must agree, even though the two sets of diagonalizing coordinates need share nothing. This is what licenses us to speak of the signature and to call definiteness coordinate-free; the argument is a clean dimension count that never touches the diagonalizing transformation, only the sign of on well-chosen subspaces.
Step 1. Suppose two invertible changes of coordinate reduce the same form to canonical squares, , the remaining coordinates lying in the radical. The nonzero counts satisfy since rank is basis-independent. Why: congruence preserves rank, so only the split between positive and negative squares is in question.
Step 2. Let be the subspace where the first coordinates have ; there for nonzero , and . Let be the subspace where the second set has ; there , and . Why: each diagonalization hands us a subspace of definite sign whose dimension is one of the counts we compare.
Step 3. These subspaces meet only at the origin: any in would satisfy and at once, impossible unless , so the sum is direct. Why: a number cannot be both strictly positive and nonpositive, so the two subspaces are transverse.
Step 4. A direct sum cannot overflow the space, so , giving . Swapping the two roles gives , hence ; the same argument on fixes the negative count, and follows. So is an invariant of the congruence class. Why: two opposite inequalities force equality, and the whole conclusion rests on dimension counting, not on any explicit transformation. *Why the law bites immediately in : a nondegenerate form with must have signature , since forces the two eigenvalues to have opposite signs regardless of the diagonalizing basis.*
Go deeper · Derivation B · 1 minLagrange reduction by completing the square
The goal is an explicit, eigenvalue-free algorithm that reduces any quadratic form to a weighted sum of squares by a triangular (hence invertible) change of variables, exposing the signature directly, and to see on a worked case why the resulting coefficients are emphatically not the eigenvalues — they merely share the eigenvalues' signs, all Sylvester's law promises. We take and complete the square one variable at a time.
Step 1. Collect every term containing and complete the square: , adding and subtracting . Why: this folds all of 's cross-coupling into one perfect square, isolating a decoupled variable.
Step 2. The bracket is a perfect square, so . Define , : upper-triangular with unit diagonal, hence invertible with determinant . Why: a triangular substitution is automatically an admissible congruence that loses no information.
Step 3. In the new coordinates : one positive and one negative coefficient, so the signature is — indefinite. Rescaling gives the Sylvester normal form . Why: only the coefficient signs are congruence-invariant, so rescaling to loses nothing classification cares about.
Step 4. Cross-check against : , give , the same signs as the Lagrange coefficients but different magnitudes. Why: this is the tangible content of "congruence preserves signs, not values" — completed-square weights and eigenvalues need never coincide. *Why the signs agree: expanding recovers exactly, and the spectrum of carries the same sign pattern as the Lagrange coefficients — the tangible content of congruence preserving signs but not magnitudes.*
Go deeper · Derivation C · 1 minPrincipal axes from the spectral theorem
The goal is to show that for a real symmetric matrix the diagonalizing congruence may be chosen orthogonal, so the same rotation is at once a similarity and a congruence, the diagonal entries are the true eigenvalues, and the Euclidean metric is preserved — the theorem that turns abstract classification into concrete geometry, giving the principal axes and semi-axes of any conic or quadric and the principal moments of any inertia tensor.
Step 1. Eigenvalues are real. From , form , using ; since , is real. Why: real eigenvalues are what make the signature — a count of real signs — well posed.
Step 2. Eigenvectors for distinct eigenvalues are orthogonal: , so and when ; repeated eigenvalues are handled by Gram–Schmidt in each eigenspace. Why: orthogonal eigenvectors let us build an orthogonal, metric-preserving diagonalizer.
Step 3. Assemble the columns into with the orthonormal, so and . The eigenvalue equations bundle into . Why: orthonormal columns make orthogonal, the one case where inverse and transpose agree.
Step 4. Left-multiply by to get — one equation that is at once a similarity and a congruence. Under the form becomes , and since lengths and angles are untouched. Why: this is why the eigenvalues, not arbitrary Lagrange weights, set the true semi-axes — the rotation preserves the metric that measures them. *Why the rotation works: for , is the rotation, , and gives with the unit circle preserved — confirming that the orthogonal congruence is simultaneously a similarity and a metric-preserving rotation.*
Limiting cases
The signature partitions all real symmetric forms into qualitatively distinct regimes; each row below is a physically named class.
| Case | Result | Meaning |
|---|---|---|
| Positive-definite | All eigenvalues positive; a bounded ellipsoid level set and a genuine inner product. Energy and Riemannian metric tensors, stable minima. | |
| Negative-definite | Mirror image; is an inner product. A strict local maximum of a potential. | |
| Indefinite (Lorentzian) | or | Mixed signs; a hyperboloid level set and a light cone . Spacetime metric ; saddle equilibria. |
| Positive-semidefinite (degenerate) | A nontrivial radical where vanishes; the form descends to a definite one on the quotient. Constrained and gauge systems. |
Worked examples
1 · Classify and diagonalize a conic (fully worked)
The curve is a conic. Decide its type, find its principal axes and semi-axes, and remove the cross term.
Step 1. Build the symmetric matrix by splitting the cross term evenly: , the off-diagonal being half the coefficient of — the standard symmetrization.
Step 2. Test definiteness with Sylvester's criterion first: leading minors and . Both positive, so — the form is positive-definite and the conic is a bounded ellipse.
Step 3. Eigenvalues from , : the characteristic equation gives , both positive — confirming Step 2 independently.
Step 4. Eigenvectors: gives , gives . They are orthogonal, as the spectral theorem demands, and is the rotation onto principal axes.
Step 5. In principal coordinates , so the semi-axes are (short, along ) and (long, along ): the larger eigenvalue owns the shorter axis. A positive-definite ellipse, principal axes at 45°, semi-axes 0.378 and 0.577, cross-term-free form .
2 · Positive-definiteness by three routes (fully worked)
Is the Hessian — the discrete Laplacian for a chain of three coupled masses near equilibrium — positive-definite, so the equilibrium is stable?
Step 1. Sylvester's criterion. The three leading principal minors are , , and . The sequence is strictly positive, so — stable.
Step 2. Eigenvalues, for cross-check: this tridiagonal matrix has spectrum , giving . All positive — the same verdict, now with the actual normal-mode stiffnesses.
Step 3. Cholesky, the constructive witness: with , whose positive diagonal squares multiply to . Real positive pivots re-prove definiteness. All three tests agree: , the equilibrium is a strict minimum, and the mode stiffnesses are and .
3 · The Lorentzian metric is congruence-locked
Show that no change of inertial coordinates can turn the spacetime form into a positive-definite one.
Step 1. In coordinates the matrix is , signature .
Step 2. A Lorentz transformation is by definition a congruence that preserves : . By Sylvester's law, any congruence — Lorentz or not — leaves fixed. No basis change can make all four signs agree, so the light cone is an invariant structure and causal order is coordinate-independent.
Physics of the portrait
The classification of quadratic forms is one of the rare corners of physics whose central theorem is named for the mathematician who saw that only the signs survive — and who gave us the words "matrix" and "signature".
Origins · 1 minJames Joseph Sylvester and how this was discovered
James Joseph Sylvester was an English mathematician whose fingerprints are on the very vocabulary of this subject: he coined the word "matrix" in 1850, named the "discriminant", and introduced "signature" for the pair of counts that classify a real form. Barred for decades from an English academic career because, as a Jew, he would not subscribe to the Thirty-Nine Articles required at Cambridge, he took his degree at Trinity College Dublin and worked as an actuary and a barrister before mathematics reclaimed him. In 1852 he stated and proved the law of inertia: that when a real quadratic form is reduced to a sum and difference of squares, the numbers of positive and of negative terms are invariants of the form, independent of how the reduction is done — the theorem that makes "positive-definite" and "Lorentzian" mean something. With his lifelong collaborator Arthur Cayley he founded the theory of algebraic invariants, the two often called the "invariant twins". In 1876, at sixty-two, he crossed the Atlantic to become the first professor of mathematics at the new Johns Hopkins University, where he founded the American Journal of Mathematics, effectively seeding graduate mathematics in America, before returning to England in 1883 as Savilian Professor of Geometry at Oxford. His criterion for positive-definiteness through leading principal minors, and the signature that bears his law, are the working tools every physicist reaches for in asking whether an equilibrium is stable or a metric is Riemannian.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, linear algebra and quadratic forms · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., ch. 3 · Hassani, Mathematical Physics, inner-product spaces and spectral decomposition · Byron & Fuller, Mathematics of Classical and Quantum Physics, ch. 3–4 · Nakahara, Geometry, Topology and Physics, §2 (metric signature) · Horn & Johnson, Matrix Analysis, ch. 4 & 7. Key anchor results: the spectrum of is (from , ), consistent with the completed-square identity ; for the eigenvalues are with semi-axes and ; the discrete-Laplacian leading minors are and its spectrum is ; the inertia proof rests on the dimension count .
Prerequisites. Linear Operators and Matrix Representations · Change of Basis and Similarity Transformations · Eigenvalues, Eigenvectors, and the Characteristic Equation · Inner-Product Spaces and Norms · Determinants and Their Properties. Leads to. Diagonalization and the Spectral Decomposition · Adjoint and Hermitian Operators · Orthogonality and the Gram–Schmidt Process.
Ask the tutor: Bring me any symmetric matrix and I will walk you from its leading minors to its signature, its principal axes, and what that shape means for the physics it encodes.
What is the actual difference between a bilinear form and a linear operator?
Both become matrices once a basis is fixed, so they are easy to confuse, but they are different objects. A linear operator maps a vector to a vector, — one input, one output, i.e. one upper and one lower index. A bilinear form maps two vectors to a scalar, — two inputs, no vector output, i.e. two lower indices. The consequence shows up under a change of basis: an operator's matrix transforms by similarity , while a form's transforms by congruence because both slots carry a factor of . They coincide only when is orthogonal — exactly the situation the principal-axis theorem exploits.
Why can I throw away the antisymmetric part of the matrix?
Because it contributes nothing to the quadratic form. Split with symmetric and antisymmetric. Now is a scalar, so it equals its own transpose: , using — a number equal to its own negative must be zero. So depends only on the symmetric part. This is why one always symmetrizes first: the antisymmetric part is invisible to but would poison every eigenvalue and determinant test that assumes . It is not useless in general — it describes an alternating form, the stuff of symplectic geometry — just not a quadratic form.
How do Lagrange reduction and the principal-axis method relate?
They are two ways to diagonalize the same form, answering different questions. Lagrange reduction (completing the square) uses whatever triangular, non-orthogonal substitution is convenient; it is fast, needs no eigenvalues, and delivers coefficients correct only in sign — you get the signature, nothing more. The principal-axis method uses the orthogonal matrix of eigenvectors; it is more work, but because the transformation is a rotation it preserves lengths and angles, so its diagonal entries are the genuine eigenvalues that set the true semi-axes. Rule of thumb: to classify a form — stable or unstable, ellipse or hyperbola — Lagrange is enough; for the actual geometry — principal axes, semi-axis lengths, normal-mode frequencies — you need the principal-axis route.
What does the signature physically mean?
The signature counts directions by the sign of the form along them. For a potential's Hessian, counts directions of upward curvature (restoring, stable) and downward (runaway, unstable): a positive-definite Hessian is a strict minimum, an indefinite one a saddle. For a metric, the signature separates Riemannian geometry (all-positive) from Lorentzian (one sign flipped, a light cone). For a covariance matrix, signals directions of zero variance — exact linear dependence in the data. In every case the signature is the coordinate-free summary: Sylvester's law guarantees no smooth invertible re-labeling of coordinates can change it.
Why is Cholesky preferred over eigenvalues to test definiteness numerically?
Speed and stability. Computing all eigenvalues of an symmetric matrix is an iterative process costing on the order of operations with a large constant. A Cholesky factorization is a single direct pass, also but roughly a factor of ten cheaper, and it either succeeds — proving positive-definiteness and handing you for free to solve linear systems — or it fails at the first nonpositive pivot, immediately certifying that the matrix is not positive-definite. That failure is itself the test. This is why optimization codes attempt a Cholesky of the Hessian at each iteration: success means "descend confidently, here is the Newton-step factor", failure means "this is a saddle, switch strategies". You get the verdict and the solver's workhorse in one operation.
Is the metric of spacetime really just a quadratic form?
Yes — the Minkowski metric is exactly a quadratic form, and a simple one. The invariant interval has matrix and signature (or in the opposite convention). Special relativity is, algebraically, the study of the linear maps that preserve this form — the Lorentz group, defined by , is nothing but the congruence group of . Sylvester's law makes the theory consistent: no observer's coordinates can change the signature, so the split between "timelike" and "spacelike", and the light cone between them, is absolute. In general relativity the metric becomes a field of quadratic forms, one per tangent space, and the demand that the signature stay everywhere is what makes the spacetime Lorentzian and causality well defined.