← Precalculus

Vector direction and components

From magnitude and angle to components, and back.

Start this lesson

A vector with magnitude |v| and direction angle θ (measured counterclockwise from the positive x-axis) has components ⟨|v|cos θ, |v|sin θ⟩. Going the other way, the direction angle of ⟨a, b⟩ comes from tan θ = b/a, adjusted for the quadrant.

Example: Magnitude 10 at 30°

  1. 10 cos 30° ≈ 8.66 — Horizontal component
  2. 10 sin 30° = 5 — Vertical component
  3. ⟨8.66, 5⟩

Why it works: The across and up parts are the legs of a right triangle with the vector as hypotenuse, so cosine and sine give them.

Tip: Sketch the vector to check the quadrant: a vector pointing left and up has an angle between 90° and 180°.