Cholesky Decomposition Calculator
Calculate Cholesky decomposition of symmetric positive-definite matrices online. Get lower triangular matrix L where A = LLα΅, determinant, and verification.
About
Cholesky decomposition factors a symmetric positive-definite matrix A into the product LLT, where L is a lower triangular matrix with strictly positive diagonal entries. The decomposition exists if and only if A is symmetric and all leading principal minors are positive. It requires roughly n33 floating-point operations, making it approximately twice as fast as LU decomposition for eligible matrices. Numerical instability or an incorrect assumption of positive-definiteness leads to imaginary square roots during factorization, producing meaningless results. This tool validates symmetry and definiteness before proceeding.
Applications span Kalman filters, Monte Carlo simulation (generating correlated random variables), solving normal equations in least-squares fitting, and finite element analysis. The algorithm implemented here is the Cholesky - Banachiewicz row-by-row variant. Limitation: this calculator uses IEEE 754 double-precision arithmetic, so matrices with condition numbers above 1012 may produce inaccurate results due to rounding.
Formulas
The Cholesky - Banachiewicz algorithm computes the lower triangular factor L row by row. For diagonal entries:
For off-diagonal entries where i > j:
The determinant is computed as:
Where A is the input symmetric positive-definite matrix of order n, L is the resulting lower triangular matrix, aij denotes the element at row i column j of A, and lij denotes the corresponding element of L. If the expression under the square root becomes negative or zero, the matrix is not positive-definite and decomposition fails.
Reference Data
| Property | Requirement / Value | Notes |
|---|---|---|
| Symmetry | A = AT | Strict requirement; aij = aji |
| Positive-Definiteness | xTAx > 0 for all x β 0 | All eigenvalues must be positive |
| Leading Minors | All > 0 | Sylvesterβs criterion |
| Diagonal of L | All lii > 0 | Uniqueness condition |
| Determinant | det(A) = (nβi=1 lii)2 | Computed from diagonal of L |
| Complexity | n33 flops | Half of LU decomposition cost |
| Storage | n(n + 1)2 elements | Only lower triangle stored |
| LDLT Variant | Avoids square roots | Uses diagonal matrix D |
| Hermitian Extension | A = LL* | For complex matrices (not covered here) |
| Band Matrix Optimization | O(nb2) | b = bandwidth |
| Sparse Optimization | Fill-in minimization via reordering | AMD, Nested Dissection |
| Condition Number | ΞΊ(A) = ΞΊ(L)2 | Squared relationship |
| Numerical Stability | Backward stable | No pivoting needed |
| Inverse via Cholesky | Aβ1 = (Lβ1)TLβ1 | Forward + back substitution |
| Identity Test | L = I | When A = I |
| Diagonal Matrix | lii = βaii | Trivial case |
| 2Γ2 Explicit | l11 = βa11, l21 = a21l11 | Closed-form for small matrices |