Projection and orthogonal residual

Problem

Let u=(1,1,0)Tu=(1,1,0)^{\mathsf T} and v=(2,0,1)Tv=(2,0,1)^{\mathsf T}. Compute the orthogonal projection of vv onto span⁡(u)\operatorname{span}(u) and the residual. Verify the residual is orthogonal to uu.

Reveal answer or reference solution
proj⁡u(v)=vTuuTuu=22u=(1,1,0)T\operatorname{proj}_u(v)=\frac{v^{\mathsf T}u}{u^{\mathsf T}u}u =\frac2{2}u=(1,1,0)^{\mathsf T}

Hence the residual is

r=v−proj⁡u(v)=(1,−1,1)Tr=v-\operatorname{proj}_u(v)=(1,-1,1)^{\mathsf T}

The check is uTr=1−1+0=0u^{\mathsf T}r=1-1+0=0, so the residual is orthogonal to the projection subspace.

Outcome

Previous attempts

Loading attempts saved in this browser…

    Review Screening Results