📊 Section 1 — Interactive Simulation
Pick a function sequence $\{f_n\}$. At every $x$, watch $f_n(x)$ converge to $f(x)$ as $n$ grows (pointwise). The $\eps$-tube around $f$ visualizes uniform convergence: does the entire graph of $f_n$ eventually fit inside? Sometimes yes, sometimes the spike escapes forever.
Animation
Sequence Preset
Probe & Tube
Display Options
Tips
• Try xⁿ on [0,1]: $f_n \to 0$ on $[0,1)$ and $f_n(1)=1$ — pointwise but not uniform.
• Try sin(nx)/n: bounded by $1/n$ everywhere — uniform.
• Watch the ‖f_n − f‖∞ graph: → 0 means uniform; bounded away from 0 means pointwise only.
💡 Section 2 — The Idea, Step by Step
From "the copy eventually matches the original" to "the whole copy matches at once" — climbing from an everyday picture up to the $\eps$-$N$ definition.
Start simple. Imagine an artist drawing copy after copy of one master picture: copy $f_1$, then a better copy $f_2$, then $f_3$, and so on. Two very different things could happen. Maybe if you stare at any single spot on the page, the copies eventually nail that spot — but different spots get sharp at different times, and a few stubborn spots stay blurry far longer than the rest. Or maybe there is a moment after which the entire copy matches the master everywhere at once, within a hair's width. The first kind of "getting close" is pointwise; the second, stronger kind is uniform. That one difference — each spot on its own schedule versus all spots on one shared schedule — is the whole lesson.
Name the pieces. Write $f_n(x)$ for the $n$-th approximation evaluated at the input $x$, and $f(x)$ for the target it is heading toward. The mismatch at a point is the error $\abs{f_n(x) - f(x)}$. Pointwise convergence just says: fix any $x$, and that error shrinks to $0$ as $n$ grows. Take the gentle example $f_n(x) = x/n$ on $[0,1]$. At $x = 1$ the errors run $1,\ \tfrac12,\ \tfrac13,\ \dots \to 0$; and notice the worst error anywhere on $[0,1]$ is exactly $1/n$ as well, so here the whole graph shrinks toward $0$ together — this one is uniform.
Now the trap. Compare $f_n(x) = x^n$ on $[0,1]$. At $x = 0.9$ the values are $0.9^{10}\approx 0.35$, then $0.9^{100}\approx 2.7\times 10^{-5}$ — so pointwise, every $x<1$ heads to $0$. But for any fixed $n$ you can slide $x$ close enough to $1$ to make $x^n$ near $1$ again: with $n=100$, the point $x=0.99$ still gives $0.99^{100}\approx 0.37$. The "worst spot" never disappears — it just slides toward $1$. So we track the biggest error of all, the sup-norm $M_n = \supnorm{f_n - f} = \sup_x \abs{f_n(x)-f(x)}$, and define: $f_n \to f$ uniformly exactly when $M_n \to 0$. In quantifier form the whole distinction is the order $\forall x\,\exists N$ (pointwise) versus $\exists N\,\forall x$ (uniform). Geometrically, draw an $\eps$-tube of half-height $\eps$ around $f$; uniform means the entire curve $f_n$ eventually lies inside it.
Try this in the sim above. First, pick x/n and drag $n$ up while watching the "‖fₙ−f‖∞ vs n" graph fall cleanly to $0$ — that is uniform. Next, switch to xⁿ, shrink $\eps$ small, and watch the curve near $x=1$ poke out of the tube no matter how large $n$ gets; the argmax readout stays pinned near $1$ — pointwise only. Finally, choose the tall-thin-spike n²·x·(1−x²)ⁿ and open the "∫f_n vs ∫f" graph: the pointwise limit is $0$ everywhere, yet the integral runs off to infinity — a vivid proof that pointwise convergence is too weak to swap with integration.
📐 Section 3 — Definitions, Theorems, and Why Uniform Matters
Two convergence modes, the $\eps$-$N$ definitions side-by-side, and the three properties uniform convergence preserves that pointwise does not.
$f_n \to f$ pointwise on $E$ iff $\forall x \in E,\ \forall \eps > 0,\ \exists N(x, \eps)$ such that $\abs{f_n(x) - f(x)} < \eps$ whenever $n \geq N$. The $N$ is allowed to depend on $x$.
$f_n \to f$ uniformly on $E$ iff $\forall \eps > 0,\ \exists N(\eps)$ such that $\abs{f_n(x) - f(x)} < \eps$ for all $x \in E$ and all $n \geq N$. The $N$ depends on $\eps$ only — one $N$ works for every $x$.
Equivalent: $\supnorm{f_n - f} := \sup_{x \in E} \abs{f_n(x) - f(x)} \to 0$ as $n\to\infty$. The order of quantifiers is everything.
Symbol Table
| Symbol | Meaning | Type |
|---|---|---|
| $f_n$ | $n$-th function in the sequence | $E \to \R$ |
| $f$ | Pointwise limit function | $E \to \R$, $f(x) = \lim f_n(x)$ |
| $E$ | Domain (interval, metric space) | Subset of $\R$ (or general) |
| $\xrightarrow{p.w.}$ | Pointwise convergence | Each $x$ independently |
| $\xrightarrow{u}$ | Uniform convergence | Single $N$ for all $x$ |
| $\supnorm{g}$ | $\sup_{x\in E}\abs{g(x)}$ — sup-norm | Real or $+\infty$ |
| $M_n$ | $\supnorm{f_n - f}$ — uniform error | Real, $\to 0$ iff uniform |
| $N(\eps)$ vs $N(x,\eps)$ | Uniform $N$ vs pointwise $N$ | Function of $\eps$ only / of both |
Three Theorems Uniform Convergence Earns Us
Counter-Examples: Pointwise but Not Uniform
Simulation ↔ Symbol Mapping
slider n (log) | sequence index — drives which $f_n$ is plotted |
slider x* | probe point — the readout shows $f_n(x^*) \to f(x^*)$, illustrating pointwise convergence at one $x$ |
slider ε (log) | tube radius — uniform convergence iff entire $f_n$ graph fits in the $\eps$-tube around $f$ for large $n$ |
readout ‖f_n−f‖∞ | numerical sup-norm computed by sampling 2000 points across the domain |
readout argmax | where the max gap lives — tells you whether the "bad spot" is moving |
readout uniform verdict | compares $\supnorm{f_n-f}$ trend across $n$: shrinks to 0 ⇒ "uniform ✓"; bounded below ⇒ "pointwise only ✗" |
graph ‖f_n−f‖∞ vs n | direct uniform-convergence diagnostic — flat or oscillating means pointwise, decreasing to 0 means uniform |
graph ∫f_n vs ∫f | shows when integration commutes with limit (uniform) and when it fails (moving-spike, $\int f_n \to \infty$) |
Worked Example — $f_n(x) = x^n$ on $[0, 1]$
Pointwise limit: If $0 \leq x < 1$, $x^n \to 0$. If $x = 1$, $1^n = 1$. So $f(x) = 0$ on $[0,1)$, $f(1)=1$.
Each $f_n$ continuous, $f$ discontinuous at $x=1$ — so by Theorem 1 (contrapositive), convergence is not uniform. Verify directly:
$\supnorm{f_n - f} = \sup_{x \in [0,1]}\abs{f_n(x) - f(x)}$. For $x \in [0,1)$, the gap is $x^n$; the sup over $[0,1)$ is 1 (approached as $x\to 1^-$). At $x=1$, gap is 0. So $\supnorm{f_n - f} = 1 \not\to 0$.
Restrict to $[0, a]$ for $a < 1$: on this smaller domain, $\supnorm{f_n - 0} = a^n \to 0$, so $f_n \to 0$ uniformly on $[0, a]$.
Lesson: uniform convergence depends on the domain. Same sequence may be uniform on one set and only pointwise on a larger set. $\boxed{x^n \xrightarrow{p.w.} f \text{ on } [0,1],\ \text{ uniform on } [0,a]\ (a<1).}$
❓ Section 4 — Frequently Asked Questions
Both definitions say "$f_n(x)$ gets close to $f(x)$ for large $n$". The difference is about how large $n$ has to be. Pointwise: pick a point $x$, then ask how big $n$ must be — the required $n$ can depend on which $x$ you picked. Uniform: ask for one $n$ that works simultaneously for every $x$ in the domain. Geometrically: in pointwise convergence, each vertical slice $\{x = x_0\}$ converges, but the rate may slow down as $x$ varies; in uniform convergence, the entire graph of $f_n$ eventually fits inside the $\eps$-tube around the graph of $f$. The order of quantifiers — $\forall x\, \exists N$ vs $\exists N\, \forall x$ — is the entire content.
Key takeaway: pointwise = "$\forall x\, \exists N$"; uniform = "$\exists N\, \forall x$". The quantifier order is everything.The tube is the set of all points within vertical distance $\eps$ of the limit function $f$ — i.e., the strip $\{(x,y) : \abs{y - f(x)} \leq \eps\}$. Uniform convergence is the statement: for every $\eps > 0$, eventually the whole graph of $f_n$ lives inside this tube. The simulation lets you set $\eps$ and watch: for sequences like $\sin(nx)/n$, the curves slip into the tube quickly. For $x^n$ on $[0,1]$, however small you make $\eps$, near $x = 1$ the function $x^n$ stubbornly pokes its head outside the tube no matter how large $n$ gets — because $f(1) = 1$ but $f_n(x)$ is close to 0 for $x$ slightly less than 1. The "uniform verdict" readout reports the empirical sup-norm trend.
Key takeaway: uniform = the entire graph eventually fits in the ε-tube; pointwise alone allows persistent escape at moving locations.Anywhere you need to swap a limit with another operation. Fourier series: convergence of partial sums to a target function is uniform on intervals where the target is smooth, but only pointwise (or even worse) at jump discontinuities — that's where the Gibbs phenomenon lives. Power series: converge uniformly on compact subsets of the disk of convergence, which is why you can integrate and differentiate term-by-term safely. Numerical PDE: error analysis of finite-element/finite-difference schemes asks whether the discrete solution converges uniformly to the true solution — pointwise convergence is too weak for engineering guarantees. Probability: weak vs strong laws of large numbers, and Glivenko–Cantelli (uniform convergence of empirical CDFs to the true CDF) is the foundation of statistical learning theory. Functional analysis: the right notion of "function" depends on which convergence you take seriously — $L^p$, $L^\infty$, $C([a,b])$ are all defined by different convergence modes.
Key takeaway: Fourier series, power series, numerical methods, learning theory — all rely on the right convergence mode for the right guarantee.The proof of "continuity is preserved" relies on splitting an estimate into three pieces of size $\eps/3$ — and one of them, $\abs{f(x) - f_N(x)}$, must be small uniformly in $x$ in a neighbourhood of $x_0$. Pointwise convergence only gives smallness at $x_0$, not in a neighbourhood. The classical example is $f_n(x) = x^n$ on $[0,1]$: at every $x_0 \in [0,1)$, you can choose $N$ so $f_N(x_0) < 0.01$. But for $x$ slightly less than 1 (say $x_0 + \delta$), $f_N(x_0 + \delta)$ may still be near 1. So $f_N$ has a sharp transition near 1 that pointwise data at $x_0$ can't see. The limit "function" $f$ inherits that transition as a jump, and continuity fails. Uniform convergence forbids the rate of approach from depending on $x$ — that's exactly what's needed.
Key takeaway: pointwise lets each $x$ converge at its own rate; the slow-converging points can hide a discontinuity in the limit.Compute $M_n := \supnorm{f_n - f} = \sup_{x \in E}\abs{f_n(x) - f(x)}$ and watch its behaviour as $n$ grows. (a) Analytic: maximize $\abs{f_n - f}$ over $E$ via calculus — set the derivative to zero, find critical points. (b) Numerical: sample, say, $2000$ uniformly-spaced points in $E$, evaluate $\abs{f_n(x_k) - f(x_k)}$ at each, take the max. The simulation does this. Verdict: $M_n \to 0 \Rightarrow$ uniform; $\liminf M_n > 0 \Rightarrow$ not uniform; $M_n$ steadily decaying without reaching 0 ⇒ likely uniform but slowly. The shape of $M_n$ vs $n$ on a log plot is the diagnostic — flat tails are a red flag, while a clean linear decay (in log-log or log-linear) confirms uniform convergence with that rate.
Key takeaway: compute $M_n = \sup\abs{f_n - f}$ analytically or by sampling; $M_n \to 0$ ⇔ uniform.Dini's theorem: if $f_n \to f$ monotonically (i.e., $f_n(x) \leq f_{n+1}(x)$ for all $x$, or the reverse) and pointwise on a compact set $E$, with each $f_n$ and $f$ continuous, then $f_n \to f$ uniformly. The remarkable thing: pointwise convergence usually doesn't promote to uniform, but with these hypotheses (monotone, compact, continuous), it does. Proof uses compactness: open cover by sets where $\abs{f_n - f} < \eps$ admits a finite subcover; monotonicity propagates the bound globally. Counter-example showing each hypothesis is essential: drop compactness and consider $f_n(x) = \min(x, n)$ on $\R$ — monotone increasing to $f(x) = x$, pointwise but not uniform. Drop monotonicity: see $x^n$ on $[0,1]$. The theorem is one of the few places that converts pointwise into uniform — usually you have to assume uniform.
Key takeaway: Dini — monotone + compact + continuous ⇒ pointwise upgrades to uniform. Lose any hypothesis, lose the conclusion.The moving-spike sequence $f_n(x) = n^2 x(1-x^2)^n$ has pointwise limit 0 — at every fixed $x$, $f_n(x) \to 0$. But $\int_0^1 f_n(x)\,dx = \tfrac{n^2}{2(n+1)} \to \infty$. The reason: the peak of $f_n$ moves toward 0 and grows in height like $n^2$, while shrinking in width like $1/\sqrt{n}$, so the area is roughly $n^2 \cdot 1/\sqrt{n} = n^{3/2}$. At each fixed $x > 0$, eventually the spike has moved past $x$, so $f_n(x) \to 0$. But at any moment, there's a tall narrow spike somewhere, contributing area. Integration sees the entire graph at once, not one $x$ at a time — that's why pointwise convergence is too weak. Uniform convergence forbids tall narrow spikes (they'd violate $\supnorm{f_n - 0}$ being small), so it preserves integrals. This is the prototype for why $L^1$ convergence and pointwise convergence are different.
Key takeaway: pointwise checks one $x$ at a time and misses moving mass; uniform sees the whole graph and catches it.