---
title: Operators and their norms
heading: How much a linear map can amplify, from matrices to filters and feedback loops
eyebrow: A14 · Lesson 38 · Operator norms
xp: 40
---

::: hook
A matrix, a digital filter and an integral operator are all linear maps between normed spaces, and for each the engineering question is the same: how much can it amplify its input? That worst-case gain is the **operator norm**. It decides whether a filter is BIBO stable (bounded inputs give bounded outputs), how much an error in data can grow when you solve a linear system, and, through the **small-gain theorem**, whether a feedback loop is stable. It also explains why differentiation is dangerous on noisy data: it's an operator with no finite gain at all.
:::

::: play
- The filter $y[n] = a\,y[n-1] + x[n]$ has impulse response $a^n$. The curve is its gain $\lvert H(e^{j\omega})\rvert = \frac{1}{\lvert 1 - ae^{-j\omega}\rvert}$ against frequency.
- The readouts give its gain for finite-energy signals, $\max\lvert H\rvert$, and its gain for bounded signals, $\sum\lvert a\rvert^n$. For this filter they're equal: $\frac{1}{1 - \lvert a\rvert}$.
- As $\lvert a\rvert \to 1$ both blow up: the filter approaches instability.
:::

```sim plot
view: graph
x: w = 0..3.1416
y: gain = 0..6
slider: a = -0.95..0.95 step 0.01 = 0.8
plot: 1/sqrt(1 - 2*a*cos(w) + a^2) | label: gain at frequency w | samples: 400
readout: largest gain for finite-energy signals = 1/(1 - abs(a)) | digits: 4
readout: largest gain for bounded signals = 1/(1 - abs(a)) | digits: 4
```

::: predict
## Every input to a filter stays between −1 and 1. Its impulse response is h[n]. What's the largest possible size of an output sample?

- [ ] $\max\lvert h[n]\rvert$
- [x] $\sum\lvert h[n]\rvert$
- [ ] $\sqrt{\sum h[n]^2}$
- [ ] $\lvert\sum h[n]\rvert$

::: reveal
$\sum\lvert h[n]\rvert$, the $\ell^1$ norm. The output is $\sum h[k]x[n - k]$, and choosing each input sample to be ±1 with the sign of the matching $h[k]$ makes every term add. So a filter is BIBO stable exactly when $\sum\lvert h[n]\rvert$ is finite.
:::
:::

::: nameit
## The operator norm

For a linear map T between normed spaces, $\lVert T\rVert = \sup_{x\ne0}\frac{\lVert Tx\rVert}{\lVert x\rVert}$. T is continuous exactly when this is finite, so for linear maps, bounded and continuous mean the same thing. Norms of compositions multiply at most: $\lVert ST\rVert \le \lVert S\rVert\lVert T\rVert$.

## Matrices

With the vector 1-norm, $\lVert A\rVert_1$ is the largest column sum of $\lvert a_{ij}\rvert$; with the max norm, $\lVert A\rVert_\infty$ is the largest row sum; with the 2-norm, $\lVert A\rVert_2 = \sigma_\max$, the largest singular value.

## Filters

A convolution $y = h * x$ has gain $\lVert h\rVert_1 = \sum\lvert h[n]\rvert$ from bounded inputs to bounded outputs, and gain $\max_\omega\lvert H(e^{j\omega})\rvert$ from finite-energy inputs to finite-energy outputs. BIBO stability means $h \in \ell^1$.

## Neumann series and small gain

If $\lVert A\rVert < 1$, then $I - A$ is invertible, $(I - A)^{-1} = \sum_kA^k$, and $\lVert(I - A)^{-1}\rVert \le \frac{1}{1 - \lVert A\rVert}$. For a feedback loop with operators G and K, $\lVert GK\rVert < 1$ guarantees stability (the **small-gain theorem**), and the closed loop's gain is at most $\frac{\lVert G\rVert}{1 - \lVert G\rVert\lVert K\rVert}$.

## Unbounded operators

Differentiation on C[0, 1] with the sup norm is unbounded: $\lVert\sin nx\rVert \le 1$ but $\lVert(\sin nx)'\rVert = n$. That's why differentiating measured data amplifies noise without limit as the noise gets faster.
:::

::: example
## Find the 1-, ∞- and 2-norms of $A = \begin{pmatrix}1 & -2\\ 3 & 4\end{pmatrix}$.

::: solution
1. **The 1-norm.** Column sums of absolute values are 4 and 6, so $\lVert A\rVert_1 = 6$.
2. **The ∞-norm.** Row sums are 3 and 7, so $\lVert A\rVert_\infty = 7$.
3. **Form $A^TA$.**
   $$A^TA = \begin{pmatrix}10 & 10\\ 10 & 20\end{pmatrix}$$
4. **The 2-norm.** The largest eigenvalue of $A^TA$ is
   $$15 + \sqrt{125} = 26.18$$
   so $\lVert A\rVert_2 = 5.117$.
5. **Compare with the spectral radius.** Each norm answers a different question (worst case for a different way of measuring vectors), and all three bound the spectral radius from above. Here the eigenvalues are $\frac{5 \pm \sqrt{-15}}{2}$, of size $\sqrt{10} = 3.16$.

**Answer:** $\lVert A\rVert_1 = 6$, $\lVert A\rVert_\infty = 7$ and $\lVert A\rVert_2 = 5.117$.
:::
:::

::: example
## A filter has $h[n] = 0.8^n$ for n ≥ 0. Find its worst-case output for inputs bounded by 1, and its largest gain for finite-energy signals.

::: solution
1. **Worst case for bounded inputs.**
   $$\begin{aligned} \lVert h\rVert_1 &= \sum0.8^n \\ &= \frac{1}{1 - 0.8} \\ &= 5 \end{aligned}$$
   A constant input of 1 drives the output up to 5.
2. **Energy gain.**
   $$\begin{aligned} \max\lvert H(e^{j\omega})\rvert &= \max\frac{1}{\lvert 1 - 0.8e^{-j\omega}\rvert} \\ &= \frac{1}{0.2} \\ &= 5 \end{aligned}$$
   at ω = 0.
3. **Why they agree.** They agree here because h is positive.
4. **The alternating case.** For $h[n] = (-0.8)^n$ the energy gain, 5, comes at ω = π, and the bounded-input gain is still 5, reached by the alternating input $(-1)^n$.

**Answer:** both are 5: inputs bounded by 1 give outputs up to 5, and the largest energy gain is 5, at ω = 0.
:::
:::

::: example
## An amplifier with gain at most 0.5 sits in a loop with a feedback network of gain at most 1.5. Is the loop stable, and how large can its overall gain be?

::: solution
1. **Loop gain.**
   $$\begin{aligned} \lVert G\rVert\lVert K\rVert &= 0.5 \times 1.5 \\ &= 0.75 \end{aligned}$$
   which is below 1.
2. **Stability.** By the small-gain theorem the loop is stable for any such G and K, linear or not, provided the gains hold for all signals.
3. **Overall gain.** From the Neumann series bound, the closed-loop map $(I - GK)^{-1}G$ has gain at most
   $$\frac{0.5}{1 - 0.75} = 2$$
4. **What small gain costs.** Small gain is conservative (it ignores phase), but it needs no model beyond the gains, which is why it's used for loops with nonlinear or uncertain parts.

**Answer:** the loop is stable, and its overall gain is at most 2.
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 3 | 4; c = 1 | 2; d = 3 | 5

## $A = \begin{pmatrix}\given{a} & \given{b}\\ \given{c} & \given{d}\end{pmatrix}$.

::: part
answer: b + d
tolerance: 0.5%

### What is $\lVert A\rVert_1$, the largest column sum?

::: misses
- [a + c] That's the smaller column sum.
- [any] Sum each column's absolute values and take the larger.
:::
:::

::: part
answer: sqrt(((a^2 + b^2 + c^2 + d^2) + sqrt((a^2 + b^2 + c^2 + d^2)^2 - 4*(a*d - b*c)^2))/2)
tolerance: 0.5%

### What is $\lVert A\rVert_2$?

::: misses
- [any] The largest singular value: $\sigma_1^2$ is the larger eigenvalue of $A^TA$, with trace $a^2 + b^2 + c^2 + d^2$ and determinant $(ad - bc)^2$.
:::
:::
:::

::: check
given: a = -0.5 | -0.8 | -0.95
answer: 1/(1 - abs(a))
tolerance: 0.5%

## $h[n] = (\given{a})^n$ for n ≥ 0. What is $\lVert h\rVert_1$, the filter's worst-case gain for bounded inputs?

::: right
Right. $\sum\lvert a\rvert^n = \frac{1}{1 - \lvert a\rvert}$.
:::

::: misses
- [1/(1 - a)] Take absolute values first; that matters when a is negative.
- [any] $\sum\lvert a\rvert^n$.
:::
:::

::: check
given: q = 0.2 | 0.5 | 0.9
answer: 1/(1 - q)
tolerance: 0.5%

## $\lVert A\rVert$ = {q}. What bound does the Neumann series give on $\lVert(I - A)^{-1}\rVert$?

::: right
Right. $\sum q^k = \frac{1}{1 - q}$.
:::

::: misses
- [1/(1 + q)] That's a lower bound; the Neumann series gives the upper bound $\frac{1}{1 - q}$.
- [any] $\left\lVert\sum A^k\right\rVert \le \sum\lVert A\rVert^k$.
:::
:::

::: check
given: g = 0.5 | 2; k = 0.3 | 0.4
answer: g/(1 - g*k)
tolerance: 0.5%

## A loop has forward gain at most {g} and feedback gain at most {k}. What bound does small gain put on the closed loop's gain?

::: right
Right. $\frac{\lVert G\rVert}{1 - \lVert G\rVert\lVert K\rVert}$, valid while the loop gain is below 1.
:::

::: misses
- [g/(1 + g*k)] That's the nominal negative-feedback gain; small gain must allow either sign.
- [any] Neumann series on $(I - GK)^{-1}$.
:::
:::

::: check
given: n = 5 | 50 | 500
answer: n
tolerance: 0

## On C[0, 1] with the sup norm, what is $\frac{\lVert f'\rVert}{\lVert f\rVert}$ for $f = \sin(\given{n}x)$ (with n ≥ 2 so the sine reaches its peaks)?

::: right
Right. n, unbounded as n grows: differentiation has no finite operator norm.
:::

::: misses
- [1] The derivative is $n\cos nx$.
- [any] $\frac{\max\lvert n\cos nx\rvert}{\max\lvert\sin nx\rvert}$.
:::
:::

::: check
kind: parts
given: b = 0.5 | 1 | 2

## The two-tap filter $y[n] = x[n] + \given{b}x[n - 1]$.

::: part
answer: 1 + b
tolerance: 0.5%

### What is its gain for bounded inputs?

::: misses
- [any] $\lVert h\rVert_1 = 1 + \lvert b\rvert$.
:::
:::

::: part
answer: 1 + b
tolerance: 0.5%

### What is its largest gain for finite-energy inputs?

::: misses
- [sqrt(1 + b^2)] That's the RMS gain for white noise; the worst case is at ω = 0.
- [any] $\max\lvert 1 + be^{-j\omega}\rvert$.
:::
:::
:::

::: check
kind: choice

## A discrete-time filter is BIBO stable exactly when…

- [ ] its impulse response tends to 0
- [x] its impulse response is absolutely summable
- [ ] its impulse response has finite energy
- [ ] its frequency response is finite at every frequency

::: right
Right. $\sum\lvert h[n]\rvert < \infty$ is the operator norm from bounded inputs to bounded outputs.
:::

::: misses
- [1] $h[n] = \frac1n$ tends to 0 but isn't summable; a constant input makes the output grow like ln n.
- [3] Finite energy is weaker: $\frac1n$ has finite energy.
- [4] Necessary but not sufficient in general.
:::
:::

::: check
kind: derivation
vars: b = 0..2, w = 0..3.1

## The filter $y[n] = x[n] + bx[n - 1]$ has $H(e^{j\omega}) = 1 + be^{-j\omega}$. Write ω as w.

::: step
answer: 1 + 2*b*cos(w) + b^2

### What is $\lvert H\rvert^2$?
:::

::: step
answer: 1 + b

### What is its largest $\lvert H\rvert$ over ω, for b ≥ 0?
:::

::: right
Right. At ω = 0 the two taps add; for this filter the energy gain equals the $\ell^1$ gain.
:::
:::

::: check
kind: python

## For $h[n] = 0.8^n\cos\frac{\pi n}{3}$, n = 0 to 199, set `l1` to $\sum\lvert h\rvert$ and `l2gain` to the largest $\lvert H(e^{j\omega})\rvert$ on 1001 frequencies from 0 to π.

```python starter
import numpy as np

l1 = l2gain = 0.0
print(l1, l2gain)
```

```python solution
import numpy as np

n = np.arange(200)
h = 0.8**n * np.cos(np.pi * n / 3)
l1 = np.sum(np.abs(h))
w = np.linspace(0, np.pi, 1001)
l2gain = max(abs(np.sum(h * np.exp(-1j * ww * n))) for ww in w)
print(l1, l2gain)
```

```python tests
assert abs(l1 - 3.52459) < 1e-4, f"The l1 gain is 3.5246; got {l1}."
assert abs(l2gain - 2.7926) < 2e-3, f"The energy gain is about 2.79; got {l2gain}."
assert l2gain <= l1, "The energy gain never exceeds the l1 gain."
```

::: right
Right. 3.52 for bounded inputs against 2.79 for finite-energy ones: different input classes, different worst cases.
:::
:::

::: explain
## Why is a linear map continuous exactly when its operator norm is finite?

::: model
For a linear map, $Tx - Ty = T(x - y)$, so how much outputs differ depends only on how much inputs differ, and the same bound applies everywhere. If $\lVert T\rVert$ is finite, $\lVert Tx - Ty\rVert \le \lVert T\rVert\lVert x - y\rVert$, a Lipschitz bound, which is continuity. Conversely, if T is continuous at 0, some δ makes $\lVert Tx\rVert \le 1$ whenever $\lVert x\rVert \le \delta$; scaling any input down to size δ then shows $\lVert Tx\rVert \le \frac1\delta\lVert x\rVert$ for all x, so the norm is at most $\frac1\delta$. Linearity turns local good behavior into a global gain bound.
:::
:::

::: practice

::: check
given: a = -0.9 | -0.6 | -0.3 | 0.2 | 0.3 | 0.5 | 0.8
answer: 1/(1 - abs(a))
tolerance: 0.5%

## $\ell^1$ gain of $h[n] = (\given{a})^n$?

::: misses
- [any] $\frac{1}{1 - \lvert a\rvert}$.
:::
:::

::: check
given: g = 1 | 3; k = 0.2 | 0.25
answer: g/(1 - g*k)
tolerance: 0.5%

## Small-gain bound, forward {g}, feedback {k}?

::: misses
- [any] $\frac{g}{1 - gk}$.
:::
:::
:::
