Matrix Decomposition — Definition, Formula & Example
Matrix decomposition is the process of rewriting a matrix as a product of two or more simpler matrices, such as triangular, orthogonal, or diagonal ones. The original matrix is hard to work with directly. The simpler pieces make solving, inverting, or analyzing it much easier.
A matrix decomposition of is an equation in which each factor belongs to a prescribed structured class, for example lower or upper triangular, orthogonal, diagonal, or permutation. Each type of decomposition comes with its own existence conditions on , and some types are also unique under those conditions.
Key Formula
Where:
- = The matrix being decomposed (size m × n)
- = Structured factor matrices, such as triangular, orthogonal, or diagonal
- = Number of factors, usually 2 or 3
How It Works
Each decomposition is named for the shape of its factors. LU gives triangular factors. QR gives an orthogonal factor times an upper triangular one. Eigen decomposition needs a diagonalizable square matrix. The singular value decomposition exists for every real matrix, square or not. Cholesky, , applies only to symmetric positive definite matrices. To compute any of them, you fix the required structure of the factors and then solve for their unknown entries.
Worked Example
Problem: The matrix is symmetric positive definite. Find its Cholesky decomposition , where is lower triangular with positive diagonal entries.
Step 1: Multiply out and match each entry to . This turns the factorization into three small equations.
Step 2: Solve the equations in order. Each one uses the value found just before it.
Step 3: Verify by multiplying the factors back together.
Answer: , so with .
Why It Matters
In a numerical linear algebra course you learn that you almost never compute directly. Instead, you decompose once and reuse the factors to solve for many different right-hand sides. Engineering simulations rely on this, and so does the SVD used in image compression and in recommender systems that predict movie ratings.
Common Mistakes
Mistake: Multiplying the factors in the wrong order, for example computing instead of .
Correction: Matrix multiplication is not commutative. In the example above, , which is not . Always multiply the factors in the exact order the decomposition specifies.
