In
linear algebra
Linear algebra is the branch of mathematics concerning linear equations such as
:a_1x_1+\cdots +a_nx_n=b,
linear maps such as
:(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n,
and their representations in vector spaces and through matrix (mathemat ...
, the Cholesky decomposition or Cholesky factorization (pronounced ) is a
decomposition
Decomposition is the process by which dead organic substances are broken down into simpler organic or inorganic matter such as carbon dioxide, water, simple sugars and mineral salts. The process is a part of the nutrient cycle and is ess ...
of a
Hermitian,
positive-definite matrix
In mathematics, a symmetric matrix M with real entries is positive-definite if the real number \mathbf^\mathsf M \mathbf is positive for every nonzero real column vector \mathbf, where \mathbf^\mathsf is the row vector transpose of \mathbf.
Mo ...
into the product of a
lower triangular matrix and its
conjugate transpose
In mathematics, the conjugate transpose, also known as the Hermitian transpose, of an m \times n complex matrix \mathbf is an n \times m matrix obtained by transposing \mathbf and applying complex conjugation to each entry (the complex conjugate ...
, which is useful for efficient numerical solutions, e.g.,
Monte Carlo simulations. It was discovered by
André-Louis Cholesky for real matrices, and posthumously published in 1924.
When it is applicable, the Cholesky decomposition is roughly twice as efficient as the
LU decomposition
In numerical analysis and linear algebra, lower–upper (LU) decomposition or factorization factors a matrix as the product of a lower triangular matrix and an upper triangular matrix (see matrix multiplication and matrix decomposition). The produ ...
for solving
systems of linear equations
In mathematics, a system of linear equations (or linear system) is a collection of two or more linear equations involving the same variables.
For example,
: \begin
3x+2y-z=1\\
2x-2y+4z=-2\\
-x+\fracy-z=0
\end
is a system of three equations in ...
.
Statement
The Cholesky decomposition of a
Hermitian positive-definite matrix
In mathematics, a symmetric matrix M with real entries is positive-definite if the real number \mathbf^\mathsf M \mathbf is positive for every nonzero real column vector \mathbf, where \mathbf^\mathsf is the row vector transpose of \mathbf.
Mo ...
, is a decomposition of the form
where is a
lower triangular matrix with real and positive diagonal entries, and * denotes the
conjugate transpose
In mathematics, the conjugate transpose, also known as the Hermitian transpose, of an m \times n complex matrix \mathbf is an n \times m matrix obtained by transposing \mathbf and applying complex conjugation to each entry (the complex conjugate ...
of . Every Hermitian positive-definite matrix (and thus also every real-valued symmetric positive-definite matrix) has a unique Cholesky decomposition.
The converse holds trivially: if can be written as for some invertible , lower triangular or otherwise, then is Hermitian and positive definite.
When is a real matrix (hence symmetric positive-definite), the factorization may be written
where is a real lower triangular matrix with positive diagonal entries.
Positive semidefinite matrices
If a Hermitian matrix is only positive semidefinite, instead of positive definite, then it still has a decomposition of the form where the diagonal entries of are allowed to be zero.
The decomposition need not be unique, for example:
for any . However, if the rank of is , then there is a unique lower triangular with exactly positive diagonal elements and columns containing all zeroes.
Alternatively, the decomposition can be made unique when a pivoting choice is fixed. Formally, if is an positive semidefinite matrix of rank , then there is at least one permutation matrix such that has a unique decomposition of the form with
,
where is an lower triangular matrix with positive diagonal.
LDL decomposition
A closely related variant of the classical Cholesky decomposition is the LDL decomposition,
where is a
lower unit triangular (unitriangular) matrix, and is a
diagonal
In geometry, a diagonal is a line segment joining two vertices of a polygon or polyhedron, when those vertices are not on the same edge. Informally, any sloping line is called diagonal. The word ''diagonal'' derives from the ancient Greek � ...
matrix. That is, the diagonal elements of are required to be 1 at the cost of introducing an additional diagonal matrix in the decomposition. The main advantage is that the LDL decomposition can be computed and used with essentially the same algorithms, but avoids extracting square roots.
For this reason, the LDL decomposition is often called the ''square-root-free Cholesky'' decomposition. For real matrices, the factorization has the form and is often referred to as decomposition (or decomposition, or LDL′). It is reminiscent of the
eigendecomposition of real symmetric matrices, , but is quite different in practice because and are not
similar matrices
In linear algebra, two ''n''-by-''n'' matrices and are called similar if there exists an invertible ''n''-by-''n'' matrix such that
B = P^ A P .
Similar matrices represent the same linear map under two possibly different bases, with being ...
.
The LDL decomposition is related to the classical Cholesky decomposition of the form as follows:
Conversely, given the classical Cholesky decomposition
of a positive definite matrix, if is a diagonal matrix that contains the main diagonal of
, then can be decomposed as
where
(this rescales each column to make diagonal elements 1),
If is positive definite then the diagonal elements of are all positive.
For positive semidefinite , an
decomposition exists where the number of non-zero elements on the diagonal is exactly the rank of .
Some indefinite matrices for which no Cholesky decomposition exists have an LDL decomposition with negative entries in : it suffices that the first
leading principal minors of are non-singular.
Example
Here is the Cholesky decomposition of a symmetric real matrix:
And here is its LDL
T decomposition:
Geometric interpretation

The Cholesky decomposition is equivalent to a particular choice of
conjugate axes of an
ellipsoid
An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional Scaling (geometry), scalings, or more generally, of an affine transformation.
An ellipsoid is a quadric surface; that is, a Surface (mathemat ...
. In detail, let the ellipsoid be defined as
, then by definition, a set of vectors
are conjugate axes of the ellipsoid iff
. Then, the ellipsoid is precisely
where
maps the basis vector
, and
is the unit sphere in n dimensions. That is, the ellipsoid is a linear image of the unit sphere.
Define the matrix