a. Consider the matrix product $Q_{1}=Q_{2} S$, where both $Q_{1}$ and $Q_{2}$ are $n \times m$ matrices with orthonormal columns. Show that $S$ is an orthogonal matrix. Hint: Compute $Q_{1}^{T} Q_{1}=\left(Q_{2} S\right)^{T} Q_{2} S$. Note that $Q_{1}^{T} Q_{1}=Q_{2}^{T} Q_{2}=I_{m}$
b. Show that the $Q R$ factorization of an $n \times m$ matrix $M$ is unique. Hint: If $M=Q_{1} R_{1}=Q_{2} R_{2}$ then $Q_{1}=Q_{2} R_{2} R_{1}^{-1}$. Now use part (a) and Exercise 50a.