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]
DPOTRF (LAPACK 3.12.1) by LAPACK project. DPOTRF, LAPACK 3.12.1: Purpose, lower-triangular factorization; UPLO and INFO argument documentation
For a complex Hermitian positive-definite matrix, the corresponding factorization is , with the conjugate transpose and the diagonal of positive and real.[ref]ZPOTRF (LAPACK 3.12.1) by LAPACK project. ZPOTRF, LAPACK 3.12.1: Purpose, Hermitian factorization with conjugate transpose
The factorization turns a linear system into two triangular systems.For example, matching entries in givesChoose the positive square roots in order: , and . ThereforeThe 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.
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.
Leading principal minor 2026-10-18
A leading principal minor is a principal minor using the first rows and columns of a square matrix in a specified ordering. Sylvester's criterion uses these minors to characterize positive-definite matrices.
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 matrixBy part (b)(i), . Part (ii) applied to the already positive definite restriction gives . ThereforeFor 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) givesbecause an orthogonal matrix has determinant . ConsequentlyThese determinants are the leading principal minors in Sylvester's criterion.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 35 1 b Solution Created 2026-10-03 Updated 2026-10-14
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 givesEquality 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 areHere the excess means are , so the required equations areThe leading principal minors of are , and , so Sylvester's criterion verifies positive definiteness and the solution is unique.
Past exam of the mathematics course of the University of Cambridge 2009 ib Paper 4 10G Solution Created 2026-09-24 Updated 2026-10-14
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 toSylvester'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 givesFor , 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 iswhich also proves positivity and boundedness of the unit level.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 20 1 iv Solution Created 2026-10-03 Updated 2026-10-14
Use the boundary-orientation convention in which surgery on the unknot gives . The negative continued fraction isAttach 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 isIts 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.
Past exam of the mathematics course of the University of Cambridge 2021 ib Paper 1 5B Solution Created 2026-09-24 Updated 2026-09-25
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 decompositionwhere 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 givesChoosing 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 iswhich proves the existence of the required algorithm.
Past exam of the mathematics course of the University of Cambridge 2022 ib Paper 4 1F Solution Created 2026-09-23 Updated 2026-09-25
A Hermitian form is conjugate-linear in its first argument, linear in its second, and satisfies . For , the hypothesis says . The complex polarization identitytherefore gives for all .
The displayed matrix is Hermitian. By Sylvester's criterion, its leading principal minors areHence the form is
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 111 2 a 2 Solution Created 2026-09-24 Updated 2026-09-25
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.
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2008 Paper 2 16 b ii Solution Created 2026-10-18 Updated 2026-10-20
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 . ThereforeAt either endpoint one eigenvalue is zero, so the strict positivity requirement excludes it.
Two-by-two positive-definiteness test 2026-10-14
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]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. Appendix A.5.2, pp. 646–647: symmetric eigenvalue decomposition and definiteness
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.
