Dot product, length/norm, angle, projection

Notes

Consider two vectors in R3, u = (u1, u2, u3)T and v = (v1, v2, v3)T.

  • The dot product of u with itself is u·u = u12 + u22 + u32. For example, u = (3, 0, –1)Tu·u = 32 + 02 + (–1)2 = 9 + 0 + 1 = 10, and v = (2, 2, 1)Tv·v = 22 + 22 + 12 = 4 + 4 + 1 = 9.
  • This quantity is also the square of the norm (or length), u·u = ||u||2, so the norm or length is ||u|| = √u·u. For example, the norm or length of u is ||u|| = √10, while the norm or length of v is ||v|| = √9=3.
  • The dot product of u with v is u·v = u1v1 + u2v2 + u3v3. For example, u·v = 3(2) + 0(2) + –1(1) = 6 + 0 – 1 = 5.
  • The cosine of the angle between u and v is given by cosθ = u·v / (||u|| ||v||). For example, cosθ = 5 / 3√10 = 5√10 / 30 = √10/6.
  • The projection of v on u is given by Proju(v) = (u·v / u·u) u. For example, Proju(v) = (5/10) (3, 0, –1)T = (3/2, 0, –1/2)T. Similarly, Projv(u) = (u·v / v·v) v = (5/9) (2, 2, 1)T = (10/9, 10/9, 1/9)T.

Video Tips

Practice Exercises

 

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

A Compendium of Mathematics Problems Copyright © by Iain Pardoe is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book