Vectors: From Direction/Magnitude to Horizontal/Vertical Components

Let $\,\vec v\,$ be a vector with known magnitude $\,\|\vec v\|\,$ and known direction.

How can this information be used to find the analytic form, $\,\vec v = \langle a,b\rangle\,$, of the vector?

In other words, given the magnitude and direction of a vector, what are its horizontal and vertical components?

Trigonometry gives a simple answer, providing the direction of the vector is specified using the same angle conventions used to define the trigonometric functions. For the reader's convenience, these angle conventions are repeated below:  

‘Standard Direction’ Angle Conventions

  • Place the tail of the vector at the origin of a rectangular coordinate system.
  • Indicate the vector's direction using an angle $\,\theta\,$ laid off in the standard way:
    • start at the positive $x$-axis
    • positive angles are swept out in a counterclockwise direction (start by going up)
    • negative angles are swept out in a clockwise direction (start by going down)
    When it's necessary to emphasize that this direction scheme is being used, it will be referred to as the standard direction.
  • There are infinitely many angles $\,\theta\,$ that ‘end at’ the desired vector. Some possibilities are illustrated at right. Any such angle can be used. However, most people cover all possible directions using either:
    • nonnegative angles:
      in the interval $\,[0^\circ,360^\circ)\,$ (degree measure)
      in the interval $\,[0,2\pi)\,$ (radian measure)
    • small magnitude angles:
      in the interval $\,(-180^\circ,180^\circ]$ (degree measure)
      in the interval $\,(-\pi,\pi]$ (radian measure)
    Given any value of $\,\theta\,$ that works, adding/subtracting any multiple of $\,360^\circ\,$ ($\,2\pi\,$ radians) gives another angle that ends at precisely the same place.
Under these conditions,
the analytic representation of the vector is: $$\vec v = \langle\, \|\vec v\|\cos\theta \,,\, \|\vec v\|\sin\theta\,\rangle$$
In all these cases: $$\vec v = \langle\, \|\vec v\|\cos\theta \,,\, \|\vec v\|\sin\theta\,\rangle$$ That is:
the horizontal component is $\,\|\vec v\|\cos\theta\,$
the vertical component is $\,\|\vec v\|\sin\theta\,$

DERIVATION OF THE COMPONENT FORMULAS: $\,\|\vec v\|\cos\theta\,$ and $\,\|\vec v\|\sin\theta\,$

  • Start with a point on the unit circle,
    at the desired angle $\,\theta\,$ for the vector $\,\vec v\,$.
  • By definition of sine and cosine,
    the coordinates of the point are $\,(\cos\theta,\sin\theta)\,$.
    These are the correct coordinates in all four quadrants.
  • Multiply all sides of the green triangle by $\,\|\vec v\|\,$.
    This gives a new triangle (shown in yellow)
    which has the desired length.
  • The yellow triangle is similar to the green triangle;
    all the angles are the same.
  • What are the coordinates of the head of the vector?
    The $x$-value is $\,\|\vec v\|\cos\theta\,$.
    The $y$-value is $\,\|\vec v\|\sin\theta\,$.
  • Done! How easy was that?!


The direction of a vector can be specified in different ways.

A bearing is an acute angle measured from due north or due south. Bearings are often used for navigation.

For example, the description ‘N $\,60^\circ\,$ W’ means:
  • head north
  • ‘lean’ $\,60^\circ\,$ towards the west
Here are two memory devices for North-East-South-West:
  • Never Eat Soggy Waffles
    You need to remember to go clockwise from the north.
    Have trouble remembering the clockwise part?
    Try this slightly longer version:
    As you go through the day, Never Eat Soggy Waffles.
    (Time moves forward clockwise!)
  • When west and east are placed correctly,
    they spell out ‘WE’.
    If incorrectly placed, they spell out ‘EW’!
a bearing:

N $\,60^\circ\,$ W
a bearing:

S $\,75^\circ\,$ E
Memory Devices for North/East/South/West:

As you go
through the day,
Never Eat Soggy Waffles

WE, not EW!
To use the component formulas derived in this section,
direction must be specified as an angle from the positive $x$-axis (positive up, negative down).

Two examples of switching from bearings to standard angles $\,\theta\,$ are given at right.
Of course, infinitely many values of $\,\theta\,$ are possible.
Only simple choices are shown here.

N $\,60^\circ\,$ W

$\,\theta = 150^\circ\,$
$\,\theta = -210^\circ\,$

S $\,75^\circ\,$ E

$\,\theta = -15^\circ\,$
$\,\theta = 345^\circ\,$


Find the analytic representation of the vector $\,\vec v\,$ shown at right.
It has length $\,7\,$ and direction indicated.
As needed, round to three decimal places.

Method I: Use the Component Formulas

Method II: Use the Reference Angle; Provide the Correct Signs Yourself

As long as you provide the correct component signs (plus/minus) yourself,
then you can use the $\,20^\circ\,$ angle:

Master the ideas from this section
by practicing the exercise at the bottom of this page.

When you're done practicing, move on to:
Vectors: From Horizontal/Vertical Components to Direction/Magnitude

On this exercise, you will not key in your answer.
However, you can check to see if your answer is correct.
1 2 3 4 5 6 7
8 9 10 11 12 13 14

(MAX is 14; there are 14 different problem types.)
Want textboxes to type in your answers? Check here: