Foundations to Frontier
Tests
A. Mathematical Foundations › A3 Calculus and Analysis › Real and functional analysis

Normed and Banach Spaces

A norm measures the size of a vector or a function, and its distance is ‖x − y‖. On ℝⁿ all norms agree up to constants. In function spaces they can disagree completely: the same function can be tiny in L¹ and huge in L∞. A complete normed space is a Banach space, the setting where iterative methods are guaranteed to converge to something. The choice of norm is also a modelling decision, as ℓ¹ regularization's sparse solutions show.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

How big is it?

The size of an arrow is its length. But what’s the “size” of a sound wave, an error curve, or a list of a million numbers? It depends on what you care about:

  • the loudest moment;
  • the total energy;
  • the sum of everything.

Each choice is a norm. Different norms can disagree a lot. A sharp spike has a huge peak but tiny total area.

Norms: how big is a function, and which ball should you regularize with?
ℓ¹ solution = (0.900, 0.000) ← an exact zero: sparse!
ℓ² solution = (0.814, 0.384)
Small uncoloured dot: the unconstrained optimum. Dashed: the loss contour that first touches each ball. The diamond's corners stick out, so contours usually touch it at a corner, where one coordinate is exactly 0. That's why the lasso and compressed sensing produce sparse answers, while ridge (ℓ²) only shrinks.
Why engineers care

Is a tracking error acceptable? Under the peak norm, one bad moment fails the test. Under an average norm, it might pass. Control specifications, filter design and learning objectives all start by choosing the norm, and that choice changes the answer.

📝 Quick check (Level 0)
0/3 answered
  1. 1. The length of the arrow (3, 4)?
  2. 2. Doubling a vector makes its norm…
  3. 3. A tall, very thin spike has a large ___ but a small ___.

Level 1: Beginner

★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.

Norm axioms and examples

A norm on a vector space satisfies:

  1. ∥x∥≥0\|x\|\ge0, with equality only when x=0x = 0;
  2. ∥αx∥=∣α∣ ∥x∥\|\alpha x\| = |\alpha|\,\|x\|;
  3. ∥x+y∥≤∥x∥+∥y∥\|x + y\|\le\|x\| + \|y\|.

Every norm gives a metric, d(x,y)=∥x−y∥d(x,y) = \|x - y\| (A3.5-1).

Space Norm Formula
Rn\mathbb R^n ℓp\ell_p, p≥1p\ge1 (∑∣xi∣p)1/p(\sum\lvert x_i\rvert^p)^{1/p}
Rn\mathbb R^n ℓ∞\ell_\infty max⁡∣xi∣\max\lvert x_i\rvert
functions on [a,b][a,b] LpL^p (∫∣f∣p)1/p(\int\lvert f\rvert^p)^{1/p}
continuous functions sup max⁡∣f(x)∣\max\lvert f(x)\rvert
matrices spectral, Frobenius A2.3-8

Example: for x=(2,−3,1)x = (2,-3,1), ∥x∥1=6\|x\|_1 = 6, ∥x∥2=14\|x\|_2 = \sqrt{14} and ∥x∥∞=3\|x\|_\infty = 3. For f(x)=xnf(x) = x^n on [0,1][0,1], ∥f∥1=1n+1\|f\|_1 = \frac1{n+1}, ∥f∥2=12n+1\|f\|_2 = \frac1{\sqrt{2n+1}} and ∥f∥∞=1\|f\|_\infty = 1.

📝 Quick check (Level 1)
0/3 answered
  1. 1. ‖(2, −3, 1)‖₁ = ?
  2. 2. ‖x⁵‖₁ on [0, 1]?
  3. 3. Is the ℓ^0.5 formula a norm?

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.

Equivalence in finite dimensions, and its failure

Two norms are equivalent if c∥x∥a≤∥x∥b≤C∥x∥ac\|x\|_a\le\|x\|_b\le C\|x\|_a for all xx. On Rn\mathbb R^n, all norms are equivalent. For instance, ∥x∥∞≤∥x∥2≤∥x∥1≤n∥x∥2≤n∥x∥∞\|x\|_\infty\le\|x\|_2\le\|x\|_1\le\sqrt n\|x\|_2\le n\|x\|_\infty. So convergence in one norm means convergence in all. But the constants grow with nn: in a million dimensions, n=1000\sqrt n = 1000.

In infinite dimensions this fails. ∥xn∥∞/∥xn∥1=n+1→∞\|x^n\|_\infty/\|x^n\|_1 = n + 1\to\infty, so no constant works. The sequence xnx^n converges to 0 in L1L^1 but not uniformly. “Converges” only makes sense once you name the norm.

Banach spaces

A normed space that is complete (A3.5-1) is a Banach space. Examples:

  • Rn\mathbb R^n with any norm;
  • ℓp\ell^p and LpL^p for 1≤p≤∞1\le p\le\infty;
  • C[a,b]C[a,b] with the sup norm, because uniform limits of continuous functions are continuous (A3.5-2).

A non-example is C[0,1]C[0,1] with the L1L^1 norm. Continuous ramps can converge in L1L^1 to a step function (Practice Code 5). Completing that space gives L1L^1.

Dual norms and Hölder’s inequality

The dual norm is ∥y∥∗=sup⁡∥x∥≤1x⊤y\|y\|_* = \sup_{\|x\|\le1}x^\top y. For ℓp\ell_p, it’s ℓq\ell_q with 1/p+1/q=11/p + 1/q = 1. So ℓ1\ell_1 and ℓ∞\ell_\infty are dual, and ℓ2\ell_2 is self-dual. Hölder’s inequality says x⊤y≤∥x∥p∥y∥qx^\top y\le\|x\|_p\|y\|_q. Dual norms are everywhere in optimization:

  • the steepest-descent direction for a norm;
  • the dual of a regularized problem;
  • adversarial perturbations: the worst ℓ∞\ell_\infty attack on a linear model changes the logit by ε∥w∥1\varepsilon\|w\|_1.
🐍 Exercise 1: norms of functions
Compute Lᵖ norms of functions numerically. Show that xⁿ and a growing spike behave completely differently in L¹, L² and L∞, and check Minkowski's triangle inequality for p ≥ 1 and its failure at p = ½.
📝 Quick check (Level 2)
0/3 answered
  1. 1. On ℝⁿ, are all norms equivalent?
  2. 2. The dual norm of ℓ¹ is…
  3. 3. C[0,1] with the sup norm is…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Proofs

Equivalence on Rn\mathbb R^n. It’s enough to compare any norm with ∥⋅∥2\|\cdot\|_2.

  1. Upper bound. ∥x∥=∥∑xiei∥≤∑∣xi∣∥ei∥≤C∥x∥2\|x\| = \|\sum x_ie_i\|\le\sum|x_i|\|e_i\|\le C\|x\|_2 by the triangle inequality and Cauchy–Schwarz. So the norm is continuous.
  2. Lower bound. The unit sphere {∥x∥2=1}\{\|x\|_2 = 1\} is compact (Heine–Borel). So the continuous, positive function ∥x∥\|x\| attains a minimum c>0c > 0 there.
  3. Scale. By homogeneity, c∥x∥2≤∥x∥≤C∥x∥2c\|x\|_2\le\|x\|\le C\|x\|_2 for every xx. ∎

The proof uses compactness of the unit sphere. That’s exactly what fails in infinite dimensions (A3.5-1). Riesz’s lemma shows the unit ball of a normed space is compact if and only if the space is finite-dimensional.

Minkowski’s inequality (the triangle inequality for ℓp\ell_p, p≥1p\ge1) follows from convexity of t↦∣t∣pt\mapsto|t|^p. Equivalently, the unit ball {∥x∥p≤1}\{\|x\|_p\le1\} is convex. For p<1p < 1 the ball isn’t convex and the triangle inequality fails (the MetricDemo in A3.5-1).

A closed subspace of a Banach space is Banach. A Cauchy sequence in the subspace converges in the big space, and closedness keeps the limit inside.

Exercise 3.1: Show that the sup norm satisfies the triangle inequality

For every xx, ∣f(x)+g(x)∣≤∣f(x)∣+∣g(x)∣≤∥f∥∞+∥g∥∞|f(x) + g(x)|\le|f(x)| + |g(x)|\le\|f\|_\infty + \|g\|_\infty. Take the sup over xx. ∎

📝 Quick check (Level 3)
0/3 answered
  1. 1. The equivalence proof on ℝⁿ uses compactness of…
  2. 2. The closed unit ball of an infinite-dimensional normed space is…
  3. 3. Minkowski's inequality is equivalent to…

Level 4: Expert

★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.

The norm is a modelling choice: ℓ¹ and sparsity

Minimizing 12∥Ax−b∥22+λ∥x∥1\frac12\|Ax - b\|_2^2 + \lambda\|x\|_1 (the lasso; Tibshirani, 1996) gives sparse solutions, because the ℓ¹ ball’s corners lie on the axes. Compressed sensing (Candès, Romberg and Tao, 2006; Donoho, 2006) makes this precise. If xx has kk nonzeros and AA is random with m≳Cklog⁡(n/k)m\gtrsim Ck\log(n/k) rows, ℓ¹ minimization recovers xx exactly, from far fewer measurements than unknowns. The minimum-ℓ² solution fails, because it spreads energy over all coordinates. The algorithm is proximal gradient. Its prox step for ℓ¹ is soft-thresholding, and FISTA accelerates it (Beck and Teboulle, 2009).

🐍 Exercise 2 (research): compressed sensing, ℓ¹ vs ℓ²
Recover a 6-sparse signal in ℝ²⁰⁰ from 60 random measurements. Write soft-thresholding and FISTA with λ-continuation, compare with the minimum-ℓ² solution, and check that ℓ¹ finds the exact support.

Banach-space thinking in AI and engineering

  • Which norm is “robust”? Adversarial robustness is defined per norm (ℓ∞\ell_\infty pixel budgets, ℓ2\ell_2 energy budgets), and certificates differ (A3.5-3). Robust regression with ℓ¹ or Huber losses resists sensor outliers (A3.3-4).
  • Control. H∞H_\infty control bounds the worst-case gain, an operator norm on L2L^2 signals (Zhou, Doyle and Glover, 1996). H2H_2 bounds average energy. Robust controllers for aircraft and spacecraft are designed against these norms.
  • Sparse system identification. SINDy finds governing equations as sparse combinations of candidate terms via sequential thresholded least squares (Brunton, Proctor and Kutz, 2016). Its ℓ¹-flavoured sparsity yields interpretable dynamics for fluids and orbital mechanics.
  • Function-space optimization. Banach spaces of functions are where the calculus of variations (A3.5-9), Fréchet derivatives (A3.5-10) and neural-operator theory live. Barron spaces describe which functions shallow networks approximate efficiently (A3.5-8).

References

  1. E. Kreyszig (1978). Introductory Functional Analysis with Applications. Wiley.
  2. H. Brezis (2011). Functional Analysis, Sobolev Spaces and Partial Differential Equations. Springer.
  3. R. Tibshirani (1996). “Regression shrinkage and selection via the lasso.” Journal of the Royal Statistical Society B, 58(1).
  4. E. Candès, J. Romberg, T. Tao (2006). “Robust uncertainty principles: exact signal reconstruction from highly incomplete frequency information.” IEEE Transactions on Information Theory, 52(2).
  5. D. Donoho (2006). “Compressed sensing.” IEEE Transactions on Information Theory, 52(4).
  6. A. Beck, M. Teboulle (2009). “A fast iterative shrinkage-thresholding algorithm for linear inverse problems.” SIAM Journal on Imaging Sciences, 2(1).
  7. K. Zhou, J. Doyle, K. Glover (1996). Robust and Optimal Control. Prentice Hall.
  8. S. Brunton, J. Proctor, J. N. Kutz (2016). “Discovering governing equations from data by sparse identification of nonlinear dynamical systems.” PNAS, 113(15).