Let a=⟨1,2,2⟩ and b=⟨3,1,−1⟩.
(a) Compute the scalar projection of b onto a and the vector projection projab.
(b) Write b as the sum of a vector b∥ parallel to a and a vector b⊥ orthogonal to a.
(c) Verify by a direct dot product that b⊥ is orthogonal to a, and verify that ∣b∥∣2+∣b⊥∣2=∣b∣2. Interpret the last identity geometrically.