- categories: Linear algebra, Factorization
Definition
QR Factorization is the decomposition of a Matrix (with ) into the product of two matrices:
where:
- is an orthogonal (or unitary) matrix (),
- is an upper triangular matrix.
For the “reduced” QR factorization (when ), becomes , and is .
Intuition
QR factorization orthogonalizes the columns of , representing as a combination of orthogonal basis vectors (columns of ) scaled by . It is analogous to the Gram-Schmidt process in vector spaces.
Key Properties
- Existence and Uniqueness:
- QR decomposition exists for any matrix .
- If has full column rank, is nonsingular.
- Uniqueness depends on conventions for (e.g., diagonal entries of are positive).
- Orthogonality of :
- , meaning columns of form an orthonormal basis.
- Shape:
- If is :
- is (or for reduced QR).
- is (or for reduced QR).
- If is :
Methods to Compute QR Factorization
-
Gram-Schmidt Orthogonalization:
- Orthogonalizes the columns of to construct and determines from projections.
-
- Constructs as a product of orthogonal reflections, ensuring numerical stability.
-
Givens Rotations:
- Uses rotations to zero out entries below the diagonal of , forming as a product of rotations.
-
Modified Gram-Schmidt:
- A numerically stable variation of Gram-Schmidt.
Applications
-
Solving Linear Systems:
- For , compute and solve using back substitution.
-
- Minimize by solving .
-
Eigenvalues Algorithms:
- Iterative QR algorithms are used to compute eigenvalues of matrices.
-
Orthogonalization:
- QR decomposition orthogonalizes the columns of .
-
Stability in Numerical Computations:
- QR decomposition is preferred over LU decomposition for certain numerical problems due to better stability.