Back to homeMathematics · Precalculus · Change subject
Start for free
Precalculus · Mathematics
Vectors and Geometry · Vectors

Magnitude and Direction of a Vector

Before you start, make sure you know: Vectors in the plane (Geometry)
Before you start, make sure you know: Pythagorean theorem (Geometry)

Your phone's map says the stadium is 5 miles away and you need to head northeast. Two facts, how far and which way, are all a vector needs. This page turns those two facts into numbers: the magnitude (how long) and the direction (along which line, pointing which way). Some problems call the magnitude the modulus and talk about the sense of a vector. That is just the "which way along the line" part. At the end we will answer a question the map can't: how can you tell, without drawing, whether two arrows point along the same line?

Magnitude and distance

Drag the point below. Watch how the horizontal and vertical legs change while the vector stays the hypotenuse.

A right triangle whose legs are the components 8 and 15 of a vector and whose hypotenuse has length 17. A(2, −3) B(10, 12) 8 15 17 (not to scale)
Practice★☆☆Not started
Calculate the modulus of the vector $\vec{v} = (3, -4)$.

Calculate the modulus of the vector $\vec{v} = (3, -4)$.

Solve
Practice★☆☆Not started
Find the exact distance between the points $A(-2, 5)$ and $B(4, -3)$.

Find the exact distance between the points $A(-2, 5)$ and $B(4, -3)$.

Solve

Direction and parallel vectors

The magnitude tells you how long. The direction tells you which line the vector lies along. Two things describe it:

  • the slope $m = \dfrac{v_2}{v_1}$ (rise over run), which some problems call the gradient;

  • the direction angle $\theta$, measured counterclockwise from the positive $x$-axis.

Two parallel vectors u and v with the same slope; v is half as long as u and points the opposite way. u v = −½u same slope, opposite directions
Practice★☆☆Not started
Determine the gradient (which indicates the direction) of the vector joining the points $P(1, -4)$ and $Q(3, 8)$.

Determine the gradient (which indicates the direction) of the vector joining the points $P(1, -4)$ and $Q(3, 8)$.

Solve
Practice★☆☆Not started
Prove analytically whether the vectors $\vec{u} = (2, -5)$ and $\vec{v} = (-4, 10)$ have the same direction. If so, indicate whether they have the same sense or opposite…

Prove analytically whether the vectors $\vec{u} = (2, -5)$ and $\vec{v} = (-4, 10)$ have the same direction. If so, indicate whether they have the same sense or opposite senses.

Solve

Unit vectors

Dividing by $|\vec v|$ shrinks (or stretches) the arrow to length 1 without turning it, so the direction is kept.

A vector v with components (1.5, 2) and magnitude 2.5 next to the unit circle; the unit vector u-hat points the same way and ends on the circle. û v v = (1.5, 2) |v| = 2.5 û = v/|v| = (0.6, 0.8)
Practice★☆☆Not started
Obtain a unit vector that has the same direction and sense as the vector $\vec{w} = (-5, 12)$.

Obtain a unit vector that has the same direction and sense as the vector $\vec{w} = (-5, 12)$.

Solve

A vector with a given magnitude and direction

Now combine both ideas. The unit vector gives the direction. Multiplying it by a number gives the length you want.

Three arrows pointing the same way with magnitudes 1, square root of 10, and 10, showing how a unit vector is scaled. û: magnitude 1 u: magnitude √10 w: magnitude 10
Practice★☆☆Not started
Find the components of a vector with modulus $7$ that has the direction of the y-axis and a negative sense.

Find the components of a vector with modulus $7$ that has the direction of the y-axis and a negative sense.

Solve
Practice★★☆Not started
Find the coordinates of a vector $\vec{v}$ knowing that its modulus is $5\sqrt{2}$ and that it has the same direction and sense as the vector $\vec{u} = (-1, 1)$.

Find the coordinates of a vector $\vec{v}$ knowing that its modulus is $5\sqrt{2}$ and that it has the same direction and sense as the vector $\vec{u} = (-1, 1)$.

Solve
Practice★★☆Not started
Two cables pull from the top of a pole. The first cable exerts a force represented by the vector $\vec{T}1 = (120, 160)$ N. The second cable exerts a force $\vec{T}2$ of…

Two cables pull from the top of a pole. The first cable exerts a force represented by the vector $\vec{T}_1 = (120, 160)$ N. The second cable exerts a force $\vec{T}_2$ of modulus $150$ N, which has the same direction but opposite sense to $\vec{T}_1$. Find the exact components of the vector $\vec{T}_2$.

Solve

Moving from a point along a direction

A robot, a boat, or a laser beam starts at a point $A$, heads in the direction of $\vec d$, and travels a certain distance. Where does it end up?

A laser beam starting at A(0, 6) and traveling in the direction (3, -2) until it reaches the x-axis at P(9, 0). A(0, 6) P(9, 0) d = (3, −2) x
Practice★★☆Not started
A vessel is located at point $A(2, -1)$ and moves in a straight line a distance of $13$ nautical miles. If the direction vector of its trajectory is proportional to…

A vessel is located at point $A(2, -1)$ and moves in a straight line a distance of $13$ nautical miles. If the direction vector of its trajectory is proportional to $\vec{d} = (5, 12)$ and it moves in the same sense as $\vec{d}$, determine the exact coordinates of the arrival point.

Solve
Practice★★★Not started
An explorer robot is initially located at point $A(-3, 2)$. It is programmed to advance in a straight line in the direction and sense of the vector $\vec{u} = (2, -1)$…

An explorer robot is initially located at point $A(-3, 2)$. It is programmed to advance in a straight line in the direction and sense of the vector $\vec{u} = (2, -1)$ until it reaches a point $B$, such that the distance $AB$ is equal to $4\sqrt{5}$. Next, it turns and advances in the direction and sense of the vector $\vec{w} = (1, 2)$ a distance of $3\sqrt{5}$ until it stops at point $C$. Calculate the exact coordinates of the points $B$ and $C$.

Solve
Practice★★★Not started
A light signal starts from point $A(0, 4)$ with a direction vector $\vec{d} = (2, -1)$. Upon reaching the x-axis at a point $P$, it reflects, changing its direction and…

A light signal starts from point $A(0, 4)$ with a direction vector $\vec{d} = (2, -1)$. Upon reaching the x-axis at a point $P$, it reflects, changing its direction and sense according to the new direction vector $\vec{d}' = (2, 1)$. If the signal continues its path until it hits the vertical line $x = 12$ at a point $Q$, calculate the total distance travelled by the light from $A$ to $Q$.

Solve

Resultant of several vectors

Forces, velocities, and displacements are vectors, and combining them means adding them component by component. The sum is called the resultant.

Two perpendicular forces, one horizontal and one vertical, form the legs of a right triangle, and the resultant is the hypotenuse. Change the legs below and compare the hypotenuse with the sum of the two legs.

Two forces F1 and F2 placed tip to tail, and their resultant R drawn from the start of F1 to the end of F2. F₁ F₂ R
Practice★☆☆Not started
A chess player moves their pawn from the square represented by point $(1, 2)$ to square $(1, 4)$, and then moves a knight from $(1, 4)$ to $(3, 5)$. Calculate the…

A chess player moves their pawn from the square represented by point $(1, 2)$ to square $(1, 4)$, and then moves a knight from $(1, 4)$ to $(3, 5)$. Calculate the modulus of the total displacement vector of the piece from its initial position to its final position.

Solve
Practice★★☆Not started
Two coplanar forces represented by the vectors $\vec{F}1 = (30, -40)$ N and $\vec{F}2 = (-15, 20)$ N act on a body. Calculate the modulus of the resultant force…

Two coplanar forces represented by the vectors $\vec{F}_1 = (30, -40)$ N and $\vec{F}_2 = (-15, 20)$ N act on a body. Calculate the modulus of the resultant force $\vec{R} = \vec{F}_1 + \vec{F}_2$ and determine a unit vector in the direction of this resultant.

Solve
Practice★★★Not started
Three coplanar forces keep an object in static equilibrium at the origin of coordinates (i.e., the resultant force is the zero vector). The components of two of them are…

Three coplanar forces keep an object in static equilibrium at the origin of coordinates (i.e., the resultant force is the zero vector). The components of two of them are known: $\vec{F}_1 = (40, 30)$ N and $\vec{F}_2 = (-20, 50)$ N. Calculate the components of the third force $\vec{F}_3$ and its exact modulus.

X Y F₁ F₂ F₃ = ?
Solve

Problems with an unknown

Often a vector or point contains an unknown, and the problem gives you a distance or magnitude. The plan is always the same:

  1. Write the vector (or the vector between the two points) with the unknown inside.

  2. Set $|\vec v|^2 = (\text{given magnitude})^2$. Squaring removes the square root.

  3. Solve the equation. Usually it is quadratic, so there are often two solutions.

  4. Check each solution in the original problem.

Some problems say rectilinear distance. That just means the ordinary straight-line distance $d(A,B)$ from this page.

A circle of radius 10 centered at P(6, 2) crossing the y-axis at the two points (0, 10) and (0, -6). P(6, 2) (0, 10) (0, −6) 10

If a condition links the components, for example "the two components add up to 4", substitute: $y = 4 - x$, then put that into $x^2 + y^2 = (\text{magnitude})^2$.

Practice★☆☆Not started
A drone moves in a straight line according to the vector $\vec{d} = (k, 6)$. If the total distance traveled is $10$ feet, calculate the possible values of the parameter…

A drone moves in a straight line according to the vector $\vec{d} = (k, 6)$. If the total distance traveled is $10$ feet, calculate the possible values of the parameter $k$.

Solve
Practice★★☆Not started
Determine the coordinates of the points located on the x-axis that are at an exact distance of $5$ units from the point $P(-2, 3)$.

Determine the coordinates of the points located on the x-axis that are at an exact distance of $5$ units from the point $P(-2, 3)$.

Solve
Practice★★★Not started
An airplane flies with an airspeed given by the vector $\vec{v}a = (250, 150)$ mph. In that area, the wind blows with a velocity represented by $\vec{v}v = (k, -50)$…

An airplane flies with an airspeed given by the vector $\vec{v}_a = (250, 150)$ mph. In that area, the wind blows with a velocity represented by $\vec{v}_v = (k, -50)$ mph. If we know that the actual velocity of the airplane with respect to the ground, calculated as $\vec{v}_r = \vec{v}_a + \vec{v}_v$, has an exact modulus of $300$ mph, determine the possible values of the parameter $k$.

Solve

Perimeters and parallelograms

Magnitudes of vectors are the natural tool for lengths of sides and diagonals.

Parallelogram ABCD with vertices A(1, 1), B(6, 1), C(9, 5), D(4, 5), both diagonals dashed, and every side of length 5. A(1, 1) B(6, 1) C(9, 5) D(4, 5) 5 5
Practice★★☆Not started
Calculate the exact perimeter of the triangle whose vertices are located at coordinates $A(-1, 2)$, $B(3, 5)$ and $C(5, -1)$.

Calculate the exact perimeter of the triangle whose vertices are located at coordinates $A(-1, 2)$, $B(3, 5)$ and $C(5, -1)$.

Solve
Practice★★★Not started
Consider a parallelogram $ABCD$ with three known vertices: $A(0, 0)$, $B(6, 2)$ and $D(2, 4)$. Work out the coordinates of vertex $C$, find the modulus of its two…

Consider a parallelogram $ABCD$ with three known vertices: $A(0, 0)$, $B(6, 2)$ and $D(2, 4)$. Work out the coordinates of vertex $C$, find the modulus of its two diagonals and justify analytically whether or not it is a rhombus (i.e., whether all its sides are equal).

X Y A B C D
Solve

Summary

Back to the start: to know if two arrows lie along the same line, compare their slopes or test $u_1v_2 - u_2v_1 = 0$. To know how far you are from the stadium and which way to go, give the magnitude and a unit vector.

See all the exercises in this section