No history yet

Introduction to Cholesky Decomposition

A Special Kind of Factorization

Breaking down complex things into simpler parts is a powerful problem-solving technique. In linear algebra, we do this with matrix factorization. You've already seen LU decomposition, which splits a matrix into lower and upper triangular forms. Now, let's explore a more specialized and highly efficient method: Cholesky decomposition.

This method was developed by French military officer and mathematician André-Louis Cholesky in the early 20th century. He was working on surveying problems for the French army and needed a faster, more stable way to solve systems of linear equations. His solution was a clever factorization that works wonders on a specific, but very common, type of matrix.

The Cholesky Formula

Cholesky decomposition applies to matrices that are Hermitian and positive-definite. For now, just know these are special square matrices with properties that make them well-behaved. If a matrix AA meets these criteria, we can decompose it into the product of a lower triangular matrix LL and its conjugate transpose LL^*. If the matrix AA contains only real numbers, it must be symmetric and positive-definite, and the decomposition simplifies to A=LLTA = LL^T, where LTL^T is the regular transpose of LL.

A=LLA = LL^*

The matrix LL is like the "square root" of the matrix AA. Just as you can factor 16 into 4×44 \times 4, you can factor a suitable matrix AA into LL times its own transpose. A key property is that if we require the diagonal entries of LL to be positive, this decomposition is unique.

Cholesky vs. LU Decomposition

So why use Cholesky decomposition when a more general method like LU decomposition exists? It comes down to efficiency and stability.

FeatureCholesky DecompositionLU Decomposition
Matrix TypeHermitian, positive-definiteMost square matrices
SpeedRoughly twice as fastSlower
StabilityNumerically stableMay require pivoting for stability
FormulaA=LLA = LL^*A=LUA = LU

When you know your matrix is Hermitian and positive-definite, choosing Cholesky is a clear win. It requires about half the arithmetic operations of LU decomposition, making it significantly faster for large matrices. It's also inherently stable, meaning we don't need to worry about the complex process of pivoting that is sometimes required to make LU decomposition reliable.

An Example

Let's see how it works with a simple symmetric matrix AA. We want to find a lower triangular matrix LL such that A=LLTA = LL^T.

A=(4121245)A = \begin{pmatrix} 4 & 12 \\ 12 & 45 \end{pmatrix}

We are looking for a matrix LL of the form:

L=(L110L21L22)L = \begin{pmatrix} L_{11} & 0 \\ L_{21} & L_{22} \end{pmatrix}

Now, we set up the equation A=LLTA = LL^T.

(4121245)=(L110L21L22)(L11L210L22)\begin{pmatrix} 4 & 12 \\ 12 & 45 \end{pmatrix} = \begin{pmatrix} L_{11} & 0 \\ L_{21} & L_{22} \end{pmatrix} \begin{pmatrix} L_{11} & L_{21} \\ 0 & L_{22} \end{pmatrix}

By multiplying the matrices on the right side, we get a system of equations:

(4121245)=(L112L11L21L11L21L212+L222)\begin{pmatrix} 4 & 12 \\ 12 & 45 \end{pmatrix} = \begin{pmatrix} L_{11}^2 & L_{11}L_{21} \\ L_{11}L_{21} & L_{21}^2 + L_{22}^2 \end{pmatrix}

We can now solve for the elements of LL one by one.

From the top-left element: L112=4L_{11}^2 = 4, so L11=2L_{11} = 2.

From the top-right element: L11L21=12L_{11}L_{21} = 12. Since we know L11=2L_{11} = 2, we have 2L21=122L_{21} = 12, which gives L21=6L_{21} = 6.

Finally, from the bottom-right element: L212+L222=45L_{21}^2 + L_{22}^2 = 45. We know L21=6L_{21} = 6, so 62+L222=456^2 + L_{22}^2 = 45. This simplifies to 36+L222=4536 + L_{22}^2 = 45, or L222=9L_{22}^2 = 9, which means L22=3L_{22} = 3.

We've found our matrix LL.

L=(2063)L = \begin{pmatrix} 2 & 0 \\ 6 & 3 \end{pmatrix}

This systematic process allows us to decompose a matrix efficiently, providing a powerful tool for solving systems of linear equations and other computational problems.