Vector Norms
& Distance
Learn how to measure the length of a vector and the distance between points using norms: the fundamental ruler of linear algebra.
What Is a Norm?
A norm is a function that assigns a non-negative length (or size) to every vector in a vector space. Think of it as a ruler for vectors: it tells you "how big" a vector is, regardless of its direction.
Visualizing a Vector's Length
Why Do Norms Matter?
The Euclidean Norm \((\ell^2)\)
The most common norm is the Euclidean norm (also called the \(\ell^2\) norm). For a vector \(\mathbf{v} = (v_1, v_2, \ldots, v_n)\) in \(\mathbb{R}^n\):
This is the straight-line length of the vector: exactly the Pythagorean theorem generalized to \(n\) dimensions.
Three Norm Axioms
Distance Between Two Points
The distance between points \(\mathbf{p}\) and \(\mathbf{q}\) is simply the norm of their difference vector:
Comparing Norms: \(\ell^1\), \(\ell^2\), \(\ell^\infty\)
Sum of absolute values.
Straight-line length.
Largest component.
Unit Balls in Different Norms
How to Compute Norms & Distance
Example 1: \(\ell^2\) Norm
Find \(\|\mathbf{v}\|_2\) for \(\mathbf{v} = (3, -4)\).
Example 2: Distance in \(\mathbb{R}^3\)
Find the Euclidean distance between \(\mathbf{p} = (1, 2, 3)\) and \(\mathbf{q} = (4, 6, 3)\).
Example 3: Three Norms of One Vector
Compute \(\|\mathbf{v}\|_1\), \(\|\mathbf{v}\|_2\), and \(\|\mathbf{v}\|_\infty\) for \(\mathbf{v} = (1, -2, 2)\).
= 5
= 3
= 2
Unit Vectors & Normalization
A unit vector has norm exactly 1. To normalize any nonzero vector \(\mathbf{v}\), divide by its norm:
Example: For \(\mathbf{v} = (3, 4)\), we have \(\|\mathbf{v}\|_2 = 5\), so \(\hat{\mathbf{v}} = \left(\frac{3}{5}, \frac{4}{5}\right)\). Verify: \(\sqrt{\left(\frac{3}{5}\right)^2 + \left(\frac{4}{5}\right)^2} = \sqrt{\frac{9+16}{25}} = 1\). ✓
Common Mistakes
Norm Summary Table
| Property | \(\ell^1\) | \(\ell^2\) | \(\ell^\infty\) |
|---|---|---|---|
| Formula | \(\sum |v_i|\) | \(\sqrt{\sum v_i^2}\) | \(\max |v_i|\) |
| Unit Ball Shape | Diamond | Circle / Sphere | Square / Cube |
| Also Called | Manhattan / Taxicab | Euclidean | Chebyshev / Max |
| \(\mathbf{v} = (1,-2,2)\) | 5 | 3 | 2 |
| Ordering | \(\|\mathbf{v}\|_\infty \leq \|\mathbf{v}\|_2 \leq \|\mathbf{v}\|_1\) | ||
Question 1 of 5
What is the Euclidean norm of the vector \(\mathbf{v} = (6, 8)\)?
Question 2 of 5
What is the distance between \(\mathbf{p} = (2, 3)\) and \(\mathbf{q} = (5, 7)\)?
Question 3 of 5
For \(\mathbf{w} = (-3, 4, 0)\), what is \(\|\mathbf{w}\|_\infty\)?
Question 4 of 5
If \(\mathbf{u} = (2, -1)\), what is the unit vector \(\hat{\mathbf{u}}\)?
Question 5 of 5
Which property states that \(\|\mathbf{u} + \mathbf{v}\| \leq \|\mathbf{u}\| + \|\mathbf{v}\|\)?