Cholesky Decomposition Calculator

Cholesky Decomposition

Decompose a symmetric positive-definite matrix into a lower triangular matrix.

Last updated: 2026-05-24T22:58:31.700Z | By ForgeCalc Engineering

Lower Triangular Matrix (L):

2.000000
1.00002.00000
0.50000.75001.7854

Verification: A = L·L^T

Product of L and its transpose reconstructs the original matrix

Enter numeric matrix entries; matrix must be symmetric and positive definite.

What is Cholesky Decomposition?

Cholesky decomposition is a matrix factorization technique that decomposes a symmetric positive-definite matrix A into the product of a lower triangular matrix L and its transpose L^T, written as A = L·L^T. This decomposition is useful in solving systems of linear equations, computing determinants, and numerical simulations. It's more efficient than general LU decomposition and is particularly important in computational statistics, physics simulations, and machine learning algorithms.

Formula & Algorithm

Matrix Equation:

A = L·L^T

Computation Algorithm:

For i = 1 to n:

L[i,i] = √(A[i,i] - Σ(L[i,k]²))

For j = i+1 to n:

L[j,i] = (A[j,i] - Σ(L[j,k]·L[i,k])) / L[i,i]

Worked Example

Decompose the 2×2 matrix: A = [[4, 2], [2, 3]]

Step 1:L[1,1] = √4 = 2
Step 2:L[2,1] = 2 / 2 = 1
Step 3:L[2,2] = √(3 - 1²) = √2 ≈ 1.414
Result: L = [[2, 0], [1, 1.414]]
Verify: L·L^T = [[4, 2], [2, 3]] ✓

Frequently Asked Questions

What does 'positive definite' mean?

A symmetric matrix is positive definite if all eigenvalues are positive, or equivalently, x^T·A·x > 0 for all non-zero vectors x. This ensures the Cholesky decomposition exists.

Why must the matrix be symmetric?

The Cholesky decomposition assumes A = L·L^T. For this to hold, A must equal its own transpose (symmetric). Non-symmetric matrices require different factorization methods.

When would I use Cholesky decomposition?

Applications include solving linear systems Ax = b efficiently, computing matrix determinants, sampling from multivariate Gaussian distributions, and numerical optimization.

How does Cholesky compare to LU decomposition?

Cholesky is about twice as fast as LU for symmetric positive-definite matrices and requires less memory. However, LU decomposes more general matrices.

What if the matrix is not positive definite?

The algorithm will fail when taking the square root of a negative number. You can use modified Cholesky (adding perturbations) or find the nearest positive-definite matrix.

Can I use Cholesky for non-square matrices?

No, Cholesky decomposition requires square matrices. For rectangular matrices, use QR or SVD decomposition instead.

What is the computational complexity?

Cholesky decomposition has O(n³/3) floating-point operations, making it efficient for large systems compared to LU decomposition which is O(2n³/3).

How do I verify the decomposition is correct?

Compute L·L^T and check if it equals the original matrix A. Due to floating-point errors, allow for small numerical differences (usually < 1e-10).

Related Tools

Related Tools