Skip to content

Choleski Decomposition

  • Factorizes a symmetric, positive definite matrix A into L · L^T, where L is lower triangular.
  • Produces factors (L and L^T) that make solving Ax = b efficient via forward and backward substitution.
  • Requires A to be symmetric and positive definite.

Choleski decomposition is a numerical method used in linear algebra to decompose a symmetric, positive definite matrix into the product of a lower triangular matrix and its transpose. This decomposition is named after André-Louis Choleski, who first published it in 1918.

Given a symmetric, positive definite matrix A, Choleski decomposition produces a lower triangular matrix L such that:

A=LLTA = L L^{T}

Symmetric means A = A^{T}. Positive definite means that for any non-zero vector x, the scalar xTAxx^{T} A x is positive.

For a 3×3 matrix A, the lower triangular factor L has the form:

L=[l1100l21l220l31l32l33]L = \begin{bmatrix} l_{11} & 0 & 0 \\ l_{21} & l_{22} & 0 \\ l_{31} & l_{32} & l_{33} \end{bmatrix}

The source describes the diagonal elements as the square roots of the diagonal elements of A:

l11=a11,l22=a22,l33=a33.l_{11} = \sqrt{a_{11}},\quad l_{22} = \sqrt{a_{22}},\quad l_{33} = \sqrt{a_{33}}.

The off-diagonal elements are obtained by solving the system of equations:

l11l21+l22l31=a21l11l31+l22l32=a31l11l32+l22l33=a32\begin{aligned} l_{11} \cdot l_{21} + l_{22} \cdot l_{31} &= a_{21} \\ l_{11} \cdot l_{31} + l_{22} \cdot l_{32} &= a_{31} \\ l_{11} \cdot l_{32} + l_{22} \cdot l_{33} &= a_{32} \end{aligned}

The source gives the resulting expressions:

l21=a21l11,l31=a31l21l31l22,l32=a32l21l32l22.l_{21} = \frac{a_{21}}{l_{11}},\quad l_{31} = \frac{a_{31} - l_{21} \cdot l_{31}}{l_{22}},\quad l_{32} = \frac{a_{32} - l_{21} \cdot l_{32}}{l_{22}}.

Once L is obtained, its transpose L^{T} is the upper triangular factor and

A=LLT.A = L L^{T}.

To solve a linear system Ax = b using Choleski decomposition:

  1. Decompose A = L L^{T}.
  2. Solve Ly = b for y using forward substitution.
  3. Solve L^{T} x = y for x using backward substitution.

Example 3×3 matrix A:

A=[521251114]A = \begin{bmatrix} 5 & 2 & 1 \\ 2 & 5 & 1 \\ 1 & 1 & 4 \end{bmatrix}

The lower triangular factor L (as given in the source) is:

L=[500253015134]L = \begin{bmatrix} \sqrt{5} & 0 & 0 \\ \frac{2}{\sqrt{5}} & \sqrt{3} & 0 \\ \frac{1}{\sqrt{5}} & \frac{1}{\sqrt{3}} & \sqrt{4} \end{bmatrix}

The transpose L^{T} is:

LT=[525150313004]L^{T} = \begin{bmatrix} \sqrt{5} & \frac{2}{\sqrt{5}} & \frac{1}{\sqrt{5}} \\ 0 & \sqrt{3} & \frac{1}{\sqrt{3}} \\ 0 & 0 & \sqrt{4} \end{bmatrix}

The decomposition satisfies:

A=LLT=[521251114]A = L L^{T} = \begin{bmatrix} 5 & 2 & 1 \\ 2 & 5 & 1 \\ 1 & 1 & 4 \end{bmatrix}

Solving Ax = b using the decomposition proceeds by first solving:

Ly=bL y = b

(by forward substitution) and then:

LTx=yL^{T} x = y

(by backward substitution).

  • Solving systems of linear equations Ax = b efficiently and accurately by factoring A into L and L^{T}.
  • The decomposition requires A to be symmetric and positive definite.
  • The method yields lower and upper triangular factors (L and L^{T}) that enable forward and backward substitution.
  • Choleski factors (L and L^{T})
  • Lower triangular matrix
  • Symmetric matrix
  • Positive definite matrix
  • Forward substitution
  • Backward substitution