Math 2.0

Linear and multilinear algebra; matrix theory Proof

Proof of the QR decomposition by clearing the first column

Builds on Unitary matrixOrthogonal matrixUpper triangular matrixConjugate transposeInner productOrthonormal familyExistence of an orthonormal basisOne-sided inverse of a square matrix is two-sidedTranspose of a productDeterminant is multiplicativeDeterminant of a triangular matrixA square matrix is invertible iff its determinant is nonzero

Proof

We prove existence by induction on nn, and uniqueness by comparing two factorisations.

  1. For x,y∈ℂnx, y \in \C^n let ⟨x,y⟩=y∗x=∑ixiyi‾\ip{x}{y} = y^* x = \sum_i x_i \overline{y_i}, where ∗^* is the conjugate transpose. This is an inner product, since it is linear in xx, ⟨y,x⟩=⟨x,y⟩‾\ip{y}{x} = \overline{\ip{x}{y}}, and ⟨x,x⟩=∑i∣xi∣2>0\ip{x}{x} = \sum_i \abs{x_i}^2 > 0 for x≠0x \ne 0.
  2. Let WW be an n×nn \times n complex matrix with columns w1,…,wnw_1, \dots, w_n. The (i,j)(i, j) entry of W∗WW^* W is wi∗wj=⟨wj,wi⟩w_i^* w_j = \ip{w_j}{w_i}. So WW is unitary if and only if its columns form an orthonormal family.
  3. For complex matrices XX and YY with XYXY defined, (XY)∗=Y∗X∗(XY)^* = Y^* X^*. This follows from the transpose of a product by taking complex conjugates of all entries.
  4. Let UU and VV be unitary n×nn \times n matrices. Then (UV)∗(UV)=V∗U∗UV=V∗V=In(UV)^*(UV) = V^* U^* U V = V^* V = I_n, so UVUV is unitary.
  5. Since U∗U=InU^* U = I_n, the one-sided inverse theorem gives UU∗=InU U^* = I_n. As (U∗)∗=U(U^*)^* = U, this says that U∗U^* is unitary.
  6. Claim: for each a∈ℂna \in \C^n there are a unitary HH and a number α∈ℂ\alpha \in \C with Ha=αe1Ha = \alpha e_1, where e1e_1 is the first standard basis vector. If a=0a = 0, take H=InH = I_n and α=0\alpha = 0.
  7. If a≠0a \ne 0, let ∥a∥=⟨a,a⟩\norm{a} = \sqrt{\ip{a}{a}} and u=a/∥a∥u = a / \norm{a}. The family (u)(u) is orthonormal. By the existence of an orthonormal basis, it extends to an orthonormal basis u=w1,w2,…,wnu = w_1, w_2, \dots, w_n of ℂn\C^n.
  8. Let WW be the matrix with columns w1,…,wnw_1, \dots, w_n. By step 2, WW is unitary. Also We1=w1W e_1 = w_1, so a=∥a∥ We1a = \norm{a}\, W e_1.
  9. Put H=W∗H = W^*, which is unitary by step 5, and α=∥a∥\alpha = \norm{a}. Then Ha=∥a∥ W∗We1=αe1Ha = \norm{a}\, W^* W e_1 = \alpha e_1. This proves the claim.
  10. Existence for n=1n = 1: take Q=(1)Q = (1) and R=AR = A. Every 1×11 \times 1 matrix is upper triangular.
  11. Let n≥2n \ge 2 and assume existence for size n−1n - 1. Let aa be the first column of AA, and take HH and α\alpha as in step 6.
  12. The first column of HAHA is Ha=αe1Ha = \alpha e_1. So HA=(αr0A′)HA = \begin{pmatrix} \alpha & r \\ 0 & A' \end{pmatrix}, with a row rr of length n−1n - 1 and an (n−1)×(n−1)(n-1) \times (n-1) matrix A′A'.
  13. By the induction hypothesis, A′=Q′R′A' = Q' R' with Q′Q' unitary and R′R' upper triangular.
  14. Let G=(100Q′)G = \begin{pmatrix} 1 & 0 \\ 0 & Q' \end{pmatrix}. Then G∗G=(100Q′∗Q′)=InG^* G = \begin{pmatrix} 1 & 0 \\ 0 & Q'^* Q' \end{pmatrix} = I_n, so GG is unitary.
  15. Let R=(αr0R′)R = \begin{pmatrix} \alpha & r \\ 0 & R' \end{pmatrix}. It is upper triangular because R′R' is. Block multiplication gives GR=(αr0Q′R′)=HAGR = \begin{pmatrix} \alpha & r \\ 0 & Q'R' \end{pmatrix} = HA.
  16. Multiply step 15 on the left by H∗H^*. Since H∗H=InH^* H = I_n, we get A=H∗GRA = H^* G R.
  17. Put Q=H∗GQ = H^* G. It is unitary by steps 4 and 5. So A=QRA = QR, which completes the induction.
  18. Real case: let AA be real. Repeat steps 6 to 17 in ℝn\R^n with the inner product ⟨x,y⟩=yTx\ip{x}{y} = y^T x. The existence theorem of step 7 also holds over ℝ\R, so WW is real.
  19. For real matrices, X∗=XTX^* = X^T, so a real unitary matrix is an orthogonal matrix. All matrices built in steps 6 to 17 are then real, so QQ is orthogonal and RR is real.
  20. Uniqueness, first a lemma. Let TT be an invertible upper triangular n×nn \times n matrix with entries tijt_{ij}. By the determinant of a triangular matrix, det⁡T=t11⋯tnn\det T = t_{11} \cdots t_{nn}.
  21. By the invertibility criterion, det⁡T≠0\det T \ne 0. So tii≠0t_{ii} \ne 0 for all ii.
  22. Fix jj and let xx be column jj of T−1T^{-1}, so Tx=ejTx = e_j. For i>ji > j, row ii of this system reads ∑k≥itikxk=0\sum_{k \ge i} t_{ik} x_k = 0.
  23. For i=n,n−1,…,j+1i = n, n-1, \dots, j+1 in turn, this gives tiixi=−∑k>itikxk=0t_{ii} x_i = -\sum_{k > i} t_{ik} x_k = 0, since the later xkx_k already vanish. So xi=0x_i = 0 for all i>ji > j.
  24. Row jj then reads tjjxj=1t_{jj} x_j = 1. So T−1T^{-1} is upper triangular, with diagonal entries 1/tjj1/t_{jj}.
  25. If SS and TT are upper triangular, then (ST)ij=∑ksiktkj(ST)_{ij} = \sum_k s_{ik} t_{kj}, and a term is nonzero only if i≤k≤ji \le k \le j. So STST is upper triangular with diagonal entries siitiis_{ii} t_{ii}.
  26. Now let AA be invertible, and let A=Q1R1=Q2R2A = Q_1 R_1 = Q_2 R_2 with Q1,Q2Q_1, Q_2 unitary and R1,R2R_1, R_2 upper triangular with positive diagonal entries.
  27. Since the determinant is multiplicative, 0≠det⁡A=det⁡Q1det⁡R10 \ne \det A = \det Q_1 \det R_1. So det⁡R1≠0\det R_1 \ne 0, and R1R_1 is invertible.
  28. From Q1R1=Q2R2Q_1 R_1 = Q_2 R_2 we get Q2∗Q1R1=R2Q_2^* Q_1 R_1 = R_2, so T=Q2∗Q1T = Q_2^* Q_1 equals R2R1−1R_2 R_1^{-1}.
  29. By steps 24 and 25, TT is upper triangular with positive diagonal entries. By steps 4 and 5, TT is unitary.
  30. Since T∗T=InT^* T = I_n, the one-sided inverse theorem gives T−1=T∗T^{-1} = T^*. By step 24, T∗T^* is upper triangular.
  31. But T∗T^* is the conjugate transpose of an upper triangular matrix, so it is lower triangular. Hence T∗T^* is diagonal, and so is TT.
  32. The diagonal entries tjjt_{jj} are positive reals with tjj2=(T∗T)jj=1t_{jj}^2 = (T^* T)_{jj} = 1. So tjj=1t_{jj} = 1 and T=InT = I_n.
  33. Then R2=TR1=R1R_2 = T R_1 = R_1. Also Q2∗Q1=InQ_2^* Q_1 = I_n, so Q1=Q2Q2∗Q1=Q2Q_1 = Q_2 Q_2^* Q_1 = Q_2, using Q2Q2∗=InQ_2 Q_2^* = I_n from step 5.
  34. So every complex n×nn \times n matrix is QRQR, with real orthogonal factors for real AA. The factorisation is unique for invertible AA with positive diagonal in RR.

Idea

A unitary matrix can turn any vector into a multiple of e1e_1. Doing this to the first column of AA leaves a smaller block, which we factor by induction. For uniqueness, two factorisations differ by a matrix that is both unitary and triangular with positive diagonal, and only the identity is both.

Reading path

To understand this page from the ground up, read these 189 pages in order. The foundations come first. The path takes the proofs Proof of the Steinitz exchange lemma by induction, Proof of the associativity of matrix multiplication, Proof that a subspace of full dimension is the whole space, Proof of the decomposition of a permutation into transpositions, Proof that the symmetric group is generated by transpositions, Proof of the commutativity of addition by induction, Proof that equivalence classes form a partition, Proof of the existence of an orthonormal basis by the Gram–Schmidt process, Proof of the distributivity of matrix multiplication, Proof that the coordinate space F^n has dimension n, Proof that the determinant is multiplicative by expanding the rows, Proof that permuting rows multiplies the determinant by the sign, Proof that disjoint cycles commute, Proof that a matrix with two equal rows has determinant zero, Proof of the formula for the transpose of a product, Proof of strong induction from ordinary induction, Proof of the laws of exponents in a group, Proof that the Gram–Schmidt vectors are orthogonal, Proof that an orthonormal family is linearly independent, Proof that an intersection of subgroups is a subgroup, Proof that the determinant of the identity matrix is one, Proof that every linearly independent set extends to a basis, by Zorn's lemma, Proof of Zorn's lemma, Proof of the decomposition of a permutation into disjoint cycles, Proof of the determinant of a triangular matrix by the Leibniz formula, Proof of the well-ordering principle from strong induction, Proof that n independent or n spanning vectors in an n-dimensional space form a basis, Proof of the division algorithm, Proof of the Leibniz formula from the defining properties of the determinant, Proof of the uniqueness of inverses, Proof that a subspace of a finite-dimensional space has smaller or equal dimension, Proof that the determinant is multilinear in the rows, Proof that a one-sided inverse of a square matrix is two-sided, Proof of the rank–nullity theorem by extending a basis of the kernel, Proof of the subgroup criterion.

  1. Basis concept
  2. Binary operation definition
  3. Coordinate space object
  4. Cycle notation concept
  5. Definition by recursion concept
  6. Determinant concept
  7. Dimension concept
  8. Divisibility definition
  9. Element definition
  10. Group concept
  11. Identity matrix object
  12. Image of a linear map concept
  13. Invertible matrix concept
  14. Kernel of a linear map concept
  15. Linear independence concept
  16. Linear map concept
  17. Linear subspace concept
  18. Mathematical induction concept
  19. Matrix definition
  20. Multilinear map concept
  21. Natural numbers object
  22. Nullity concept
  23. Peano axioms concept
  24. Permutation concept
  25. Proof of Zorn's lemma proof
  26. Proposition concept
  27. Rank of a linear map concept
  28. Spanning set concept
  29. Standard basis object
  30. Transposition concept
  31. Vector space definition
  32. Identity element definition
  33. Set definition
  34. A square matrix is invertible iff its determinant is nonzero statement
  35. Ring definition
  36. Subgroup definition
  37. Symmetric group definition
  38. Matrix addition definition
  39. Matrix multiplication definition
  40. Matrix–vector product definition
  41. Square matrix definition
  42. Transpose definition
  43. Successor function definition
  44. Conjunction definition
  45. Disjunction definition
  46. Implication definition
  47. Predicate definition
  48. Inner product definition
  49. Linear combination definition
  50. Linear map definition
  51. Linear subspace definition
  52. Norm definition
  53. Inverse element definition
  54. Empty set object
  55. Family of sets definition
  56. Ordered pair definition
  57. Transposition definition
  58. Proof of the associativity of matrix multiplication proof
  59. Proof of the distributivity of matrix multiplication proof
  60. Proof that an intersection of subgroups is a subgroup proof
  61. Intersection definition
  62. Union definition
  63. Set-builder notation concept
  64. Proof of the formula for the transpose of a product proof
  65. Invertible matrix definition
  66. Lower triangular matrix definition
  67. Upper triangular matrix definition
  68. Conjugate transpose definition
  69. Orthogonal matrix definition
  70. Addition of natural numbers definition
  71. Biconditional definition
  72. Existential quantifier definition
  73. Universal quantifier definition
  74. Inner product space definition
  75. Orthogonal vectors definition
  76. The successor function is injective statement
  77. Zero is not a successor statement
  78. Linear independence definition
  79. Image of a linear map definition
  80. Kernel of a linear map definition
  81. Linear span definition
  82. Multilinear map definition
  83. Cartesian product definition
  84. Disjoint sets definition
  85. Proof of the uniqueness of inverses proof
  86. Associativity of matrix multiplication statement
  87. Distributivity of matrix multiplication statement
  88. Transpose of a product statement
  89. Union of a family of sets definition
  90. Subset definition
  91. Axiom of extensionality statement
  92. Unitary matrix definition
  93. Proof of the commutativity of addition by induction proof
  94. Order on the natural numbers definition
  95. Uniqueness quantifier definition
  96. Norm induced by an inner product definition
  97. Orthonormal family definition
  98. Spanning set definition
  99. Alternating multilinear map definition
  100. Binary relation definition
  101. Uniqueness of inverses statement
  102. Partition of a set definition
  103. Determinant definition
  104. Commutativity of addition statement
  105. Finite-dimensional vector space definition
  106. Proof of strong induction from ordinary induction proof
  107. Proof that an orthonormal family is linearly independent proof
  108. Basis definition
  109. Proof of the Steinitz exchange lemma by induction proof
  110. Gram–Schmidt process concept
  111. Antisymmetric relation definition
  112. Reflexive relation definition
  113. Symmetric relation definition
  114. Transitive relation definition
  115. Proof that a matrix with two equal rows has determinant zero proof
  116. Proof of the subgroup criterion proof
  117. Proof of the laws of exponents in a group proof
  118. Function definition
  119. Dimension definition
  120. Proof that the determinant of the identity matrix is one proof
  121. Dimension theorem for vector spaces statement
  122. Orthonormal basis definition
  123. Proof that the determinant is multilinear in the rows proof
  124. Strong induction statement
  125. An orthonormal family is linearly independent statement
  126. Steinitz exchange lemma statement
  127. Proof that the Gram–Schmidt vectors are orthogonal proof
  128. Equivalence relation definition
  129. Preorder definition
  130. Determinant of a matrix with two equal rows statement
  131. Subgroup criterion statement
  132. Choice function definition
  133. Injective function definition
  134. Determinant of the identity matrix statement
  135. Determinant is multilinear in the rows statement
  136. Laws of exponents in a group statement
  137. Proof of the well-ordering principle from strong induction proof
  138. Proof that the coordinate space F^n has dimension n proof
  139. Proof that a subspace of a finite-dimensional space has smaller or equal dimension proof
  140. Gram–Schmidt vectors are orthogonal statement
  141. Proof that n independent or n spanning vectors in an n-dimensional space form a basis proof
  142. Rank of a linear map definition
  143. Nullity definition
  144. Partial order definition
  145. Proof that disjoint cycles commute proof
  146. Intersection of subgroups is a subgroup statement
  147. Equivalence class definition
  148. Axiom of choice statement
  149. Dimension of the coordinate space statement
  150. Well-ordering principle statement
  151. Dimension of a subspace statement
  152. Linearly independent set of the right size is a basis statement
  153. Maximal element definition
  154. Total order definition
  155. Upper bound definition
  156. Proof that equivalence classes form a partition proof
  157. Disjoint cycles commute statement
  158. Subgroup generated by a subset definition
  159. Proof of the division algorithm proof
  160. Proof that a subspace of full dimension is the whole space proof
  161. Chain definition
  162. Equivalence classes form a partition statement
  163. Division algorithm statement
  164. A subspace of full dimension is the whole space statement
  165. Proof of the decomposition of a permutation into disjoint cycles proof
  166. Zorn's lemma statement
  167. Decomposition of a permutation into disjoint cycles statement
  168. Proof that every linearly independent set extends to a basis, by Zorn's lemma proof
  169. Proof of the decomposition of a permutation into transpositions proof
  170. Every linearly independent set extends to a basis statement
  171. Decomposition of a permutation into transpositions statement
  172. Proof of the existence of an orthonormal basis by the Gram–Schmidt process proof
  173. Proof of the rank–nullity theorem by extending a basis of the kernel proof
  174. Sign of a permutation definition
  175. Proof that the symmetric group is generated by transpositions proof
  176. Existence of an orthonormal basis statement
  177. Rank–nullity theorem statement
  178. The symmetric group is generated by transpositions statement
  179. Proof that a one-sided inverse of a square matrix is two-sided proof
  180. One-sided inverse of a square matrix is two-sided statement
  181. Proof that permuting rows multiplies the determinant by the sign proof
  182. Permuting rows multiplies the determinant by the sign statement
  183. Proof of the Leibniz formula from the defining properties of the determinant proof
  184. Leibniz formula for determinants statement
  185. Proof that the determinant is multiplicative by expanding the rows proof
  186. Proof of the determinant of a triangular matrix by the Leibniz formula proof
  187. Determinant is multiplicative statement
  188. Determinant of a triangular matrix statement
  189. Proof of the QR decomposition by clearing the first column proof

Where this leads

3 pages build on this one.

Further reading

  1. Web https://linear.pugetsound.edu/scla/html/section-QR.html
About this page
TagZRPHF64HFG
URIm2://ZRPHF64HFG
Kindproof
WritingW0 stub
MSC15A23, 65F25
ProvesQR decomposition
UsesUnitary matrix, Orthogonal matrix, Upper triangular matrix, Conjugate transpose, Inner product, Orthonormal family, Existence of an orthonormal basis, One-sided inverse of a square matrix is two-sided, Transpose of a product, Determinant is multiplicative, Determinant of a triangular matrix, A square matrix is invertible iff its determinant is nonzero
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.