Fundamental Theorem of Calculus

From the Riemann integral to the keystone of calculus.

Although the notion of area is intuitive, its mathematical treatment requires a rigorous definition. This post introduces the Riemann integral, and proves the fundamental theorem of calculus—a beautiful result that connects integrals and derivatives.

Riemann integral §

Given a bounded1 1 Note that continuity is not required here; boundedness alone ensures the subinterval infima and suprema are finite.  function f ⁣:[a,b]→Rf\colon[a,b]\to\mathbb{R}, we can approximate the area under its graph by rectangles. Choose a partition of its domain

P={x0,x1,…,xn∣a=x0<x1<⋯<xn=b}. \mathcal{P}=\{x_0,x_1,\ldots,x_n\mid a=x_0<x_1<\cdots<x_n=b\}.

For each subinterval [xk−1,xk][x_{k-1},x_k], define the width Δxk=xk−xk−1\Delta x_k=x_k-x_{k-1}, and let mkm_k and MkM_k denote the infimum and supremum of ff on that subinterval. The lower and upper sums are

L(f,P)=∑k=1nmkΔxk,U(f,P)=∑k=1nMkΔxk. L(f,\mathcal{P})=\sum_{k=1}^{n}m_k\Delta x_k, \qquad U(f,\mathcal{P})=\sum_{k=1}^{n}M_k\Delta x_k.

We define ff to be Riemann integrable2 2 Every continuous function on [a,b][a,b] is Riemann integrable; so is every monotone function. The exact characterization is Lebesgue’s criterion: ff is Riemann integrable iff it is bounded and continuous almost everywhere.  on [a,b][a,b] iff for every ε>0\varepsilon>0 there exists a partition P\mathcal{P} such that U(f,P)−L(f,P)<εU(f,\mathcal{P})-L(f,\mathcal{P})<\varepsilon, in which case

∫abf=sup⁡PL(f,P)=inf⁡PU(f,P). \int_a^b f =\sup_{\mathcal{P}}L(f,\mathcal{P}) =\inf_{\mathcal{P}}U(f,\mathcal{P}).

Calculus machinery §

The proof requires the mean value theorem, which in turn rests on Rolle’s theorem and Fermat’s proposition.

Fermat’s Proposition. Let I⊂RI\subset\mathbb{R} be open and f ⁣:I→Rf\colon I\to\mathbb{R} differentiable at a∈Ia\in I. If ff has a local extremum at aa, then f′(a)=0f^{\prime}(a)=0.

Proof. Assume ff has a local maximum3 3 The local minimum case is identical, with all inequalities reversed.  at aa. Then there exists δ>0\delta>0 such that f(x)−f(a)≤0f(x)-f(a)\le 0 for all x∈(a−δ,a+δ)x\in(a-\delta,a+\delta). Therefore

f(x)−f(a)x−a≥0(x<a),f(x)−f(a)x−a≤0(x>a). \frac{f(x)-f(a)}{x-a}\ge 0 \quad (x<a), \qquad \frac{f(x)-f(a)}{x-a}\le 0 \quad (x>a).

Taking limits, f−′(a)≥0f^{\prime}_-(a)\ge 0 and f+′(a)≤0f^{\prime}_+(a)\le 0. Since ff is differentiable at aa, f−′(a)=f+′(a)=f′(a)f^{\prime}_-(a)=f^{\prime}_+(a)=f^{\prime}(a), hence f′(a)=0f^{\prime}(a)=0. □\square

Rolle’s Theorem. If f ⁣:[a,b]→Rf\colon[a,b]\to\mathbb{R} is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f(a)=f(b)f(a)=f(b), then there exists ξ∈(a,b)\xi\in(a,b) such that f′(ξ)=0f^{\prime}(\xi)=0.

Proof. By the extreme value theorem,4 4 Topological result: [a,b][a,b] is compact (Heine-Borel), the continuous image of a compact set is compact, and compact subsets of R\mathbb{R} are closed and bounded, so they contain their inf⁡\inf and sup⁡\sup, which are finite.  ff attains its minimum mm and maximum MM on [a,b][a,b]. If m=Mm=M, then ff is constant and any ξ∈(a,b)\xi\in(a,b) works. Otherwise, since f(a)=f(b)f(a)=f(b), at least one extremum is attained at some ξ∈(a,b)\xi\in(a,b); by Fermat, f′(ξ)=0f^{\prime}(\xi)=0. □\square

Mean Value Theorem.5 5 Geometrically: there is always a point where the tangent line is parallel to the secant through the endpoints.  If ff is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), then there exists ξ∈(a,b)\xi\in(a,b) such that

f′(ξ)=f(b)−f(a)b−a. f^{\prime}(\xi)=\frac{f(b)-f(a)}{b-a}.

Proof. Define

g(x)=f(a)+f(b)−f(a)b−a(x−a),h(x)=f(x)−g(x). g(x)=f(a)+\frac{f(b)-f(a)}{b-a}(x-a), \qquad h(x)=f(x)-g(x).

Then hh is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and h(a)=h(b)=0h(a)=h(b)=0. By Rolle’s theorem, there exists ξ∈(a,b)\xi\in(a,b) with h′(ξ)=0h^{\prime}(\xi)=0, which gives

f′(ξ)−f(b)−f(a)b−a=0. □ f^{\prime}(\xi)-\frac{f(b)-f(a)}{b-a}=0.\,\square

Fundamental theorem of calculus §

We now have everything needed to prove the main result.

Fundamental Theorem of Calculus.6 6 A broader formulation also includes the statement that x↦∫axf(t) dtx\mapsto\int_a^x f(t)\,dt is an antiderivative of ff under suitable regularity assumptions.  Let f ⁣:[a,b]→Rf\colon[a,b]\to\mathbb{R} be Riemann integrable, and let F ⁣:[a,b]→RF\colon[a,b]\to\mathbb{R} be continuous on [a,b][a,b], differentiable on (a,b)(a,b), and satisfy F′(x)=f(x)F^{\prime}(x)=f(x) for all x∈(a,b)x\in(a,b). Then

∫abf=F(b)−F(a). \int_a^b f = F(b)-F(a).

Proof. Fix a partition P={x0,…,xn}\mathcal{P}=\{x_0,\ldots,x_n\}. For each [xk−1,xk][x_{k-1},x_k], the mean value theorem applied to FF gives zk∈(xk−1,xk)z_k\in(x_{k-1},x_k) such that

F(xk)−F(xk−1)=f(zk) Δxk. F(x_k)-F(x_{k-1})=f(z_k)\,\Delta x_k.

Since mk≤f(zk)≤Mkm_k\le f(z_k)\le M_k, we obtain

L(f,P)≤∑k=1n(F(xk)−F(xk−1))=F(b)−F(a)≤U(f,P). L(f,\mathcal{P}) \le \sum_{k=1}^{n}\left(F(x_k)-F(x_{k-1})\right) = F(b)-F(a) \le U(f,\mathcal{P}).

Taking supremum and infimum over all partitions and using integrability, we get

∫abf=F(b)−F(a). □ \int_a^b f=F(b)-F(a).\,\square

Thus computing an area reduces to evaluating an antiderivative at two points.7 7 For example, ∫01x2 dx=F(1)−F(0)=1/3\int_0^1 x^2\,dx = F(1)-F(0) = 1/3 with F(x)=x3/3F(x)=x^3/3. No partitions needed.  This theorem is fundamental because it unifies differentiation and integration, the two central operations of calculus.

self-hosting Self-Hosting Behind CGNAT
Libre software, libre hardware, and my mother's basement.

c++ · performance Optimizing a Spin-Lock
Squeezing every pico out of the simplest lock.

One Hundred Thousand Reads
A thank you, and a look at the numbers.

Subscribe §

My mailing list is free, occasional, and covers a variety of topics. I will never sell or share your email address.

Have feedback? Email me at david@alvarezrosa.com.