Uniform Convergence and Integration

Suppose a sequence of functions fnf_n converges to ff at every point of [a,b][a,b]. Can you conclude that

∫abfn→∫abf?\int_a^b f_n \to \int_a^b f?

This looks like it should be automatic. After all, integration is just "summing up values." But pointwise convergence alone is far too weak to guarantee it. There exist sequences of perfectly nice, Riemann-integrable functions converging pointwise to a Riemann-integrable limit. For these, the integrals do not converge to the integral of the limit at all. The gap between pointwise and uniform convergence is exactly where this phenomenon lives. Understanding it is one of the central achievements of nineteenth-century analysis. This matters because calculus is built on interchanging limiting operations. Every such interchange is a claim that needs justification, not an automatic algebraic manipulation. Term-by-term integration of infinite series is used constantly. It helps derive formulas like arctan⁡x=x−x3/3+x5/5−⋯\arctan x = x - x^3/3 + x^5/5 - \cdots or solve differential equations by power series. This is precisely an interchange of a limit (the series' partial sums) with an integral. Without a correct hypothesis controlling how the convergence happens, such derivations are simply unjustified guesses. They happen to often work anyway. The right hypothesis was discovered in the work of Cauchy, Abel, and above all Weierstrass. It is uniform convergence: the requirement that the rate of approximation of ff by fnf_n can be made uniform across the whole domain, not just pointwise at each xx. Under uniform convergence, integration and the limit commute. The proof is short and genuinely illuminating. It is a clean application of the definition of the Riemann integral via bounds on the integrand. This article proves the interchange theorem for uniformly convergent sequences on a closed bounded interval. It derives the term-by-term integration theorem for series as an immediate corollary. It gives two fully worked asymmetric examples. It also exhibits the standard counterexample showing why uniform convergence cannot be weakened to pointwise convergence. It closes with the natural next question — what happens to derivatives. This requires an entirely different, and more delicate, hypothesis.

Key takeaways
  • If fn→ff_n \to f uniformly on [a,b][a,b] and each fnf_n is Riemann integrable, then ff is Riemann integrable and ∫abfn→∫abf\int_a^b f_n \to \int_a^b f.
  • Uniform convergence lets you bound ∣fn−f∣|f_n - f| by a single number ε\varepsilon everywhere on the interval at once, which is exactly what makes the integral of the difference small.
  • Pointwise convergence is not enough: mass can "escape to infinity in height" while the domain of support shrinks, keeping pointwise limits fine but integrals wrong.
  • For series ∑fk\sum f_k, uniform convergence (e.g. via the Weierstrass M-Test) lets you integrate term by term: ∫ab∑fk=∑∫abfk\int_a^b \sum f_k = \sum \int_a^b f_k.
  • The interval must be bounded, and the functions must be Riemann integrable to begin with — the theorem does not manufacture integrability from nothing.
  • Key idea: uniform convergence turns "the limit of the integrals" and "the integral of the limit" into the same quantity, because uniform closeness of functions forces closeness of their integrals.

Where this lives today

Term-by-term integration under uniform convergence underlies the rigorous derivation of elementary function identities from power series (e.g. ln⁡\ln, arctan⁡\arctan, elliptic integrals), and is the justification behind computing definite integrals of special functions via their series expansions in applied mathematics and physics. In Fourier analysis, uniform convergence of a Fourier series (guaranteed under suitable smoothness of the target function) licenses integrating the series against test functions term by term, a step used constantly in solving the heat and wave equations by separation of variables. In probability and statistics, uniform convergence results (e.g. Glivenko–Cantelli-type theorems) control when expectations (integrals against a measure) of empirical approximations converge to true expectations, echoing the same "swap limit and integral" logic. In numerical analysis and scientific computing, uniform error bounds on function approximations (splines, Chebyshev approximations related to the Stone-Weierstrass Theorem) are exactly what certify that integrating an approximation gives a controllably accurate estimate of the true integral. The same interchange principle, generalized via dominated and monotone convergence, becomes a cornerstone of measure-theoretic integration and underlies rigorous justifications throughout mathematical physics, cryptographic hardness proofs relying on analytic estimates, and the convergence theory of numerical PDE solvers.

:::quiz[If fn→ff_n \to f pointwise (not necessarily uniformly) on [a,b][a,b] and all fnf_n are Riemann integrable with ff Riemann integrable, then ∫abfn→∫abf\int_a^b f_n \to \int_a^b f always holds.]

  • True, pointwise convergence always suffices
  • True, but only if [a,b][a,b] is replaced by all of R\mathbb{R}
  • False — the moving tent function gives a counterexample even though ff is integrable ✓
  • False, because pointwise limits of integrable functions are never integrable

:::quiz[For the moving tent functions fnf_n with base 1/n1/n and height nn on [0,1][0,1], which statement is correct?]

  • fn→0f_n \to 0 uniformly and ∫01fn→0\int_0^1 f_n \to 0
  • fn→0f_n \to 0 pointwise only, and ∫01fn=1/2\int_0^1 f_n = 1/2 for every nn, so the limit of integrals is 1/2≠01/2 \ne 0 ✓
  • fnf_n does not converge pointwise anywhere
  • ∫01fn→∞\int_0^1 f_n \to \infty

:::quiz[Why does the proof require the interval [a,b][a,b] to be bounded?]

  • It doesn't; the theorem is stated and proved identically for unbounded intervals
  • Because the key estimate ∫ab∣fn−f∣≤∥fn−f∥∞⋅(b−a)\int_a^b |f_n - f| \le \|f_n-f\|_\infty \cdot (b-a) needs (b−a)(b-a) finite to force the right side to 00 ✓
  • Because Riemann integrability is undefined on unbounded intervals
  • Because uniform convergence is impossible on unbounded intervals

:::faq[If fn→ff_n \to f uniformly on [a,b][a,b], is the rate of convergence of ∫abfn\int_a^b f_n to ∫abf\int_a^b f controlled explicitly?] Yes, and this quantitative bound is arguably more useful than the qualitative existence-of-a-limit statement. The proof shows directly that

∣∫abfn−∫abf∣≤(b−a) ∥fn−f∥∞,\left|\int_a^b f_n - \int_a^b f\right| \le (b-a)\,\|f_n - f\|_\infty,

so any explicit bound on the sup-norm error immediately yields an explicit bound on the integral error, scaled by the length of the interval. This is exactly how the numerical error estimate was obtained in the worked example: a bound ∥fn−f∥∞≤28/(n+1)\|f_n - f\|_\infty \le 28/(n+1) translated into an explicit bound 56/(n+1)56/(n+1) on the integral's error.

Ask the tutor: Why doesn't uniform convergence of fnf_n alone guarantee that fn′f_n' converges to f′f', the way it guarantees the integrals converge?

DefinitionUniform convergence and the interchange setup

Let fn:[a,b]→Rf_n : [a,b] \to \mathbb{R}, n=1,2,3,…n = 1,2,3,\dots, be a sequence of functions on a closed bounded interval [a,b][a,b]. The sequence (fn)(f_n) converges uniformly to f:[a,b]→Rf:[a,b]\to\mathbb{R} if for every ε>0\varepsilon > 0 there exists N∈NN \in \mathbb{N} such that

n≥N  ⟹  sup⁡x∈[a,b]∣fn(x)−f(x)∣<ε.n \geq N \implies \sup_{x \in [a,b]} |f_n(x) - f(x)| < \varepsilon.

Equivalently, ∥fn−f∥∞:=sup⁡x∈[a,b]∣fn(x)−f(x)∣→0\|f_n - f\|_\infty := \sup_{x\in[a,b]} |f_n(x)-f(x)| \to 0 as n→∞n\to\infty. A function g:[a,b]→Rg:[a,b]\to\mathbb{R} is Riemann integrable on [a,b][a,b] if gg is bounded and

sup⁡PL(g,P)=inf⁡PU(g,P),\sup_P L(g,P) = \inf_P U(g,P),

where the supremum and infimum are taken over all partitions PP of [a,b][a,b], and L,UL, U denote lower and upper Darboux sums. The common value is denoted ∫abg\int_a^b g. A series of functions ∑k=1∞fk\sum_{k=1}^\infty f_k converges uniformly on [a,b][a,b] if its sequence of partial sums Sn=∑k=1nfkS_n = \sum_{k=1}^n f_k converges uniformly on [a,b][a,b].

Intuition

Picture the graph of fnf_n as a ribbon around the graph of ff, of vertical half-width εn=∥fn−f∥∞\varepsilon_n = \|f_n - f\|_\infty. Uniform convergence says this ribbon squeezes down to zero width everywhere at once as n→∞n \to \infty: the same εn\varepsilon_n works for every x∈[a,b]x \in [a,b] simultaneously. Since the ribbon has width 2εn2\varepsilon_n and the interval has length b−ab-a, the area trapped between the graphs of fnf_n and ff is at most 2εn(b−a)2\varepsilon_n(b-a), which forces

∣∫abfn−∫abf∣=∣∫ab(fn−f)∣≤∫ab∣fn−f∣≤εn(b−a)→0.\left|\int_a^b f_n - \int_a^b f\right| = \left|\int_a^b (f_n - f)\right| \le \int_a^b |f_n - f| \le \varepsilon_n(b-a) \to 0.

This one-line estimate is the proof; everything else is bookkeeping about integrability. Pointwise convergence gives no such ribbon: at each fixed xx, fn(x)f_n(x) eventually gets close to f(x)f(x), but the rate can be wildly different at different points, and in particular a "spike" of fixed area can travel around the interval, shrinking in width as nn grows, hitting height →∞\to \infty or staying bounded, while still converging to 00 pointwise almost everywhere. The area under the spike need not vanish. The two pictures below contrast a genuine uniform squeeze with a pointwise-only "moving spike."

Figure
Uniform convergence: a shrinking ribbon of width 2εn2\varepsilon_n around ff
x y a b f(x) ribbon width 2ε_n → 0 f_n(x)
Figure
Pointwise-only convergence: a traveling spike of fixed area, height n, width 1/n
x 0 1 height n, area = 1/2 → narrower, taller, same area pointwise: f_n(x) → 0 for each fixed x but ∫ f_n stays constant (or blows up)

The central theorem

TheoremUniform convergence permits term-by-term integration

Let [a,b]⊂R[a,b] \subset \mathbb{R} be a closed bounded interval, and let fn:[a,b]→Rf_n : [a,b] \to \mathbb{R} be a sequence of Riemann-integrable functions. Suppose fn→ff_n \to f uniformly on [a,b][a,b]. Then: 1. ff is Riemann integrable on [a,b][a,b]. 2. lim⁡n→∞∫abfn(x) dx=∫abf(x) dx\displaystyle \lim_{n\to\infty} \int_a^b f_n(x)\,dx = \int_a^b f(x)\,dx, i.e.

∫ab(lim⁡n→∞fn)=lim⁡n→∞∫abfn.\int_a^b \Big(\lim_{n\to\infty} f_n\Big) = \lim_{n\to\infty} \int_a^b f_n.
CorollaryTerm-by-term integration of series

Let [a,b][a,b] be a closed bounded interval and let fk:[a,b]→Rf_k : [a,b] \to \mathbb{R}, k=1,2,3,…k=1,2,3,\dots, be Riemann integrable. Suppose ∑k=1∞fk\sum_{k=1}^\infty f_k converges uniformly on [a,b][a,b] to a function gg. Then gg is Riemann integrable and

∫abg(x) dx=∑k=1∞∫abfk(x) dx,\int_a^b g(x)\,dx = \sum_{k=1}^\infty \int_a^b f_k(x)\,dx,

where the series on the right converges. In particular, if the MkM_k-test hypotheses of the Weierstrass M-Test hold (i.e. ∣fk(x)∣≤Mk|f_k(x)| \le M_k on [a,b][a,b] with ∑Mk<∞\sum M_k < \infty), the conclusion holds.

Proof

Proof of the theorem. We prove the two parts in order, using the Cauchy criterion for uniform convergence and direct estimation of Darboux sums — the standard technique for this result. Step 1: ff is bounded. Since fn→ff_n \to f uniformly, taking ε=1\varepsilon = 1 in the definition gives NN such that ∥fN−f∥∞<1\|f_N - f\|_\infty < 1, i.e. ∣fN(x)−f(x)∣<1|f_N(x) - f(x)| < 1 for all x∈[a,b]x \in [a,b]. Since fNf_N is Riemann integrable it is bounded, say ∣fN(x)∣≤M|f_N(x)| \le M for all xx. Then for all x∈[a,b]x \in [a,b],

∣f(x)∣≤∣f(x)−fN(x)∣+∣fN(x)∣<1+M.|f(x)| \le |f(x) - f_N(x)| + |f_N(x)| < 1 + M.

So ff is bounded on [a,b][a,b], which is necessary before we can even ask whether ff is Riemann integrable. Step 2: ff is Riemann integrable. Fix ε>0\varepsilon > 0. By uniform convergence, choose n0n_0 so that

∥fn0−f∥∞<ε4(b−a).\|f_{n_0} - f\|_\infty < \frac{\varepsilon}{4(b-a)}.

Write δ=ε4(b−a)\delta = \dfrac{\varepsilon}{4(b-a)}, so −δ<fn0(x)−f(x)<δ-\delta < f_{n_0}(x) - f(x) < \delta for every x∈[a,b]x \in [a,b]; equivalently

fn0(x)−δ<f(x)<fn0(x)+δfor all x∈[a,b].(∗)f_{n_0}(x) - \delta < f(x) < f_{n_0}(x) + \delta \qquad \text{for all } x \in [a,b]. \tag{$\ast$}

Since fn0f_{n_0} is Riemann integrable, there is a partition P={a=x0<x1<⋯<xm=b}P = \{a = x_0 < x_1 < \dots < x_m = b\} of [a,b][a,b] such that

U(fn0,P)−L(fn0,P)<ε2.U(f_{n_0}, P) - L(f_{n_0}, P) < \frac{\varepsilon}{2}.

On each subinterval [xi−1,xi][x_{i-1}, x_i], let Mi(fn0)=sup⁡[xi−1,xi]fn0M_i(f_{n_0}) = \sup_{[x_{i-1},x_i]} f_{n_0}, mi(fn0)=inf⁡[xi−1,xi]fn0m_i(f_{n_0}) = \inf_{[x_{i-1},x_i]} f_{n_0}, and similarly Mi(f),mi(f)M_i(f), m_i(f) for ff. By (∗)(\ast), for every xx in this subinterval,

f(x)<fn0(x)+δ≤Mi(fn0)+δ,f(x) < f_{n_0}(x) + \delta \le M_i(f_{n_0}) + \delta,

so taking the supremum over xx in the subinterval, Mi(f)≤Mi(fn0)+δM_i(f) \le M_i(f_{n_0}) + \delta. Symmetrically mi(f)≥mi(fn0)−δm_i(f) \ge m_i(f_{n_0}) - \delta. Hence

Mi(f)−mi(f)≤(Mi(fn0)−mi(fn0))+2δ.M_i(f) - m_i(f) \le \big(M_i(f_{n_0}) - m_i(f_{n_0})\big) + 2\delta.

Multiplying by Δxi=xi−xi−1\Delta x_i = x_i - x_{i-1} and summing over i=1,…,mi = 1,\dots,m:

U(f,P)−L(f,P)=∑i(Mi(f)−mi(f)) Δxi≤(U(fn0,P)−L(fn0,P))+2δ(b−a).U(f,P) - L(f,P) = \sum_i (M_i(f) - m_i(f))\,\Delta x_i \le \big(U(f_{n_0},P) - L(f_{n_0},P)\big) + 2\delta(b-a).

Now 2δ(b−a)=2⋅ε4(b−a)⋅(b−a)=ε22\delta(b-a) = 2 \cdot \dfrac{\varepsilon}{4(b-a)} \cdot (b-a) = \dfrac{\varepsilon}{2}, so

U(f,P)−L(f,P)<ε2+ε2=ε.U(f,P) - L(f,P) < \frac{\varepsilon}{2} + \frac{\varepsilon}{2} = \varepsilon.

Since ε>0\varepsilon > 0 was arbitrary, the Riemann (Cauchy) criterion for integrability is satisfied: for every ε>0\varepsilon>0 there is a partition PP with U(f,P)−L(f,P)<εU(f,P) - L(f,P) < \varepsilon. Hence ff is Riemann integrable on [a,b][a,b]. Step 3: The integrals converge. Now that ∫abf\int_a^b f is known to exist, we estimate the difference of integrals directly. Fix ε>0\varepsilon > 0. By uniform convergence choose NN such that for all n≥Nn \ge N,

∥fn−f∥∞<εb−a\|f_n - f\|_\infty < \frac{\varepsilon}{b-a}

(if a=ba = b the whole theorem is trivial, both sides being 00, so assume b>ab > a). For such nn, using monotonicity and linearity of the Riemann integral (both established once integrability of fn−ff_n - f is known — and fn−ff_n - f is integrable as a difference of integrable functions, a fact standard from the definition of the integral) together with the basic estimate ∣∫abh∣≤∫ab∣h∣\left|\int_a^b h\right| \le \int_a^b |h| for integrable hh:

∣∫abfn−∫abf∣=∣∫ab(fn−f)∣≤∫ab∣fn−f∣≤∫ab∥fn−f∥∞ dx=∥fn−f∥∞⋅(b−a)<ε.\left| \int_a^b f_n - \int_a^b f \right| = \left| \int_a^b (f_n - f) \right| \le \int_a^b |f_n - f| \le \int_a^b \|f_n-f\|_\infty\,dx = \|f_n - f\|_\infty \cdot (b-a) < \varepsilon.

Since this holds for all n≥Nn \ge N, we conclude

lim⁡n→∞∫abfn=∫abf,\lim_{n\to\infty} \int_a^b f_n = \int_a^b f,

which is precisely the claimed interchange of limit and integral. ■\blacksquare

Proof of the corollary. Apply the theorem to the sequence of partial sums Sn=∑k=1nfkS_n = \sum_{k=1}^n f_k. Each SnS_n is Riemann integrable, being a finite sum of Riemann integrable functions (finite sums of integrable functions are integrable, and their integrals add — a direct consequence of linearity of Darboux sums). By hypothesis Sn→gS_n \to g uniformly on [a,b][a,b]. The theorem gives that gg is Riemann integrable and

∫abg=lim⁡n→∞∫abSn=lim⁡n→∞∑k=1n∫abfk=∑k=1∞∫abfk,\int_a^b g = \lim_{n\to\infty} \int_a^b S_n = \lim_{n\to\infty} \sum_{k=1}^n \int_a^b f_k = \sum_{k=1}^\infty \int_a^b f_k,

where the last equality is simply the definition of the sum of the series ∑k∫abfk\sum_k \int_a^b f_k as the limit of its partial sums — and this limit exists precisely because it equals ∫abg\int_a^b g, a finite number. This proves the corollary. If moreover ∣fk(x)∣≤Mk|f_k(x)| \le M_k on [a,b][a,b] with ∑Mk<∞\sum M_k < \infty, the Weierstrass M-Test gives uniform convergence of ∑fk\sum f_k directly, so the hypothesis of the corollary is satisfied and the conclusion follows. ■\blacksquare

∎

Worked examples

Example 1 — a rational sequence with an asymmetric limit. Let

fn(x)=nx2+sin⁡(nx)n+x,x∈[1,3].f_n(x) = \frac{nx^2 + \sin(nx)}{n + x}, \qquad x \in [1,3].

We claim fn→f(x)=xf_n \to f(x) = x uniformly on [1,3][1,3], and verify the interchange of limit and integral directly. Pointwise/uniform limit. Write

fn(x)−x=nx2+sin⁡(nx)n+x−x=nx2+sin⁡(nx)−x(n+x)n+x=sin⁡(nx)−x2+nx2−nxn+x.f_n(x) - x = \frac{nx^2 + \sin(nx)}{n+x} - x = \frac{nx^2 + \sin(nx) - x(n+x)}{n+x} = \frac{\sin(nx) - x^2 + nx^2 - nx}{n+x}.

Careful regrouping: nx2−nx=nx(x−1)nx^2 - nx = nx(x-1), and there's a leftover −x2-x^2, so

fn(x)−x=nx(x−1)+sin⁡(nx)−x2n+x.f_n(x) - x = \frac{nx(x-1) + \sin(nx) - x^2}{n+x}.

For x∈[1,3]x \in [1,3]: ∣nx(x−1)∣≤n⋅3⋅2=6n|nx(x-1)| \le n \cdot 3 \cdot 2 = 6n, ∣sin⁡(nx)∣≤1|\sin(nx)| \le 1, and x2≤9x^2 \le 9. Also n+x≥n+1n + x \ge n+1. So

∣fn(x)−x∣≤6n+1+9n+1=6n+10n+1.|f_n(x) - x| \le \frac{6n + 1 + 9}{n+1} = \frac{6n+10}{n+1}.

This bound does not go to 00 — indeed 6n+10n+1→6\frac{6n+10}{n+1} \to 6 — so this crude estimate is too lossy; let's redo it more carefully by separating the exactly-linear part. Actually reconsider: fn(x)=nx2+sin⁡(nx)n+x=nx2n+x+sin⁡(nx)n+xf_n(x) = \dfrac{nx^2 + \sin(nx)}{n+x} = \dfrac{nx^2}{n+x} + \dfrac{\sin(nx)}{n+x}. Compare nx2n+x\dfrac{nx^2}{n+x} to xx:

nx2n+x−x=nx2−x(n+x)n+x=nx2−nx−x2n+x=x2(n−1)−nxn+x.\frac{nx^2}{n+x} - x = \frac{nx^2 - x(n+x)}{n+x} = \frac{nx^2 - nx - x^2}{n+x} = \frac{x^2(n-1) - nx}{n+x}.

Hmm, let's instead directly bound ∣nx2n+x−x∣=∣nx2−nx−x2n+x∣=∣x(nx−n−x)n+x∣\left|\dfrac{nx^2}{n+x} - x\right| = \left|\dfrac{nx^2 - nx - x^2}{n+x}\right| = \left|\dfrac{x(nx-n-x)}{n+x}\right|. For fixed x∈[1,3]x\in[1,3], as n→∞n \to \infty this is x⋅n(x−1)−x2n+x→x(x−1)\dfrac{x \cdot n(x-1) - x^2}{n+x} \to x(x-1) if x≠1x \ne 1 — not zero. So in fact fn↛xf_n \not\to x; let's find the correct limit. Compute the honest limit: for fixed xx,

fn(x)=nx2+sin⁡(nx)n+x=x2+sin⁡(nx)/n1+x/n⟶x2+01+0=x2(n→∞),f_n(x) = \frac{nx^2 + \sin(nx)}{n+x} = \frac{x^2 + \sin(nx)/n}{1 + x/n} \longrightarrow \frac{x^2 + 0}{1+0} = x^2 \quad (n \to \infty),

dividing numerator and denominator by nn. So the correct pointwise limit is f(x)=x2f(x) = x^2, not xx. This is a good reminder that limits of this type must be computed by dividing through by the dominant power of nn, not by naive algebraic cancellation. We now redo the estimate against f(x)=x2f(x) = x^2.

fn(x)−x2=x2+sin⁡(nx)/n1+x/n−x2=x2+sin⁡(nx)/n−x2(1+x/n)1+x/n=sin⁡(nx)/n−x3/n1+x/n=sin⁡(nx)−x3n+x.f_n(x) - x^2 = \frac{x^2 + \sin(nx)/n}{1+x/n} - x^2 = \frac{x^2 + \sin(nx)/n - x^2(1+x/n)}{1+x/n} = \frac{\sin(nx)/n - x^3/n}{1+x/n} = \frac{\sin(nx) - x^3}{n + x}.

For x∈[1,3]x \in [1,3]: ∣sin⁡(nx)−x3∣≤1+27=28|\sin(nx) - x^3| \le 1 + 27 = 28, and n+x≥n+1n + x \ge n+1. So

sup⁡x∈[1,3]∣fn(x)−x2∣≤28n+1⟶0.\sup_{x\in[1,3]} |f_n(x) - x^2| \le \frac{28}{n+1} \longrightarrow 0.

This proves fn→f(x)=x2f_n \to f(x)=x^2 uniformly on [1,3][1,3] (the bound is independent of xx and →0\to 0). Each fnf_n is continuous on [1,3][1,3] (a quotient of continuous functions with nonvanishing denominator n+x≥n+1>0n+x \ge n+1>0), hence Riemann integrable. By the theorem, f(x)=x2f(x) = x^2 is Riemann integrable on [1,3][1,3] (as we already knew, being continuous) and

lim⁡n→∞∫13fn(x) dx=∫13x2 dx=[x33]13=27−13=263.\lim_{n\to\infty} \int_1^3 f_n(x)\,dx = \int_1^3 x^2\,dx = \left[\frac{x^3}{3}\right]_1^3 = \frac{27 - 1}{3} = \frac{26}{3}.

We can sanity-check the rate: the theorem's proof shows ∣∫13fn−263∣≤(b−a)∥fn−f∥∞≤2⋅28n+1=56n+1→0\left|\int_1^3 f_n - \frac{26}{3}\right| \le (b-a)\|f_n - f\|_\infty \le 2 \cdot \dfrac{28}{n+1} = \dfrac{56}{n+1} \to 0, giving an explicit, verifiable error bound — e.g. at n=100n = 100, the integral of f100f_{100} is guaranteed to lie within 56/101≈0.55456/101 \approx 0.554 of 26/3≈8.66726/3 \approx 8.667.

Example 2 — term-by-term integration of a non-power series. Consider on [0,1][0,1] the series

g(x)=∑k=1∞fk(x),fk(x)=(−1)k+1xkk⋅2k.g(x) = \sum_{k=1}^\infty f_k(x), \qquad f_k(x) = \frac{(-1)^{k+1} x^k}{k \cdot 2^k}.

We integrate term by term to evaluate ∫01g\int_0^1 g, and separately identify gg in closed form to check the answer. Uniform convergence via the M-test. For x∈[0,1]x \in [0,1],

∣fk(x)∣=xkk 2k≤1k 2k=:Mk.|f_k(x)| = \frac{x^k}{k\,2^k} \le \frac{1}{k\,2^k} =: M_k.

Since ∑k=1∞1k 2k\sum_{k=1}^\infty \frac{1}{k\,2^k} converges (compare to the geometric series ∑2−k\sum 2^{-k}, or note it's ln⁡2\ln 2 exactly, in any case a convergent series of positive constants — ratio test gives ratio →1/2<1\to 1/2 <1), the Weierstrass M-Test gives that ∑fk\sum f_k converges uniformly on [0,1][0,1]. Term-by-term integration. Each fkf_k is continuous, hence Riemann integrable on [0,1][0,1], and

∫01fk(x) dx=(−1)k+1k 2k∫01xk dx=(−1)k+1k 2k⋅1k+1=(−1)k+1k(k+1)2k.\int_0^1 f_k(x)\,dx = \frac{(-1)^{k+1}}{k\,2^k}\int_0^1 x^k\,dx = \frac{(-1)^{k+1}}{k\,2^k} \cdot \frac{1}{k+1} = \frac{(-1)^{k+1}}{k(k+1)2^k}.

By the Corollary,

∫01g(x) dx=∑k=1∞(−1)k+1k(k+1)2k.\int_0^1 g(x)\,dx = \sum_{k=1}^\infty \frac{(-1)^{k+1}}{k(k+1)2^k}.

Closed form check. Recognize g(x)=∑k=1∞(−1)k+1(x/2)kk=ln⁡ ⁣(1+x2)g(x) = \sum_{k=1}^\infty \frac{(-1)^{k+1}(x/2)^k}{k} = \ln\!\left(1 + \frac{x}{2}\right), using the standard Taylor series ln⁡(1+u)=∑k≥1(−1)k+1ukk\ln(1+u) = \sum_{k\ge1} \frac{(-1)^{k+1}u^k}{k} for ∣u∣≤1|u|\le 1 (valid at u=x/2∈[0,1/2]⊂(−1,1]u=x/2\in[0,1/2]\subset(-1,1], where the series converges). So

∫01g(x) dx=∫01ln⁡ ⁣(1+x2)dx.\int_0^1 g(x)\,dx = \int_0^1 \ln\!\left(1+\frac{x}{2}\right)dx.

Substitute u=1+x/2u = 1 + x/2, du=dx/2du = dx/2, limits u:1→3/2u: 1 \to 3/2:

∫01ln⁡(1+x/2) dx=2∫13/2ln⁡u du=2[uln⁡u−u]13/2=2(32ln⁡32−32−(0−1))=3ln⁡32−1.\int_0^1 \ln(1+x/2)\,dx = 2\int_1^{3/2} \ln u\,du = 2\Big[u\ln u - u\Big]_1^{3/2} = 2\left(\frac{3}{2}\ln\frac{3}{2} - \frac{3}{2} - (0 - 1)\right) = 3\ln\frac32 - 1.

Numerically, ln⁡(3/2)≈0.405465\ln(3/2) \approx 0.405465, so 3ln⁡(3/2)−1≈1.2164−1=0.21643 \ln(3/2) - 1 \approx 1.2164 - 1 = 0.2164. This matches (and gives a closed form for) the series ∑k=1∞(−1)k+1k(k+1)2k\sum_{k=1}^\infty \dfrac{(-1)^{k+1}}{k(k+1)2^k} obtained by direct term-by-term integration — a nontrivial numerical series identity that the theorem converts into a two-line integral computation.

CounterexampleWhy "uniform" cannot be weakened to "pointwise"

Drop the uniform convergence hypothesis and replace it with mere pointwise convergence; the conclusion fails. Define, for n≥1n \ge 1, the moving tent function on [0,1][0,1]:

fn(x)={2n2x0≤x≤12n2n2(1n−x)12n≤x≤1n01n≤x≤1.f_n(x) = \begin{cases} 2n^2 x & 0 \le x \le \frac{1}{2n} \\ 2n^2\left(\frac1n - x\right) & \frac{1}{2n} \le x \le \frac1n \\ 0 & \frac1n \le x \le 1. \end{cases}

Each fnf_n is continuous and piecewise linear, hence Riemann integrable on [0,1][0,1]. Pointwise limit. Fix x∈[0,1]x \in [0,1]. If x=0x = 0, fn(0)=0f_n(0) = 0 for all nn. If x>0x > 0, then once n>1/xn > 1/x we have x>1/nx > 1/n, so fn(x)=0f_n(x) = 0 for all sufficiently large nn. Hence fn(x)→0f_n(x) \to 0 for every x∈[0,1]x \in [0,1]: the convergence is pointwise to f≡0f \equiv 0. Failure of uniformity. The tent has height fn(1/(2n))=nf_n(1/(2n)) = n, so

∥fn−f∥∞=sup⁡x∣fn(x)∣=n↛0.\|f_n - f\|_\infty = \sup_{x} |f_n(x)| = n \not\to 0.

So the convergence is emphatically not uniform — this is exactly the "traveling spike" pictured above: the base width 1/n→01/n \to 0 but the height n→∞n \to \infty compensates. Failure of the conclusion. The graph of fnf_n is a triangle of base 1/n1/n and height nn, so

∫01fn(x) dx=12⋅1n⋅n=12for every n.\int_0^1 f_n(x)\,dx = \frac12 \cdot \frac1n \cdot n = \frac12 \quad \text{for every } n.

Hence

lim⁡n→∞∫01fn(x) dx=12,while∫01f(x) dx=∫010 dx=0.\lim_{n\to\infty} \int_0^1 f_n(x)\,dx = \frac12, \qquad \text{while} \qquad \int_0^1 f(x)\,dx = \int_0^1 0\,dx = 0.

So lim⁡n∫01fn≠∫01lim⁡nfn\lim_n \int_0^1 f_n \ne \int_0^1 \lim_n f_n: the interchange fails completely, even though fn→ff_n \to f pointwise everywhere, every fnf_n is continuous, and f≡0f\equiv 0 is trivially Riemann integrable. This shows the uniform convergence hypothesis in the theorem is not a technical convenience — it is load-bearing, and cannot be replaced by pointwise convergence, not even with all other hypotheses (integrability of each fnf_n, integrability of ff, boundedness) intact.

Scope, edge cases & common traps

SituationWhat happens
fn→ff_n \to f uniformly on [a,b][a,b], all fnf_n Riemann integrableff integrable, ∫fn→∫f\int f_n \to \int f (theorem applies)
fn→ff_n \to f only pointwiseInterchange can fail entirely (see counterexample)
Interval is unbounded, e.g. [0,∞)[0,\infty)Theorem as stated does not apply; uniform convergence alone is insufficient to control improper integrals (need e.g. dominated-convergence-type hypotheses)
fn→ff_n \to f uniformly but on a set where fnf_n fails to be integrableHypotheses violated; conclusion not guaranteed
Series ∑fk\sum f_k converges only pointwise, not uniformlyTerm-by-term integration may fail; must verify uniform convergence (often via M-test) before integrating term by term
Uniform convergence on every compact subinterval of an unbounded/open interval, but not on the whole intervalRequires extra care; classical power series convergent on (−R,R)(-R,R) are typically only uniformly convergent on closed subintervals [−r,r][-r,r], r<Rr<R, so term-by-term integration is valid there and must be patched together for the full interval when possible

The mathematician behind it

Origins · 1 minKarl Weierstrass and how this was discovered
KW
Karl Weierstrass
1815–1897 · Prussia/German Empire, foundational period of rigorous analysis

Karl Weierstrass spent much of his early career as a secondary-school teacher in remote Prussian towns, publishing almost nothing, before a single paper on abelian functions (1854) brought him a professorship at Berlin. There he built, largely through his lecture courses rather than publications, the rigorous ε\varepsilon-δ\delta apparatus of analysis that made precise exactly the distinctions this article relies on — pointwise versus uniform convergence, and the careful conditions under which limits, sums, and integrals can be exchanged. His famous example of a continuous nowhere-differentiable function, and his insistence on uniform convergence as the correct hypothesis for term-by-term operations, reflect a broader program: replacing geometric intuition with airtight logical argument throughout calculus.

History
- 1821 — Cauchy publishes Cours d'analyse, implicitly treating convergent series of continuous functions as though the sum must be continuous, an error later shown to require a uniformity hypothesis.
- 1826 — Abel gives a counterexample to Cauchy's claim, exposing the gap between pointwise and uniform behavior of series.
- 1841 — Weierstrass, in unpublished work (later disseminated through his Berlin lectures), formulates uniform convergence precisely and proves the term-by-term integration and continuity theorems.
- 1847–1856 — Weierstrass's Berlin lectures systematize the ε\varepsilon–NN definitions and the M-test, establishing uniform convergence as the standard tool for justifying interchange of limits.
- 1870s — The theory matures into the form found in modern textbooks, becoming a standard prerequisite for rigorous treatment of power series, Fourier series, and the foundations of real analysis.
Does uniform convergence also let you interchange limits with derivatives, the same way?

No, and this is a genuinely different and more delicate story, foreshadowed by the topic Uniform Convergence and Differentiation. Uniform convergence of fn→ff_n \to f alone says nothing about the derivatives fn′f_n': it is possible to have fn→ff_n \to f uniformly while fn′f_n' fails to converge to f′f', or fails to converge at all, or ff fails to be differentiable. The correct sufficient hypothesis for differentiation is that fn′f_n' itself converges uniformly (to some limit gg), together with fn(x0)f_n(x_0) converging at just one point x0x_0; only then can one conclude fn→ff_n \to f uniformly with f′=gf' = g. Integration is the well-behaved operation here; differentiation requires the extra hypothesis on the derivatives.

Why does Riemann integrability of ff need to be proved separately, rather than following automatically from pointwise limits of integrable functions?

Because pointwise limits of Riemann-integrable functions need not be Riemann integrable at all. A classic example enumerates the rationals in [0,1][0,1] as q1,q2,…q_1, q_2, \dots and sets fn=1f_n = 1 on {q1,…,qn}\{q_1,\dots,q_n\} and 00 elsewhere; each fnf_n is integrable (finitely many discontinuities) with integral 00, but the pointwise limit is the Dirichlet function (1 on rationals, 0 on irrationals), which is not Riemann integrable. Uniform convergence rules this pathology out: the proof shows that uniform closeness to an integrable fn0f_{n_0} directly forces ff's oscillation on any partition to be controllably small, which is the Riemann integrability criterion itself.

Is it enough for the series ∑fk\sum f_k to converge pointwise and each partial sum to be integrable, in order to integrate term by term?

No. Pointwise convergence of ∑fk\sum f_k to some gg, even with every partial sum integrable, does not guarantee ∫g=∑∫fk\int g = \sum \int f_k; you can build a series version of the moving-tent counterexample where partial sums pointwise-converge but the integral of the limit disagrees with the sum of the integrals. Uniform convergence of the partial sums is the standard sufficient condition, most often verified via the Weierstrass M-Test when a summable bound ∣fk(x)∣≤Mk|f_k(x)|\le M_k is available, though other tests (Dirichlet's test, Abel's test for uniform convergence) can also certify uniformity without an M-test bound.

Does the theorem require the functions to be continuous?

No — only Riemann integrability is required, which is a strictly weaker hypothesis than continuity. The proof only uses Darboux sums, boundedness, and the oscillation criterion for integrability, none of which need continuity. Of course, in practice, many applications (power series, Fourier series with continuous terms) do involve continuous fnf_n, and the Uniform Limit of Continuous Functions result additionally tells you the limit function ff is continuous in that case — but that extra conclusion is not needed for, and is logically independent of, the integration interchange theorem.

Can this theorem be extended beyond the Riemann integral?

Yes, in a much more powerful form. The Riemann-integral version proved here requires uniform convergence essentially because the Riemann integral has limited tolerance for pointwise pathology (as the Dirichlet-function example shows). The Lebesgue integral, built on measure theory, replaces this hypothesis with weaker and more flexible ones — the Dominated Convergence Theorem only needs pointwise (almost everywhere) convergence plus a single integrable dominating function ∣fn∣≤h|f_n| \le h, no uniformity required. That said, uniform convergence remains the natural and often the only available tool in a first, Riemann-integral-based treatment, and it suffices for virtually all classical applications to power series and elementary functions.

Where this leads