QR Factorization

Compute the QR Factorization1 of a matrix \(A\) using Householder reflections2.
Useful for solving least squares problems and computing eigenvalues.

For an \(m \times n\) matrix \(A\), the QR factorization is:

\[ A = QR \]

Components:

  • \(Q\) is an \(m \times m\) orthogonal matrix (or \(m \times n\) for economy QR)
  • \(R\) is an \(m \times n\) upper triangular matrix (or \(n \times n\) for economy QR)
  • \(Q^TQ = I\) (columns of \(Q\) are orthonormal)

Applications:

  • Solving least squares problems3: \(\min \|Ax - b\|\)
  • Computing eigenvalues (QR algorithm)4
  • Orthonormalizing a set of vectors

This calculator uses Householder reflections to compute the factorization, with options for full or economy QR and decimal or surd output formats.

Set matrix dimensions

Enter dimensions and click Generate Matrix to create the input grid.

QR Type:
Output Form:
Set Up
Loads a pre-filled 3×2 matrix — ready to compute.
Compute
Decomposes the matrix into an orthogonal Q and upper-triangular R via Gram–Schmidt.
Resets all dimensions, matrix entries, and results.