Projections & Decompositions - Linear Algebra

  1. Let VV be a finite-dimensional inner product space and WW a subspace of VV. If v∈Vv \in V satisfies projW(v)=23v\text{proj}_W(v) = \frac{2}{3}v, which of the following must be true?
    Answer: v∉Wv \notin W and ∥projW⊥(v)∥=13∥v∥\|\text{proj}_{W^\perp}(v)\| = \frac{1}{3}\|v\| Since projW(v)=23v≠v\text{proj}_W(v) = \frac{2}{3}v \neq v (unless v=0v = 0), we have v∉Wv \notin W. By the orthogonal decomposition, v=projW(v)+projW⊥(v)=23v+projW⊥(v)v = \text{proj}_W(v) + \text{proj}_{W^\perp}(v) = \frac{2}{3}v + \text{proj}_{W^\perp}(v), so projW⊥(v)=v−23v=13v\text{proj}_{W^\perp}(v) = v - \frac{2}{3}v = \frac{1}{3}v. Therefore, ∥projW⊥(v)∥=13∥v∥\|\text{proj}_{W^\perp}(v)\| = \frac{1}{3}\|v\|. Choice A is wrong because v∉Wv \notin W. Choice C has the wrong coefficient. Choice D is wrong because if v∈Wv \in W, then projW(v)=v\text{proj}_W(v) = v, not 23v\frac{2}{3}v.
  2. Let VV be an inner product space and W1,W2W_1, W_2 be subspaces of VV such that V=W1⊕W2V = W_1 \oplus W_2 (orthogonal direct sum). For any v∈Vv \in V, if ∥projW1(v)∥=35∥v∥\|\text{proj}_{W_1}(v)\| = \frac{3}{5}\|v\| and ∥v∥=10\|v\| = 10, what is ∥projW2(v)∥\|\text{proj}_{W_2}(v)\|?
    Answer: 88 Since V=W1⊕W2V = W_1 \oplus W_2 (orthogonal direct sum), we have v=projW1(v)+projW2(v)v = \text{proj}_{W_1}(v) + \text{proj}_{W_2}(v) where the projections onto W1W_1 and W2W_2 are orthogonal to each other. Given that ∥projW1(v)∥=35∥v∥=35⋅10=6\|\text{proj}_{W_1}(v)\| = \frac{3}{5}\|v\| = \frac{3}{5} \cdot 10 = 6. By the Pythagorean theorem for orthogonal components: ∥v∥2=∥projW1(v)∥2+∥projW2(v)∥2\|v\|^2 = \|\text{proj}_{W_1}(v)\|^2 + \|\text{proj}_{W_2}(v)\|^2. Substituting: 102=62+∥projW2(v)∥210^2 = 6^2 + \|\text{proj}_{W_2}(v)\|^2, so 100=36+∥projW2(v)∥2100 = 36 + \|\text{proj}_{W_2}(v)\|^2. Therefore ∥projW2(v)∥2=64\|\text{proj}_{W_2}(v)\|^2 = 64, which gives ∥projW2(v)∥=8\|\text{proj}_{W_2}(v)\| = 8.
  3. Let WW be the plane in R3\mathbb{R}^3 spanned by the vectors u⃗1=(110)\vec{u}_1 = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} and u⃗2=(121)\vec{u}_2 = \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix}. Let y⃗=(006)\vec{y} = \begin{pmatrix} 0 \\ 0 \\ 6 \end{pmatrix}. Find the orthogonal projection of y⃗\vec{y} onto WW.
    Answer: (−224)\begin{pmatrix} -2 \\ 2 \\ 4 \end{pmatrix} The basis vectors u⃗1\vec{u}_1 and u⃗2\vec{u}_2 are not orthogonal, since u⃗1⋅u⃗2=1+2+0=3≠0\vec{u}_1 \cdot \vec{u}_2 = 1+2+0 = 3 \neq 0. Therefore, we cannot use the simple sum-of-projections formula directly. A correct method is to find the orthogonal complement W⊥W^\perp, project y⃗\vec{y} onto it, and subtract this from y⃗\vec{y}. 1. Find a basis for W⊥W^\perp. The vector n⃗=u⃗1×u⃗2\vec{n} = \vec{u}_1 \times \vec{u}_2 is orthogonal to both u⃗1\vec{u}_1 and u⃗2\vec{u}_2 and thus spans W⊥W^\perp. n⃗=(110)×(121)=((1)(1)−(0)(2)(0)(1)−(1)(1)(1)(2)−(1)(1))=(1−11)\vec{n} = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} \times \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix} = \begin{pmatrix} (1)(1) - (0)(2) \\ (0)(1) - (1)(1) \\ (1)(2) - (1)(1) \end{pmatrix} = \begin{pmatrix} 1 \\ -1 \\ 1 \end{pmatrix}. 2. Project y⃗\vec{y} onto W⊥W^\perp (which is the line spanned by n⃗\vec{n}): projW⊥(y⃗)=y⃗⋅n⃗n⃗⋅n⃗n⃗=(0)(1)+(0)(−1)+(6)(1)(1)2+(−1)2+(1)2n⃗=63n⃗=2(1−11)=(2−22)\text{proj}_{W^\perp}(\vec{y}) = \frac{\vec{y} \cdot \vec{n}}{\vec{n} \cdot \vec{n}}\vec{n} = \frac{(0)(1) + (0)(-1) + (6)(1)}{(1)^2 + (-1)^2 + (1)^2}\vec{n} = \frac{6}{3}\vec{n} = 2\begin{pmatrix} 1 \\ -1 \\ 1 \end{pmatrix} = \begin{pmatrix} 2 \\ -2 \\ 2 \end{pmatrix}. 3. The projection onto WW is projW(y⃗)=y⃗−projW⊥(y⃗)\text{proj}_W(\vec{y}) = \vec{y} - \text{proj}_{W^\perp}(\vec{y}). projW(y⃗)=(006)−(2−22)=(−224)\text{proj}_W(\vec{y}) = \begin{pmatrix} 0 \\ 0 \\ 6 \end{pmatrix} - \begin{pmatrix} 2 \\ -2 \\ 2 \end{pmatrix} = \begin{pmatrix} -2 \\ 2 \\ 4 \end{pmatrix}. (A) is incorrect; this is the result of incorrectly applying the projection formula for an orthogonal basis. (B) is incorrect; this is the projection onto the orthogonal complement W⊥W^\perp, not onto WW. (D) is incorrect; this results from a sign error, calculating projW⊥(y⃗)−y⃗\text{proj}_{W^\perp}(\vec{y}) - \vec{y}.
  4. Let v⃗=(71)\vec{v} = \begin{pmatrix} 7 \\ 1 \end{pmatrix} and u⃗=(4−2)\vec{u} = \begin{pmatrix} 4 \\ -2 \end{pmatrix}. The vector v⃗\vec{v} can be written as the sum v⃗=p⃗+z⃗\vec{v} = \vec{p} + \vec{z}, where p⃗\vec{p} is parallel to u⃗\vec{u} and z⃗\vec{z} is orthogonal to u⃗\vec{u}. What is the vector z⃗\vec{z}?
    Answer: (1.83.6)\begin{pmatrix} 1.8 \\ 3.6 \end{pmatrix} The vector p⃗\vec{p} is the orthogonal projection of v⃗\vec{v} onto u⃗\vec{u}. The formula is p⃗=proju⃗(v⃗)=v⃗⋅u⃗u⃗⋅u⃗u⃗\vec{p} = \text{proj}_{\vec{u}}(\vec{v}) = \frac{\vec{v} \cdot \vec{u}}{\vec{u} \cdot \vec{u}}\vec{u}. First, compute the dot products: v⃗⋅u⃗=(7)(4)+(1)(−2)=28−2=26\vec{v} \cdot \vec{u} = (7)(4) + (1)(-2) = 28 - 2 = 26. u⃗⋅u⃗=(4)(4)+(−2)(−2)=16+4=20\vec{u} \cdot \vec{u} = (4)(4) + (-2)(-2) = 16 + 4 = 20. Now, find the projection p⃗\vec{p}: p⃗=2620u⃗=1310(4−2)=(52/10−26/10)=(5.2−2.6)\vec{p} = \frac{26}{20} \vec{u} = \frac{13}{10} \begin{pmatrix} 4 \\ -2 \end{pmatrix} = \begin{pmatrix} 52/10 \\ -26/10 \end{pmatrix} = \begin{pmatrix} 5.2 \\ -2.6 \end{pmatrix}. The vector z⃗\vec{z} is the component of v⃗\vec{v} orthogonal to u⃗\vec{u}, which is found by z⃗=v⃗−p⃗\vec{z} = \vec{v} - \vec{p}. z⃗=(71)−(5.2−2.6)=(7−5.21−(−2.6))=(1.83.6)\vec{z} = \begin{pmatrix} 7 \\ 1 \end{pmatrix} - \begin{pmatrix} 5.2 \\ -2.6 \end{pmatrix} = \begin{pmatrix} 7 - 5.2 \\ 1 - (-2.6) \end{pmatrix} = \begin{pmatrix} 1.8 \\ 3.6 \end{pmatrix}. (A) is incorrect because it is the projection vector p⃗\vec{p}, not the orthogonal component z⃗\vec{z}. (C) is incorrect because it is the negative of the correct answer, which would result from calculating p⃗−v⃗\vec{p} - \vec{v}. (D) is incorrect because it results from a sign error in the dot product calculation: v⃗⋅u⃗=28+2=30\vec{v} \cdot \vec{u} = 28 + 2 = 30, leading to p⃗=3020u⃗=(6−3)\vec{p} = \frac{30}{20}\vec{u} = \begin{pmatrix} 6 \\ -3 \end{pmatrix} and z⃗=(71)−(6−3)=(14)\vec{z} = \begin{pmatrix} 7 \\ 1 \end{pmatrix} - \begin{pmatrix} 6 \\ -3 \end{pmatrix} = \begin{pmatrix} 1 \\ 4 \end{pmatrix}.
  5. In R4\mathbb{R}^4 with the standard inner product, let U=span{(1,1,0,1),(0,1,1,0),(1,0,1,1)}U = \text{span}\{(1,1,0,1), (0,1,1,0), (1,0,1,1)\}. If v=(2,3,1,4)v = (2,3,1,4), which vector represents v−projU(v)v - \text{proj}_U(v)?
    Answer: (13,23,−13,13)(\frac{1}{3}, \frac{2}{3}, -\frac{1}{3}, \frac{1}{3}) We need to find an orthogonal basis for U using Gram-Schmidt. Let u1=(1,1,0,1)u_1 = (1,1,0,1), u2=(0,1,1,0)u_2 = (0,1,1,0), u3=(1,0,1,1)u_3 = (1,0,1,1). First, w1=u1=(1,1,0,1)w_1 = u_1 = (1,1,0,1) with ∥w1∥2=3\|w_1\|^2 = 3. Next, w2=u2−⟨u2,w1⟩∥w1∥2w1=(0,1,1,0)−13(1,1,0,1)=(−13,23,1,−13)w_2 = u_2 - \frac{\langle u_2, w_1 \rangle}{\|w_1\|^2} w_1 = (0,1,1,0) - \frac{1}{3}(1,1,0,1) = (-\frac{1}{3}, \frac{2}{3}, 1, -\frac{1}{3}) with ∥w2∥2=53\|w_2\|^2 = \frac{5}{3}. For w3w_3, we get w3=(1,0,1,1)−23(1,1,0,1)−4353(−13,23,1,−13)=(15,−35,15,15)w_3 = (1,0,1,1) - \frac{2}{3}(1,1,0,1) - \frac{\frac{4}{3}}{\frac{5}{3}}(-\frac{1}{3}, \frac{2}{3}, 1, -\frac{1}{3}) = (\frac{1}{5}, -\frac{3}{5}, \frac{1}{5}, \frac{1}{5}). Computing projU(v)\text{proj}_U(v) and subtracting from vv gives (13,23,−13,13)(\frac{1}{3}, \frac{2}{3}, -\frac{1}{3}, \frac{1}{3}).
  6. Let WW be the subspace of R3\mathbb{R}^3 with orthogonal basis B={u⃗1=(1−10),u⃗2=(11−2)}\mathcal{B} = \left\{\vec{u}_1 = \begin{pmatrix} 1 \\ -1 \\ 0 \end{pmatrix}, \vec{u}_2 = \begin{pmatrix} 1 \\ 1 \\ -2 \end{pmatrix}\right\}. Let y⃗=(314)\vec{y} = \begin{pmatrix} 3 \\ 1 \\ 4 \end{pmatrix}. If y⃗^=projW(y⃗)\hat{\vec{y}} = \text{proj}_W(\vec{y}), what is the coordinate vector [y⃗^]B[\hat{\vec{y}}]_\mathcal{B}?
    Answer: (1−2/3)\begin{pmatrix} 1 \\ -2/3 \end{pmatrix} The coordinate vector [y⃗^]B[\hat{\vec{y}}]_\mathcal{B} consists of the scalar coefficients used to build y⃗^\hat{\vec{y}} from the orthogonal basis vectors of WW. These scalars are found using the projection formula. Let [y⃗^]B=(c1c2)[\hat{\vec{y}}]_\mathcal{B} = \begin{pmatrix} c_1 \\ c_2 \end{pmatrix}. The coefficients are: c1=y⃗⋅u⃗1u⃗1⋅u⃗1c_1 = \frac{\vec{y} \cdot \vec{u}_1}{\vec{u}_1 \cdot \vec{u}_1} and c2=y⃗⋅u⃗2u⃗2⋅u⃗2c_2 = \frac{\vec{y} \cdot \vec{u}_2}{\vec{u}_2 \cdot \vec{u}_2}. Calculate c1c_1: y⃗⋅u⃗1=(3)(1)+(1)(−1)+(4)(0)=3−1=2\vec{y} \cdot \vec{u}_1 = (3)(1) + (1)(-1) + (4)(0) = 3 - 1 = 2. u⃗1⋅u⃗1=(1)2+(−1)2+(0)2=1+1=2\vec{u}_1 \cdot \vec{u}_1 = (1)^2 + (-1)^2 + (0)^2 = 1 + 1 = 2. c1=22=1c_1 = \frac{2}{2} = 1. Calculate c2c_2: y⃗⋅u⃗2=(3)(1)+(1)(1)+(4)(−2)=3+1−8=−4\vec{y} \cdot \vec{u}_2 = (3)(1) + (1)(1) + (4)(-2) = 3 + 1 - 8 = -4. u⃗2⋅u⃗2=(1)2+(1)2+(−2)2=1+1+4=6\vec{u}_2 \cdot \vec{u}_2 = (1)^2 + (1)^2 + (-2)^2 = 1 + 1 + 4 = 6. c2=−46=−23c_2 = \frac{-4}{6} = -\frac{2}{3}. So, the coordinate vector is [y⃗^]B=(1−2/3)[\hat{\vec{y}}]_\mathcal{B} = \begin{pmatrix} 1 \\ -2/3 \end{pmatrix}. (A) is incorrect; these are the numerators of the coefficient fractions ({y⃗⋅u⃗i}\{\vec{y} \cdot \vec{u}_i\}) before division by the squared norms. (C) is incorrect; this vector is y⃗^\hat{\vec{y}} itself, not its coordinate vector with respect to B\mathcal{B}. It is calculated as 1u⃗1−23u⃗2=(1/3−5/34/3)1\vec{u}_1 - \frac{2}{3}\vec{u}_2 = \begin{pmatrix} 1/3 \\ -5/3 \\ 4/3 \end{pmatrix} (note: choice in question was slightly different from this calculation, but represents the same type of error). (D) is incorrect; this results from a sign error in the dot product for c2c_2, i.e., 3+1+8=123+1+8=12, leading to c2=12/6=2c_2=12/6=2.
  7. In R3\mathbb{R}^3, the orthogonal projection of the vector y⃗=(123)\vec{y} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} onto a line WW is projW(y⃗)=(1.51.50)\text{proj}_W(\vec{y}) = \begin{pmatrix} 1.5 \\ 1.5 \\ 0 \end{pmatrix}. What is the orthogonal projection of y⃗\vec{y} onto the plane W⊥W^\perp?
    Answer: (−0.50.53)\begin{pmatrix} -0.5 \\ 0.5 \\ 3 \end{pmatrix} The Orthogonal Decomposition Theorem states that any vector y⃗\vec{y} can be written as the sum of its projection onto a subspace WW and its projection onto the orthogonal complement W⊥W^\perp. That is: y⃗=projW(y⃗)+projW⊥(y⃗)\vec{y} = \text{proj}_W(\vec{y}) + \text{proj}_{W^\perp}(\vec{y}) We are given y⃗\vec{y} and projW(y⃗)\text{proj}_W(\vec{y}), and we want to find projW⊥(y⃗)\text{proj}_{W^\perp}(\vec{y}). We can rearrange the formula: projW⊥(y⃗)=y⃗−projW(y⃗)\text{proj}_{W^\perp}(\vec{y}) = \vec{y} - \text{proj}_W(\vec{y}) Substituting the given values: projW⊥(y⃗)=(123)−(1.51.50)=(1−1.52−1.53−0)=(−0.50.53)\text{proj}_{W^\perp}(\vec{y}) = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} - \begin{pmatrix} 1.5 \\ 1.5 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 - 1.5 \\ 2 - 1.5 \\ 3 - 0 \end{pmatrix} = \begin{pmatrix} -0.5 \\ 0.5 \\ 3 \end{pmatrix}. (B) is incorrect because it is the result of the incorrect subtraction projW(y⃗)−y⃗\text{proj}_W(\vec{y}) - \vec{y}. (C) is incorrect; it is the result of adding the two vectors instead of subtracting. (D) is incorrect; it is the projection onto WW, not W⊥W^\perp.
  8. Let WW be the subspace of R3\mathbb{R}^3 spanned by the orthogonal basis u⃗1,u⃗2{\vec{u}_1, \vec{u}_2}, where u⃗1=(110)\vec{u}_1 = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} and u⃗2=(1−12)\vec{u}_2 = \begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix}. Let y⃗=(345)\vec{y} = \begin{pmatrix} 3 \\ 4 \\ 5 \end{pmatrix}. Find the orthogonal projection of y⃗\vec{y} onto WW.
    Answer: (523)\begin{pmatrix} 5 \\ 2 \\ 3 \end{pmatrix} Since u⃗1,u⃗2{\vec{u}_1, \vec{u}_2} is an orthogonal basis for WW, the projection of y⃗\vec{y} onto WW is the sum of the projections of y⃗\vec{y} onto each basis vector: projW(y⃗)=y⃗⋅u⃗1u⃗1⋅u⃗1u⃗1+y⃗⋅u⃗2u⃗2⋅u⃗2u⃗2\text{proj}_W(\vec{y}) = \frac{\vec{y} \cdot \vec{u}_1}{\vec{u}_1 \cdot \vec{u}_1}\vec{u}_1 + \frac{\vec{y} \cdot \vec{u}_2}{\vec{u}_2 \cdot \vec{u}_2}\vec{u}_2. Calculate the dot products: y⃗⋅u⃗1=(3)(1)+(4)(1)+(5)(0)=7\vec{y} \cdot \vec{u}_1 = (3)(1) + (4)(1) + (5)(0) = 7. u⃗1⋅u⃗1=(1)2+(1)2+(0)2=2\vec{u}_1 \cdot \vec{u}_1 = (1)^2 + (1)^2 + (0)^2 = 2. y⃗⋅u⃗2=(3)(1)+(4)(−1)+(5)(2)=3−4+10=9\vec{y} \cdot \vec{u}_2 = (3)(1) + (4)(-1) + (5)(2) = 3 - 4 + 10 = 9. u⃗2⋅u⃗2=(1)2+(−1)2+(2)2=1+1+4=6\vec{u}_2 \cdot \vec{u}_2 = (1)^2 + (-1)^2 + (2)^2 = 1 + 1 + 4 = 6. Now substitute these values into the formula: projW(y⃗)=72(110)+96(1−12)=72(110)+32(1−12)\text{proj}_W(\vec{y}) = \frac{7}{2}\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} + \frac{9}{6}\begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix} = \frac{7}{2}\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} + \frac{3}{2}\begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix}. Sum the vectors: projW(y⃗)=(7/2+3/27/2−3/20+6/2)=(10/24/26/2)=(523)\text{proj}_W(\vec{y}) = \begin{pmatrix} 7/2 + 3/2 \\ 7/2 - 3/2 \\ 0 + 6/2 \end{pmatrix} = \begin{pmatrix} 10/2 \\ 4/2 \\ 6/2 \end{pmatrix} = \begin{pmatrix} 5 \\ 2 \\ 3 \end{pmatrix}. (B) is incorrect because it is the orthogonal component z⃗=y⃗−projW(y⃗)=(345)−(523)=(−222)\vec{z} = \vec{y} - \text{proj}_W(\vec{y}) = \begin{pmatrix} 3 \\ 4 \\ 5 \end{pmatrix} - \begin{pmatrix} 5 \\ 2 \\ 3 \end{pmatrix} = \begin{pmatrix} -2 \\ 2 \\ 2 \end{pmatrix}. (C) is incorrect because it results from forgetting to divide by the norms squared (∥u⃗1∥2\|\vec{u}_1\|^2 and ∥u⃗2∥2\|\vec{u}_2\|^2). (D) is incorrect because it results from an arithmetic error, such as calculating the second scalar as 92\frac{9}{2} instead of 96\frac{9}{6}.
  9. Let VV be an inner product space with orthonormal basis {u1,u2,u3,u4}\{u_1, u_2, u_3, u_4\}. If v=2u1−u2+3u3+u4v = 2u_1 - u_2 + 3u_3 + u_4 and W=span{u1+u2,u2+u3}W = \text{span}\{u_1 + u_2, u_2 + u_3\}, what is ∥projW(v)∥2\|\text{proj}_W(v)\|^2?
    Answer: 52\frac{5}{2} First, we need an orthogonal basis for W. Let w1=u1+u2w_1 = u_1 + u_2 and apply Gram-Schmidt to w2=u2+u3w_2 = u_2 + u_3. We have ⟨w2,w1⟩=⟨u2+u3,u1+u2⟩=1\langle w_2, w_1 \rangle = \langle u_2 + u_3, u_1 + u_2 \rangle = 1, and ∥w1∥2=2\|w_1\|^2 = 2. So w2′=w2−⟨w2,w1⟩∥w1∥2w1=(u2+u3)−12(u1+u2)=−12u1+12u2+u3w_2' = w_2 - \frac{\langle w_2, w_1 \rangle}{\|w_1\|^2} w_1 = (u_2 + u_3) - \frac{1}{2}(u_1 + u_2) = -\frac{1}{2}u_1 + \frac{1}{2}u_2 + u_3. Now projW(v)=⟨v,w1⟩∥w1∥2w1+⟨v,w2′⟩∥w2′∥2w2′\text{proj}_W(v) = \frac{\langle v, w_1 \rangle}{\|w_1\|^2} w_1 + \frac{\langle v, w_2' \rangle}{\|w_2'\|^2} w_2'. We have ⟨v,w1⟩=1\langle v, w_1 \rangle = 1, ⟨v,w2′⟩=−2\langle v, w_2' \rangle = -2, and ∥w2′∥2=32\|w_2'\|^2 = \frac{3}{2}. Thus projW(v)=12(u1+u2)−43(−12u1+12u2+u3)=56u1−16u2−43u3\text{proj}_W(v) = \frac{1}{2}(u_1 + u_2) - \frac{4}{3}(-\frac{1}{2}u_1 + \frac{1}{2}u_2 + u_3) = \frac{5}{6}u_1 - \frac{1}{6}u_2 - \frac{4}{3}u_3. Therefore ∥projW(v)∥2=2536+136+169=52\|\text{proj}_W(v)\|^2 = \frac{25}{36} + \frac{1}{36} + \frac{16}{9} = \frac{5}{2}.
  10. Let PP be the standard matrix for the orthogonal projection onto a proper subspace WW of Rn\mathbb{R}^n (where W≠{0⃗}W \neq \{\vec{0}\} and W≠RnW \neq \mathbb{R}^n). Which of the following matrix equations must be true?
    Answer: P2=PP^2 = P A projection matrix PP has the property that applying it a second time does not change the result. Geometrically, once a vector x⃗\vec{x} is projected into the subspace WW, its image Px⃗P\vec{x} is already in WW. Projecting it again will leave it unchanged. Therefore, P(Px⃗)=Px⃗P(P\vec{x}) = P\vec{x} for all x⃗\vec{x} in Rn\mathbb{R}^n. This implies that the matrix equation P2=PP^2 = P must hold. This property is called idempotence. (A) is incorrect. Since WW is a proper subspace, PP maps some non-zero vectors to zero (any vector in W⊥W^\perp), so its null space is non-trivial. Thus, PP is singular and not invertible. (B) is incorrect. The property P2=IP^2=I defines an involution, such as a reflection matrix. A projection is not generally a reflection. (D) is incorrect. This would imply P=−IP=-I, which is not a projection matrix.
  11. Let WW be the subspace of R3\mathbb{R}^3 spanned by u⃗1=(121)\vec{u}_1 = \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix} and u⃗2=(1−11)\vec{u}_2 = \begin{pmatrix} 1 \\ -1 \\ 1 \end{pmatrix}. For which vector y⃗\vec{y} is the orthogonal projection onto WW equal to 0⃗\vec{0}?
    Answer: (30−3)\begin{pmatrix} 3 \\ 0 \\ -3 \end{pmatrix} When you encounter orthogonal projections in linear algebra, remember that the projection of a vector onto a subspace is zero if and only if that vector is orthogonal (perpendicular) to the entire subspace. This means the vector must be orthogonal to every vector that spans the subspace. To find which vector has zero projection onto WW, you need to check which option is orthogonal to both spanning vectors u⃗1=(121)\vec{u}_1 = \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix} and u⃗2=(1−11)\vec{u}_2 = \begin{pmatrix} 1 \\ -1 \\ 1 \end{pmatrix}. Two vectors are orthogonal when their dot product equals zero. For option D, (30−3)\begin{pmatrix} 3 \\ 0 \\ -3 \end{pmatrix}: - (30−3)⋅(121)=3(1)+0(2)+(−3)(1)=0\begin{pmatrix} 3 \\ 0 \\ -3 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix} = 3(1) + 0(2) + (-3)(1) = 0 - (30−3)⋅(1−11)=3(1)+0(−1)+(−3)(1)=0\begin{pmatrix} 3 \\ 0 \\ -3 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ -1 \\ 1 \end{pmatrix} = 3(1) + 0(-1) + (-3)(1) = 0 Since both dot products are zero, option D is orthogonal to the subspace WW. Options A, B, and C all fail this test. For example, option A gives dot products of 1 and 1 with the spanning vectors, option B gives 6 and 0, and option C gives 4 and 0. Since these vectors aren't orthogonal to both spanning vectors, their projections onto WW are non-zero. Key strategy: When asked about zero projections, immediately think "orthogonal to the subspace" and test dot products with all spanning vectors.
  12. Let WW be a subspace of R4\mathbb{R}^4. Suppose a vector y⃗\vec{y} is decomposed as y⃗=w⃗+z⃗\vec{y} = \vec{w} + \vec{z}, where w⃗\vec{w} is in WW and z⃗\vec{z} is in W⊥W^\perp. If w⃗=(102−1)\vec{w} = \begin{pmatrix} 1 \\ 0 \\ 2 \\ -1 \end{pmatrix} and z⃗=(23−1−1)\vec{z} = \begin{pmatrix} 2 \\ 3 \\ -1 \\ -1 \end{pmatrix}, what is projW(y⃗)\text{proj}_W(\vec{y})?
    Answer: (102−1)\begin{pmatrix} 1 \\ 0 \\ 2 \\ -1 \end{pmatrix} The Orthogonal Decomposition Theorem states that any vector y⃗\vec{y} can be uniquely decomposed into the sum of a vector in a subspace WW and a vector in its orthogonal complement W⊥W^\perp. This decomposition is given by y⃗=projW(y⃗)+z⃗⊥\vec{y} = \text{proj}_W(\vec{y}) + \vec{z}_{\perp}, where projW(y⃗)\text{proj}_W(\vec{y}) is in WW and z⃗⊥\vec{z}_{\perp} is in W⊥W^\perp. The problem provides such a decomposition: y⃗=w⃗+z⃗\vec{y} = \vec{w} + \vec{z}, with w⃗∈W\vec{w} \in W and z⃗∈W⊥\vec{z} \in W^\perp. By the uniqueness of this decomposition, we can directly identify the components: projW(y⃗)=w⃗\text{proj}_W(\vec{y}) = \vec{w} and the orthogonal component is z⃗\vec{z}. Therefore, projW(y⃗)=w⃗=(102−1)\text{proj}_W(\vec{y}) = \vec{w} = \begin{pmatrix} 1 \\ 0 \\ 2 \\ -1 \end{pmatrix}. No calculation is needed. (B) is incorrect because it is the component in W⊥W^\perp, not the projection onto WW. (C) is incorrect because it is the vector y⃗\vec{y} itself, which is the sum of the two components. (D) is incorrect; it is the result of overthinking the problem and incorrectly calculating the projection of y⃗\vec{y} onto the line spanned by the single vector w⃗\vec{w}.
  13. Consider the vector space R4\mathbb{R}^4 with the standard inner product. Let S={(1,0,1,0),(0,1,0,1),(1,1,0,0)}S = \{(1,0,1,0), (0,1,0,1), (1,1,0,0)\} and T={(1,0,0,1),(0,1,1,0)}T = \{(1,0,0,1), (0,1,1,0)\}. If v=(2,1,3,2)v = (2,1,3,2), what is ∥projspan(S)(v)−projspan(T)(v)∥2\|\text{proj}_{\text{span}(S)}(v) - \text{proj}_{\text{span}(T)}(v)\|^2?
    Answer: 72\frac{7}{2} First, we find orthogonal bases for both subspaces using Gram-Schmidt. For span(S): Starting with (1,0,1,0)(1,0,1,0), then orthogonalizing (0,1,0,1)(0,1,0,1) and (1,1,0,0)(1,1,0,0), we get an orthogonal basis. For span(T): The vectors (1,0,0,1)(1,0,0,1) and (0,1,1,0)(0,1,1,0) are already orthogonal since their inner product is 00. Computing the projections: projspan(S)(v)=(52,32,52,32)\text{proj}_{\text{span}(S)}(v) = (\frac{5}{2}, \frac{3}{2}, \frac{5}{2}, \frac{3}{2}) and projspan(T)(v)=(2,32,12,2)\text{proj}_{\text{span}(T)}(v) = (2, \frac{3}{2}, \frac{1}{2}, 2). The difference is (−12,0,2,−12)(-\frac{1}{2}, 0, 2, -\frac{1}{2}), so ∥projspan(S)(v)−projspan(T)(v)∥2=14+0+4+14=72\|\text{proj}_{\text{span}(S)}(v) - \text{proj}_{\text{span}(T)}(v)\|^2 = \frac{1}{4} + 0 + 4 + \frac{1}{4} = \frac{7}{2}.
  14. In the inner product space C[0,1]C[0,1] with inner product ⟨f,g⟩=∫01f(x)g(x)dx\langle f,g \rangle = \int_0^1 f(x)g(x) dx, consider the subspace W=span{1,x}W = \text{span}\{1, x\}. What is the projection of f(x)=x2f(x) = x^2 onto WW?
    Answer: −16+x-\frac{1}{6} + x We use the Gram-Schmidt process to orthogonalize the basis {1,x}\{1, x\}. Let u1=1u_1 = 1 with ∥u1∥2=1\|u_1\|^2 = 1. Then u2=x−⟨x,1⟩∥1∥2⋅1=x−1/21=x−12u_2 = x - \frac{\langle x, 1 \rangle}{\|1\|^2} \cdot 1 = x - \frac{1/2}{1} = x - \frac{1}{2}. We have ∥u2∥2=∫01(x−12)2dx=112\|u_2\|^2 = \int_0^1 (x - \frac{1}{2})^2 dx = \frac{1}{12}. The projection is projW(x2)=⟨x2,1⟩∥1∥2⋅1+⟨x2,x−12⟩∥x−12∥2⋅(x−12)\text{proj}_W(x^2) = \frac{\langle x^2, 1 \rangle}{\|1\|^2} \cdot 1 + \frac{\langle x^2, x - \frac{1}{2} \rangle}{\|x - \frac{1}{2}\|^2} \cdot (x - \frac{1}{2}). Computing: ⟨x2,1⟩=13\langle x^2, 1 \rangle = \frac{1}{3} and ⟨x2,x−12⟩=14−16=112\langle x^2, x - \frac{1}{2} \rangle = \frac{1}{4} - \frac{1}{6} = \frac{1}{12}. Thus projW(x2)=13+1/121/12(x−12)=13+x−12=x−16\text{proj}_W(x^2) = \frac{1}{3} + \frac{1/12}{1/12}(x - \frac{1}{2}) = \frac{1}{3} + x - \frac{1}{2} = x - \frac{1}{6}.
  15. Let WW be the column space of the matrix A=(100111)A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{pmatrix}. Which vector is the orthogonal projection of y⃗=(600)\vec{y} = \begin{pmatrix} 6 \\ 0 \\ 0 \end{pmatrix} onto WW?
    Answer: (4−22)\begin{pmatrix} 4 \\ -2 \\ 2 \end{pmatrix} When you encounter orthogonal projection problems, you're finding the closest point in a subspace to a given vector. Here, you need to project y⃗=(600)\vec{y} = \begin{pmatrix} 6 \\ 0 \\ 0 \end{pmatrix} onto the column space of A=(100111)A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{pmatrix}. The projection formula is projW(y⃗)=A(ATA)−1ATy⃗\text{proj}_W(\vec{y}) = A(A^T A)^{-1}A^T \vec{y}. First, calculate ATA=(101011)(100111)=(2112)A^T A = \begin{pmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{pmatrix} = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}. Next, (ATA)−1=13(2−1−12)(A^T A)^{-1} = \frac{1}{3}\begin{pmatrix} 2 & -1 \\ -1 & 2 \end{pmatrix} since the determinant is 3. Then ATy⃗=(101011)(600)=(60)A^T \vec{y} = \begin{pmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \end{pmatrix} \begin{pmatrix} 6 \\ 0 \\ 0 \end{pmatrix} = \begin{pmatrix} 6 \\ 0 \end{pmatrix}. Computing (ATA)−1ATy⃗=13(2−1−12)(60)=(4−2)(A^T A)^{-1}A^T \vec{y} = \frac{1}{3}\begin{pmatrix} 2 & -1 \\ -1 & 2 \end{pmatrix} \begin{pmatrix} 6 \\ 0 \end{pmatrix} = \begin{pmatrix} 4 \\ -2 \end{pmatrix}. Finally, A(ATA)−1ATy⃗=(100111)(4−2)=(4−22)A(A^T A)^{-1}A^T \vec{y} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{pmatrix} \begin{pmatrix} 4 \\ -2 \end{pmatrix} = \begin{pmatrix} 4 \\ -2 \\ 2 \end{pmatrix}, which is answer D. Answer A gives a vector not in the column space of A. Answer B fails the projection formula calculation. Answer C represents an incorrect computation of the inverse or matrix multiplication. Always verify your projection lies in the subspace by checking it's a linear combination of the column vectors. Here, 4(101)+(−2)(011)=(4−22)4\begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} + (-2)\begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 4 \\ -2 \\ 2 \end{pmatrix} confirms our answer.
  16. In R3\mathbb{R}^3, let PP be the plane passing through the origin with normal vector n=(1,2,−1)n = (1,2,-1). If AA is the matrix representing the orthogonal projection onto PP, which of the following is true about the eigenvalues of AA?
    Answer: Two eigenvalues equal 11 and one eigenvalue equals 00 When you encounter orthogonal projection matrices, think about their geometric meaning: they map vectors onto a subspace while preserving distances within that subspace. This geometric insight directly determines the eigenvalue structure. For the orthogonal projection onto plane PP with normal vector n=(1,2,−1)n = (1,2,-1), consider what happens to different types of vectors. Any vector lying in the plane PP gets mapped to itself, so these vectors are eigenvectors with eigenvalue 11. Since PP is a 2-dimensional subspace of R3\mathbb{R}^3, there are two linearly independent eigenvectors with eigenvalue 11. The normal vector n=(1,2,−1)n = (1,2,-1) is perpendicular to plane PP, so projecting it onto PP gives the zero vector. This means nn is an eigenvector with eigenvalue 00. Since the projection eliminates the component perpendicular to PP, there's exactly one such eigenvalue. Therefore, the matrix AA has two eigenvalues equal to 11 and one eigenvalue equal to 00, making (D) correct. Looking at the wrong answers: (A) incorrectly suggests eigenvalues of 12\frac{1}{2}, which would indicate some kind of scaling rather than true projection. (B) reverses the multiplicities—this would describe projection onto a line rather than a plane. (C) suggests all eigenvalues equal 13\frac{1}{3}, which would make this a scaling transformation, not a projection. Study tip: Remember that orthogonal projections onto kk-dimensional subspaces always have kk eigenvalues equal to 11 and (n−k)(n-k) eigenvalues equal to 00.
  17. In R3\mathbb{R}^3, let LL be the line through the origin with direction vector (1,2,−1)(1,2,-1), and let PP be the plane x+y−z=0x + y - z = 0. If v=(3,1,2)v = (3,1,2), what is the distance from projL(v)\text{proj}_L(v) to projP(v)\text{proj}_P(v)?
    Answer: 263\frac{2\sqrt{6}}{3} First, projL(v)=⟨v,(1,2,−1)⟩∥(1,2,−1)∥2(1,2,−1)=36(1,2,−1)=(12,1,−12)\text{proj}_L(v) = \frac{\langle v, (1,2,-1) \rangle}{\|(1,2,-1)\|^2} (1,2,-1) = \frac{3}{6}(1,2,-1) = (\frac{1}{2}, 1, -\frac{1}{2}). For the plane PP with normal vector (1,1,−1)(1,1,-1), we have projP(v)=v−proj(1,1,−1)(v)=(3,1,2)−⟨(3,1,2),(1,1,−1)⟩∥(1,1,−1)∥2(1,1,−1)=(3,1,2)−23(1,1,−1)=(73,13,83)\text{proj}_P(v) = v - \text{proj}_{(1,1,-1)}(v) = (3,1,2) - \frac{\langle (3,1,2), (1,1,-1) \rangle}{\|(1,1,-1)\|^2}(1,1,-1) = (3,1,2) - \frac{2}{3}(1,1,-1) = (\frac{7}{3}, \frac{1}{3}, \frac{8}{3}). The distance between these projections is ∥(12,1,−12)−(73,13,83)∥=∥(−116,23,−196)∥=12136+49+36136=263\|(\frac{1}{2}, 1, -\frac{1}{2}) - (\frac{7}{3}, \frac{1}{3}, \frac{8}{3})\| = \|(-\frac{11}{6}, \frac{2}{3}, -\frac{19}{6})\| = \sqrt{\frac{121}{36} + \frac{4}{9} + \frac{361}{36}} = \frac{2\sqrt{6}}{3}.
  18. Let WW be the line in R3\mathbb{R}^3 defined by the equation x⃗=t(2−12)\vec{x} = t\begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix} for t∈Rt \in \mathbb{R}. What is the shortest distance from the point P(1,2,3)P(1, 2, 3) to the line WW?
    Answer: 10\sqrt{10} The shortest distance from a point to a line is the length of the vector component orthogonal to the line. Let v⃗=(123)\vec{v} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} be the position vector of point PP, and let u⃗=(2−12)\vec{u} = \begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix} be the direction vector of the line WW. 1. Find the projection of v⃗\vec{v} onto u⃗\vec{u}, let's call it p⃗\vec{p}: p⃗=proju⃗(v⃗)=v⃗⋅u⃗u⃗⋅u⃗u⃗\vec{p} = \text{proj}_{\vec{u}}(\vec{v}) = \frac{\vec{v} \cdot \vec{u}}{\vec{u} \cdot \vec{u}}\vec{u}. v⃗⋅u⃗=(1)(2)+(2)(−1)+(3)(2)=2−2+6=6\vec{v} \cdot \vec{u} = (1)(2) + (2)(-1) + (3)(2) = 2 - 2 + 6 = 6. u⃗⋅u⃗=(2)2+(−1)2+(2)2=4+1+4=9\vec{u} \cdot \vec{u} = (2)^2 + (-1)^2 + (2)^2 = 4 + 1 + 4 = 9. p⃗=69u⃗=23(2−12)=(4/3−2/34/3)\vec{p} = \frac{6}{9}\vec{u} = \frac{2}{3}\begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix} = \begin{pmatrix} 4/3 \\ -2/3 \\ 4/3 \end{pmatrix}. 2. Find the orthogonal component, z⃗=v⃗−p⃗\vec{z} = \vec{v} - \vec{p}: z⃗=(123)−(4/3−2/34/3)=(−1/38/35/3)\vec{z} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} - \begin{pmatrix} 4/3 \\ -2/3 \\ 4/3 \end{pmatrix} = \begin{pmatrix} -1/3 \\ 8/3 \\ 5/3 \end{pmatrix}. 3. The shortest distance is the magnitude of z⃗\vec{z}: ∥z⃗∥=(−1/3)2+(8/3)2+(5/3)2=1+64+259=909=10\|\vec{z}\| = \sqrt{(-1/3)^2 + (8/3)^2 + (5/3)^2} = \sqrt{\frac{1 + 64 + 25}{9}} = \sqrt{\frac{90}{9}} = \sqrt{10}. (A) is incorrect because 2 is the length of the projection vector, ∥p⃗∥=23∥u⃗∥=239=2\|\vec{p}\| = \frac{2}{3}\|\vec{u}\| = \frac{2}{3}\sqrt{9} = 2. This represents the distance from the origin to the point of projection on the line. (C) is incorrect because 14\sqrt{14} is the length of the original vector v⃗\vec{v}, which is the distance from the origin to point P. (D) is incorrect; 26\sqrt{26} would result from a sign error in the dot product calculation, i.e., (1)(2)+(2)(−1)+(3)(−2)=−6(1)(2) + (2)(-1) + (3)(-2) = -6, leading to a different orthogonal vector.
  19. Let B={u⃗1,u⃗2}\mathcal{B} = \{\vec{u}_1, \vec{u}_2\} be an orthogonal basis for a subspace W⊂R3W \subset \mathbb{R}^3, where u⃗1=(22−1)\vec{u}_1 = \begin{pmatrix} 2 \\ 2 \\ -1 \end{pmatrix} and u⃗2=(2−12)\vec{u}_2 = \begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix}. The vector w⃗=(85−1)\vec{w} = \begin{pmatrix} 8 \\ 5 \\ -1 \end{pmatrix} is in WW. What is the coordinate vector [w⃗]B[\vec{w}]_\mathcal{B}?
    Answer: (31)\begin{pmatrix} 3 \\ 1 \end{pmatrix} For an orthogonal basis B={u⃗1,…,u⃗k}\mathcal{B} = \{\vec{u}_1, \dots, \vec{u}_k\}, the coordinates of a vector w⃗\vec{w} in the subspace are the scalars from the projection formula. If w⃗=c1u⃗1+c2u⃗2\vec{w} = c_1\vec{u}_1 + c_2\vec{u}_2, then the coordinate vector is [w⃗]B=(c1c2)[\vec{w}]_\mathcal{B} = \begin{pmatrix} c_1 \\ c_2 \end{pmatrix}, where ci=w⃗⋅u⃗iu⃗i⋅u⃗ic_i = \frac{\vec{w} \cdot \vec{u}_i}{\vec{u}_i \cdot \vec{u}_i}. Calculate c1c_1: w⃗⋅u⃗1=(8)(2)+(5)(2)+(−1)(−1)=16+10+1=27\vec{w} \cdot \vec{u}_1 = (8)(2) + (5)(2) + (-1)(-1) = 16 + 10 + 1 = 27. u⃗1⋅u⃗1=(2)2+(2)2+(−1)2=4+4+1=9\vec{u}_1 \cdot \vec{u}_1 = (2)^2 + (2)^2 + (-1)^2 = 4 + 4 + 1 = 9. c1=279=3c_1 = \frac{27}{9} = 3. Calculate c2c_2: w⃗⋅u⃗2=(8)(2)+(5)(−1)+(−1)(2)=16−5−2=9\vec{w} \cdot \vec{u}_2 = (8)(2) + (5)(-1) + (-1)(2) = 16 - 5 - 2 = 9. u⃗2⋅u⃗2=(2)2+(−1)2+(2)2=4+1+4=9\vec{u}_2 \cdot \vec{u}_2 = (2)^2 + (-1)^2 + (2)^2 = 4 + 1 + 4 = 9. c2=99=1c_2 = \frac{9}{9} = 1. Therefore, the coordinate vector is [w⃗]B=(31)[\vec{w}]_\mathcal{B} = \begin{pmatrix} 3 \\ 1 \end{pmatrix}. (A) is incorrect; it consists of the dot products w⃗⋅u⃗i\vec{w} \cdot \vec{u}_i, forgetting to divide by u⃗i⋅u⃗i\vec{u}_i \cdot \vec{u}_i. (B) is incorrect; it results from dividing the dot products by the norms (9=3\sqrt{9}=3) instead of the norms squared. (C) is incorrect; it is the correct coordinates but in the wrong order.
  20. Let WW be a subspace of Rn\mathbb{R}^n and let y⃗\vec{y} be a vector in Rn\mathbb{R}^n. Let y⃗^=projW(y⃗)\hat{\vec{y}} = \text{proj}_W(\vec{y}). Which of the following statements is always true?
    Answer: The vector y⃗−y⃗^\vec{y} - \hat{\vec{y}} is orthogonal to every vector in WW. The Orthogonal Decomposition Theorem states that any vector y⃗\vec{y} can be uniquely written as the sum of a vector in a subspace WW and a vector in its orthogonal complement W⊥W^\perp. Specifically, y⃗=y⃗^+z⃗\vec{y} = \hat{\vec{y}} + \vec{z}, where y⃗^=projW(y⃗)\hat{\vec{y}} = \text{proj}_W(\vec{y}) is in WW and z⃗=y⃗−y⃗^\vec{z} = \vec{y} - \hat{\vec{y}} is in W⊥W^\perp. By definition, a vector in W⊥W^\perp is orthogonal to every vector in WW. Therefore, the statement that y⃗−y⃗^\vec{y} - \hat{\vec{y}} is orthogonal to every vector in WW is always true. (A) is incorrect. The projection y⃗^\hat{\vec{y}} is not generally orthogonal to y⃗\vec{y}. This would only happen if projW(y⃗)=0⃗\text{proj}_W(\vec{y})=\vec{0}, which means y⃗\vec{y} is in W⊥W^\perp. (B) is incorrect. The vector y⃗−y⃗^\vec{y} - \hat{\vec{y}} is the component of y⃗\vec{y} orthogonal to WW, so it lies in W⊥W^\perp, not WW. (D) is incorrect. The length of the projection is less than or equal to the length of the original vector. Equality holds only if y⃗\vec{y} is already in the subspace WW, in which case y⃗^=y⃗\hat{\vec{y}} = \vec{y}.

Start this quiz