Linear Algebra

How to solve

comp_v(u) = (u · v)/|v| measures how much of u points along v.

Steps

  1. Compute the dot product u · v.
  2. Compute |v| — these drills use Pythagorean lengths.
  3. Divide.

Example

u = (6, 8) onto v = (3, 4).

  1. u · v = 18 + 32 = 50.
  2. |v| = 5.
  3. 50 ÷ 5 = 10.

Answer: 10

Loading drills…