01 / 20

Vector Components
& Magnitude

Master how to decompose vectors into components, compute their magnitude, and find unit vectors in 2D and 3D space.

Calculus 3

What Is a Vector?

A vector is a mathematical object with both magnitude (length) and direction. Unlike a scalar, which has only size, a vector tells you how far and which way.

Scalar
A single number: temperature, mass, speed. No direction attached.
Vector
Magnitude + direction: velocity, force, displacement. Written as \(\vec{v}\) or \(\mathbf{v}\).

Visualizing Components

x y 1 2 3 1 2
\(v_x = 3\)
\(v_y = 2\)
\(\vec{v} = \langle 3, 2 \rangle\)
\(\theta\)

Components from Angle & Length

If you know a vector's magnitude \(\|\vec{v}\|\) and the angle \(\theta\) it makes with the positive \(x\)-axis, you can recover its components:

\(\cos\theta\)
Projects onto the horizontal axis: gives you the x-component.
\(\sin\theta\)
Projects onto the vertical axis: gives you the y-component.

Extending to 3D Space

x z y
\(v_x\)
\(v_y\)
\(v_z\)
\(\vec{v}\)

The Magnitude Formula

The magnitude (or length) of a vector is the distance from its tail to its tip. It is always a non-negative scalar.

What Is a Unit Vector?

A unit vector has magnitude exactly 1. It preserves only the direction of the original vector, discarding its length.

\(\hat{\imath}\)
Standard unit vector along the \(x\)-axis: \(\langle 1,0,0 \rangle\).
\(\hat{\jmath}\)
Standard unit vector along the \(y\)-axis: \(\langle 0,1,0 \rangle\).
\(\hat{k}\)
Standard unit vector along the \(z\)-axis: \(\langle 0,0,1 \rangle\).

Magnitude vs. Direction

Magnitude \(\|\vec{v}\|\) Unit Vector \(\hat{v}\)
What it tells you How long the vector is Which way the vector points
Type Scalar (single number) Vector (same dimension)
Value range \(\|\vec{v}\| \geq 0\) \(\|\hat{v}\| = 1\) always
Formula \(\sqrt{v_x^2 + v_y^2 + v_z^2}\) \(\dfrac{\vec{v}}{\|\vec{v}\|}\)
Reconstruct \(\vec{v}\)? \(\vec{v} = \|\vec{v}\|\;\hat{v}\)

Step-by-Step Process

1
Identify the vector. Write it in component form \(\vec{v} = \langle v_x, v_y, v_z \rangle\). If given magnitude and angle, compute components first.
2
Compute the magnitude. Square each component, sum them, and take the square root: \(\|\vec{v}\| = \sqrt{v_x^2 + v_y^2 + v_z^2}\).
3
Find the unit vector. Divide each component by \(\|\vec{v}\|\): \(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}\).
4
Verify. Check that \(\|\hat{v}\| = 1\) by computing \(\sqrt{(\hat{v}_x)^2 + (\hat{v}_y)^2 + (\hat{v}_z)^2}\).

Example 1: 2D Vector

Find the magnitude and unit vector of \(\vec{v} = \langle 3, 4 \rangle\).

3 4
\(\vec{v} = \langle 3, 4 \rangle\)

Example 2: 3D Vector

Find the magnitude and unit vector of \(\vec{w} = \langle 1, -2, 2 \rangle\).

Example 3: From Angle to Components

A vector has magnitude 10 and makes an angle of \(60^\circ\) with the positive \(x\)-axis. Find its components.

\(60^\circ\)
5
\(5\sqrt{3}\)
\(\|\vec{v}\| = 10\)

Standard Basis Notation

Any vector in \(\mathbb{R}^3\) can be written as a linear combination of the three standard unit vectors:

Component Form
\(\langle 3, -1, 4 \rangle\)
Basis Form
\(3\hat{\imath} - \hat{\jmath} + 4\hat{k}\)

Properties of Magnitude

1
Non-negativity: \(\|\vec{v}\| \geq 0\), and \(\|\vec{v}\| = 0\) if and only if \(\vec{v} = \vec{0}\).
2
Scalar multiplication: \(\|c\,\vec{v}\| = |c|\;\|\vec{v}\|\) for any scalar \(c\).
3
Triangle inequality: \(\|\vec{u} + \vec{v}\| \leq \|\vec{u}\| + \|\vec{v}\|\).

Common Mistakes

✕ Forgetting the Square Root
Computing \(v_x^2 + v_y^2\) and stopping without taking \(\sqrt{\phantom{x}}\). That gives \(\|\vec{v}\|^2\), not \(\|\vec{v}\|\).
✕ Adding Components Directly
Writing \(\|\vec{v}\| = v_x + v_y\). The magnitude is not the sum of components: it requires squaring each first.
✕ Negative Magnitude
Claiming \(\|\vec{v}\|\) can be negative. Magnitude is always \(\geq 0\). A negative component does not make the length negative.

Summary Reference Table

Concept 2D 3D
Vector notation \(\langle v_x, v_y \rangle\) \(\langle v_x, v_y, v_z \rangle\)
Magnitude \(\sqrt{v_x^2 + v_y^2}\) \(\sqrt{v_x^2 + v_y^2 + v_z^2}\)
Unit vector \(\dfrac{\vec{v}}{\|\vec{v}\|}\) \(\dfrac{\vec{v}}{\|\vec{v}\|}\)
Standard basis \(\hat{\imath},\;\hat{\jmath}\) \(\hat{\imath},\;\hat{\jmath},\;\hat{k}\)
Components from angle \(\|\vec{v}\|\cos\theta,\;\|\vec{v}\|\sin\theta\) Direction cosines

Question 1 of 5

What is the magnitude of \(\vec{v} = \langle 5, -12 \rangle\)?

Question 2 of 5

Which of the following is the unit vector in the direction of \(\vec{w} = \langle 0, 3, -4 \rangle\)?

Question 3 of 5

A force vector has magnitude 8 and makes an angle of \(30^\circ\) with the positive \(x\)-axis. What is its \(x\)-component?

Question 4 of 5

If \(\vec{u} = \langle 2, -1, 2 \rangle\), what is \(\|3\vec{u}\|\)?

Question 5 of 5

Which statement about the zero vector \(\vec{0} = \langle 0, 0, 0 \rangle\) is true?