← SciSim / Mathematics

Uniform vs Pointwise Convergence

Two ways for $f_n \to f$ — and why uniform preserves what pointwise destroys.
🎓 Tier: Late Undergraduate (Real Analysis)

📊 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.

f_n plot
f_n(x) at probe
f(x) limit
|f_n − f| at probe
‖f_n − f‖∞ (sup)
argmax of |f_n−f|
tube radius ε
inside tube?
uniform verdict

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.

Pointwise Convergence

$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$.

Uniform Convergence

$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

SymbolMeaningType
$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-normReal 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

Theorem 1 · Continuity is preserved
If each $f_n$ is continuous on $E$ and $f_n \xrightarrow{u} f$, then $f$ is continuous on $E$.
Proof sketch: Fix $x_0 \in E$ and $\eps > 0$. Choose $N$ so $\abs{f_n - f} < \eps/3$ uniformly when $n \geq N$. Continuity of $f_N$ gives $\delta > 0$ with $\abs{f_N(x) - f_N(x_0)} < \eps/3$ for $\abs{x - x_0} < \delta$. Then triangle inequality: $\abs{f(x) - f(x_0)} \leq \abs{f(x) - f_N(x)} + \abs{f_N(x) - f_N(x_0)} + \abs{f_N(x_0) - f(x_0)} < \eps/3 + \eps/3 + \eps/3 = \eps$.
Theorem 2 · Integral commutes with limit
If $f_n \xrightarrow{u} f$ on $[a,b]$ and each $f_n$ is Riemann-integrable, then $f$ is integrable and $\displaystyle\lim_{n\to\infty}\int_a^b f_n = \int_a^b f$.
Proof: $\abs{\int_a^b f_n - \int_a^b f} \leq \int_a^b \abs{f_n - f} \leq (b-a)\supnorm{f_n - f} \to 0$.
Theorem 3 · Derivative — needs uniform on derivatives
If $f_n \to f$ pointwise on $[a,b]$, each $f_n$ is differentiable, and $f_n'$ converges uniformly to some $g$, then $f$ is differentiable and $f' = g$. Pointwise on $f$ alone is not enough — you need uniform on the derivatives.

Counter-Examples: Pointwise but Not Uniform

Counter-Example 1 · $f_n(x) = x^n$ on $[0,1]$
Pointwise: $f(x) = 0$ for $x\in[0,1)$ and $f(1)=1$. Each $f_n$ is continuous, but $f$ is discontinuous at $1$ — so convergence is not uniform. Direct check: $\supnorm{f_n - f}$ on $[0,1)$ is $\sup x^n = 1$ for every $n$, never $\to 0$.
Counter-Example 2 · Moving spike $f_n(x) = n^2 x(1-x^2)^n$ on $[0,1]$
Pointwise limit is $0$ everywhere. But $\int_0^1 f_n = \frac{n^2}{2(n+1)} \to \infty$, while $\int_0^1 0 = 0$. Pointwise convergence does not commute with integration. The peak of $f_n$ moves toward 0 and grows tall enough that pointwise convergence holds at every fixed $x$, but the area under the spike never shrinks.
Step 7 · Cauchy criterion for uniform convergence
$\{f_n\}$ converges uniformly on $E$ iff $\forall \eps > 0$ there is $N$ such that $\supnorm{f_n - f_m} < \eps$ for all $m, n \geq N$. (This is the "internal" check that doesn't require knowing $f$ in advance.) For series $\sum g_n$: Weierstrass M-test — if $\abs{g_n(x)} \leq M_n$ on $E$ and $\sum M_n$ converges, then $\sum g_n$ converges uniformly. $\boxed{f_n \xrightarrow{u} f \iff \supnorm{f_n - f} \to 0.}$

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).}$

Reference: Rudin, W. — Principles of Mathematical Analysis, 3rd ed., Ch. 7 §7.7–7.18; Abbott, S. — Understanding Analysis, 2nd ed., Ch. 6 §6.2–6.4; Tao, T. — Analysis II, 4th ed., Ch. 3; Bartle, R. & Sherbert, D. — Introduction to Real Analysis, 4th ed., §8.1–8.2; Pugh, C. — Real Mathematical Analysis, 2nd ed., Ch. 4 §3.

❓ Section 4 — Frequently Asked Questions

🧮Conceptual What's the difference between pointwise and uniform — really?

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.
🔬Simulation What is the ε-tube doing in the simulation?

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.
🌍Applied Where does this distinction actually matter?

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.
💡Non-Obvious Why doesn't pointwise convergence preserve continuity?

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.
📐Computational How do I check uniform convergence numerically?

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.
🎓Deep / Advanced What's Dini's theorem and why is it surprising?

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.
🧮Conceptual Why doesn't $\int$ commute with the moving spike $f_n$?

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.
Best resource: 3Blue1Brown — "Continuous functions and the closed-set definition" (related convergence intuition); MIT OCW 18.100A — Real Analysis (uniform convergence lectures); Terence Tao's blog — "Analysis II" notes (https://terrytao.wordpress.com/category/teaching/247b-classical-fourier-analysis/); Mathematics Stack Exchange — search "uniform convergence intuition".

⚠️ Section 5 — Misconceptions & Common Errors

A · Conceptual Misconceptions
❌ Misconception: "Pointwise convergence preserves continuity." ✅ Correction: No — that's exactly the canonical counter-example. $f_n(x) = x^n$ on $[0,1]$ is continuous for every $n$, but the pointwise limit $f(x) = 0$ on $[0,1)$ and $f(1)=1$ has a jump discontinuity at $1$. Uniform convergence preserves continuity (Theorem 1 above); pointwise alone does not. The difference is whether the rate of convergence depends on $x$ — pointwise allows it to slow down arbitrarily as $x$ approaches a "bad point", smuggling in a discontinuity. 📖 Reference: Rudin — Principles of Mathematical Analysis, 3rd ed., Theorem 7.12 + Example 7.4.
❌ Misconception: "If each $f_n$ is bounded and $f_n \to f$ pointwise, then $f$ is bounded." ✅ Correction: No. Take $f_n(x) = \min(\abs x, n)$ on $\R$. Each $f_n$ is bounded by $n$, and $f_n(x) \to \abs x$ pointwise, but $\abs x$ is unbounded on $\R$. With uniform convergence on a bounded domain plus each $f_n$ bounded, you do get $f$ bounded — but pointwise alone is too weak. Uniform convergence preserves boundedness via the easy bound $\abs f \leq \abs{f - f_N} + \abs{f_N} \leq \eps + M_N$. 📖 Reference: Bartle & Sherbert — Introduction to Real Analysis, 4th ed., §8.1.
❌ Misconception: "Uniform convergence is just pointwise convergence on a compact domain." ✅ Correction: Wrong even on $[0,1]$. Pointwise on $[0,1]$ is strictly weaker than uniform on $[0,1]$ — the $x^n$ example shows that. What is true: Dini's theorem says pointwise + monotone + continuous + compact ⇒ uniform. That requires the extra monotonicity. In general, even on compact sets, pointwise and uniform are different concepts; compactness alone doesn't bridge them. 📖 Reference: Abbott — Understanding Analysis, 2nd ed., §6.2 (Dini's theorem statement and counter-examples).
B · Common Procedural Errors
❌ Error: "$f_n(x) = nx(1-x)^n$ on $[0,1]$ converges to 0 uniformly because for each $x \in [0,1)$, $f_n(x) \to 0$ and $f_n(1) = 0$." ✅ Correct: The argument shows pointwise convergence to 0, not uniform. To check uniform: compute $\sup_{x\in[0,1]}\abs{f_n(x)}$. Take derivative: $f_n'(x) = n(1-x)^n - n^2 x(1-x)^{n-1} = n(1-x)^{n-1}(1 - x - nx) = n(1-x)^{n-1}(1 - (n+1)x)$. Critical point at $x = 1/(n+1)$. At that point, $f_n(1/(n+1)) = n \cdot \tfrac{1}{n+1} \cdot \left(\tfrac{n}{n+1}\right)^n \to 1 \cdot e^{-1} = 1/e$. So $\supnorm{f_n} \to 1/e \neq 0$ — convergence is not uniform. Justifying rule: uniform requires sup-norm $\to 0$, not just pointwise values. 🔍 Why students do this: assume "if $f_n(x) \to 0$ for every $x$, that's everything to check" — but the supremum is what matters for uniform.
❌ Error: "$f_n \to f$ pointwise, so $\displaystyle\lim_{n\to\infty}\int_a^b f_n = \int_a^b f$." ✅ Correct: Pointwise convergence does not generally allow swapping limit and integral. Need uniform convergence (or stronger: dominated convergence in the Lebesgue setting). Counter-example: $f_n(x) = n^2 x(1-x^2)^n$ on $[0,1]$ has pointwise limit 0, but $\int_0^1 f_n \to \infty$. The student forgot to check uniform convergence (or to invoke the dominated convergence theorem with an integrable dominator). Justifying rule: $\abs{\int f_n - \int f} \leq (b-a)\supnorm{f_n - f}$ — bound is useful only if sup-norm $\to 0$. 🔍 Why students do this: assume limits and operations always commute — they don't, even though linearity makes finite sums commute.
❌ Error: "$\sum_{n=1}^\infty \dfrac{x^n}{n^2}$ converges uniformly on $\R$ since each term is small." ✅ Correct: The series converges uniformly only on closed intervals contained in $[-1, 1]$. Reason: the Weierstrass M-test needs $\abs{x^n/n^2} \leq M_n$ uniformly in $x$ with $\sum M_n < \infty$. For $x \in [-1, 1]$, $\abs{x^n/n^2} \leq 1/n^2$, and $\sum 1/n^2 = \pi^2/6 < \infty$ — so yes, uniform on $[-1,1]$. For $\abs x > 1$, individual terms $\abs{x}^n/n^2 \to \infty$, so the series diverges; for $\abs x = 1+\delta$, terms blow up exponentially. Justifying rule: Weierstrass M-test: $\abs{g_n(x)} \leq M_n$ on $E$ and $\sum M_n < \infty$ $\Rightarrow$ $\sum g_n$ uniform on $E$. 🔍 Why students do this: see $1/n^2$ in the denominator and assume that "tames" the series everywhere — forgetting that the numerator $x^n$ blows up for $\abs x > 1$.
Education research: Tall, D. & Vinner, S. — "Concept image and concept definition in mathematics with particular reference to limits and continuity", Educational Studies in Mathematics 12, 151–169 (1981); Cornu, B. — "Limits", in Tall (ed.) Advanced Mathematical Thinking, Kluwer (1991); Roh, K. — "Students' images and their understanding of definitions of the limit of a sequence", Educational Studies in Mathematics 69, 217–233 (2008); Mamona-Downs, J. — "Letting the intuitive bear on the formal: a didactical approach for the convergence of sequences", Educational Studies in Mathematics 47, 259–288 (2001); Alcock, L. & Simpson, A. — "Convergence of sequences and series 2: interactions between non-visual reasoning and the learner's beliefs about their own role", Educational Studies in Mathematics 58, 77–100 (2005).