Cholesky decomposition Created 2026-09-28 Updated 2026-10-25
Every real symmetric matrix that is a positive-definite matrix has a unique Cholesky decomposition , where is a lower triangular matrix with positive diagonal entries.[ref] For a complex Hermitian positive-definite matrix, the corresponding factorization is , with the conjugate transpose and the diagonal of positive and real.[ref] The factorization turns a linear system into two triangular systems.
For example, matching entries in gives
Choose the positive square roots in order: , and . Therefore
The second radicand, , is the scalar Schur complement remaining after eliminating the first variable. A positive diagonal of alone would not guarantee that this quantity is positive; Sylvester's criterion explains the relevant leading principal minors.
Figure 1. . Original exact two-by-two example. Multiplying the displayed lower triangular matrix by its transpose recovers ; forward substitution and backward substitution in a triangular system give for . Details.
For that right-hand side, first use forward substitution to solve : and , so . Then use backward substitution in a triangular system to solve : and , giving . No matrix inverse is required. For several right-hand sides with the same , keep the same factor and repeat only these triangular solves.
Work inside , and take the orthogonal complement for a bilinear form of relative to this ambient space. If , then , so positive definiteness on forces .
Part (a)(iv) therefore gives , with . Choose spanning that complement and use the basis . Symmetry and orthogonality make its Gram matrix
By part (b)(i), . Part (ii) applied to the already positive definite restriction gives . Therefore
For a nonzero vector with ,
This proves positive definiteness on .
Finally says , so the restriction to is positive definite. Induction using all successive positive leading principal minors reaches . Combined with part (ii), this proves Sylvester's criterion in both directions.
The restriction of a positive definite form to each is positive definite. By the spectral theorem for real symmetric matrices, choose an orthogonal matrix such that .
Each , since a basis vector is nonzero. Taking determinants in part (i) gives
because an orthogonal matrix has determinant . Consequently
These determinants are the leading principal minors in Sylvester's criterion.
Write and let denote the risky holdings as fractions of total wealth. The remaining fraction is in the risk-free asset. Consequently their excess expected return is and their variance is . The Cauchy-Schwarz inequality in the inner product defined by gives
Equality with positive excess return holds precisely for , , where . Thus solving determines both the efficient risky direction and the upper capital market line slope. Provided , the normalized market portfolio and its Sharpe ratio are
Here the excess means are , so the required equations are
The leading principal minors of are , and , so Sylvester's criterion verifies positive definiteness and the solution is unique.
Two real symmetric bilinear forms are congruent if an invertible linear map takes one to the other; in matrices, for some invertible . The spectral theorem for real symmetric matrices gives an orthogonal eigenbasis. Rescaling each basis vector with nonzero eigenvalue then reduces any such form to
Sylvester's law of inertia asserts that is independent of the congruence reduction. To prove it, is the greatest dimension of a subspace on which the form is positive definite: the positive coordinate subspace attains it, whereas any subspace of dimension greater than meets the nonpositive coordinate subspace of dimension and therefore cannot be positive definite. Applying the same argument to the negative of the form determines . Then is determined too.
The rank of a quadratic form is , and its signature of a quadratic form is under the signed-difference convention. They determine and hence the congruence class. Counting all pairs with gives
For , exactly two classes have every level set bounded: the positive-definite and negative-definite classes. Their nonempty nonzero levels are ellipsoids, and their zero level is the origin. A degenerate form has an entire null line in its zero level. An indefinite nondegenerate form also has a nonzero isotropic vector, for example the sum of one positive and one negative normalized basis vector, whose scalar multiples make the zero level unbounded.
For the displayed three-dimensional form,
Its leading principal minors are , all positive. Sylvester's criterion makes it positive definite, so the surface is a bounded ellipsoid. Directly, its quadratic expression is
which also proves positivity and boundedness of the unit level.
Use the boundary-orientation convention in which surgery on the unknot gives . The negative continued fraction is
Attach three two-handles to a zero-handle along a chain of unknots, with adjacent linking numbers and framings . Equivalently, take the plumbing of oriented disk bundles over three spheres with Euler numbers . Successive slam-dunk moves change the boundary surgery coefficient to , proving that its oriented boundary is in this convention.
The zero sections are a basis of second homology, and the intersection form is
Its successive leading principal minors are . Equivalently those of are , so Sylvester's criterion proves that is negative definite. This explicitly constructs the required filling.
If lens spaces are instead labeled by positive surgery with its boundary orientation, use the chain with framings , whose coefficient is ; its boundary is orientation-preservingly the positive-surgery , since orientation reversal changes to . Its negative-definite form is . This is only a convention change in the named boundary, and specifies a valid filling in either labeling system.
Apply symmetric Gaussian elimination without row exchanges. At step , let be the leading diagonal entry of the remaining symmetric Schur complement. If , stop and report that is not positive definite. If , use it to eliminate the rest of its row and column. If all steps succeed, this constructs an LDL decomposition
where is unit lower triangular and has positive diagonal.
The test is correct from first principles. If all , then for every nonzero ,
because is invertible. Conversely, if is positive definite, its first pivot is , and completing the square gives
Choosing shows that the Schur complement is positive definite. Induction forces every pivot to be positive. This is also Sylvester's criterion.
At step , updating the remaining matrix costs arithmetic operations. Hence the total is
which proves the existence of the required algorithm.
A Hermitian form is conjugate-linear in its first argument, linear in its second, and satisfies . For , the hypothesis says . The complex polarization identity
therefore gives for all .
The displayed matrix is Hermitian. By Sylvester's criterion, its leading principal minors are
Hence the form is
The displayed simply-laced tree has arms of lengths , , and from its trivalent vertex, so it is the finite type Coxeter graph. Its Gram matrix is the Cartan matrix, which has positive leading principal minors in a leaf-removal ordering and determinant . By Sylvester's criterion it is positive definite. It is therefore positive semidefinite and nondegenerate as well: the three answers are yes, yes, and yes.
For , is real symmetric. Sylvester's criterion says that all eigenvalues are positive exactly when its leading principal matrix minors are positive. These are , , and . Therefore
At either endpoint one eigenvalue is zero, so the strict positivity requirement excludes it.
For a real symmetric matrix , completing the square gives, when ,
Thus is a positive-definite matrix exactly when and . For necessity, test first, then ; for sufficiency, the displayed two positive squares give the result. These are the first two leading principal minors in Sylvester's criterion. A positive determinant alone is insufficient: has determinant but is a negative-definite matrix.
The eigenvalues provide an equivalent test under the same real-symmetric hypothesis:
The spectral theorem for real symmetric matrices supplies coordinates in an orthonormal basis in which . More generally, a complex Hermitian matrix has an orthonormal eigenbasis and , so it is a Hermitian positive-definite matrix exactly when every eigenvalue is positive. This is a short proof outline: test the eigenvectors for necessity, and sum the positive squared absolute values for sufficiency.[ref]
For a real positive semidefinite matrix, the condition is instead for all vectors, equivalent here to , , and . If , the same completing the square proves this; if , nonnegativity forces and leaves with . Merely replacing the strict inequalities on the leading principal minors by nonstrict ones fails: has both leading principal minors zero yet gives . An indefinite quadratic form takes both positive and negative values; its real symmetric matrix has eigenvalues of both signs.