Opening your learning space
Starting the app …
Opening your learning space
Starting the app …
QR factorization writes a matrix with linearly independent columns as the product of a matrix Q with orthonormal columns and an upper triangular matrix R.
Free to browse · flashcards or a multiple-choice quiz · import from Essential
Formula
Matrix entries and resulting coefficients retain the units of the original linear map.
| Symbol | Meaning | Unit |
|---|---|---|
| m×n matrix with full column rank | application-dependent | |
| m×n matrix with orthonormal columns | dimensionless for normalized vectors | |
| n×n upper triangular matrix | same unit as A |
A=QR, \qquad Q^TQ=IQR can be obtained, for example, by Gram-Schmidt or Householder transformations. For least-squares problems Ax≈b, minimize ||QRx−b||2 and solve Rx=Qᵀb. Compared with the normal equations AᵀAx=Aᵀb, QR avoids squaring the condition number and is therefore usually more numerically stable.
QR can be obtained, for example, by Gram-Schmidt or Householder transformations. For least-squares problems Ax≈b, minimize ||QRx−b||2 and solve Rx=Qᵀb. Compared with the normal equations AᵀAx=Aᵀb, QR avoids squaring the condition number and is therefore usually more numerically stable.
QR factorization writes a matrix with linearly independent columns as the product of a matrix Q with orthonormal columns and an upper triangular matrix R.
Least-squares solution
A=QR, Q has orthonormal columns, and A has full column rank; then R is invertible.
Rework the example for “QR Factorization” and explain why the check is valid.
For columns a1=(1,1), a2=(1,0), choose q1=(1,1)/√2 and q2=(1,−1)/√2.
Then QᵀA=[[√2,1/√2],[0,1/√2]]=R.
Check: QᵀQ=I and QR=A.
Ignoring an assumption of the formula: QR can be obtained, for example, by Gram-Schmidt or Householder transformations
Check units and model conditions before substitution; then verify the result in the original relation or a limiting case.
Formula cluster
Related relations in the formula sheet: gram-schmidt-orthogonalisierung, kleinste-quadrate-matrix, singulaerwertzerlegung-matrix.
For columns a1=(1,1), a2=(1,0), choose q1=(1,1)/√2 and q2=(1,−1)/√2. Then QᵀA=[[√2,1/√2],[0,1/√2]]=R. Check: QᵀQ=I and QR=A.
Stable solution of least-squares problems and construction of orthogonal bases.
Here is how to work through a typical QR Factorization (A=QR, QᵀQ=I) task step by step:
Task
Rework the example for “QR Factorization” and explain why the check is valid.
Solution path
For columns a1=(1,1), a2=(1,0), choose q1=(1,1)/√2 and q2=(1,−1)/√2.
Then QᵀA=[[√2,1/√2],[0,1/√2]]=R.
Check: QᵀQ=I and QR=A.
QR factorization writes a matrix with linearly independent columns as the product of a matrix Q with orthonormal columns and an upper triangular matrix R. The notation A=QR, QᵀQ=I shows which quantities are connected. Here, A: m×n matrix with full column rank (application-dependent); Q: m×n matrix with orthonormal columns (dimensionless for normalized vectors); R: n×n upper triangular matrix (same unit as A). Matrix entries and resulting coefficients retain the units of the original linear map. An application depends on whether the supplied quantities match the definitions and reference directions. Common uses include Stable solution of least-squares problems and construction of orthogonal bases.. Read the variables and their dimensions before substituting numbers; this often reveals whether the result should be a length, rate, probability, or dimensionless statistic.
Start with a diagram or a list of known quantities, assign each one a symbol, and convert units to a consistent form. Then choose the appropriate equation and substitute values only afterward. Example: For columns a1=(1,1), a2=(1,0), choose q1=(1,1)/√2 and q2=(1,−1)/√2. Then QᵀA=[[√2,1/√2],[0,1/√2]]=R. Check: QᵀQ=I and QR=A. Verification is part of the calculation: QR can be obtained, for example, by Gram-Schmidt or Householder transformations Also compare the magnitude and unit with the context. Round only at the end, since early rounding can affect multi-step calculations, especially when small differences or sums are involved.
QR can be obtained, for example, by Gram-Schmidt or Householder transformations. For least-squares problems Ax≈b, minimize ||QRx−b||2 and solve Rx=Qᵀb. Compared with the normal equations AᵀAx=Aᵀb, QR avoids squaring the condition number and is therefore usually more numerically stable. These are not minor footnotes: when assumptions fail, the formula can produce a precise but inappropriate result. Before calculating, identify which values are observed, estimated, or modeled, and whether special cases change the equation. Stable solution of least-squares problems and construction of orthogonal bases. For numerical methods, also check step size and stability; for statistics, sampling design and distribution; for calculus, differentiability, boundary, and orientation. Use another method when these conditions do not hold.
Both relations belong to the same topic, but answer different questions. “QR Factorization”: QR factorization writes a matrix with linearly independent columns as the product of a matrix Q with orthonormal columns and an upper triangular matrix R. The companion relation “Gram–Schmidt Orthogonalization” The Gram–Schmidt procedure turns linearly independent vectors into an orthonormal basis of the same subspace by projecting onto and subtracting previous directions. Choose based on the quantity sought and the model: Stable solution of least-squares problems and construction of orthogonal bases. The worked example For columns a1=(1,1), a2=(1,0), choose q1=(1,1)/√2 and q2=(1,−1)/√2. Then QᵀA=[[√2,1/√2],[0,1/√2]]=R. Check: QᵀQ=I and QR=A. shows which quantities actually enter this relation. Compare both formulas using the same data and identify the companion’s extra assumption. This clarifies which relation fits.
Matrix dimensions, rank and invertibility must match the chosen operation; matrix factors generally cannot be swapped. The symbols must also match their definitions exactly: A: m×n matrix with full column rank (application-dependent); Q: m×n matrix with orthonormal columns (dimensionless for normalized vectors); R: n×n upper triangular matrix (same unit as A). Do not calculate mechanically; write the assumption beside the setup, then check dimensions and sign. Also note: QR can be obtained, for example, by Gram-Schmidt or Householder transformations The example For columns a1=(1,1), a2=(1,0), choose q1=(1,1)/√2 and q2=(1,−1)/√2. Then QᵀA=[[√2,1/√2],[0,1/√2]]=R. Check: QᵀQ=I and QR=A. lets you follow these checks directly. If the assumptions do not fit, choose another relation from the chapter instead of forcing values into an unsuitable formula.
Quanta exam set
Curated exam set for "QR Factorization":
Question (front)
Which formula describes QR Factorization?
Answer in your set
Question (front)
How do you rearrange QR Factorization for Least-squares solution?
Answer in your set
Question (front)
Which common mistake happens with QR Factorization?
Answer in your set
+ 7 more cards: units, variables, derivation, example, exam task
The formula set contains 10 cards. After importing, review them and start practicing; your ratings determine later review intervals.
This list names subject references and further reading. A page or section number appears when it is part of the reference; these are not verbatim quotations.
Create a curated FSRS exam set for A=QR, QᵀQ=I: formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Curated formula set · LaTeX · FSRS spaced repetition · import from Essential