Projections and Vector Components

Projection

  • Projection - Let be a set, the projection of the vector onto , written is the closest point in to

    • Intuitively, is the “shadow” that would on if the sun were perpendicular to
  • If there are two points other as the closest point to , OR there are no closest point to , then is undefined

  • For a fixed set , is a function that inputs and outputs vectors. The domain of this function is exactly the vectors is which is defined.

    • If is a line or a plane in , then the domain of is all of (if projection exist)

    Let , be the xy-plane, by the y-axis

    Intuitively, or by the picture, it can be concluded that Screen Shot 2021-02-12 at 10.51.52

    By definition, every vector in takes the form for some . The distance between and is

    Since would be always position, this whole expression would be minimized when , thus when . Therefore is the closest vector in to .

  • If is a line or plane and is a vector, then is a normal vector for

    • When projecting onto lines and planes, right angles appear in key places

    Let be the line given in vector form by , and let . Use the fact that is a normal vector to to find

    Since is a normal vector to , then its orthogonal to . Let for some unknown , get:

    That is (*1)

    Since then this means:

    Combining with equation (*1) get the system of equations:

    Solving the system, to get , the value of does not matter. Therefore

Projection onto sets

let be a filled in triangle with verticals and let Find

Screen Shot 2021-02-12 at 12.04.59(Pic 1) Screen Shot 2021-02-12 at 12.09.10 (Pic2)

From the picture, so .

Then, is closest to the hypotenuse of , so is the same as projection of onto the line , thus by doing calculations for the normal of this line,

Lastly, for , draw some concentric cycles (pic2), finds that it is closes to the lower-right corner, so

Vector Components

  • Let and be vectors, the vector component of in the direction, written \text{vcomp}_\vec{v} \vec{u} is a vector in the direction of so that \vec{u} - \text{vcomp}_\vec{v} \vec{u} is orthogonal to Screen Shot 2021-02-12 at 12.13.35 \vec{u} = \text{vcomp}_\vec{v} \vec{u} + (\vec{u} - \text{vcomp}_\vec{v} \vec{u})

  • Since by the definition, \text{vcomp}_\vec{v} \vec{u} is a vector in the direction of , then: \text{vcomp}_\vec{v} \vec{u} = k\vec{v}

  • Since, \vec{u} - \text{vcomp}_\vec{v} \vec{u} is orthogonal to then: \vec{v} \cdot (\vec{u} - \text{vcomp}_\vec{v} \vec{u}) = \vec{v} \cdot (\vec{u} - k\vec{v}) = \vec{v} \cdot \vec{u} - k\vec{v} \cdot \vec{v} = 0

    • Since then , solve for , put it tougher:
      \text{vcomp}_\vec{v} \vec{u} = \left(\frac{\vec{v} \cdot \vec{u}}{\vec{v} \cdot \vec{v}} \right) \vec{v}

For vectors and , then \text{proj}_{\text{span}\{\vec{v}\}} \vec{u} = \text{vcomp}_\vec{v} \vec{u}

  • When projection onto the span of a single vector, vector components can be a computational shortcut, but if the set isn’t a span, then this shortcut cannot work
Compute the projection of onto

Let since and , using vector components as a shortcut

\text{proj}_\ell \vec{a} = \text{vcomp}_\vec{b} \vec{a} = \left(\frac{\vec{b} \cdot \vec{a}}{\vec{b} \cdot \vec{b}} \right) \vec{b} = \frac{3-28}{1+16} \begin{bmatrix} 1 \\ -4 \end{bmatrix} = \begin{bmatrix} -25/17 \\ 100/17 \end{bmatrix}