Book 2A

© 2026 NeckPinch · www.neckpinch.com · All rights reserved.

Course 2Book 2A: Numbers, Limits and the IntegralChapter 11

The Riemann Integral

Upper and lower sums, the fundamental theorem, integration by parts, and where Riemann’s integral fails.

30 min read · Updated Oct 2, 2026

Read with Tao, Analysis I, chapter "The Riemann integral" (partitions, piecewise constant functions, upper and lower Riemann integrals, basic properties, integrability of continuous and monotone functions, a non-integrable function, Riemann–Stieltjes integrals, the fundamental theorems of calculus, integration by parts and change of variables). The Riemann–Stieltjes section can be skimmed.

In this chapter · 6 sections
  1. 11.1Area by rectangles
  2. 11.1.1Which functions are integrable
  3. 11.1.2Basic properties
  4. 11.2The fundamental theorem of calculus
  5. 11.2.1Integration by parts
  6. 11.2.2Change of variables
  7. 11.3Sums and integrals
  8. 11.4Riemann–Stieltjes integrals, briefly
  9. 11.5Where Riemann's integral fails
  10. 11.6Exercises

Derivatives measure rates. Integrals measure totals: area under a curve, distance from speed, work from force, mass from density. This last chapter of Book 2A defines the integral as Riemann did in 1854, by squeezing the area between sums of rectangles from below and above. It proves that continuous functions can be integrated, and proves the fundamental theorem of calculus, which says that integration and differentiation undo each other.

Two consequences of the fundamental theorem matter more than any other for this guidebook. Integration by parts is the single most-used computation from here to Perelman: every energy estimate for the heat equation and every monotonicity formula for Ricci flow is an integration by parts. And the chapter ends by showing where Riemann's integral breaks down. It does not cope with limits, and that failure is the starting point of Course 3.

By the end of this chapter you will be able to:

  • define the Riemann integral by upper and lower sums, and prove a function is or isn't integrable;
  • prove that continuous and monotone functions are integrable;
  • prove and use both halves of the fundamental theorem of calculus;
  • integrate by parts and change variables, and use integration by parts to prove that an energy decreases;
  • explain, with examples, why the Riemann integral is not good enough for analysis with limits.

Area by rectangles

The idea is ancient. Archimedes, in the third century BCE, found the area of a parabolic segment by filling it with triangles and summing a geometric series (2A.7 Series). What Riemann supplied in 1854, in the same habilitation thesis as his rearrangement theorem, was a precise definition that works for a large class of functions at once.

Work on a closed interval [a,b][a, b] with a bounded function ff. A partition PP of [a,b][a, b] cuts it into finitely many subintervals [xk−1,xk][x_{k-1}, x_k] with a=x0<x1<⋯<xn=ba = x_0 < x_1 < \cdots < x_n = b. On each piece, the smallest and largest heights of ff are mk=inf⁡[xk−1,xk]fm_k = \inf_{[x_{k-1}, x_k]} f and Mk=sup⁡[xk−1,xk]fM_k = \sup_{[x_{k-1}, x_k]} f. Rectangles of those heights give an area that is certainly too small and one that is certainly too big:

L(f,P)=∑k=1nmk (xk−xk−1),U(f,P)=∑k=1nMk (xk−xk−1).L(f, P) = \sum_{k=1}^n m_k\,(x_k - x_{k-1}), \qquad U(f, P) = \sum_{k=1}^n M_k\,(x_k - x_{k-1}).
Figure 11.1. Lower and upper sums for f(x)=x2f(x) = x^2 on [0,1][0, 1] with 88 equal pieces: L=0.2734L = 0.2734, U=0.3984U = 0.3984. The true area, 13\tfrac13, is squeezed between them. Refining the partition shrinks the gap, the total area of the thin strips.

Refining a partition (adding points) can only raise LL and lower UU, and every lower sum is at most every upper sum (Exercise 11.10). So the following definition makes sense.

Definition 11.1 Riemann integral

The lower and upper Riemann integrals of a bounded ff on [a,b][a, b] are

∫ab‾f=sup⁡PL(f,P),∫ab‾f=inf⁡PU(f,P).\underline{\int_a^b} f = \sup_P L(f, P), \qquad \overline{\int_a^b} f = \inf_P U(f, P).

Always ∫‾f≤∫‾f\underline{\int} f \leq \overline{\int} f. If they are equal, ff is Riemann integrable, and the common value is ∫abf\int_a^b f, or ∫abf(x) dx\int_a^b f(x)\,dx.

The two integrals exist because of the least upper bound property (2A.4 The Real Numbers), which keeps appearing. The working criterion is a single ε statement: ff is integrable if and only if for every ε>0\varepsilon > 0 there is a partition PP with U(f,P)−L(f,P)≤εU(f, P) - L(f, P) \leq \varepsilon. In words, the thin strips in Figure 11.1 can be given total area as small as you like.

Example 11.2 The area under x2x^2

With nn equal pieces of [0,1][0, 1], the function x2x^2 is increasing, so on the kk-th piece mk=(k−1n)2m_k = \big(\tfrac{k-1}{n}\big)^2 and Mk=(kn)2M_k = \big(\tfrac{k}{n}\big)^2. Using ∑k=1nk2=n(n+1)(2n+1)6\sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6},

U=(n+1)(2n+1)6n2,L=(n−1)(2n−1)6n2,U−L=1n.U = \frac{(n+1)(2n+1)}{6n^2}, \qquad L = \frac{(n-1)(2n-1)}{6n^2}, \qquad U - L = \frac{1}{n}.

Both tend to 13\tfrac13, and the gap 1n\tfrac1n can be made as small as you like. So ∫01x2 dx=13\int_0^1 x^2\,dx = \tfrac13, Archimedes' result, now from a definition.

Which functions are integrable

Theorem 11.3 Continuous functions are integrable

Every continuous function on [a,b][a, b] is Riemann integrable.

Proof. By Heine–Cantor (2A.9 Continuous Functions), ff is uniformly continuous: given ε>0\varepsilon > 0 there is δ>0\delta > 0 with ∣f(x)−f(y)∣≤εb−a|f(x) - f(y)| \leq \frac{\varepsilon}{b - a} whenever ∣x−y∣<δ|x - y| < \delta. Take a partition into pieces shorter than δ\delta. On each piece the maximum and minimum (which are attained, by the maximum principle) differ by at most εb−a\frac{\varepsilon}{b-a}, so U−L≤εb−a(b−a)=εU - L \leq \frac{\varepsilon}{b - a}(b - a) = \varepsilon.

Here is the payoff of uniform continuity: one δ\delta for the whole interval means one mesh size controls every strip at once. With mere continuity, the mesh needed would vary from place to place, and the argument would fail.

Monotone functions are integrable too, even with jumps: for nn equal pieces of an increasing function, U−L=b−an(f(b)−f(a))U - L = \frac{b - a}{n}\big(f(b) - f(a)\big), because the strips telescope (Exercise 11.11). And a bounded function with finitely many discontinuities is integrable, by putting the discontinuities in tiny intervals.

But not every bounded function is integrable.

Example 11.4 Dirichlet's function is not integrable

Let f(x)=1f(x) = 1 if xx is rational and 00 if not, on [0,1][0, 1]. Every interval, however small, contains rationals and irrationals (2A.4 The Real Numbers), so on every piece of every partition mk=0m_k = 0 and Mk=1M_k = 1. Every lower sum is 00 and every upper sum is 11, so ∫‾f=0≠1=∫‾f\underline{\int} f = 0 \neq 1 = \overline{\int} f.

Riemann's integral cannot assign an area to this function. That would be a curiosity, except that the function arises naturally as a limit of perfectly good integrable functions, as the last section of this chapter shows.

Basic properties

For integrable ff and gg on [a,b][a, b]:

  • Linearity: ∫(f+g)=∫f+∫g\int (f + g) = \int f + \int g and ∫cf=c∫f\int cf = c\int f.
  • Monotonicity: if f≤gf \leq g then ∫f≤∫g\int f \leq \int g. In particular ∣∫f∣≤∫∣f∣\big|\int f\big| \leq \int |f| (and ∣f∣|f| is integrable).
  • Additivity: for a<c<ba < c < b, ∫abf=∫acf+∫cbf\int_a^b f = \int_a^c f + \int_c^b f.
  • Products and compositions: fgfg is integrable, and so is ϕ∘f\phi \circ f for continuous ϕ\phi.

Each is proved by comparing upper and lower sums. The second property gives the estimate used constantly: if ∣f∣≤M|f| \leq M on [a,b][a, b], then ∣∫abf∣≤M(b−a)\big|\int_a^b f\big| \leq M(b - a).

In the world Model The odometer integrates the speedometer

A car's distance travelled is the integral of its speed over time, s=∫t0t1v(t) dts = \int_{t_0}^{t_1} v(t)\,dt. A GPS tracker that logs speed once a second and adds up "speed × one second" is computing a Riemann sum for this integral, with each piece lasting one second. If the speed is continuous (it is, for a real car), Theorem 11.3 guarantees that these sums converge to the true distance as the logging interval shrinks. The same reasoning turns a fuel-flow rate into fuel used, a power reading into energy (kilowatt-hours are the integral of kilowatts over hours), and a river's flow rate into the volume that passed a gauge.

The fundamental theorem of calculus

Theorem 11.5 Fundamental theorem of calculus

Let ff be Riemann integrable on [a,b][a, b].

  1. The function F(x)=∫axfF(x) = \int_a^x f is Lipschitz (hence continuous) on [a,b][a, b]. At every point x0x_0 where ff is continuous, FF is differentiable with F′(x0)=f(x0)F'(x_0) = f(x_0).
  2. If GG is any function on [a,b][a, b] with G′=fG' = f (an antiderivative), then ∫abf=G(b)−G(a)\int_a^b f = G(b) - G(a).

Proof. (1) For x<yx < y, F(y)−F(x)=∫xyfF(y) - F(x) = \int_x^y f, and with ∣f∣≤M|f| \leq M this is at most M∣y−x∣M|y - x| in absolute value. At a continuity point x0x_0, given ε\varepsilon choose δ\delta with ∣f(t)−f(x0)∣≤ε|f(t) - f(x_0)| \leq \varepsilon for ∣t−x0∣<δ|t - x_0| < \delta. For 0<∣h∣<δ0 < |h| < \delta,

∣F(x0+h)−F(x0)h−f(x0)∣=∣1h∫x0x0+h(f(t)−f(x0)) dt∣≤ε.\left|\frac{F(x_0 + h) - F(x_0)}{h} - f(x_0)\right| = \left|\frac1h\int_{x_0}^{x_0+h}\big(f(t) - f(x_0)\big)\,dt\right| \leq \varepsilon.

(2) Take any partition PP. On each piece, the mean value theorem (2A.10 Derivatives) gives a point tkt_k with G(xk)−G(xk−1)=f(tk)(xk−xk−1)G(x_k) - G(x_{k-1}) = f(t_k)(x_k - x_{k-1}). Summing, the left side telescopes: G(b)−G(a)=∑kf(tk)(xk−xk−1)G(b) - G(a) = \sum_k f(t_k)(x_k - x_{k-1}), which lies between L(f,P)L(f, P) and U(f,P)U(f, P). Since this holds for every PP, G(b)−G(a)G(b) - G(a) lies between the lower and upper integrals, which are equal.

Figure 11.2. Why F′=fF' = f: increasing xx by hh adds a thin strip of area about f(x) hf(x)\,h to F(x)=∫axfF(x) = \int_a^x f. Dividing by hh and letting h→0h \to 0 gives F′(x)=f(x)F'(x) = f(x) wherever ff is continuous.

Part 1 says that integration produces antiderivatives, and part 2 says that antiderivatives compute integrals. That the slope problem and the area problem are inverse to each other was the great discovery of Newton and Leibniz in the 1660s–1680s. The proofs above, using only the definitions, show how much the 19th-century foundations of 2A.4 The Real Numbers and 2A.9 Continuous Functions were needed to make it rigorous.

Integration by parts

Theorem 11.6 Integration by parts

If uu and vv are differentiable on [a,b][a, b] with integrable derivatives, then

∫abu v′ dx=[u v]ab−∫abu′ v dx.\int_a^b u\,v'\,dx = \big[u\,v\big]_a^b - \int_a^b u'\,v\,dx.

Proof. (uv)′=u′v+uv′(uv)' = u'v + uv' by the product rule (2A.10 Derivatives). Integrate both sides and use part 2 of the fundamental theorem on the left.

Figure 11.3. Integration by parts as an exchange of areas. Following a curve from (u(a),v(a))(u(a), v(a)) to (u(b),v(b))(u(b), v(b)), the area "beside" it (∫u dv\int u\,dv) plus the area "under" it (∫v du\int v\,du) is the difference of the two rectangles, u(b)v(b)−u(a)v(a)u(b)v(b) - u(a)v(a).

The formula moves a derivative from one factor to the other at the cost of a boundary term. When the boundary term vanishes, as it does for periodic functions or for functions that vanish at the ends, the derivative simply moves across with a change of sign. That one move drives a remarkable amount of mathematics. Here is the first example.

Proposition 11.7 Energy decreases under the heat equation

Let ff be twice continuously differentiable on [0,1][0, 1], with ff and f′f' taking the same values at 00 and 11 (for example, ff periodic). Then

∫01f f′′ dx=−∫01(f′)2 dx≤0.\int_0^1 f\,f''\,dx = -\int_0^1 (f')^2\,dx \leq 0.

Proof. Integrate by parts with u=fu = f and v=f′v = f': ∫01ff′′=[ff′]01−∫01(f′)2\int_0^1 f f'' = [f f']_0^1 - \int_0^1 (f')^2. The boundary term is f(1)f′(1)−f(0)f′(0)=0f(1)f'(1) - f(0)f'(0) = 0 by the hypothesis.

Why "energy"? If u(x,t)u(x, t) is the temperature in a ring of metal, it obeys the heat equation ∂tu=∂x2u\partial_t u = \partial_x^2 u. Differentiating ∫u2\int u^2 under the integral sign (justified later, in 3A.3 The Lebesgue Integral) and applying the proposition at each time gives

ddt∫01u2 dx=2∫01u ∂x2u dx=−2∫01(∂xu)2 dx≤0.\frac{d}{dt}\int_0^1 u^2\,dx = 2\int_0^1 u\,\partial_x^2 u\,dx = -2\int_0^1 (\partial_x u)^2\,dx \leq 0.

The quantity ∫u2\int u^2 can only decrease, and it stays constant only if ∂xu≡0\partial_x u \equiv 0, that is, when the temperature is uniform. This is the first monotonicity formula of the guidebook: a quantity that changes in one direction only, with a rate given by a square that vanishes exactly in the equilibrium state. It is proved by integration by parts. Fourier's solution of the heat equation (2B.7 Fourier Series and the First Heat Equation) shows the same decay frequency by frequency.

Where this goes Integration by parts, all the way to Perelman

Every monotonicity formula in this guidebook is this proposition in disguise: differentiate an integral, integrate by parts on a space without boundary, and recognise a sum of squares. On a closed Riemannian manifold, integration by parts reads ∫⟨∇u,∇v⟩=−∫u Δv\int \langle \nabla u, \nabla v\rangle = -\int u\,\Delta v, with no boundary term (8A.8 Differential Forms and Stokes’ Theorem, 9A.6 The Laplacian and the Bochner Formula). Perelman's F\mathcal{F}-functional (12A.2 Ricci Flow as a Gradient Flow) satisfies

ddtF=2∫∣Ric+∇2f∣2e−f dV≥0,\frac{d}{dt}\mathcal{F} = 2\int \big|\mathrm{Ric} + \nabla^2 f\big|^2 e^{-f}\,dV \geq 0,

and the computation behind it is a page of integrations by parts that turns a mess of curvature terms into one perfect square. The structure is the same as Proposition 11.7: monotone, with equality exactly at the special solutions (here, steady solitons).

Change of variables

Theorem 11.8 Change of variables

If ϕ:[a,b]→R\phi : [a, b] \to \mathbb{R} is continuously differentiable and ff is continuous on an interval containing ϕ([a,b])\phi([a, b]), then

∫ϕ(a)ϕ(b)f(y) dy=∫abf(ϕ(x)) ϕ′(x) dx.\int_{\phi(a)}^{\phi(b)} f(y)\,dy = \int_a^b f(\phi(x))\,\phi'(x)\,dx.

Proof. Let FF be an antiderivative of ff (part 1 of the fundamental theorem). By the chain rule, F∘ϕF \circ \phi is an antiderivative of (f∘ϕ) ϕ′(f \circ \phi)\,\phi'. Apply part 2 to both sides: each equals F(ϕ(b))−F(ϕ(a))F(\phi(b)) - F(\phi(a)).

The factor ϕ′(x)\phi'(x) records how much the substitution stretches lengths. In several variables it becomes the Jacobian determinant (1A.9 Multiple Integrals and Change of Variables, 3A.5 Product Measures and Change of Variables), and on a manifold it becomes the way volumes transform under a change of coordinates (8A.8 Differential Forms and Stokes’ Theorem).

Sums and integrals

Integrals and sums can be compared directly, which settles the question left open in 2A.7 Series about how fast the harmonic series grows.

Proposition 11.9 Integral test

Let ff be positive and decreasing on [1,∞)[1, \infty). Then for every nn,

∫1n+1f(x) dx≤∑k=1nf(k)≤f(1)+∫1nf(x) dx.\int_1^{n+1} f(x)\,dx \leq \sum_{k=1}^n f(k) \leq f(1) + \int_1^n f(x)\,dx.

So ∑f(k)\sum f(k) converges if and only if ∫1Nf\int_1^N f stays bounded as N→∞N \to \infty.

Proof. On [k,k+1][k, k+1], f(k+1)≤f(x)≤f(k)f(k+1) \leq f(x) \leq f(k) because ff is decreasing. Integrate over [k,k+1][k, k+1] and sum over kk.

For f(x)=1/xf(x) = 1/x, define ln⁡x=∫1xdtt\ln x = \int_1^x \frac{dt}{t}, which is the natural logarithm (2B.6 Power Series, Exponentials and Bump Functions shows it agrees with the inverse of the exponential). The integral test gives ln⁡(n+1)≤Hn≤1+ln⁡n\ln(n + 1) \leq H_n \leq 1 + \ln n. The difference Hn−ln⁡nH_n - \ln n is decreasing and bounded below by 00, so by monotone convergence (2A.6 Sequences) it converges. Its limit is the Euler–Mascheroni constant γ=0.5772…\gamma = 0.5772\ldots, which explains the estimate Hn≈ln⁡n+0.5772H_n \approx \ln n + 0.5772 used in 2A.7 Series.

Figure 11.4. The rectangles of heights 1,12,…,1n1, \tfrac12, \dots, \tfrac1n sum to HnH_n, and the area under 1/x1/x from 11 to n+1n+1 is ln⁡(n+1)\ln(n+1). The shaded slivers between them add up to Hn−ln⁡(n+1)H_n - \ln(n+1), which increases to γ=0.5772…\gamma = 0.5772\ldots; and Hn−ln⁡nH_n - \ln n decreases to the same limit.
In the world In use Numerical integration, with a guaranteed error

Most integrals that arise in engineering can't be done in closed form, and are computed numerically from function values. The trapezoid rule replaces ff on each of nn equal pieces by the straight line through its endpoint values. If ∣f′′∣≤K|f''| \leq K on [a,b][a, b], its error is at most K(b−a)312n2\frac{K(b - a)^3}{12 n^2} (Exercise 11.14). Halving the step divides the error bound by four. This is a typical calculus fact with direct practical use: a bound on a derivative guarantees the accuracy of an approximation. Refinements of the same idea (Simpson's rule, Gaussian quadrature, adaptive methods that place more points where ∣f′′∣|f''| is large) are the workhorses of scientific computing.

Figure 11.5. The trapezoid rule with 44 pieces. The error is the total of the thin shaded regions. Each is controlled by how much ff bends, that is, by f′′f'', and shrinks like the square of the step.

Riemann–Stieltjes integrals, briefly

Tao's chapter includes a generalisation that is worth knowing exists, even if it can be skimmed now. Replace the length xk−xk−1x_k - x_{k-1} of each piece by the increase α(xk)−α(xk−1)\alpha(x_k) - \alpha(x_{k-1}) of an increasing function α\alpha. The resulting ∫abf dα\int_a^b f\,d\alpha weights different parts of the interval differently. If α\alpha has a jump, that point gets a positive weight of its own.

In the world Model Insurance with a deductible

An insurer models a claim size XX as a random quantity whose distribution has two parts: a probability p0p_0 of no claim at all (an atom at 00), and a density ρ(x)\rho(x) for positive claims. A policy with deductible dd pays max⁡(X−d,0)\max(X - d, 0). Its expected cost is a Riemann–Stieltjes integral ∫max⁡(x−d,0) dF(x)\int \max(x - d, 0)\,dF(x) against the cumulative distribution FF. The jump of FF at 00 contributes a term 0⋅p00 \cdot p_0 (no payout), and the continuous part contributes ∫d∞(x−d) ρ(x) dx\int_d^\infty (x - d)\,\rho(x)\,dx. One integral handles the discrete and the continuous parts together. That unification of sums and integrals is exactly what measure theory makes systematic (3A.4 Measures, Probability and Weights), where "integrating against dFdF" becomes "integrating against a measure".

Where Riemann's integral fails

Here is the problem that drives Course 3. Integrals and limits should be interchangeable in reasonable situations: if fn→ff_n \to f, we would like ∫fn→∫f\int f_n \to \int f. Riemann's integral fails at this in two distinct ways.

The limit may not be integrable. List the rationals in [0,1][0, 1] as q1,q2,q3,…q_1, q_2, q_3, \dots (2A.8 Infinite Sets), and let fnf_n be 11 at q1,…,qnq_1, \dots, q_n and 00 elsewhere. Each fnf_n differs from 00 at finitely many points, so it is integrable with ∫fn=0\int f_n = 0. The sequence increases to Dirichlet's function at every point, and Dirichlet's function has no Riemann integral at all (Example 11.4).

The integrals may not converge to the integral of the limit. Let fnf_n be a narrow triangular spike of height nn on [0,2n][0, \tfrac2n], peaking at 1n\tfrac1n, and zero elsewhere (Figure 11.6). For each fixed xx, eventually the spike has moved past xx (or x=0x = 0, where every fnf_n is 00), so fn(x)→0f_n(x) \to 0 for every xx. But every spike has area 12⋅2n⋅n=1\tfrac12 \cdot \tfrac2n \cdot n = 1. So

lim⁡n→∞∫01fn=1≠0=∫01lim⁡n→∞fn.\lim_{n\to\infty}\int_0^1 f_n = 1 \neq 0 = \int_0^1 \lim_{n\to\infty} f_n.

The area hasn't disappeared. It has concentrated into an ever thinner spike and escaped through the limit.

Figure 11.6. Spikes of height nn and width 2n\tfrac2n: each has area 11, but at each point they eventually vanish. The pointwise limit is 00, whose integral is 00. Area can escape in a limit by concentrating, here at the point 00.

The second failure is not really the integral's fault. The spikes show something true about limits, which any integral must respect, and the theorems of 3A.3 The Lebesgue Integral say exactly when it can't happen: when the functions are dominated by a single integrable function. The first failure is the integral's fault, and it is fixed by building a better one.

Where this goes Completing the space of integrable functions

Measure the distance between two integrable functions by d(f,g)=∫ab∣f−g∣d(f, g) = \int_a^b |f - g|. With this distance, the Riemann-integrable functions behave like the rationals of 2A.3 Integers and Rationals: there are Cauchy sequences with no limit among them. The increasing sequence above, built from the rationals, is one kind of example; there are worse ones. The remedy is the one used to build the reals from the rationals (2A.4 The Real Numbers): complete the space. The result is the space L1L^1 of Lebesgue-integrable functions (3A.3 The Lebesgue Integral), which contains the limits of all such Cauchy sequences, and in which the convergence theorems that analysis needs are true. So Book 2A ends where it began: a number system (here, a space of functions) that looks complete but has holes, and the same construction to fill them.

Recall Book 2A in one paragraph

From five axioms we built the natural numbers, then the integers and rationals as quotients, then the reals as the completion of the rationals. With the logic of quantifiers in hand, we studied sequences (monotone convergence, Bolzano–Weierstrass, completeness), series (absolute and conditional convergence), infinite sets (countable and uncountable), continuous functions (the maximum principle and the intermediate value theorem, both resting on completeness), derivatives (the mean value theorem, Hamilton's trick, blow-up) and integrals (the fundamental theorem and integration by parts). Book 2B, starting with 2B.1 Metric Spaces, replaces the real line by general spaces, where distance, completeness and compactness become the main ideas.

Exercises

Exercise 11.10 Refinement

Show that if P′P' is obtained from PP by adding one point, then L(f,P)≤L(f,P′)L(f, P) \leq L(f, P') and U(f,P′)≤U(f,P)U(f, P') \leq U(f, P). Deduce that every lower sum is at most every upper sum (compare both with their common refinement).

Exercise 11.11 Monotone functions are integrable

Let ff be increasing on [a,b][a, b]. For the partition into nn equal pieces, show that U(f,P)−L(f,P)=b−an(f(b)−f(a))U(f, P) - L(f, P) = \frac{b - a}{n}\big(f(b) - f(a)\big). Conclude that ff is integrable, even if it has infinitely many jumps.

Solution

Because ff is increasing, on the kk-th piece Mk=f(xk)M_k = f(x_k) and mk=f(xk−1)m_k = f(x_{k-1}). The sum ∑k(f(xk)−f(xk−1))b−an\sum_k (f(x_k) - f(x_{k-1}))\frac{b-a}{n} telescopes to b−an(f(b)−f(a))\frac{b-a}{n}(f(b) - f(a)), which tends to 00.

Exercise 11.12 Using the fundamental theorem

Compute ddx∫0x21+t3 dt\frac{d}{dx}\int_0^{x^2} \sqrt{1 + t^3}\,dt. (Combine part 1 with the chain rule.)

Solution

With F(y)=∫0y1+t3 dtF(y) = \int_0^y \sqrt{1 + t^3}\,dt, the expression is F(x2)F(x^2), whose derivative is F′(x2)⋅2x=2x1+x6F'(x^2)\cdot 2x = 2x\sqrt{1 + x^6}.

Exercise 11.13 Integration by parts

(a) Compute ∫01xe−x dx\int_0^1 x e^{-x}\,dx. (b) Show that ∫0πsin⁡2x dx=∫0πcos⁡2x dx\int_0^\pi \sin^2 x\,dx = \int_0^\pi \cos^2 x\,dx by integrating by parts, and deduce that both equal π2\tfrac{\pi}{2}. (Take the derivatives of exe^x, sin⁡\sin and cos⁡\cos for granted; they are constructed in 2B.6 Power Series, Exponentials and Bump Functions.)

Exercise 11.14 The trapezoid rule's error

Let ff be twice continuously differentiable on [0,h][0, h], and let E=∫0hf−h2(f(0)+f(h))E = \int_0^h f - \tfrac h2\big(f(0) + f(h)\big). Show that E=−12∫0ht(h−t)f′′(t) dtE = -\tfrac12\int_0^h t(h - t) f''(t)\,dt by integrating by parts twice, and deduce ∣E∣≤h312max⁡∣f′′∣|E| \leq \tfrac{h^3}{12}\max|f''|. Summing over nn pieces of length h=(b−a)/nh = (b-a)/n gives the bound quoted in the chapter.

Exercise 11.15 Euler's constant

Show that an=Hn−ln⁡na_n = H_n - \ln n is decreasing and that an≥ln⁡(n+1)−ln⁡n>0a_n \geq \ln(n+1) - \ln n > 0, so γ=lim⁡an\gamma = \lim a_n exists. Then show 0<an−γ≤1n0 < a_n - \gamma \leq \frac1n, which says how fast the estimate Hn≈ln⁡n+γH_n \approx \ln n + \gamma becomes accurate.

Exercise 11.16 Three ways to escape

For each sequence on [0,∞)[0, \infty), find the pointwise limit and the limit of the integrals: (a) a spike of height nn on [0,2n][0, \tfrac2n] (this chapter); (b) a block of height 11 on [n,n+1][n, n+1]; (c) a block of height 1n\tfrac1n on [0,n][0, n]. In each case the area escapes, but in a different way: concentrating at a point, moving off to infinity, or spreading out thinly. 3A.3 The Lebesgue Integral names these three modes of escape. In Ricci flow, curvature that concentrates at a point as time increases is exactly a singularity forming (11B.4 Singularities).

Exercise 11.17 Rehearsal: a monotone energy

Let u(x,t)u(x, t) be smooth and 11-periodic in xx, with ∂tu=∂x2u\partial_t u = \partial_x^2 u. (a) Show that E(t)=∫01u2 dxE(t) = \int_0^1 u^2\,dx is non-increasing. (b) Show that D(t)=∫01(∂xu)2 dxD(t) = \int_0^1 (\partial_x u)^2\,dx is also non-increasing, by computing D′(t)D'(t) and integrating by parts. (c) Show that the mean ∫01u dx\int_0^1 u\,dx is constant. Each is a small monotonicity formula, and all three are proved by integration by parts with no boundary terms. That is exactly the setting of a closed manifold, where Perelman's are proved.

Solution

(a) E′=2∫u uxx=−2∫ux2≤0E' = 2\int u\,u_{xx} = -2\int u_x^2 \leq 0. (b) D′=2∫ux uxt=2∫ux(uxx)x=−2∫uxx2≤0D' = 2\int u_x\,u_{xt} = 2\int u_x (u_{xx})_x = -2\int u_{xx}^2 \leq 0, integrating by parts once more. (c) ddt∫u=∫uxx=[ux]01=0\frac{d}{dt}\int u = \int u_{xx} = [u_x]_0^1 = 0 by periodicity.

Next · 2B.1 · in preparationMetric SpacesDistance between points, strings, functions and places on Earth, and the topology it defines.

Spotted a mistake, or stuck on something? Write to me. Corrections are always welcome.

About the guidebook. Written with AI assistance for this site, at my request, and published as I study. Facts about the world (dates, figures, events) are checked against primary sources before a chapter is published. The mathematics follows the standard texts named in each chapter, but it has not yet been reviewed by a specialist. If you find a mistake, please write: corrections are always welcome.

© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.