Vectors in 2D & 3D

Position vectors, magnitude |a| = √(x²+y²+z²), the scalar product a·b = |a||b|cosθ, and vector equations of lines r = a + λb.

Key points

Worked example

Question. Find the angle between a = (1,0,0) and b = (1,1,0).

  1. a·b = 1; |a| = 1, |b| = √2.
  2. cos θ = 1/√2 → θ = 45°.

Answer. 45°

Common mistakes

Related topics