01 / 21

Vector Components
& Magnitude

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

Multivariable Calculus

What Is a Vector?

A vector is a mathematical object that has both magnitude (length) and direction. Unlike a scalar, which is just a number, a vector tells you how much and which way.

Scalar
A single number: temperature, mass, speed. Has magnitude only.
Vector
An ordered list of numbers: velocity, force, displacement. Has magnitude and direction.

Vectors in the Plane

x y 1 2 3 4 1 2
\(\vec{v}\)
3 (x-component) 2 (y-component) (3, 2)
\(\theta\)

Why Components Matter

Decomposing a vector into components lets us work with each dimension independently. This is the foundation of multivariable calculus: analyze one variable at a time, then combine results.

Addition
Add vectors component-wise: \(\langle a_1+b_1,\, a_2+b_2 \rangle\).
Physics
Resolve forces into horizontal and vertical parts to solve equilibrium problems.
Calculus
Differentiate and integrate vector functions one component at a time.

Component Form in 2D and 3D

2D Vector
\(\vec{v} = \langle v_1, v_2 \rangle = v_1\,\mathbf{i} + v_2\,\mathbf{j}\)
3D Vector
\(\vec{v} = \langle v_1, v_2, v_3 \rangle = v_1\,\mathbf{i} + v_2\,\mathbf{j} + v_3\,\mathbf{k}\)

The Magnitude Formula

The magnitude (or length or norm) of a vector measures how long it is. It is always a non-negative scalar.

2D
$$\|\vec{v}\| = \sqrt{v_1^2 + v_2^2}$$
3D
$$\|\vec{v}\| = \sqrt{v_1^2 + v_2^2 + v_3^2}$$

Magnitude as Pythagorean Distance

x y 4 3
\(\|\vec{v}\| = 5\)
(4, 3)

What Is a Unit Vector?

A unit vector has magnitude exactly 1. It preserves direction but strips away length. To find the unit vector in the direction of \(\vec{v}\):

Divide
Divide each component by the magnitude.
Result
\(\|\hat{v}\| = 1\) always. Same direction as \(\vec{v}\).
Caveat
The zero vector \(\vec{0}\) has no unit vector (division by zero).

Magnitude vs Direction

Magnitude \(\|\vec{v}\|\) Direction \(\hat{v}\)
Type Scalar (number) Vector (unit vector)
What it tells you "How far" or "how strong" "Which way"
Value \(\|\vec{v}\| \geq 0\) \(\|\hat{v}\| = 1\)
Formula \(\sqrt{v_1^2 + v_2^2 + v_3^2}\) \(\frac{\vec{v}}{\|\vec{v}\|}\)
Reconstruct \(\vec{v} = \|\vec{v}\| \cdot \hat{v}\)

Properties of Magnitude

1
Non-negativity: \(\|\vec{v}\| \geq 0\), and \(\|\vec{v}\| = 0\) only when \(\vec{v} = \vec{0}\).
2
Scalar multiplication: \(\|c\vec{v}\| = |c|\,\|\vec{v}\|\). Scaling a vector scales its magnitude by \(|c|\).
3
Triangle inequality: \(\|\vec{u} + \vec{v}\| \leq \|\vec{u}\| + \|\vec{v}\|\). The shortcut is never longer than the detour.

How to Apply It

1
Identify components: Write the vector in component form \(\langle v_1, v_2, v_3 \rangle\). If given two points, subtract: \(B - A\).
2
Compute magnitude: Square each component, add, then take the square root: \(\|\vec{v}\| = \sqrt{v_1^2 + v_2^2 + v_3^2}\).
3
Find unit vector (if needed): Divide each component by the magnitude: \(\hat{v} = \frac{\vec{v}}{\|\vec{v}\|}\).
4
Verify: Check that \(\|\hat{v}\| = 1\). If the components are fractions, confirm they sum-of-squares to 1.

Example 1: 2D Vector

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

x y -3 4
\(\|\vec{v}\| = 5\)
(-3, 4)

Example 2: 3D Vector

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

1
Square each component: \(1^2 = 1\), \((-2)^2 = 4\), \(2^2 = 4\).
2
Sum: \(1 + 4 + 4 = 9\).
3
Magnitude: \(\|\vec{w}\| = \sqrt{9} = 3\).
4
Unit vector: \(\hat{w} = \frac{1}{3}\langle 1, -2, 2 \rangle = \left\langle \frac{1}{3},\, -\frac{2}{3},\, \frac{2}{3} \right\rangle\).

Example 3: Vector Between Points

Problem: Find \(\vec{AB}\) and its magnitude, given \(A = (2, -1, 3)\) and \(B = (5, 3, -1)\).

1
Subtract coordinates: \(\vec{AB} = B - A = \langle 5-2,\; 3-(-1),\; -1-3 \rangle = \langle 3, 4, -4 \rangle\).
2
Square components: \(9 + 16 + 16 = 41\).
3
Magnitude: \(\|\vec{AB}\| = \sqrt{41} \approx 6.40\).
4
Unit vector: \(\hat{u} = \frac{1}{\sqrt{41}}\langle 3, 4, -4 \rangle\).

Common Mistakes

✕ Forgetting the Square Root
Computing \(v_1^2 + v_2^2\) and stopping there. The magnitude is \(\sqrt{v_1^2 + v_2^2}\), not the sum itself.
✕ Subtracting in the Wrong Order
For \(\vec{AB}\), always compute \(B - A\), not \(A - B\). The order determines direction.
✕ Magnitude Can Be Negative
Magnitude is always \(\geq 0\). If you get a negative result, check for arithmetic errors with negative components.

Summary of Key Formulas

Concept 2D Formula 3D Formula
Component Form \(\langle v_1, v_2 \rangle\) \(\langle v_1, v_2, v_3 \rangle\)
Magnitude \(\sqrt{v_1^2 + v_2^2}\) \(\sqrt{v_1^2 + v_2^2 + v_3^2}\)
Unit Vector \(\frac{\vec{v}}{\|\vec{v}\|}\) \(\frac{\vec{v}}{\|\vec{v}\|}\)
Distance (\(A\) to \(B\)) \(\|\vec{AB}\|\) \(\|\vec{AB}\|\)
Standard Basis \(\mathbf{i}, \mathbf{j}\) \(\mathbf{i}, \mathbf{j}, \mathbf{k}\)

Question 1 of 5

What is the magnitude of the vector \(\vec{v} = \langle 6, -8 \rangle\)?

Question 2 of 5

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

Question 3 of 5

Given points \(P = (1, 0, -2)\) and \(Q = (4, -3, 2)\), what is \(\|\vec{PQ}\|\)?

Question 4 of 5

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

Question 5 of 5

Which of the following is not a unit vector?