Why Factor a Positive Definite Matrix?
A positive definite matrix encodes a strictly positive quadratic form in every nonzero direction. The Cholesky factorization expresses that form using a triangular matrix, making the matrix’s structure explicit and giving a practical way to calculate with it. In multivariate statistics, this factorization is useful when working with covariance matrices and related computations.
The result applies to real symmetric positive definite matrices. Positive definiteness is the condition established in the earlier material on positive definite matrices; here, the focus is what that condition guarantees about a triangular factor.
The lower-triangular convention fixes the position of the zeros: entries above the diagonal of \(L\) are zero. The positive-diagonal condition is also part of the definition, not an optional sign choice. Together these conditions make the factor unique.
Computing the Entries
Write \(A=(a_{ij})\) and \(L=(l_{ij})\). Because \(L\) is lower triangular, the entry in row \(i\), column \(j\) of \(LL^T\) is \[ (LL^T)_{ij}=\sum_{k=1}^{\min(i,j)} l_{ik}l_{jk}. \] Thus, the equation \(A=LL^T\) gives a sequence of equations for the entries of \(L\). On the diagonal, for \(i=1,\ldots,n\),
For \(j>i\), symmetry of \(A\) and the same product give
Solving these equations in increasing column order gives the usual recursive formulas. The diagonal entry \(l_{ii}\) must be positive, so it is the positive square root.
An empty sum, as occurs when \(i=1\), is zero. The formulas show the order of calculation: obtain \(l_{ii}\), then calculate the entries below it in column \(i\). Each square root must have a strictly positive argument, and each divisor \(l_{ii}\) must be nonzero. The existence proof below explains why positive definiteness guarantees that the construction can proceed.
Worked Example: A Two-by-Two Factor
Find the Cholesky factor of
The leading principal minors are \(4>0\) and \(4\cdot3-2\cdot2=8>0\), so the symmetric matrix is positive definite. Write \(L=\begin{pmatrix}l_{11}&0\\l_{21}&l_{22}\end{pmatrix}\). The first diagonal entry is
The entry below it follows from \(a_{21}=l_{21}l_{11}\), so \(l_{21}=2/2=1\). The final diagonal entry is
Therefore
Worked Example: A Three-by-Three Factor
Find the Cholesky factor of
The first column is calculated from \(a_{11}=4\), \(a_{21}=2\), and \(a_{31}=2\):
Next, the second diagonal entry and the entry below it are
The last diagonal entry is
The resulting factor and its product are
For example, the \((3,2)\) entry of the product is \(1\cdot1+1\cdot2=3\), and the \((3,3)\) entry is \(1^2+1^2+1^2=3\). These checks confirm the entries that are easiest to overlook in a hand calculation.
Existence and Uniqueness
The recursive calculations suggest a factor, but by themselves they do not establish that the required square roots are always real and positive. The following theorem supplies that guarantee and proves uniqueness as well.
Proof. We use induction on the matrix dimension \(n\). If \(n=1\), then \(A=(a)\) with \(a>0\), and \(L=(\sqrt{a})\) is the unique one-by-one factor with positive diagonal.
Now let \(n>1\), and suppose the result holds for dimension \(n-1\). Partition \(A\) as
where \(a\) is a scalar, \(c\) is a vector, and \(B\) is symmetric. Since \(A\) is positive definite, its quadratic form at the vector with first coordinate \(1\) and all other coordinates zero gives \(a>0\). Define \(t=\sqrt{a}>0\), \(v=c/t\), and \(C=B-vv^T\).
We first show that \(C\) is positive definite, so the induction hypothesis applies to it. Take any nonzero vector \(y\in\mathbb{R}^{n-1}\) and set \(x=-c^Ty/a\). The vector \((x,y^T)^T\) is nonzero because \(y\ne0\). Expanding its quadratic form gives
The first expression is strictly positive by positive definiteness of \(A\). Hence \(y^TCy>0\) for every nonzero \(y\), and \(C\) is positive definite. By the induction hypothesis, \(C=TT^T\) for a lower-triangular \(T\) with strictly positive diagonal.
Set
This matrix is lower triangular with strictly positive diagonal. Since \(tv=c\) and \(vv^T+TT^T=vv^T+C=B\), multiplication gives
This proves existence. To prove uniqueness, suppose another factor with the required properties is
where \(s>0\) and \(R\) is lower triangular with strictly positive diagonal. From \(A=\widetilde L\widetilde L^T\), the top-left block gives \(s^2=a\), so \(s=t\). The lower-left block gives \(sw=c\), so \(w=v\). The lower-right block then gives \(RR^T=B-vv^T=C\). By the induction hypothesis, \(R=T\). Thus \(\widetilde L=L\), proving uniqueness. \(\square\)
Worked Example: Checking a Factor and Positive Definiteness
Consider
Compute the first column: \(l_{11}=\sqrt{1}=1\), \(l_{21}=2/1=2\), and \(l_{31}=-1/1=-1\). Then
Thus
Direct multiplication checks every entry:
This factor also verifies positive definiteness directly: \(L\) has nonzero diagonal, so \(L^T x\ne0\) for every nonzero \(x\). Therefore \(x^TAx=(L^Tx)^T(L^Tx)>0\) for every nonzero \(x\).
What the Factorization Guarantees
The same calculation proves the converse: if a real square matrix \(A\) can be written as \(LL^T\) for a lower-triangular \(L\) with strictly positive diagonal, then \(A\) is symmetric positive definite. Indeed, \(LL^T\) is symmetric, and a triangular matrix with nonzero diagonal is invertible. Thus, for \(x\ne0\), \(L^Tx\ne0\), and
So, among real symmetric matrices, having a Cholesky factor with positive diagonal is equivalent to being positive definite. The factorization is not just a way to represent such a matrix; it is also a direct certificate of its definiteness.
A common mistake is to omit the positive-diagonal requirement and then claim the factor is unique. For instance, the two different lower-triangular matrices
both produce \(\begin{pmatrix}4&2\\2&3\end{pmatrix}\) when multiplied by their transposes. Their first diagonal entries have opposite signs. Requiring every diagonal entry of \(L\) to be positive removes this sign ambiguity and gives the unique Cholesky factor.
Another mistake is to accept a negative quantity under a square root during the recursive calculation, or to divide by a zero diagonal entry. For a matrix known to be positive definite, the theorem rules out both problems. If either occurs in hand calculations, check the arithmetic, the input matrix, and whether the stated positive definiteness condition actually holds. In numerical work, rounding can also affect small computed quantities, so intermediate values should not be rounded prematurely.
Check Your Understanding
Answer these questions using the definitions and results above.
- What two structural conditions on \(L\) are part of the Cholesky factorization convention?
- For \(A=\begin{pmatrix}9&3\\3&5\end{pmatrix}\), calculate the Cholesky factor and check the product.
- In the induction proof, why is \(B-cc^T/a\) positive definite?
- Why does a lower-triangular factor with strictly positive diagonal certify that \(LL^T\) is positive definite?
- Why does requiring a positive diagonal make the Cholesky factor unique?