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

  1. 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).
  2. Orthogonality of :
    • , meaning columns of form an orthonormal basis.
  3. Shape:
    • If is :
      • is (or for reduced QR).
      • is (or for reduced QR).

Methods to Compute QR Factorization

  1. Gram-Schmidt Orthogonalization:

    • Orthogonalizes the columns of to construct and determines from projections.
  2. Householder Reflections:

    • Constructs as a product of orthogonal reflections, ensuring numerical stability.
  3. Givens Rotations:

    • Uses rotations to zero out entries below the diagonal of , forming as a product of rotations.
  4. Modified Gram-Schmidt:

    • A numerically stable variation of Gram-Schmidt.

Applications

  1. Solving Linear Systems:

    • For , compute and solve using back substitution.
  2. Least Squares Problems:

    • Minimize by solving .
  3. Eigenvalues Algorithms:

    • Iterative QR algorithms are used to compute eigenvalues of matrices.
  4. Orthogonalization:

    • QR decomposition orthogonalizes the columns of .
  5. Stability in Numerical Computations:

    • QR decomposition is preferred over LU decomposition for certain numerical problems due to better stability.