Book III · Functional Analysis
Part 8 of 10Banach Spaces
Does a continuous function always have a convergent Fourier series, and what can be proved about every complete normed space at once?
The part opens with Dirichlet's kernel: a function bounded by one can line up its sign with the kernel's, so the norm of the functional f -> s_n(f)(0) is the integral of |D_n|, which grows like (4/pi^2) log n. Du Bois-Reymond built a divergent example by hand in 1873; Banach and Steinhaus get one in three lines. After Banach and Frechet spaces and the Volterra operator's norm 2/pi, Baire's theorem is proved with nested intervals dodging the rationals, and its three children follow: uniform boundedness (most continuous functions have Fourier series that diverge at 0), the open mapping theorem and the closed graph theorem, with Hellinger-Toeplitz as a corollary. Hahn-Banach, the pillar not built on Baire, supplies enough functionals and separates convex sets. The turn is compactness: the unit vectors of l^2 stay root two apart, but they converge weakly, and Banach-Alaoglu makes the dual unit ball weak-star compact. Krein-Milman finds extreme points and shows L^1 is not a dual space; compact operators keep linear algebra alive, with the string's Green's operator as the model. Four applications close the part: a Banach limit, Grothendieck's closed-graph argument, Haar measure, and c_0 uncomplemented in l^infinity.
What you need. Metric spaces and compactness (Part 1), the sup norm on C(X) and Arzela-Ascoli (Part 3), and the L^p spaces with their duals (Part 6).
What you will be able to do
Undergraduate
- Compute the operator norm of a matrix or of a simple integral operator, and explain why a linear map is continuous exactly when it is bounded.
- Run the nested-interval argument that proves Baire's theorem on the real line, and say what meager and residual mean.
Graduate
- Prove Banach-Steinhaus, the open mapping theorem and the closed graph theorem from Baire's theorem, and use the Lebesgue constants to show that Fourier series of continuous functions can diverge.
- State Hahn-Banach in its extension and separation forms, prove the one-dimensional extension step, and prove Banach-Alaoglu from Tychonoff's theorem.
Qualifying exam
- Prove with Alaoglu and Krein-Milman that L^1[0, 1] is not the dual of any Banach space, and explain why L^p for p below 1 has no nonzero continuous functionals.
- Prove that a locally compact topological vector space is finite-dimensional, and state the Fredholm alternative for compact operators.
Applications
- Compute Lebesgue constants and decide when an interpolation or summation method is stable by checking whether its operator norms stay bounded.
- Discretize a compact integral operator and read its eigenvalues or singular values, knowing they can accumulate only at zero.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 7 min · Graduate 22 min · Qualifying exam 25 min · Applications 11 min.
- 0A continuous function whose Fourier series divergesUndergraduate2 min
- 1Banach spaces and bounded operatorsUndergraduate2 min
- 2Spaces without normsQualifying exam2 min
- 3Baire's theoremUndergraduate2 min
- 4Uniform boundednessGraduate2 min
- 5Open mappings and closed graphsGraduate2 min
- 6Hahn-BanachGraduate2 min
- 7Dual spacesGraduate1 min
- 8Weak convergenceGraduate2 min
- 9Banach-AlaogluGraduate2 min
- 10Extreme pointsQualifying exam1 min
- 11Compact operatorsApplications2 min
- 12Four applicationsApplications3 min
- The eighth row of the ledgerAll tracks2 min
Also on this page: Lecture · Key results · Try it · Lab · Notes and sources · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film.
A continuous function whose Fourier series divergesUndergraduate2 min
Seven rows of the ledger are filled. Each part found a complete space and asked what compactness costs there. Part 8 asks those questions about every complete normed space at once.
The n-th partial sum of a Fourier series at zero is the integral of f against the Dirichlet kernel. The kernel has a tall peak and many side lobes, some negative. A function bounded by one can line up its sign with the kernel's, and then its partial sum at zero is the total area under the absolute value of the kernel. Continuous functions can come within three percent of that. And that area grows without bound: like four over pi squared times the log of n, computed here out to a million. So for each n there's a bounded continuous function whose n-th partial sum at zero is large. Does a single continuous function have partial sums that grow without bound?
Du Bois-Reymond answered yes in 1873, with an explicit and delicate construction. Banach and Steinhaus answered it in three lines. The functionals that take f to its n-th partial sum at zero have norms that go to infinity. Their theorem then says the partial sums are unbounded, not just for one f, but for most continuous functions, in a precise sense due to Baire. A theorem about the existence of monsters, proved by counting. That's the spirit of this part.
Here's the plan, following chapter five of Real and Complex Analysis and the first five chapters of Rudin's Functional Analysis. First the spaces, and Baire's theorem with its three children: uniform boundedness, open mappings and closed graphs. Then Hahn-Banach and duality, weak convergence, and the compactness that comes back in the weak-star topology. Then extreme points, compact operators, and four applications.
1Banach spaces and bounded operatorsUndergraduate2 min
Complete normed spaces, named after Stefan Banach, and the maps between them. A Banach space is a vector space with a norm in which every Cauchy sequence converges. We've met many. The sequence spaces, with the sum, square-sum and supremum norms, whose unit balls we know as the diamond, the circle and the square. The continuous functions with the sup norm, from Part 3; the sequences that tend to zero; and the L p spaces of Part 6. Every theorem in this part holds for all of them at once.
A linear map between normed spaces is continuous exactly when it's bounded: it stretches no vector by more than a fixed factor. And if it's continuous at one point, it's continuous everywhere, because linearity moves that point anywhere. The smallest such factor is the operator norm: the radius of the smallest ball containing the image of the unit ball. With this norm, the bounded operators themselves form a Banach space.
An operator from analysis: integrate from zero to x. On L two of the unit interval, how much can it stretch a function? The answer is two over pi. The function stretched most is a quarter of a cosine wave: integrating it gives a quarter sine wave, two over pi times as long. A discretization with two thousand points agrees to six digits. The other singular values follow the same pattern, two over three pi, two over five pi, falling to zero. That makes this operator compact, which chapter eleven explains.
2Spaces without normsQualifying exam2 min
Why Rudin's Functional Analysis begins with spaces that have no norm at all. Some important spaces have no single norm. Take the smooth functions on an interval. These two are within 0.08 of each other, but their derivatives differ by two, and their second derivatives by fifty. For smooth functions, close should mean close in every derivative. So the topology uses a whole sequence of seminorms, the sups of the k-th derivatives. Countably many seminorms still give a metric, and the space is complete: a Fréchet space. But no single norm does the job, and the test functions of Part 9 are worse still. That's why Grandpa Rudin starts with topological vector spaces.
Part 1 promised that closed and bounded doesn't mean compact beyond R n. Here's the honest end of that story. The unit vectors of l two slide off to the right, and every two of them are root two apart. A ball of radius 0.7 holds at most one of them, so no finite collection of such balls covers the unit ball. Riesz proved more: a topological vector space in which some neighborhood of zero is compact must be finite-dimensional. In infinite dimensions, compactness has to come from somewhere else.
One more warning. For p below one, L p is still a complete metric vector space, but its balls cave in, like this star. And it has no continuous linear functionals at all, except zero: the convex hull of any ball is the whole space. Hahn-Banach can't work there. So the theory keeps one assumption: local convexity, a base of convex neighborhoods of zero.
3Baire's theoremUndergraduate2 min
Baire's category theorem, the root of three of the four pillars. List the rationals between zero and one: q one, q two, and so on. Can the list be all the real numbers? Pick a closed third of the interval that misses q one. Inside it, a closed third that misses q two. And so on: the intervals shrink by a factor of three each time, each one dodging one more rational. Because the real line is complete, the nested intervals close in on a real number, and it's none of the q n. That's Baire's theorem in miniature: a complete metric space can't be a countable union of nowhere dense sets. The proof is always this: nested closed balls, each avoiding one more thin set, and completeness to finish.
Baire's theorem gives a notion of size. A set is meager if it's a countable union of nowhere dense sets, and residual if its complement is meager. In a complete space, residual sets are dense: in Baire's sense, they're almost everything. It's a different notion from measure. Put a tiny open interval around each rational, of total length epsilon. The union is open and dense, but its length is at most epsilon. Intersect these sets as epsilon goes to zero. The result is a dense G delta, residual, almost everything to Baire, and it has measure zero. Two meanings of most, and they disagree.
4Uniform boundednessGraduate2 min
Banach and Steinhaus: for a family of bounded operators on a Banach space, either their norms are bounded, or they blow up on a dense G delta. The proof is Baire. Let E k be the set of points whose orbit stays within k: a closed set. If every orbit is bounded, the E k cover the whole space, and Baire says one of them must contain a ball. A ball's worth of uniform bounds, shifted to the origin by linearity, bounds every operator's norm by the same constant. Pointwise bounds become uniform bounds.
Now the hook. On the continuous functions on the circle, the functional that takes f to its n-th partial sum at zero has norm equal to the integral of the absolute Dirichlet kernel. A continuous function shaped like the sign of the kernel nearly achieves it. Those norms grow like the log of n. So the family isn't uniformly bounded, and Banach and Steinhaus say the partial sums at zero are unbounded for a dense G delta of continuous functions. Most continuous functions have Fourier series that diverge at zero. For square-integrable functions, Carleson proved in 1966 that the series converge almost everywhere; for integrable ones, Kolmogorov had found a series diverging everywhere.
The same kernel answers another question. The Fourier coefficients of an integrable function tend to zero, by the Riemann-Lebesgue lemma, so the Fourier transform maps L one into the sequences converging to zero. Is every such sequence a Fourier series? If so, the open mapping theorem, coming next, would bound the L one norm by the largest coefficient. The Dirichlet kernels break that bound: their coefficients are all one, and their L one norms grow without limit. So the map isn't onto, and nobody had to find the missing sequence.
5Open mappings and closed graphsGraduate2 min
Baire's second and third children, the open mapping and closed graph theorems. The open mapping theorem: a bounded linear map of one Banach space onto another sends the unit ball to a set that contains a ball. In the plane, the image of the disk is an ellipse, and the largest disk inside it has radius one over the norm of the inverse. In infinite dimensions that's a theorem. Baire says some multiple of the image is dense in a ball; completeness, through an iteration, removes the word dense. Checked on sixty coordinates of l two: fifty random targets inside the predicted ball are all hit from inside the unit ball. The consequence: a bounded bijection between Banach spaces has a bounded inverse, for free.
The closed graph theorem: a linear map between Banach spaces whose graph is closed is automatically bounded. It's the open mapping theorem applied to the graph. A striking corollary, due to Hellinger and Toeplitz: a symmetric operator defined on all of a Hilbert space is bounded. i times the derivative is symmetric on periodic functions, but sine n x over root pi has norm one while its derivative has norm n. So differentiation can't be defined on all of L two. It must live on a smaller domain, and that's why Part 10 needs unbounded operators.
6Hahn-BanachGraduate2 min
The Hahn-Banach theorem, the fourth pillar, and the only one not built on Baire.
Hahn-Banach extends a linear functional from a subspace to the whole space without breaking a bound. Here's the key step, in the plane: a functional on the x-axis, bounded by the length, extended to one more direction. The new value c must sit above every blue lower bound and below every pink upper bound. And it can: the highest blue point is below the lowest pink point, by the triangle inequality. Any c in the yellow band is a valid extension. That handles one dimension. Infinitely many need Hausdorff's maximality principle: pure logic, which no picture can show.
The geometric form: two disjoint convex sets, one compact and one closed, can be separated by a closed hyperplane. For two convex polygons, the hyperplane through the midpoint of their closest points, perpendicular to the gap, does it: the functional is below the yellow level on one set and above it on the other. In general the proof feeds the sandwich a special sublinear function: the gauge of a convex set, how far you must scale the set to reach a point.
The consequences are what make duality work. Every nonzero vector has a functional of norm one that measures its full length. So the norm of x is the supremum of the functionals over the dual unit ball, and functionals separate points. And a vector is outside a closed subspace exactly when some functional kills the subspace but not the vector. A normed space always has enough functionals to see everything, unlike L p for p below one.
7Dual spacesGraduate1 min
A functional on a normed space has its own norm: its largest value on the unit ball. So the functionals form a normed space too, the dual, with a unit ball of its own. For the one-norm, whose ball is the diamond, the dual ball is the square: the largest value of g dot x on the diamond is the largest coordinate of g. The circle is its own dual. And in general the dual of the p-norm is the q-norm, with conjugate exponents, checked here for sixty random functionals.
The duals we know. For p between one and infinity, the dual of l p is l q, and the dual of that is l p again: these spaces are reflexive. The sequences tending to zero have dual l one, and l one has dual l infinity, which is strictly bigger, so l one isn't reflexive. The continuous functions have the measures as their dual, as Part 6 proved. And l infinity has functionals that no sequence describes, like a limit for every bounded sequence, which only Hahn-Banach can produce. That's the promise from Part 6 kept.
8Weak convergenceGraduate2 min
Weak convergence, convergence as seen by every functional. The unit vectors of l two never get close to anything: each is root two from every other, and one from zero. But look at them through a fixed functional, the inner product with a vector y. That reading is just the n-th coordinate of y, which goes to zero. For fifty random y's, the largest reading falls steadily. So e n converges to zero weakly: every functional sees the sequence converge, even though its norm never shrinks.
In L two there are three ways to converge weakly without converging. Oscillate: sine n x wiggles faster and faster, and against any fixed function its integral fades, by the Riemann-Lebesgue lemma. Concentrate: a tall thin spike of norm one sees less and less of any fixed function. Escape: a bump sliding off to infinity. All have norm one, all converge weakly to zero. These are the bump's evil twins from Part 3, back as the standard examples.
Weak limits aren't far from norm limits, though. Average the first N sine waves. The averages really do shrink, in norm, like the square root of pi over N. Mazur's theorem says this always happens: a weak limit is a norm limit of convex combinations. So closed convex sets are also weakly closed. And by Banach and Steinhaus, a weakly convergent sequence is always bounded.
9Banach-AlaogluGraduate2 min
The compactness that infinite dimensions take away comes back, in the weak-star topology. Banach-Alaoglu: the closed unit ball of a dual space is compact in the weak-star topology, where functionals converge when their values at each point converge. For the dual of l one, a functional of norm at most one is just a choice of a number between minus one and one for each coordinate: a point of an infinite cube. In general, each functional is a point in a product of intervals, one interval for each vector. Tychonoff's theorem says the product is compact, and linearity is a closed condition. For separable spaces there's a sequential version, proved by Cantor's diagonal argument, which is how it's used most often.
Here's the payoff for measures. Probability measures on the unit interval are functionals on the continuous functions, all in the dual unit ball. This sequence keeps changing shape: its mean wanders forever and never settles. But Alaoglu promises a weak-star convergent subsequence. Take n equal to 6, 44, 710, 103993, nearly multiples of two pi. Along it, the histograms settle onto a limit measure, and every moment converges: the error drops to four ten-millionths. This is how analysts produce limits of measures, from Haar measure to Prokhorov's theorem in probability.
10Extreme pointsQualifying exam1 min
A point of a convex set is extreme if it isn't the midpoint of two other points of the set. A point on an edge of the diamond splits along the edge, so only the four corners are extreme. On the circle, every boundary point is extreme. On the square, only the corners again. The same test in three dimensions, on random boundary points, gives none, all, and none. Krein and Milman: a compact convex set is the closed convex hull of its extreme points. The corners are enough to rebuild the whole set.
Now a surprise. In L one of the unit interval, take f equals two x, of norm one. Cut the interval where half the mass lies, at one over root two. Doubling f on each side gives two functions of norm one, and f is their average. Every unit vector splits like this, so the unit ball of L one has no extreme points at all. But a dual ball is weak-star compact by Alaoglu, so it has plenty of extreme points by Krein and Milman. Conclusion: L one is not the dual of any Banach space. Two compactness theorems, combined into a non-existence proof.
11Compact operatorsApplications2 min
Compact operators, the ones for which linear algebra survives. An operator is compact if it sends the unit ball into a set with compact closure. The Volterra operator from chapter one is an example: it maps the unit ball onto an infinite-dimensional ellipsoid whose axes are two over pi, two over three pi, two over five pi, falling to zero. Thin in every direction but finitely many: so in Hilbert space a compact operator is a limit of finite-rank ones, matrices in disguise.
The model compact operator is an integral operator with a continuous kernel. This one solves the equation of a string held at both ends: given a load f, it returns the displacement. Discretize it with two thousand points and diagonalize. The eigenvectors are the string's modes, sine n pi x, and the eigenvalues are one over n squared pi squared, to three digits, falling to zero. A compact operator's eigenvalues can only pile up at zero.
For compact operators, almost all of finite-dimensional linear algebra survives. The nonzero spectrum consists of eigenvalues of finite multiplicity, accumulating only at zero. And Fredholm's alternative holds: T minus lambda is one-to-one exactly when it's onto, as for square matrices. The symmetric ones even have orthonormal eigenbases; that's the spectral theorem, which Part 10 proves in full.
12Four applicationsApplications3 min
Four applications, one from each corner of the theory. First, a limit for every bounded sequence. Hahn-Banach extends the ordinary limit to all of l infinity, keeping it linear, positive and unchanged by shifting the sequence. Shift invariance alone forces some values. Minus one to the n plus its shift is zero, so its limit is zero. The pattern one, zero, zero, plus two shifts, is the constant one, so its limit is a third: the average. For most sequences nothing forces the value, and no formula gives it. This is the functional on l infinity that's not in l one, the one Part 6 promised.
Second, a model use of the closed graph theorem, due to Grothendieck. A closed subspace of L p made entirely of bounded functions must be finite-dimensional. The closed graph theorem gives one constant C with the sup norm at most C times the L two norm, throughout the subspace. But n orthonormal functions force the constant to be at least root n. For trigonometric polynomials the ratio is exactly the square root of the dimension, so no single constant survives infinitely many dimensions.
Third, compactness builds a measure. Every compact group has exactly one probability measure unchanged by the group's motions: Haar measure. The proof finds it as a fixed point among all probability measures, which are weak-star compact by Alaoglu. For the rotations of space, it can be sampled with random unit quaternions. Apply fifteen hundred of them to the north pole, and the points spread evenly over the sphere. A test integral gives a third, and shifting the measure by a fixed rotation gives a third again.
Last, a warning about projections. Number the nodes of an infinite binary tree; each infinite branch is then a set of whole numbers. Two different branches part ways after finitely many steps, so they share only finitely many numbers, and there are uncountably many branches. A counting argument with this family shows that the sequences tending to zero have no bounded projection inside l infinity. In Hilbert space, every closed subspace has an orthogonal projection; in general Banach spaces, that's a luxury.
The eighth row of the ledgerAll tracks2 min
Let's take stock. Banach spaces gathered the complete spaces of earlier parts into one family, where continuity means boundedness, and where the unit ball is never compact. Baire's theorem gave uniform boundedness, which proved that most continuous functions have divergent Fourier series; and it gave the open mapping and closed graph theorems. Hahn-Banach supplied enough functionals, and duality identified them. Weak convergence and the Banach-Alaoglu theorem brought compactness back, Krein-Milman found the corners, and compact operators kept linear algebra alive.
The ledger's eighth row. The spaces: Banach and Fréchet. Completeness pays through Baire's theorem. Compactness returns in the weak-star topology. The new interchange: pointwise bounds become uniform bounds. And the Fourier answer is now sharp: divergence for most continuous functions, and, by Carleson's theorem, convergence almost everywhere for square-integrable ones.
Next time, in Part 9: distributions. The absolute value has a corner, but its derivative is the sign function. The sign function jumps, and its derivative is a spike of total mass two, twice the Dirac delta, which no function can be. Distributions make that honest: define the derivative by moving it onto smooth test functions. Then everything can be differentiated, and the Fourier transform becomes a symmetry of the whole theory.
This part followed chapter five of Real and Complex Analysis and the first five chapters of Functional Analysis. Thanks for watching, and see you in Part 9.
Where it goes next. Frechet spaces and weak-star limits carry the test functions and distributions of Part 9; Hellinger-Toeplitz is why Part 10 needs unbounded operators, Alaoglu makes its maximal ideal space compact, and the Volterra and Green's operators return there with their spectra.
Key results
The part's results in one place, for revision.
Try it
Lab 8 · Lebesgue constants: the norms that Banach and Steinhaus need
Compute the norm of f -> s_n(f)(0) on the continuous functions, the integral of |D_n|, three ways (quadrature, Fejer's sum, the asymptote (4/pi^2) log n + 1.27), build a continuous function that nearly attains it, and check that no function bounded by 1 beats it.
python -m videos.analysis.labs 8
needs numpy, scipy, matplotlib · download lab08.py ·
source on GitHubn = 8: norm of f -> s_n(f)(0) 2.13773 (quadrature) 2.13773 (Fejer) 2.113 (asymptote)
n = 8: reached by the continuous f_n 2.12803 (99.5% of the norm)
n = 64: norm of f -> s_n(f)(0) 2.95904 (quadrature) 2.95904 (Fejer) 2.956 (asymptote)
n = 64: reached by the continuous f_n 2.94261 (99.4% of the norm)
n = 512: norm of f -> s_n(f)(0) 3.79905 (quadrature) 3.79905 (Fejer) 3.798 (asymptote)
n = 512: reached by the continuous f_n 3.77578 (99.4% of the norm)
n = 4096: norm of f -> s_n(f)(0) 4.64147 (quadrature) 4.64147 (Fejer) 4.641 (asymptote)
n = 4096: reached by the continuous f_n 4.61135 (99.4% of the norm)
n = 64: best of 300 random f with |f| <= 1 0.8527 (norm 2.9590)
The functionals f -> s_n(f)(0) are each bounded, but their norms grow like (4/pi^2) log n, so by Banach-Steinhaus they cannot be bounded at every continuous f: some f (a dense G-delta of them) has partial sums at 0 that are unbounded. Random functions come nowhere near the norm; the extremal ones are special, which is why the theorem is needed to find them.
The code (100 lines; it asserts its own result)
"""Lab 8: compute the norms of the partial-sum functionals on C(T) and watch uniform boundedness fail."""
import numpy as np
from videos.coursekit import labs
TITLE = "Lebesgue constants: the norms that Banach and Steinhaus need"
GOAL = ("Compute the norm of f -> s_n(f)(0) on the continuous functions, the integral of |D_n|, three ways (quadrature, "
"Fejer's sum, the asymptote (4/pi^2) log n + 1.27), build a continuous function that nearly attains it, and "
"check that no function bounded by 1 beats it.")
TASKS = [
"Replace Dirichlet's kernel by Fejer's (the average of D_0 ... D_n). Its norm is 1 for every n: what does that say about Fejer means?",
"Widen the ramps of the near-extremal function (width = 0.8) and see how much of the norm it still reaches.",
"Sum f = sum_k 2^-k f_{n_k} with n_k = 2^(k^3), truncated at k = 3, and print s_n(f)(0) at n = n_k: this is the classical explicit construction.",
]
GX, GW = np.polynomial.legendre.leggauss(12)
def dirichlet(t, n):
"""D_n(t) = sin((n + 1/2) t) / sin(t / 2) = the sum of e^(ikt) for |k| <= n."""
s = np.sin(t / 2)
safe = np.where(np.abs(s) < 1e-12, 1.0, s)
return np.where(np.abs(s) < 1e-12, 2 * n + 1.0, np.sin((n + 0.5) * t) / safe)
def integrate_lobes(g, n):
"""(1 / 2 pi) * the integral of g over [-pi, pi] for even g, by Gauss-Legendre on each lobe of D_n in [0, pi]."""
edges = np.minimum(np.arange(n + 2) * 2 * np.pi / (2 * n + 1), np.pi) # the zeros of D_n, then pi
a, b = edges[:-1, None], edges[1:, None]
t = (a + b) / 2 + (b - a) / 2 * GX
return float(np.sum((b - a) / 2 * GW * g(t)) / np.pi)
def lebesgue_quadrature(n):
return integrate_lobes(lambda t: np.abs(dirichlet(t, n)), n)
def lebesgue_fejer(n):
"""Fejer's closed sum for the Lebesgue constant."""
k = np.arange(1, n + 1)
return 1 / (2 * n + 1) + 2 / np.pi * np.sum(np.tan(np.pi * k / (2 * n + 1)) / k)
def near_extremal(t, n, width=0.2):
"""A continuous function bounded by 1 that follows the sign of D_n, with linear ramps across its zeros."""
f = np.clip(np.sin((n + 0.5) * np.abs(t)) / width, -1, 1)
return np.where(np.abs(t) < np.pi / (2 * n + 1), 1.0, f) # 1 across the central peak, where D_n does not change sign
def run(seed=0):
rng = np.random.default_rng(seed)
lab = labs.Lab()
ns = 2 ** np.arange(1, 13)
quad = np.array([lebesgue_quadrature(n) for n in ns])
fejer = np.array([lebesgue_fejer(n) for n in ns])
asym = 4 / np.pi**2 * np.log(ns) + 1.27
assert np.abs(quad - fejer).max() < 1e-8, "quadrature agrees with Fejer's sum"
assert np.all(np.diff(fejer) > 0.2), "the norms grow with every doubling, toward (4/pi^2) log 2 = 0.281 each: unbounded"
assert np.abs(fejer - asym)[ns >= 64].max() < 0.01, "the norms follow (4/pi^2) log n + 1.27"
# the continuous near-extremal function: s_n(f_n)(0) = (1/2pi) int f_n D_n, just below the norm
reach = np.array([integrate_lobes(lambda t, n=n: near_extremal(t, n) * dirichlet(t, n), n) for n in ns])
assert np.all(reach < fejer) and np.all(reach > 0.97 * fejer), "a continuous function comes within 3% of the norm"
# no function bounded by 1 beats the norm: 300 random continuous (piecewise linear) functions at n = 64
n0 = 64
best = 0.0
knots = np.linspace(0, np.pi, 400)
for _ in range(300):
vals = rng.uniform(-1, 1, knots.size)
best = max(best, abs(integrate_lobes(lambda t: np.interp(t, knots, vals) * dirichlet(t, n0), n0)))
L0 = lebesgue_fejer(n0)
assert best < L0, "|s_n(f)(0)| <= ||D_n||_1 sup|f|"
for n, q, f, a, r in zip(ns[[2, 5, 8, 11]], quad[[2, 5, 8, 11]], fejer[[2, 5, 8, 11]], asym[[2, 5, 8, 11]], reach[[2, 5, 8, 11]]):
lab.row(f"n = {n}: norm of f -> s_n(f)(0)", f"{q:.5f} (quadrature) {f:.5f} (Fejer) {a:.3f} (asymptote)")
lab.row(f"n = {n}: reached by the continuous f_n", f"{r:.5f} ({r / f:.1%} of the norm)")
lab.row(f"n = {n0}: best of 300 random f with |f| <= 1", f"{best:.4f} (norm {L0:.4f})")
lab.note = ("The functionals f -> s_n(f)(0) are each bounded, but their norms grow like (4/pi^2) log n, so by "
"Banach-Steinhaus they cannot be bounded at every continuous f: some f (a dense G-delta of them) has "
"partial sums at 0 that are unbounded. Random functions come nowhere near the norm; the extremal "
"ones are special, which is why the theorem is needed to find them.")
fig, ax = labs.figure(2, size=(11, 4.2))
n = 8
t = np.linspace(-np.pi, np.pi, 2001)
ax[0].plot(t, dirichlet(t, n) / (2 * n + 1), color=labs.BLUE, label="Dirichlet kernel D_8 / 17")
ax[0].plot(t, near_extremal(t, n), color=labs.GOLD, lw=1.2, label="continuous f_8 following its sign")
ax[0].fill_between(t, 0, np.minimum(dirichlet(t, n), 0) / (2 * n + 1), color=labs.RED, alpha=0.5, label="negative lobes")
ax[0].set(title="A function bounded by 1 lines up with the kernel", xlabel="t", ylim=(-1.15, 2.2))
ax[0].legend(loc="upper right", ncol=1)
ax[1].semilogx(ns, fejer, "o", color=labs.BLUE, label="norm = (1/2pi) int |D_n|")
ax[1].semilogx(ns, asym, color=labs.MUTED, ls="--", label="(4/pi^2) log n + 1.27")
ax[1].semilogx(ns, reach, "x", color=labs.GOLD, label="s_n(f_n)(0) for the continuous f_n")
ax[1].axhline(1, color=labs.GREEN, lw=1.2, label="Fejer kernel's norm: 1 for every n")
ax[1].set(title="The norms are unbounded", xlabel="n", ylabel="norm of the functional", ylim=(0, 5))
ax[1].legend(loc="upper left")
lab.fig = fig
return lab
Now change it
- Replace Dirichlet's kernel by Fejer's (the average of D_0 ... D_n). Its norm is 1 for every n: what does that say about Fejer means?
- Widen the ramps of the near-extremal function (width = 0.8) and see how much of the norm it still reaches.
- Sum f = sum_k 2^-k f_{n_k} with n_k = 2^(k^3), truncated at k = 3, and print s_n(f)(0) at n = n_k: this is the classical explicit construction.
Notes and sources
Sources
W. Rudin, Principles of Mathematical Analysis, 3rd ed. (1976); Real and Complex Analysis, 3rd ed. (1987); Functional Analysis, 2nd ed. (1991). Theorem numbers on screen are those editions'. Each part's credits scene lists the original authors and the companion texts.
About this partfrom its README
Part 8 of a ten-part series that builds mathematical analysis from the holes in the rational numbers to the spectral theorem, following the arc of Walter Rudin's three textbooks. This part covers chapter 5 of Real and Complex Analysis and chapters 1-5 of Functional Analysis, in a hook, 12 chapters and an outro.
Banach and Fréchet spaces, topological vector spaces, Baire's theorem, the uniform boundedness principle (and the divergent Fourier series it produces), the open mapping and closed graph theorems, Hahn-Banach as separation, duals, weak and weak-star convergence, Banach-Alaoglu, Krein-Milman, compact operators and the Fredholm alternative, and a sampler of applications.
Every number the narration states is computed in compute.py and asserted; most scenes also assert the specific values they display.
What is computed and builtComputations (compute.py)
| Item | What is computed and asserted |
|---|---|
lebesgue |
the Lebesgue constants |
volterra |
the Volterra operator on L^2[0, 1]: norm 2/pi; singular values 2/((2k - 1) pi) |
baire |
nested intervals dodging the rationals; a dense G_delta of measure zero |
openmap |
a bounded bijection of R^2 and of l^2 (finite section): T(B) contains the ball of radius 1/ |
separation |
two convex polygons separated by a hyperplane through the midpoint of their closest points; gauges |
weak |
<e_n, y> -> 0 for 50 random y in l^2; sin(nx) -> 0 weakly; Mazur's averages of sin(nx) |
alaoglu |
probability measures on [0, 1] with no limit, and a subsequence whose moments converge |
extreme |
extreme points of the l^p balls in R^3 by the splitting test; the L^1 ball has none |
compact |
the Green's operator of -u'' on [0, 1]: eigenvalues 1/(n pi)^2, eigenvectors sines |
haar |
Haar measure on SO(3) from random unit quaternions: invariance of averages |
Chapter notes
0:00 A continuous function whose Fourier series diverges
1:54 1. Banach spaces and bounded operators
3:29 2. Spaces without norms
5:12 3. Baire's theorem
6:39 4. Uniform boundedness
8:37 5. Open mappings and closed graphs
10:02 6. Hahn-Banach
11:41 7. Dual spaces
12:52 8. Weak convergence
14:22 9. Banach-Alaoglu
15:51 10. Extreme points
17:05 11. Compact operators
18:36 12. Four applications
21:00 The eighth row of the ledger
Chapter notes
| # | Scene | Chapter |
|---|---|---|
| 0 | Hook |
A continuous function whose Fourier series diverges |
| 1 | Banach |
1. Banach spaces and bounded operators |
| 2 | TVS |
2. Spaces without norms |
| 3 | Baire |
3. Baire's theorem |
| 4 | UniformBoundedness |
4. Uniform boundedness |
| 5 | OpenMapping |
5. Open mappings and closed graphs |
| 6 | HahnBanach |
6. Hahn-Banach |
| 7 | Dual |
7. Dual spaces |
| 8 | Weak |
8. Weak convergence |
| 9 | Alaoglu |
9. Banach-Alaoglu |
| 10 | KreinMilman |
10. Extreme points |
| 11 | Compact |
11. Compact operators |
| 12 | Samples |
12. Four applications |
| 13 | Outro |
The eighth row of the ledger |
Build the film
python -m videos.analysis.analysis8.compute # the part's numbers, into .cache/analysis8
python tools/build.py analysis8 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py analysis8 Hook # one chapter, silent, with a contact sheet
Scenes: videos/analysis/analysis8. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
The finished video is not stored in the repository. From the repo root, after the one-time setup in the top-level README:
python -m videos.analysis.analysis8.compute # once: every computed item (cached in .cache/analysis8)
python tools/build.py analysis8 -q k --fps 60 # the full-quality cut: 2160p60 + subtitles + chapters -> renders/analysis8_2160p.mp4
python tools/build.py analysis8 # 1080p30 -> renders/analysis8.mp4
python tools/build.py analysis8 -q l # fast 480p preview
python tools/export_script.py analysis8 # regenerate SCRIPT.md from the code
python tools/check_narration.py analysis8 # Whisper listen test of every narration line
The scenes share the series' instruments in explainer/analysis and helpers from earlier parts (see common.py). The full narration is in SCRIPT.md.