Tutorials › Linear Algebra › Why Positive Definite Matrices Have Cholesky Factors

Quadratic Forms and Definiteness · Tutorial 770 of 1000

Why Positive Definite Matrices Have Cholesky Factors

See why positive definiteness guarantees a unique upper-triangular factor with positive diagonal, and follow the induction that establishes it.

Advanced 11 min read

What You'll Learn

  • State the Cholesky factorization theorem and its hypotheses
  • Prove existence by reducing the problem to a smaller positive definite matrix
  • Prove uniqueness by showing the entries of the factor are forced
  • Explain why a positive-diagonal triangular factor produces a positive definite matrix
  • Verify exact factorizations and identify a failure when positive definiteness is absent

The Factorization We Want to Explain

A real symmetric positive definite matrix describes a quadratic form that is strictly positive in every nonzero direction. Such a matrix can also be written as a product \(R^{\top}R\), where \(R\) is upper triangular and has positive diagonal entries. This factorization is useful because it expresses the quadratic form as a sum of squares after a change of variables. The central questions here are why such a factor always exists and why the positivity condition on the diagonal makes it unique.

Throughout, matrices and vectors are real, and vectors are columns. A matrix \(\mathbf{A}\in\mathbb{R}^{n\times n}\) is symmetric if \(\mathbf{A}^{\top}=\mathbf{A}\). It is positive definite if \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}>0\) for every nonzero \(\mathbf{x}\in\mathbb{R}^n\). An upper-triangular matrix has all entries below its main diagonal equal to zero. We seek an upper-triangular \(\mathbf{R}\) for which \(\mathbf{A}=\mathbf{R}^{\top}\mathbf{R}\), with every diagonal entry of \(\mathbf{R}\) strictly positive.

Theorem (Cholesky factorization): For every real symmetric positive definite matrix \(\mathbf{A}\in\mathbb{R}^{n\times n}\), there exists exactly one upper-triangular matrix \(\mathbf{R}\in\mathbb{R}^{n\times n}\) with positive diagonal entries such that \(\mathbf{A}=\mathbf{R}^{\top}\mathbf{R}\).

The theorem has two distinct parts. Existence says at least one such factor can be constructed. Uniqueness says that once we require an upper-triangular factor with positive diagonal, no other factor can work. We prove both by induction on the matrix size. The key step is that a certain smaller matrix—the Schur complement of the top-left entry—remains positive definite.

Why the Smaller Matrix Stays Positive Definite

Write a symmetric matrix in block form, separating its first row and column:

$$ \mathbf{A}= \begin{bmatrix} a&\mathbf{b}^{\top}\\ \mathbf{b}&\mathbf{C} \end{bmatrix}. $$

Here \(a\) is a real number, \(\mathbf{b}\in\mathbb{R}^{n-1}\) is a column, and \(\mathbf{C}\in\mathbb{R}^{(n-1)\times(n-1)}\) is symmetric. If \(\mathbf{A}\) is positive definite, then \(a>0\): evaluate its quadratic form at the first standard basis vector \(\mathbf{e}_1\) to get \(\mathbf{e}_1^{\top}\mathbf{A}\mathbf{e}_1=a>0\). We can therefore form the matrix

$$ \mathbf{S}=\mathbf{C}-\frac{1}{a}\mathbf{b}\mathbf{b}^{\top}. $$

This is the Schur complement of the scalar block \(a\). Its significance is not merely that it is smaller: it is itself symmetric positive definite.

Lemma: If \(\mathbf{A}\) is real symmetric positive definite and is partitioned as above, then \(\mathbf{S}=\mathbf{C}-\frac{1}{a}\mathbf{b}\mathbf{b}^{\top}\) is real symmetric positive definite.

Proof. The matrix \(\mathbf{S}\) is symmetric because \(\mathbf{C}\) and \(\mathbf{b}\mathbf{b}^{\top}\) are symmetric. Let \(\mathbf{y}\in\mathbb{R}^{n-1}\) be nonzero and define \(\mathbf{x}\in\mathbb{R}^{n}\) by \(\mathbf{x}=(-\mathbf{b}^{\top}\mathbf{y}/a,\mathbf{y})^{\top}\), meaning that its first coordinate is \(-\mathbf{b}^{\top}\mathbf{y}/a\) and its remaining coordinates are \(\mathbf{y}\). Since \(\mathbf{y}\ne\mathbf{0}\), we have \(\mathbf{x}\ne\mathbf{0}\). Direct expansion gives

$$ \begin{aligned} \mathbf{x}^{\top}\mathbf{A}\mathbf{x} &=a\left(-\frac{\mathbf{b}^{\top}\mathbf{y}}{a}\right)^2 +2\left(-\frac{\mathbf{b}^{\top}\mathbf{y}}{a}\right)\mathbf{b}^{\top}\mathbf{y} +\mathbf{y}^{\top}\mathbf{C}\mathbf{y}\\ &=\mathbf{y}^{\top}\mathbf{C}\mathbf{y} -\frac{(\mathbf{b}^{\top}\mathbf{y})^2}{a}\\ &=\mathbf{y}^{\top}\left(\mathbf{C}-\frac{1}{a}\mathbf{b}\mathbf{b}^{\top}\right)\mathbf{y} =\mathbf{y}^{\top}\mathbf{S}\mathbf{y}. \end{aligned} $$

Positive definiteness of \(\mathbf{A}\) gives \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}>0\), so \(\mathbf{y}^{\top}\mathbf{S}\mathbf{y}>0\) for every nonzero \(\mathbf{y}\). This is precisely positive definiteness of \(\mathbf{S}\). \(\square\)

The choice of the first coordinate of \(\mathbf{x}\) cancels the terms involving \(\mathbf{b}\) in the quadratic form. What remains is exactly the quadratic form of \(\mathbf{S}\). This cancellation is what makes induction possible: a positive definite problem of size \(n\) produces a positive definite problem of size \(n-1\).

Proof of Existence and Uniqueness

We now prove the theorem by induction on \(n\). For \(n=1\), a positive definite matrix consists of a single entry \(a>0\). Its factor is the one-entry matrix \([\sqrt{a}]\), where \(\sqrt{a}\) is the positive square root. It is the only positive one-entry factor whose square is \(a\).

Suppose the theorem holds for matrices of size \(n-1\), and let \(\mathbf{A}\) be a real symmetric positive definite matrix of size \(n\). Partition it as above. We have \(a>0\), and the lemma shows that \(\mathbf{S}\) is symmetric positive definite. By the induction hypothesis there is a unique upper-triangular \(\mathbf{Q}\) with positive diagonal such that \(\mathbf{S}=\mathbf{Q}^{\top}\mathbf{Q}\). Define

$$ \mathbf{R}= \begin{bmatrix} \sqrt{a}&\mathbf{b}^{\top}/\sqrt{a}\\ \mathbf{0}&\mathbf{Q} \end{bmatrix}. $$

The matrix \(\mathbf{R}\) is upper triangular, and its diagonal entries are positive because \(\sqrt{a}>0\) and the diagonal entries of \(\mathbf{Q}\) are positive. Multiplying the blocks gives

$$ \begin{aligned} \mathbf{R}^{\top}\mathbf{R} &= \begin{bmatrix} \sqrt{a}&\mathbf{0}^{\top}\\ \mathbf{b}/\sqrt{a}&\mathbf{Q}^{\top} \end{bmatrix} \begin{bmatrix} \sqrt{a}&\mathbf{b}^{\top}/\sqrt{a}\\ \mathbf{0}&\mathbf{Q} \end{bmatrix}\\ &= \begin{bmatrix} a&\mathbf{b}^{\top}\\ \mathbf{b}&\mathbf{b}\mathbf{b}^{\top}/a+\mathbf{Q}^{\top}\mathbf{Q} \end{bmatrix}\\ &= \begin{bmatrix} a&\mathbf{b}^{\top}\\ \mathbf{b}&\mathbf{b}\mathbf{b}^{\top}/a+\mathbf{S} \end{bmatrix} =\mathbf{A}. \end{aligned} $$

This proves existence. For uniqueness, suppose \(\mathbf{U}\) is another upper-triangular factor with positive diagonal and \(\mathbf{U}^{\top}\mathbf{U}=\mathbf{A}\). Partition it as \(\mathbf{U}=\begin{bmatrix}u&\mathbf{w}^{\top}\\\mathbf{0}&\mathbf{V}\end{bmatrix}\), where \(u>0\), \(\mathbf{V}\) is upper triangular with positive diagonal, and \(\mathbf{w}\in\mathbb{R}^{n-1}\). Comparing the top-left entries of \(\mathbf{U}^{\top}\mathbf{U}=\mathbf{A}\) gives \(u^2=a\), and positivity forces \(u=\sqrt{a}\). Comparing the top-right blocks gives \(u\mathbf{w}^{\top}=\mathbf{b}^{\top}\), so \(\mathbf{w}=\mathbf{b}/\sqrt{a}\). Finally, comparing the bottom-right blocks gives

$$ \mathbf{V}^{\top}\mathbf{V} =\mathbf{C}-\mathbf{w}\mathbf{w}^{\top} =\mathbf{C}-\frac{1}{a}\mathbf{b}\mathbf{b}^{\top} =\mathbf{S}. $$

By the uniqueness part of the induction hypothesis, \(\mathbf{V}=\mathbf{Q}\). Thus every block of \(\mathbf{U}\) equals the corresponding block of \(\mathbf{R}\), so \(\mathbf{U}=\mathbf{R}\). This proves uniqueness at size \(n\). The base case and induction step establish both existence and uniqueness for every positive integer \(n\). \(\square\)

What the Factor Says About the Quadratic Form

The factorization also explains the connection between a matrix and its quadratic form. For every \(\mathbf{x}\in\mathbb{R}^n\), associativity of matrix multiplication gives

$$ \mathbf{x}^{\top}\mathbf{A}\mathbf{x} =\mathbf{x}^{\top}\mathbf{R}^{\top}\mathbf{R}\mathbf{x} =(\mathbf{R}\mathbf{x})^{\top}(\mathbf{R}\mathbf{x}) =\|\mathbf{R}\mathbf{x}\|^2. $$

Here \(\|\mathbf{z}\|^2=\mathbf{z}^{\top}\mathbf{z}\) is the squared Euclidean norm. If \(\mathbf{x}\ne\mathbf{0}\), then \(\mathbf{R}\mathbf{x}\ne\mathbf{0}\): starting with the last row of \(\mathbf{R}\mathbf{x}=\mathbf{0}\), its positive diagonal entry forces \(x_n=0\); the preceding row then forces \(x_{n-1}=0\), and continuing upward forces every coordinate to be zero. Therefore \(\|\mathbf{R}\mathbf{x}\|^2>0\) whenever \(\mathbf{x}\ne\mathbf{0}\).

Converse: If \(\mathbf{R}\in\mathbb{R}^{n\times n}\) is upper triangular with positive diagonal, then \(\mathbf{R}^{\top}\mathbf{R}\) is symmetric positive definite.

Proof. The matrix \(\mathbf{R}^{\top}\mathbf{R}\) is symmetric since \((\mathbf{R}^{\top}\mathbf{R})^{\top}=\mathbf{R}^{\top}\mathbf{R}\). For nonzero \(\mathbf{x}\), the row-by-row argument above shows \(\mathbf{R}\mathbf{x}\ne\mathbf{0}\). Hence \(\mathbf{x}^{\top}\mathbf{R}^{\top}\mathbf{R}\mathbf{x}=(\mathbf{R}\mathbf{x})^{\top}(\mathbf{R}\mathbf{x})>0\). This is the definition of positive definiteness. \(\square\)

Together, the theorem and its converse give an exact characterization: a real symmetric matrix is positive definite if and only if it can be written as \(\mathbf{R}^{\top}\mathbf{R}\) with \(\mathbf{R}\) upper triangular and positive on the diagonal. The uniqueness assertion applies to this specified form and diagonal condition; without those conditions, other matrix factorizations need not be unique.

Worked Factors and Checks

Worked Example: The One-Dimensional Base Case

Let \(\mathbf{A}=[25]\). For a scalar \(x\ne0\), \(x^{\top}\mathbf{A}x=25x^2>0\), so \(\mathbf{A}\) is positive definite. Its Cholesky factor is the one-entry upper-triangular matrix \(\mathbf{R}=[5]\), since its diagonal entry is positive and

$$ \mathbf{R}^{\top}\mathbf{R}=[5][5]=[25]=\mathbf{A}. $$

If a one-entry factor is \([r]\) with \(r>0\), then \(r^2=25\). The positive solution is \(r=5\), confirming uniqueness in this case.

Worked Example: A Two-by-Two Factor

Consider \(\mathbf{A}=\begin{bmatrix}9&6\\6&13\end{bmatrix}\). The upper-triangular matrix \(\mathbf{R}=\begin{bmatrix}3&2\\0&3\end{bmatrix}\) has positive diagonal. Check the factorization by multiplying:

$$ \mathbf{R}^{\top}\mathbf{R} = \begin{bmatrix}3&0\\2&3\end{bmatrix} \begin{bmatrix}3&2\\0&3\end{bmatrix} = \begin{bmatrix} 3\cdot3+0\cdot0&3\cdot2+0\cdot3\\ 2\cdot3+3\cdot0&2\cdot2+3\cdot3 \end{bmatrix} = \begin{bmatrix}9&6\\6&13\end{bmatrix}. $$

Thus \(\mathbf{A}=\mathbf{R}^{\top}\mathbf{R}\). The converse shows that \(\mathbf{A}\) is positive definite, and the theorem shows that no other upper-triangular factor with positive diagonal can produce it.

Worked Example: Seeing the Induction Step in Three Dimensions

Consider the symmetric matrix \(\mathbf{A}=\begin{bmatrix}4&2&2\\2&5&3\\2&3&6\end{bmatrix}\). Its block data are \(a=4\), \(\mathbf{b}=\begin{bmatrix}2\\2\end{bmatrix}\), and \(\mathbf{C}=\begin{bmatrix}5&3\\3&6\end{bmatrix}\). The Schur complement is

$$ \mathbf{S} = \begin{bmatrix}5&3\\3&6\end{bmatrix} -\frac14 \begin{bmatrix}2\\2\end{bmatrix} \begin{bmatrix}2&2\end{bmatrix} = \begin{bmatrix}5&3\\3&6\end{bmatrix} -\begin{bmatrix}1&1\\1&1\end{bmatrix} = \begin{bmatrix}4&2\\2&5\end{bmatrix}. $$

A factor of this smaller matrix is \(\mathbf{Q}=\begin{bmatrix}2&1\\0&2\end{bmatrix}\), since

$$ \mathbf{Q}^{\top}\mathbf{Q} = \begin{bmatrix}2&0\\1&2\end{bmatrix} \begin{bmatrix}2&1\\0&2\end{bmatrix} = \begin{bmatrix}4&2\\2&5\end{bmatrix} =\mathbf{S}. $$

The induction construction gives \(\mathbf{R}=\begin{bmatrix}2&1&1\\0&2&1\\0&0&2\end{bmatrix}\). Multiplying back checks every entry:

$$ \mathbf{R}^{\top}\mathbf{R} = \begin{bmatrix}2&0&0\\1&2&0\\1&1&2\end{bmatrix} \begin{bmatrix}2&1&1\\0&2&1\\0&0&2\end{bmatrix} = \begin{bmatrix}4&2&2\\2&5&3\\2&3&6\end{bmatrix} =\mathbf{A}. $$

The diagonal entries \(2,2,2\) are positive. By the converse, \(\mathbf{A}\) is positive definite; by the theorem, this upper-triangular factor is the unique one with positive diagonal.

Why the Hypotheses and the Factor Order Matter

Positive definiteness is essential, not a technical detail. For example, let \(\mathbf{B}=\begin{bmatrix}1&2\\2&1\end{bmatrix}\). It is symmetric, but for \(\mathbf{x}=\begin{bmatrix}1\\-1\end{bmatrix}\),

$$ \mathbf{x}^{\top}\mathbf{B}\mathbf{x} = \begin{bmatrix}1&-1\end{bmatrix} \begin{bmatrix}-1\\1\end{bmatrix} =-2<0. $$

So \(\mathbf{B}\) is not positive definite and cannot equal \(\mathbf{R}^{\top}\mathbf{R}\) for an upper-triangular \(\mathbf{R}\) with positive diagonal: the converse would make it positive definite.

A related common mistake is to reverse the factor order and assume that \(\mathbf{R}\mathbf{R}^{\top}\) is the target matrix. For the factor in the three-dimensional example, the wrong multiplication gives

$$ \mathbf{R}\mathbf{R}^{\top} = \begin{bmatrix}6&3&2\\3&5&2\\2&2&4\end{bmatrix}, $$

which is not \(\mathbf{A}\). The factorization proved here is specifically \(\mathbf{A}=\mathbf{R}^{\top}\mathbf{R}\) with \(\mathbf{R}\) upper triangular. Writing the order correctly matters because matrix multiplication is not generally commutative: reversing the factors changes the product.

Check Your Understanding

Use the definition of positive definiteness and the induction argument to justify your answers.

  1. Why must the top-left entry \(a\) of a positive definite matrix be strictly positive?
  2. For a block matrix \(\mathbf{A}=\begin{bmatrix}a&\mathbf{b}^{\top}\\\mathbf{b}&\mathbf{C}\end{bmatrix}\), write its Schur complement of \(a\).
  3. What property of the vector \(\mathbf{x}=(-\mathbf{b}^{\top}\mathbf{y}/a,\mathbf{y})^{\top}\) proves that the Schur complement is positive definite?
  4. Why does the condition of positive diagonal entries force \(u=\sqrt{a}\) in the uniqueness proof?
  5. Explain why any upper-triangular matrix with positive diagonal gives a positive definite product \(\mathbf{R}^{\top}\mathbf{R}\).

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon