Cholesky Decomposition Calculator

A = LLᵀ for SPD

CalculatorsFreeNo Signup
4.8(401 reviews)
All Tools

Loading tool...

About Cholesky Decomposition Calculator

A Cholesky decomposition calculator that factors A = LLᵀ for symmetric positive definite matrices. Half the cost of LU. Shows L factor and verification LLᵀ = A. Checks positive definiteness. Select from preset SPD matrices. All calculations are client-side. Essential for optimization and statistics.

Cholesky Decomposition Calculator Features

  • L factor
  • SPD check
  • Verify LLᵀ
  • Presets
  • Step display
Cholesky: A = LLᵀ, where L is lower triangular. lᵢᵢ = √(aᵢᵢ − Σₖ lᵢₖ²). lᵢⱼ = (aᵢⱼ − Σₖ lᵢₖlⱼₖ)/lⱼⱼ. Only works for symmetric positive definite (all eigenvalues > 0). Half the cost and twice the stability of LU.

How to Use

Enter an SPD matrix:

  • A: Symmetric positive definite
  • Output: L factor
  • Verify: LLᵀ = A

SPD Check

A matrix is SPD if: (1) A = Aᵀ (symmetric), (2) xᵀAx > 0 for all x≠0. Equivalently: all eigenvalues positive. All leading principal minors positive. Cholesky exists ⟺ A is SPD.

Applications

  • Least squares: AᵀAx = Aᵀb
  • Covariance matrices
  • Random variable generation
  • Kalman filter

Step-by-Step Instructions

  1. 1Enter SPD matrix.
  2. 2View L factor.
  3. 3Verify LLᵀ = A.
  4. 4Check positive definiteness.
  5. 5Use for solving.

Cholesky Decomposition Calculator — Frequently Asked Questions

Why is Cholesky preferred over LU for SPD?+

Cholesky is ~2× faster (n³/6 vs n³/3 operations), uses half the storage (only L, not L and U), is more numerically stable (no pivoting needed), and the square root test automatically detects non-SPD matrices.

How does Cholesky relate to the square root?+

Cholesky is the matrix square root in a sense: L = √A where √ means LLᵀ = A. The diagonal elements involve actual square roots: lᵢᵢ = √(aᵢᵢ − Σlₖ²). If any radicand is negative, A is not SPD.

What are common SPD matrices?+

Covariance matrices, Gram matrices (AᵀA), discretized Laplacians, kernel matrices in ML, Hessians at local minima. Any matrix of form BᵀB with B full-rank is SPD.

Share this tool: