Magnitude of 2D and 3D Vectors - Formulas and Examples

The magnitude of a vector helps us to quantify the size or length of a vector in space. To find the magnitude of a 2D or 3D vector, we have to use the Pythagorean theorem with the corresponding components.

In this article, we will learn the formulas for calculating the magnitude of 2D and 3D vectors, thus providing a solid foundation for further exploration of vectors. We will look at several examples with answers.

PHYSICS
Formula for the magnitude of a 2D vector

Relevant for...

Learning about the magnitude of a vector with examples.

See examples

PHYSICS
Formula for the magnitude of a 2D vector

Relevant for...

Learning about the magnitude of a vector with examples.

See examples

How to calculate the magnitude of a vector?

To calculate the magnitude of a vector, we can use the components of the vector in standard formulas that are derived from the Pythagorean theorem.

Magnitude of a 2D vector

Consider the following 2D vector with the components $latex A_{x}$ and $latex A_{y}$.

Magnitude of a vector with components

To find the magnitude of this vector, we can use the Pythagorean theorem, which states that in a right triangle, the square of the length of the hypotenuse is equal to the sum of the squares of the lengths of the other two sides.

In this case, the hypotenuse is the magnitude, that is, $latex |A|$. The two sides are $latex A_{x}$ and $latex A_{y}$:

$latex |A|^2=A_{x}^2+A_{y}^2$

Taking the square root of both sides, we find the magnitude of the 2D vector:

$latex |A| = \sqrt{A_{x}^2+A_{y}^2}$

Magnitude of a 3D vector

Let's now consider a 3D vector having components $latex A_{x}$, $latex A_{y}$ and $latex A_{z}$.

We can use the same logic as for the 2D vector, but this time, we use the Pythagorean theorem in 3D. Then, we have:

$latex |A|^2=A_{x}^2+A_{y}^2+A_{z}^2$

Taking the square root of both sides, we find the magnitude of the 3D vector:

$latex |A| = \sqrt{A_{x}^2+A_{y}^2+A_{z}^2}$

10 Solved examples on the magnitude of a vector

EXAMPLE 1

Find the magnitude of the vector $latex \vec{A} = 3i+4j$.

Solution

EXAMPLE 2

What is the magnitude of the vector $latex \vec{B} = -6i+8j$?

Solution

EXAMPLE 3

Determine the magnitude of the vector $latex \vec{C} = -5i +12j$.

Solution

EXAMPLE 4

A hiker starts at the base of a mountain and walks 6 kilometers east and then 3 kilometers north to reach a campsite. What is the straight-line distance between the base and the campsite?

Solution

EXAMPLE 5

A ship sails 10 kilometers west and then 6 kilometers south from a port. What is the shortest distance between the ship's final position and the port?

Solution

EXAMPLE 6

Find the magnitude of the vector $latex \vec{A} = 1i + 2j +2k$.

Solution

EXAMPLE 7

If we have the vector $latex \vec{B} = -3i+ 4j+ 2k$, what is its magnitude?

Solution

EXAMPLE 8

Find the magnitude of the vector $latex \vec{C} = 5i -6j+ 8k$.

Solution

EXAMPLE 9

A drone takes off from a location (0, 0, 0) in a 3D coordinate system. It flies 30 meters east, then 40 meters north, and finally ascends 50 meters vertically. What is the straight line distance between the initial and final positions of the drone?

Solution

EXAMPLE 10

An airplane flies at a constant altitude of 5 kilometers. It flies 32 kilometers to the south and 40 kilometers to the west. What is the straight-line distance between the initial and final positions of the airplane?

Solution

Magnitude of 2D and 3D vectors - Practice problems

Magnitude of vectors quiz
Logo
You have completed the quiz!

What is the magnitude of vector $latex \vec{A}=-8i+7j-9k$?

Write the answer using two decimal places.

$latex |V|=$

Find the magnitude, direction and unit vector of any vector with the vector calculator, which also draws it.

See also

Interested in learning more about vectors? You can take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE