QR Decomposition Calculator
Compute a 2×2 QR decomposition using Gram-Schmidt on the matrix columns.
Calculator
What this calculator teaches
QR decomposition factors a matrix into an orthonormal matrix Q and an upper triangular matrix R.
It is widely used in numerical linear algebra and least-squares problems.
Formula & Symbols
| Concept | Formula | Meaning |
|---|---|---|
| QR factorization | A=QR | Q has orthonormal columns, R is upper triangular. |
| Gram-Schmidt | q₂=(v₂-proj_q₁v₂)/||v₂-proj_q₁v₂|| | Builds orthonormal directions. |
Step-by-Step Examples
- Normalize first column (1,1).
- Remove its projection from second column.
- Normalize the remainder.
Where students use this
Common Mistakes to Avoid
Check denominator, domain, endpoint, and matrix-invertibility conditions before trusting a result.
Carry extra decimals through intermediate steps and round only the final answer.
Some topics need exact symbolic reasoning, while this calculator gives a clear numerical learning check.
Frequently Asked Questions
Related Math Calculators
Formula Explorer connections
Interpretation: This relationship represents vectors, linear systems or transformations using matrix structure and vector operations. Assumption: Matrix dimensions must be compatible. Inversion, decomposition and unique solutions require rank, conditioning or nonzero-determinant conditions.