To talk about the size of an error in a vector answer, we need the size of a vector. The length from the dot product, $\sqrt{\mathbf{x}\cdot\mathbf{x}}$, is one choice; numerical work also uses two others that are cheaper and often easier to bound.
For $\mathbf{x} = (x_1, \ldots, x_n)$: $$\lVert\mathbf{x}\rVert_1 = \sum|x_i|,\quad \lVert\mathbf{x}\rVert_2 = \sqrt{\sum x_i^{2}},\quad \lVert\mathbf{x}\rVert_\infty = \max|x_i|.$$ Each is a norm: positive for $\mathbf{x} \ne \mathbf{0}$, scaled by $|c|$ when $\mathbf{x}$ is multiplied by $c$, and obeying the triangle inequality $\lVert\mathbf{x} + \mathbf{y}\rVert \le \lVert\mathbf{x}\rVert + \lVert\mathbf{y}\rVert$.
A matrix norm measures how much $A$ can stretch a vector: $$\lVert A\rVert = \max_{\mathbf{x} \ne \mathbf{0}}\frac{\lVert A\mathbf{x}\rVert}{\lVert\mathbf{x}\rVert}.$$ So $\lVert A\mathbf{x}\rVert \le \lVert A\rVert\lVert\mathbf{x}\rVert$ always.
Key idea
Why it works
Worked example: Three norms of one vector
- $\lVert\mathbf{x}\rVert_1 = 3 + 4 + 12 = 19$.
- $\lVert\mathbf{x}\rVert_2 = \sqrt{9 + 16 + 144} = \sqrt{169} = 13$.
- $\lVert\mathbf{x}\rVert_\infty = 12$. Always $\lVert\mathbf{x}\rVert_\infty \le \lVert\mathbf{x}\rVert_2 \le \lVert\mathbf{x}\rVert_1$.
Answer: $19$, $13$, $12$
Worked example: Matrix norms
- Absolute column sums: $1 + 3 = 4$ and $2 + 4 = 6$, so $\lVert A\rVert_1 = 6$.
- Absolute row sums: $1 + 2 = 3$ and $3 + 4 = 7$, so $\lVert A\rVert_\infty = 7$.
- The vector $\mathbf{x} = (1, 1)$ matches the signs of row 2: $A\mathbf{x} = (-1, 7)$, and $\lVert A\mathbf{x}\rVert_\infty = 7 = 7 \cdot \lVert\mathbf{x}\rVert_\infty$. The bound is reached.
Answer: $\lVert A\rVert_1 = 6$, $\lVert A\rVert_\infty = 7$
Why keep three norms? In $n$ dimensions they never differ by more than a fixed factor: for example $\lVert\mathbf{x}\rVert_\infty \le \lVert\mathbf{x}\rVert_2 \le \sqrt{n}\,\lVert\mathbf{x}\rVert_\infty$. So "the error goes to zero" means the same thing in all of them, and we pick whichever is easiest to compute or to bound. The $\infty$-norm answers "how wrong is the worst entry?", which is often what we want to know. Errors in a vector answer are then measured as $\frac{\lVert\tilde{\mathbf{x}} - \mathbf{x}\rVert}{\lVert\mathbf{x}\rVert}$, just like relative error for numbers.
| norm | vector | matrix (induced) |
|---|---|---|
| $1$ | sum of $|x_i|$ | largest absolute column sum |
| $2$ | length | largest singular value |
| $\infty$ | largest $|x_i|$ | largest absolute row sum |
Common mistake