Calculateur de Décomposition de Cholesky
Décomposez une matrice symétrique définie positive en A = LLᵀ avec un calcul animé étape par étape. Visualisez chaque élément de la matrice triangulaire inférieure L dérivé avec les formules complètes, vérifiez le résultat et explorez la factorisation visuellement.
Votre bloqueur de pubs nous empêche d’afficher des annonces
MiniWebtool est gratuit grâce aux annonces. Si cet outil vous a aidé, soutenez-nous avec Premium (sans pubs + outils plus rapides) ou ajoutez MiniWebtool.com à la liste blanche puis rechargez la page.
- Ou passez à Premium (sans pubs)
- Autorisez les pubs pour MiniWebtool.com, puis rechargez
Calculateur de Décomposition de Cholesky
The Cholesky Decomposition Calculator factors a symmetric positive-definite matrix A into the product of a lower-triangular matrix L and its transpose Lᵀ, so that A = LLᵀ. This factorization is fundamental in numerical linear algebra, offering roughly twice the efficiency of general LU decomposition by exploiting the symmetry and positive-definiteness of the input matrix. The calculator provides animated step-by-step derivations, interactive cell highlighting, and automatic verification that LLᵀ reconstructs A.
How Cholesky Decomposition Works
Given an n×n symmetric positive-definite matrix A, the algorithm computes L column by column. For each column j:
Diagonal element:
$$L_{jj} = \sqrt{A_{jj} - \sum_{k=1}^{j-1} L_{jk}^2}$$
Off-diagonal elements (for i > j):
$$L_{ij} = \frac{1}{L_{jj}} \left( A_{ij} - \sum_{k=1}^{j-1} L_{ik} L_{jk} \right)$$
The algorithm proceeds left to right across columns. Each diagonal element involves a square root, which is guaranteed to be real and positive when A is positive-definite. If a negative value appears under the square root, the matrix is not positive-definite.
Conditions for Cholesky Decomposition
| Condition | Requirement | What Happens If Violated |
|---|---|---|
| Symmetric | A = Aᵀ (A[i,j] = A[j,i]) | Decomposition is undefined |
| Positive-Definite | All eigenvalues > 0 | Negative under square root |
| Square | n×n matrix | Not applicable to rectangular |
Key Properties
How to Use the Cholesky Decomposition Calculator
- Select matrix size — Choose from 2×2 up to 6×6. Cholesky decomposition requires a square matrix.
- Enter values — Fill in the matrix cells. The calculator auto-mirrors entries across the diagonal to enforce symmetry (editing A[i,j] automatically sets A[j,i]).
- Click Decompose — Press the "Decompose A = LLᵀ" button to compute the factorization.
- Explore the result — Review the color-coded equation A = L × Lᵀ. Click any cell in L to see its derivation formula. Use "Play All" to auto-step through every element.
- Verify — The calculator multiplies L × Lᵀ back together and reports the maximum error, confirming the decomposition is correct.
Real-World Applications
Cholesky vs Other Decompositions
| Method | Factorization | Requirements | Complexity |
|---|---|---|---|
| Cholesky | A = LLᵀ | Symmetric positive-definite | n³/3 |
| LU | A = LU (or PA = LU) | Invertible | 2n³/3 |
| QR | A = QR | Any matrix | 2n³/3 (Householder) |
| SVD | A = UΣVᵀ | Any matrix | ~11n³/3 |
| Eigendecomposition | A = QΛQᵀ | Symmetric | ~9n³ |
Frequently Asked Questions
What is Cholesky decomposition?
Cholesky decomposition (named after Andre-Louis Cholesky) factors a symmetric positive-definite matrix A into A = LLᵀ, where L is a lower-triangular matrix with positive diagonal entries. It is one of the most efficient and numerically stable matrix factorizations available.
When can Cholesky decomposition be applied?
The matrix must be symmetric (A = Aᵀ) and positive-definite (all eigenvalues strictly positive, or equivalently, xᵀAx > 0 for every nonzero vector x). Common examples include covariance matrices, correlation matrices, Gram matrices (XᵀX for full-rank X), and stiffness matrices in structural engineering.
What if my matrix is not positive-definite?
If the matrix is not positive-definite, you will encounter a negative value under a square root during the decomposition, which is not a real number. The calculator will report an error indicating exactly which diagonal step failed. You may want to check your matrix for symmetry errors, or consider LDLᵀ decomposition for positive semi-definite matrices.
How is Cholesky decomposition used to solve linear systems?
To solve Ax = b, first decompose A = LLᵀ. Then solve Ly = b by forward substitution (since L is lower-triangular), and then solve Lᵀx = y by back substitution. This is about twice as fast as solving via LU decomposition because L and Lᵀ share the same data.
What is the relationship between Cholesky and the determinant?
Since A = LLᵀ, we have det(A) = det(L) × det(Lᵀ) = det(L)². And since L is triangular, det(L) is simply the product of its diagonal entries. This provides an efficient way to compute the determinant of a positive-definite matrix.
Can Cholesky decomposition be applied to complex matrices?
Yes, for complex matrices the condition is that A must be Hermitian positive-definite (A = A*, where A* is the conjugate transpose). The decomposition becomes A = LLᵀ where Lᵀ is replaced by L* (the conjugate transpose of L). This calculator handles real-valued matrices.
Citez ce contenu, cette page ou cet outil comme suit :
"Calculateur de Décomposition de Cholesky" sur https://MiniWebtool.com/fr// de MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: 2026-04-12
Vous pouvez également essayer notre Résolveur Mathématique IA GPT pour résoudre vos problèmes mathématiques grâce à des questions-réponses en langage naturel.