LeoMath

Foundations of calculus · Section 4 of 5

The integral

The limit of Riemann sums and the fundamental theorem.

about 5 min

Start from a problem

Problem

What is the area of the region under y=x2 for 0≤x≤1? We can compute rectangles, triangles and circles, but this shape belongs to none of those.

"Area" is not yet defined for irregular shapes. We need a definition that returns the familiar answers for familiar shapes and a single number for new ones.

Observe

What is the area under y=x2 for 0≤x≤1? It is not a shape we know how to measure. But we can cut [0,1] into n pieces and replace each by a rectangle; the total

Sn=∑i=1n(in)21n=1n3⋅n(n+1)(2n+1)6

tends to 13 as n grows.

Conjecture

"Area under a curve" should be defined as a limit of rectangle sums. And the value should not depend on how we cut or which point we sample in each piece: once the cut is fine enough, every choice gives the same answer.

Interactive experimentRiemann sums
Functionsample
∑i=1nf(ξi)ΔxRiemann sum 2.1875exact 2.66667error 0.47917

What did you observe?Play first, then answer. Read the explanation only after you have thought it through.

  1. 1.For x² on [0,2] with n = 8, the left-endpoint sum is too small and the right-endpoint sum too large. Why?
  2. 2.Raise n from 8 to 200. How fast does each rule's error shrink? Why is the midpoint rule so much better?
  3. 3.Drag b to the left of a: the Riemann sum changes sign. What does that say about Δx in the definition?

Definition

Definition 4.1Riemann sums and the definite integral

Let f be bounded on [a,b]. Take a partition P:a=x0<x1<⋯<xn=b, write Δxi=xi−xi−1 and ‖P‖=max⁡Δxi. For any choice ξi∈[xi−1,xi], the sum

∑i=1nf(ξi)Δxi

is a Riemann sum. If there is a number I such that for every ε>0 there is δ>0 with |∑f(ξi)Δxi−I|<ε whenever ‖P‖<δ, regardless of the ξi, then f is integrable on [a,b] and ∫abf(x)dx=I.

This is the same sentence pattern as the definition of a limit: "as accurate as you like". The difference is that closeness must hold uniformly over all partitions and all sample points.

Theorem 4.1Continuous functions are integrable

If f is continuous on [a,b], it is integrable.

Proof

A continuous function on a closed interval is uniformly continuous: for every ε>0 there is δ with |x−y|<δ⇒|f(x)−f(y)|<εb−a. When ‖P‖<δ, on each piece the maximum Mi and minimum mi of f differ by less than εb−a, so the upper sum minus the lower sum satisfies

∑(Mi−mi)Δxi<ε.

Every Riemann sum lies between the lower and upper sums; refining the partition raises lower sums and lowers upper sums, and their common limit is I.

The fundamental theorem of calculus

So far integrals have nothing to do with derivatives: one is an area, the other a slope. The following theorem is the heart of calculus.

Theorem 4.2Fundamental theorem, part I

Let f be continuous on [a,b] and F(x)=∫axf(t)dt. Then F is differentiable on [a,b] and F′(x)=f(x).

Proof
F(x+h)−F(x)h=1h∫xx+hf(t)dt.

By continuity, on [x,x+h] we have min⁡f≤1h∫xx+hf≤max⁡f (monotonicity of the integral). As h→0 both min⁡f and max⁡f tend to f(x), so the squeeze theorem gives F′(x)=f(x).

The rate at which the area grows is the height of the curve: area accumulates faster exactly where the curve is higher.

Theorem 4.3Fundamental theorem, part II

If F′=f on [a,b] with f continuous, then ∫abf(x)dx=F(b)−F(a).

Proof

Let G(x)=∫axf. By part I, G′=f=F′, so (G−F)′=0 and, by the corollary of the mean value theorem, G−F is constant. G(a)=0 makes the constant −F(a), hence G(b)=F(b)−F(a).

Thus ∫01x2dx=[x33]01=13: the opening limit, computed in one line.

Common mistake

∫abf(x)dx is a number; the indefinite integral ∫f(x)dx is a family of functions (an antiderivative plus a constant). The fundamental theorem connects them, but it is a theorem to be proved, not a convention of notation. Also, the definition says "regardless of the ξi": computing rectangle sums for one choice of sample points does not prove integrability.

Applications

ApplicationTurning an ODE into an integral equation

Integrating y′=f(t,y) from t0 to t:

y(t)=y0+∫t0tf(s,y(s))ds.

This form is the starting point of the uniqueness proof in What is an ODE, of Picard iteration, and of numerical methods.

ApplicationIntegration by parts and substitution

Integrating the product rule (uv)′=u′v+uv′ gives ∫u′v=uv−∫uv′; integrating the chain rule gives substitution, ∫abf(g(x))g′(x)dx=∫g(a)g(b)f(u)du. Every integration technique is a differentiation rule read backwards.

Remark

∫ is an elongated S, for sum. The definition contains only sums and a limit. It is the fundamental theorem that connects it to derivatives, and that connection is a theorem requiring proof, not a coincidence of notation.

Exercises

0 of 2 done

1
Compute ∫01x2dx to four decimals.

Decimals or fractions; anything within 0.00006 of the answer counts as correct.

2
Let F(x)=∫0xe−t2dt. Then F′(x) equals
Answer to exercise 2

Discussion

Found a mistake, have a question or a suggestion? You can also write to 620026600@qq.com

No comments yet. Share your understanding, ask a question, or point out an error on this page.

Log in to join the discussion