Vectors: From Horizontal/Vertical Components to Direction/Magnitude

Let $\,\vec v\,$ be a vector with known analytic form $\,\langle a\,,\,b\rangle\,$:   the horizontal component is $\,a\,$;   the vertical component is $\,b\,$.
Throughout this section, $\,a\,$ and $\,b\,$ are real numbers.

How can this information be used to find the direction and magnitude of the vector $\,\vec v\,$?
In other words, given the horizontal and vertical components of a vector, what are its magnitude and direction?

Getting Magnitude (size, length) from Horizontal and Vertical Components

As shown in an earlier section, the magnitude of $\,\vec v = \langle a\,,\,b\rangle\,$ is: $$ \|\vec v\| = \sqrt{\strut a^2 + b^2} $$ In words: the magnitude of a vector is the square root of the sum of the squares of its components.

Magnitude: the Zero Vector

The zero vector is $\,\langle 0\,,\,0\rangle\,$.

Getting (standard) Direction from Horizontal and Vertical Components

The direction of a vector can be described in different ways.
For example, bearings are often used in navigation.

The angle conventions used to define the trigonometric functions
give a particularly convenient way to define the direction of a vector.
For the reader's convenience, this scheme is 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 as follows:
    • 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.

    Standard direction is not unique. For example, $\,\theta = 30^\circ\,$ and $\,\theta = -330^\circ\,$ both describe a vector pointing the same way. In what follows, the symbol $\,\theta\,$ (theta) always refers to standard direction, and simple values of $\,\theta\,$ are used.
standard direction:
a positive angle $\,\theta$

standard direction:
a negative angle $\,\theta$

Standard Direction for Vectors pointing Up/Down/Left/Right

When at least one component (horizontal or vertical) of a vector equals zero,
then no formula is needed to find standard direction.
Here's a table that summarizes the results for $\,\vec v = \langle a\,,\, b\rangle\,$:

horizontal/vertical components arrow representation standard direction, $\,\theta$
the zero vector:
$\,a = 0\,$ and $\,b = 0\,$
(no arrow representation) the zero vector has no direction;
the direction of $\,\langle 0,0\rangle\,$ is undefined
$\,\vec v = \langle a\,,\,0\rangle\,$ with $\,a > 0\,$
vector points to the right
$\,\theta = 0^\circ\,$
$\,\vec v = \langle a\,,\,0\rangle\,$ with $\,a < 0\,$
vector points to the left
$\,\theta = 180^\circ\,$
$\,\vec v = \langle 0\,,\,b\rangle\,$ with $\,b > 0\,$
vector points up
$\,\theta = 90^\circ\,$
$\,\vec v = \langle 0\,,\,b\rangle\,$ with $\,b < 0\,$
vector points down
$\,\theta = 270^\circ\,$ or $\,\theta = -90^\circ\,$

Formula for Standard Direction for Vectors in Quadrants I and IV

For an arbitrary vector, the arctangent function gives convenient formulas for standard direction. However, different formulas are needed in different quadrants.

Why are different formulas needed?
The arctangent only gives angles between $\,-90^\circ\,$ and $\,90^\circ\,$, so (without adjustment) it can only cover vectors in quadrants IV and I. Keep reading!

Recall that, by definition:
$\arctan x\,$ is the angle in the interval $\,(-90^\circ,90^\circ)\,$ whose tangent is $\,x\,$
This is the ‘degree version’ of the definition. Remember:
  • if your calculator is in degree mode, $\,\arctan x\,$ will be in degrees
  • if your calculator is in radian mode, $\,\arctan x\,$ will be in radians
For the formulas in this section, $\,\arctan x\,$ is assumed to be in degrees.
In Quadrant I, where $\,a > 0\,$ and $\,b > 0\,$, everything is simple: $$ \begin{gather} \tan\theta = \frac ba\cr \theta = \arctan\bigl(\frac ba\bigr) \end{gather} $$ When $\,\frac ba\,$ is positive, $\,\arctan(\frac ba)\,$ returns the angle between $\,0^\circ\,$ and $\,90^\circ\,$ whose tangent is $\,\frac ba\,$. This is just the angle we want!

Things are similarly easy in quadrant IV. Here, $\,\frac ba\,$ is negative, and $\,\arctan(\frac ba)\,$ returns an angle between $\,-90^\circ\,$ and $\,0^\circ\,$. Again, this angle provides a correct direction for the vector. If you want a positive angle for the direction (instead of the negative one provided by the arctangent), you can use the formula $\,360^\circ + \arctan(\frac ba) \,$.
The formula for the (standard) direction of a vector $\,\vec v = \langle a\,,\,b\rangle\,$
depends upon the signs of $\,a\,$ and $\,b\,$, as indicated below:





In summary:
In Quadrant I:   $\,\theta = \arctan(\frac ba)\,$
(This formula always yields an angle between $\,0^\circ\,$ and $\,90^\circ\,$.)

In Quadrant IV:   $\,\theta = \arctan(\frac ba)\,$
(This formula always yields an angle between $\,-90^\circ\,$ and $\,0^\circ\,$.)


In Quadrant IV:   $\,\theta = 360^\circ + \arctan(\frac ba)\,$
(This formula always yields an angle between $\,270^\circ\,$ and $\,360^\circ\,$.)

Formula for Standard Direction for Vectors in Quadrants II and III

In Quadrant II, where $\,a < 0\,$ and $\,b > 0\,$, we have to be careful:

In Quadrant III, where $\,a < 0\,$ and $\,b < 0\,$, we also have to be careful:

The ‘Reference Angle’ Method for finding (standard) Direction

Instead of using the formulas for direction discussed above, you can always find the reference angle for the vector, and then adjust.
The reference angle is the acute angle between the vector and the $x$-axis.


Find the standard direction of $\,\vec v = \langle -2\,,\,-5\rangle\,$.
Report as a positive angle in the interval $\,[0^\circ,360^\circ)\,$.

  • Initially ignore the signs (plus/minus) of the horizontal and vertical components of $\,\vec v = \langle a\,,b\rangle\,$.
  • Find $\displaystyle\,\arctan\frac{|b|}{|a|}\,$. This is always a positive, acute angle.
  • Here, $\,\arctan \frac{|-5|}{|-2|} = \arctan\frac 52 \approx 68.2^\circ\,$.
  • Adjust as needed to get standard direction.
    In this example, you'll add $\,180^\circ\,$:

            standard direction $\,= 68.2^\circ + 180^\circ = 248.2^\circ\,$
You can use WolframAlpha to find the arctangent:
Master the ideas from this section
by practicing the exercise at the bottom of this page.

When you're done practicing, move on to:
Vector Application: Finding True Speed and Direction

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: