Advanced Cholesky Decomposition Calculator

Analyze matrix factorization with stable triangular outputs. Check symmetry, positivity, determinants, and linear system readiness. Build confidence through examples, formulas, graphs, and exportable results.

Calculator Form

Enter symmetric positive definite matrix A

Cholesky decomposition requires a symmetric positive definite matrix. Use the sample values or replace them with your own inputs.

A[1, 1]
A[1, 2]
A[1, 3]
A[2, 1]
A[2, 2]
A[2, 3]
A[3, 1]
A[3, 2]
A[3, 3]

Optional right-hand side vector b

These values are used only when the system-solving option is enabled.

b[1]
b[2]
b[3]

Example Data Table

This sample symmetric positive definite matrix produces a valid lower triangular Cholesky factor.

Example item Value Notes
Matrix A [[25, 15, -5], [15, 18, 0], [-5, 0, 11]] Symmetric positive definite
Lower factor L [[5, 0, 0], [3, 3, 0], [-1, 1, 3]] A = L × LT
Determinant 2025 (5 × 3 × 3)2
Example vector b [35, 33, 6] Used for solving Ax = b
Solution x [1, 1, 1] Computed using forward and backward substitution

Formula Used

For a symmetric positive definite matrix A, the decomposition is:

A = L LT

Each entry of the lower triangular matrix L is computed with these formulas:

Lii = √( Aii − Σk=1i−1 Lik2 )

Lij = ( Aij − Σk=1j−1 LikLjk ) / Ljj,   for i > j

When solving Ax = b, first solve Ly = b, then solve LTx = y. The determinant follows this rule:

det(A) = ( Π Lii )2

How to Use This Calculator

  1. Select the matrix size from 2 × 2 up to 6 × 6.
  2. Enter a symmetric positive definite matrix in the input boxes.
  3. Choose the number of decimal places for displayed values.
  4. Keep system solving enabled if you also want Ax = b solved.
  5. Enter the right-hand side vector values when needed.
  6. Use the example button if you want a tested sample matrix.
  7. Click Compute decomposition to place results above the form.
  8. Review the lower factor, determinant, reconstruction accuracy, graph, and downloads.

Frequently Asked Questions

1. What is Cholesky decomposition?

Cholesky decomposition factorizes a symmetric positive definite matrix into a lower triangular matrix and its transpose. It is efficient for solving systems, computing determinants, and checking numerical stability.

2. Why must the matrix be symmetric?

The decomposition is derived for symmetric matrices because the factorization form A = L LT assumes mirrored off-diagonal entries. If symmetry fails, the method is not valid in its standard form.

3. What does positive definite mean here?

Positive definite means every nonzero vector produces xTAx > 0. Practically, the diagonal pivots stay positive during factorization, allowing each square root step to remain real and valid.

4. How is this different from LU decomposition?

LU decomposition works for many square matrices, while Cholesky is specialized for symmetric positive definite matrices. Because of that structure, Cholesky needs fewer operations and usually gives better efficiency.

5. Can this calculator solve linear systems too?

Yes. When the solve option is enabled, it computes Ly = b first and then LTx = y. That gives the solution vector x using two stable triangular solves.

6. Why is the determinant easy after decomposition?

The determinant of A equals the square of the product of diagonal entries of L. That is much easier than expanding a determinant directly, especially for larger matrices.

7. What does reconstruction error show?

Reconstruction error measures the largest absolute difference between the original matrix A and the rebuilt matrix L LT. Smaller values indicate strong numerical agreement and a reliable factorization.

8. What matrix size works best here?

This page supports sizes from 2 × 2 to 6 × 6 for clarity and quick entry. It is ideal for learning, checking homework, validating examples, and testing smaller numerical problems.

Related Calculators

Row Reduction RREF CalculatorDiagonalization Checker CalculatorLU Decomposition Steps CalculatorQR Decomposition Steps Calculatormatrix calculator with variablesGauss-Jordan inverse calculatorPolynomial linear independence calculatorLinear independence of matrix calculatorComplex matrix inverse calculatorQR decomposition least squares

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.