Find the QR decomposition of A=[[1,1,0],[1,0,1],[0,1,1]]A = [[1, 1, 0], [1, 0, 1], [0, 1, 1]].

Answer: Q=[1/21/6−1/31/2−1/61/302/61/3],R=[21/21/203/61/6002/3]Q = \begin{bmatrix} 1/\sqrt{2} & 1/\sqrt{6} & -1/\sqrt{3} \\ 1/\sqrt{2} & -1/\sqrt{6} & 1/\sqrt{3} \\ 0 & 2/\sqrt{6} & 1/\sqrt{3} \end{bmatrix}, R = \begin{bmatrix} \sqrt{2} & 1/\sqrt{2} & 1/\sqrt{2} \\ 0 & 3/\sqrt{6} & 1/\sqrt{6} \\ 0 & 0 & 2/\sqrt{3} \end{bmatrix}

Step-by-step solution

Step 1: Define the columns of A

We begin by representing the given matrix AA in terms of its column vectors. This is the first step in applying the Gram-Schmidt orthogonalization process to find the QR decomposition.

Step 2: Apply Gram-Schmidt to find orthogonal vectors

We use the Gram-Schmidt process to convert the column vectors of AA into a set of orthogonal vectors u1,u2,u3\mathbf{u}_1, \mathbf{u}_2, \mathbf{u}_3. The projection formula projuv=v⋅uu⋅uu\text{proj}_{\mathbf{u}} \mathbf{v} = \frac{\mathbf{v} \cdot \mathbf{u}}{\mathbf{u} \cdot \mathbf{u}} \mathbf{u} is applied iteratively. For u2\mathbf{u}_2, we subtract the projection of a2\mathbf{a}_2 onto u1\mathbf{u}_1. For u3\mathbf{u}_3, we subtract the projections of a3\mathbf{a}_3 onto both u1\mathbf{u}_1 and u2\mathbf{u}_2.

Step 3: Normalize orthogonal vectors to find Q

To form the matrix QQ, we normalize each orthogonal vector ui\mathbf{u}_i by dividing it by its magnitude ∥ui∥\|\mathbf{u}_i\|. This results in a set of orthonormal vectors qi\mathbf{q}_i, which become the columns of the orthogonal matrix QQ.

Step 4: Calculate R using R=QTAR = Q^T A

The matrix RR can be found by multiplying the transpose of QQ with the original matrix AA, i.e., R=QTAR = Q^T A. Since QQ is an orthogonal matrix, QTQ=IQ^T Q = I, and thus A=QRA = QR implies QTA=QTQR=IR=RQ^T A = Q^T QR = IR = R. This calculation yields an upper triangular matrix RR.

Solve your own maths question free →