Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

 Open In Colab

Vector Norms

A norm is a mathematical way to assign a strictly positive “length” or “magnitude” to a vector.

You are already familiar with the standard Euclidean magnitude (the L2L^2 norm), which is the physical length of an arrow in space. But there are actually many different ways to measure length!

The general definition for the LpL^p norm of a vector v\mathbf{v} is:

∥v∥p=(∑i∣vi∣p)1/p\|\mathbf{v}\|_p = \left( \sum_{i} |v_i|^p \right)^{1/p}

Common Vector Norms

Here are the three most common vector norms used in numerical methods:

  1. The 1-Norm (L1L^1) - “Manhattan Distance” Simply the sum of the absolute values. It is the distance if you were only allowed to travel on a grid (like city blocks).

    ∥v∥1=∑∣vi∣\|\mathbf{v}\|_1 = \sum |v_i|
  2. The 2-Norm (L2L^2) - “Euclidean Distance” The standard “as the crow flies” physical length.

    ∥v∥2=∑vi2\|\mathbf{v}\|_2 = \sqrt{\sum v_i^2}
  3. The Infinity Norm (L∞L^\infty) - “Maximum Distance” As p→∞p \rightarrow \infty, the largest element completely dominates the sum. It is simply the absolute value of the largest element in the vector.

    ∥v∥∞=max⁡∣vi∣\|\mathbf{v}\|_\infty = \max |v_i|

Matrix Norms

Just as we can measure the “length” of a vector, we can measure the “size” or “stretching power” of a matrix A\mathbf{A}.

An induced matrix norm is defined as the maximum possible amount that the matrix can stretch any vector x\mathbf{x}:

∥A∥=max⁡x≠0∥Ax∥∥x∥\|\mathbf{A}\| = \max_{\mathbf{x} \neq 0} \frac{\|\mathbf{A}\mathbf{x}\|}{\|\mathbf{x}\|}

Because this requires a complex maximization search, we often use easier-to-calculate approximations.

Common Matrix Norms

  1. The 2-Norm (Spectral Norm) The exact maximum stretching power (the largest singular value of the matrix). It is computationally expensive to calculate.

    ∥A∥2=σmax⁡(A)\|\mathbf{A}\|_2 = \sigma_{\max}(\mathbf{A})
  2. The Frobenius Norm Calculated exactly like a Euclidean vector norm, by summing the square of every element in the matrix. It is very fast to compute and acts as a safe upper bound on the 2-Norm (∥A∥2≤∥A∥F\mathbf{\|A\|_2 \le \|A\|_F}).

    ∥A∥F=∑i∑j∣Aij∣2\|\mathbf{A}\|_F = \sqrt{\sum_{i} \sum_{j} |A_{ij}|^2}
  3. The Infinity Norm (Max Row Sum) The maximum absolute sum of any single row. Also very fast to compute and bounds the stretching power.

    ∥A∥∞=max⁡i∑j∣Aij∣\|\mathbf{A}\|_\infty = \max_{i} \sum_{j} |A_{ij}|

Visualizing Matrix Norms

If we apply a matrix A\mathbf{A} to the unit circle, the circle stretches into an ellipse.

  • The furthest point on that ellipse from the origin is precisely the 2-Norm.

  • The Frobenius and Infinity norms are fast approximations that cast a “net” around the ellipse, guaranteeing that the true distortion never exceeds their radius!

Let’s plot the distorted ellipse and overlay circles with radii equal to these different norms.