Book 2A

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

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

Derivatives

The mean value theorem, the second-derivative test, and the first finite-time blow-up.

69 min read · Updated Nov 6, 2026

Read with Tao, Analysis I, chapter "Differentiation of functions" (basic definitions, local maxima and minima, monotone functions and derivatives, inverse functions and derivatives, L'Hôpital's rule).

In this chapter · 9 sections
  1. 10.1The derivative
  2. 10.1.1Three ways to see a derivative
  3. 10.1.2The rules
  4. 10.2Local extrema
  5. 10.3The mean value theorem
  6. 10.3.1What the mean value theorem does not say
  7. 10.4Inverse functions
  8. 10.5L'Hôpital's rule
  9. 10.6Taylor's theorem
  10. 10.7The derivative of a maximum
  11. 10.8Comparison and blow-up
  12. 10.8.1Why quadratic growth reaches infinity: doubling times
  13. 10.8.2The other direction: curvature cannot double too fast
  14. 10.9Exercises
  15. ↗Free resources

Course 1 used derivatives as a tool. This chapter founds them. The definition is a limit, and the theorems follow from the completeness of R\mathbb{R} through the maximum principle of 2A.9 Continuous Functions. On the way we meet the facts that this guidebook leans on most heavily:

  • the derivative is the best linear approximation, the idea that generalises to every dimension (2B.8 Calculus in Several Variables) and to curved spaces (8A.3 Tangent Vectors and Bundles);
  • at an interior maximum, f′=0f' = 0 and f′′≤0f'' \leq 0, the seed of every maximum principle;
  • the mean value theorem, which turns information about derivatives into information about values;
  • comparison for simple differential inequalities, and the first finite-time blow-up. The chapter ends by showing, with nothing more than this, that Ricci flow on a positively curved space must develop a singularity in finite time, and that the round 3-sphere shrinks to a point at exactly the time this argument predicts.

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

  • prove differentiability and the rules of differentiation from the definition;
  • prove and use Rolle's theorem, the mean value theorem, Cauchy's mean value theorem and L'Hôpital's rule;
  • find maxima and minima on an interval, and classify critical points with the first and second derivative tests;
  • state and prove Taylor's theorem with the Lagrange remainder, and use it to bound the error of an approximation;
  • explain why f′=0f' = 0 and f′′≤0f'' \leq 0 at an interior maximum;
  • differentiate a maximum of functions, where it has corners, using one-sided derivatives;
  • solve y′=cy2y' = cy^2 and show that a differential inequality y′≥cy2y' \geq cy^2 forces blow-up in finite time.

The derivative

Definition 10.1 Derivative

Let ff be defined on an interval containing x0x_0. Then ff is differentiable at x0x_0 with derivative f′(x0)=Lf'(x_0) = L if

lim⁡x→x0f(x)−f(x0)x−x0=L.\lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0} = L.

The difference quotient is the slope of the chord between (x0,f(x0))(x_0, f(x_0)) and (x,f(x))(x, f(x)), so the derivative is the limiting slope of chords, the slope of the tangent. An equivalent form says more.

Proposition 10.2 Newton's approximation

ff is differentiable at x0x_0 with derivative LL if and only if for every ε>0\varepsilon > 0 there is δ>0\delta > 0 such that

∣f(x)−(f(x0)+L(x−x0))∣≤ε ∣x−x0∣whenever ∣x−x0∣<δ.|f(x) - (f(x_0) + L(x - x_0))| \leq \varepsilon\,|x - x_0| \qquad\text{whenever } |x - x_0| < \delta.

This is just the definition multiplied through by ∣x−x0∣|x - x_0|, but it changes the point of view. The affine function x↦f(x0)+L(x−x0)x \mapsto f(x_0) + L(x - x_0) approximates ff near x0x_0 with an error that is small compared with the distance ∣x−x0∣|x - x_0|. Any other line through (x0,f(x0))(x_0, f(x_0)) has an error comparable to ∣x−x0∣|x - x_0| itself. So the tangent line is the unique best linear approximation. In several variables (2B.8 Calculus in Several Variables) this becomes the definition: the derivative is a linear map, not a number.

Three ways to see a derivative

The same number f′(x0)f'(x_0) has three readings, and each is the natural one in some later course.

A slope. The derivative is the slope of the tangent line, the limit of the slopes of chords. This is the geometric reading, and the one behind the mean value theorem below.

A rate. If f(t)f(t) is a position at time tt, then f′(t)f'(t) is a velocity: the rate at which the output changes per unit of input. The units say so: the derivative of metres with respect to seconds is metres per second. This is the reading behind every differential equation in the guidebook, the heat equation and the Ricci flow included, where the derivative in time is the rate at which a temperature or a metric changes.

A magnification factor. Zoom in on the graph of a differentiable function near x0x_0 and it looks more and more like a straight line, the tangent. So near x0x_0 the function acts like the map h↦f′(x0)hh \mapsto f'(x_0)h on small displacements hh: it stretches a tiny interval around x0x_0 by the factor ∣f′(x0)∣|f'(x_0)|, and reverses it if f′(x0)<0f'(x_0) < 0. The function x2x^2 near x0=3x_0 = 3 maps [3,3.001][3, 3.001] onto [9,9.006001][9, 9.006001], an interval about 66 times as long. This is the reading that generalises: in several variables the derivative is the linear map that best approximates the function near a point, and on a manifold it is the map between tangent spaces (8A.3 Tangent Vectors and Bundles).

A compact notation records Newton's approximation. Write o(h)o(h) ("little o of hh") for any quantity E(h)E(h) with E(h)h→0\frac{E(h)}{h} \to 0 as h→0h \to 0: something that vanishes faster than hh. Then differentiability at x0x_0 says exactly

f(x0+h)=f(x0)+f′(x0) h+o(h).f(x_0 + h) = f(x_0) + f'(x_0)\,h + o(h).

The tangent captures everything of first order; what is left is of smaller order. Most of the proofs below are bookkeeping with this one formula.

Figure 10.1. The tangent line at x0x_0 (solid) and a chord (dashed). The error between ff and its tangent, at distance hh from x0x_0, shrinks faster than hh (here like h2h^2). That is what makes the tangent the best linear approximation.
Example 10.3 Three derivatives from the definition

f(x)=x2f(x) = x^2. x2−x02x−x0=x+x0→2x0\frac{x^2 - x_0^2}{x - x_0} = x + x_0 \to 2x_0. So f′(x0)=2x0f'(x_0) = 2x_0.

f(x)=1/xf(x) = 1/x, at x0≠0x_0 \neq 0. 1/x−1/x0x−x0=x0−xxx0(x−x0)=−1xx0→−1x02\frac{1/x - 1/x_0}{x - x_0} = \frac{x_0 - x}{x x_0 (x - x_0)} = -\frac{1}{x x_0} \to -\frac{1}{x_0^2}, using continuity of x↦1xx0x \mapsto \frac{1}{x x_0} at x0x_0.

f(x)=xf(x) = \sqrt x, at x0>0x_0 > 0. Multiply by the conjugate: x−x0x−x0=1x+x0→12x0\frac{\sqrt x - \sqrt{x_0}}{x - x_0} = \frac{1}{\sqrt x + \sqrt{x_0}} \to \frac{1}{2\sqrt{x_0}}. At x0=0x_0 = 0 the quotient is 1x→+∞\frac{1}{\sqrt x} \to +\infty, so x\sqrt x is not differentiable at 00: its graph has a vertical tangent there.

In each case the computation has the same two steps: simplify the difference quotient algebraically until the factor x−x0x - x_0 cancels, then let x→x0x \to x_0 in what remains, using continuity. The cancellation step is essential, because at x=x0x = x_0 itself the quotient is 00\frac00.

At an endpoint of an interval, or where a function has a corner, the two-sided limit is too much to ask, and one uses one side only: the right derivative f+′(x0)=lim⁡x→x0+f(x)−f(x0)x−x0f'_+(x_0) = \lim_{x \to x_0^+}\frac{f(x) - f(x_0)}{x - x_0} and the left derivative f−′(x0)f'_-(x_0). By 2A.9 Continuous Functions's result on one-sided limits, ff is differentiable at an interior point exactly when both exist and agree. For ∣x∣|x| at 00, f−′(0)=−1f'_-(0) = -1 and f+′(0)=1f'_+(0) = 1.

Differentiability implies continuity: f(x)−f(x0)=f(x)−f(x0)x−x0(x−x0)→L⋅0=0f(x) - f(x_0) = \frac{f(x) - f(x_0)}{x - x_0}(x - x_0) \to L \cdot 0 = 0. The converse fails. ∣x∣|x| is continuous at 00 but has chord slopes −1-1 from the left and +1+1 from the right, so it is not differentiable there. Stranger, f(x)=x2sin⁡(1/x)f(x) = x^2\sin(1/x) (with f(0)=0f(0) = 0) is differentiable at 00, with f′(0)=0f'(0) = 0, since ∣f(x)/x∣≤∣x∣|f(x)/x| \leq |x|, yet f′(x)=2xsin⁡(1/x)−cos⁡(1/x)f'(x) = 2x\sin(1/x) - \cos(1/x) has no limit as x→0x \to 0. A function can be differentiable everywhere with a derivative that isn't continuous.

Figure 10.2. Left: ∣x∣|x|, continuous but not differentiable at 00. Right: x2sin⁡(1/x)x^2\sin(1/x), trapped between ±x2\pm x^2 and so differentiable at 00 with derivative 00, but with a derivative that oscillates wildly near 00.

The rules

Theorem 10.4 Rules of differentiation

If ff and gg are differentiable at x0x_0, then so are f+gf + g, cfcf, fgfg, and f/gf/g (if g(x0)≠0g(x_0) \neq 0), with

(fg)′=f′g+fg′,(fg)′=f′g−fg′g2.(fg)' = f'g + fg', \qquad \Big(\frac fg\Big)' = \frac{f'g - fg'}{g^2}.

Chain rule: if ff is differentiable at x0x_0 and gg is differentiable at f(x0)f(x_0), then g∘fg \circ f is differentiable at x0x_0, with (g∘f)′(x0)=g′(f(x0)) f′(x0)(g \circ f)'(x_0) = g'(f(x_0))\,f'(x_0).

Proof (Sum, product and quotient). Sum and multiple. The difference quotient of f+gf + g is the sum of those of ff and gg, and that of cfcf is cc times that of ff; apply the limit laws (2A.9 Continuous Functions).

Product. Add and subtract f(x)g(x0)f(x)g(x_0):

f(x)g(x)−f(x0)g(x0)x−x0=f(x) g(x)−g(x0)x−x0+g(x0) f(x)−f(x0)x−x0.\frac{f(x)g(x) - f(x_0)g(x_0)}{x - x_0} = f(x)\,\frac{g(x) - g(x_0)}{x - x_0} + g(x_0)\,\frac{f(x) - f(x_0)}{x - x_0}.

As x→x0x \to x_0, f(x)→f(x0)f(x) \to f(x_0) (differentiable functions are continuous), so the right side tends to f(x0)g′(x0)+g(x0)f′(x0)f(x_0)g'(x_0) + g(x_0)f'(x_0).

Reciprocal, then quotient. Since g(x0)≠0g(x_0) \neq 0 and gg is continuous at x0x_0, g(x)≠0g(x) \neq 0 for xx near x0x_0 (2A.9 Continuous Functions: a continuous function stays away from 00 near a point where it is nonzero). For such xx,

1/g(x)−1/g(x0)x−x0=−g(x)−g(x0)x−x0⋅1g(x) g(x0)→−g′(x0)g(x0)2.\frac{1/g(x) - 1/g(x_0)}{x - x_0} = -\frac{g(x) - g(x_0)}{x - x_0}\cdot\frac{1}{g(x)\,g(x_0)} \to -\frac{g'(x_0)}{g(x_0)^2}.

Then f/g=f⋅(1/g)f/g = f \cdot (1/g), and the product rule gives f′g−fg′g2=f′g−fg′g2\frac{f'}{g} - \frac{fg'}{g^2} = \frac{f'g - fg'}{g^2}.

Proof (The chain rule). The tempting proof writes g(f(x))−g(f(x0))x−x0=g(f(x))−g(f(x0))f(x)−f(x0)⋅f(x)−f(x0)x−x0\frac{g(f(x)) - g(f(x_0))}{x - x_0} = \frac{g(f(x)) - g(f(x_0))}{f(x) - f(x_0)} \cdot \frac{f(x) - f(x_0)}{x - x_0} and takes limits. It fails when f(x)=f(x0)f(x) = f(x_0) for xx arbitrarily close to x0x_0, because then the first fraction divides by zero. Newton's approximation avoids this. Write y0=f(x0)y_0 = f(x_0) and

g(y)=g(y0)+g′(y0)(y−y0)+E(y) (y−y0),g(y) = g(y_0) + g'(y_0)(y - y_0) + E(y)\,(y - y_0),

where E(y)→0E(y) \to 0 as y→y0y \to y_0 (and set E(y0)=0E(y_0) = 0). Substituting y=f(x)y = f(x) and dividing by x−x0x - x_0:

g(f(x))−g(f(x0))x−x0=(g′(y0)+E(f(x))) f(x)−f(x0)x−x0.\frac{g(f(x)) - g(f(x_0))}{x - x_0} = \big(g'(y_0) + E(f(x))\big)\,\frac{f(x) - f(x_0)}{x - x_0}.

As x→x0x \to x_0, f(x)→y0f(x) \to y_0 (by continuity), so E(f(x))→0E(f(x)) \to 0, and the right side tends to g′(y0)f′(x0)g'(y_0) f'(x_0).

The lesson of this proof, to work with the error term rather than divide by something that might vanish, is the standard method for every chain rule later in the route, including the one on manifolds (8A.3 Tangent Vectors and Bundles).

The pictures behind the rules. The product rule is a statement about rectangles. Think of f(x)f(x) and g(x)g(x) as the sides of a rectangle of area fgfg. Change xx by hh: the sides change by about f′hf'h and g′hg'h, and the area gains two thin strips, of areas about f⋅g′hf\cdot g'h and g⋅f′hg\cdot f'h, plus a tiny corner of area about f′g′h2f'g'h^2. Divide by hh and let h→0h \to 0: the strips give fg′+gf′fg' + gf', and the corner, being of second order, disappears. The chain rule is a statement about magnification factors: if ff stretches small intervals near x0x_0 by f′(x0)f'(x_0), and gg stretches small intervals near f(x0)f(x_0) by g′(f(x0))g'(f(x_0)), then doing one after the other stretches by the product. Gears that turn at rates 22 and 33 relative to each other compose to a rate of 66. Both pictures are heuristics, and the proofs above are what make them true; but the pictures tell you what the rules must be before you prove them.

Local extrema

Theorem 10.5 Derivatives vanish at interior extrema

If ff has a local maximum or minimum at an interior point x0x_0 of its domain, and ff is differentiable there, then f′(x0)=0f'(x_0) = 0.

Proof. At a local maximum, f(x)≤f(x0)f(x) \leq f(x_0) for xx near x0x_0. For x>x0x > x_0 the difference quotient is ≤0\leq 0, so its limit f′(x0)≤0f'(x_0) \leq 0. For x<x0x < x_0 it is ≥0\geq 0, so f′(x0)≥0f'(x_0) \geq 0. Hence f′(x0)=0f'(x_0) = 0.

The proof needs x0x_0 to be interior, with room on both sides. At an endpoint only one inequality is available: on [0,1][0, 1], f(x)=xf(x) = x has its maximum at 11, where f′(1)=1f'(1) = 1. Keeping track of boundary points is part of every maximum principle.

Theorem 10.6 The second derivative at a maximum

Suppose ff is differentiable near an interior point x0x_0, twice differentiable at x0x_0, and has a local maximum there. Then f′′(x0)≤0f''(x_0) \leq 0.

Proof. We know f′(x0)=0f'(x_0) = 0. Suppose f′′(x0)>0f''(x_0) > 0. Then f′(x)−f′(x0)x−x0=f′(x)x−x0\frac{f'(x) - f'(x_0)}{x - x_0} = \frac{f'(x)}{x - x_0} is positive for xx close to x0x_0, so f′(x)>0f'(x) > 0 for xx slightly to the right of x0x_0. By the mean value theorem below, ff is then strictly increasing on a small interval [x0,x0+η][x_0, x_0 + \eta], contradicting the maximum at x0x_0.

So at an interior maximum the graph is flat and bends down. For a function of several variables the same is true in every direction, so the Hessian matrix is negative semidefinite, and in particular its trace, the Laplacian, is ≤0\leq 0 (2B.8 Calculus in Several Variables). That is the inequality used in the maximum principle for the heat equation (6A.5 Maximum Principles) and, with the Laplacian of a Riemannian manifold, in Hamilton's maximum principle for Ricci flow (11A.7 Maximum Principles under Ricci Flow).

The proof of Theorem 10.6 used the mean value theorem, proved in the next section; that proof doesn't depend on this one, so there is no circularity.

The converse statements are the practical tests for classifying a point where f′(x0)=0f'(x_0) = 0, called a critical point.

Proposition 10.7 First and second derivative tests

Let ff be differentiable on an open interval containing x0x_0, with f′(x0)=0f'(x_0) = 0.

  1. (First derivative test) If f′≥0f' \geq 0 just to the left of x0x_0 and f′≤0f' \leq 0 just to the right, then x0x_0 is a local maximum.
  2. (Second derivative test) If f′′(x0)<0f''(x_0) < 0, then x0x_0 is a strict local maximum; if f′′(x0)>0f''(x_0) > 0, a strict local minimum.

Proof. (1) For xx slightly left of x0x_0, the mean value theorem gives f(x0)−f(x)=f′(c)(x0−x)≥0f(x_0) - f(x) = f'(c)(x_0 - x) \geq 0 with cc between them; for xx slightly right, f(x)−f(x0)=f′(c)(x−x0)≤0f(x) - f(x_0) = f'(c)(x - x_0) \leq 0. Either way f(x)≤f(x0)f(x) \leq f(x_0).

(2) Suppose f′′(x0)<0f''(x_0) < 0. Since f′′(x0)=lim⁡x→x0f′(x)−0x−x0f''(x_0) = \lim_{x \to x_0}\frac{f'(x) - 0}{x - x_0}, the quotient f′(x)x−x0\frac{f'(x)}{x - x_0} is negative for 0<∣x−x0∣<δ0 < |x - x_0| < \delta. So f′(x)>0f'(x) > 0 just to the left and f′(x)<0f'(x) < 0 just to the right, and the argument of (1), with strict inequalities, gives f(x)<f(x0)f(x) < f(x_0) for 0<∣x−x0∣<δ0 < |x - x_0| < \delta. The minimum case is the same with −f-f.

When f′′(x0)=0f''(x_0) = 0 the second derivative test says nothing: x4x^4 has a minimum at 00, −x4-x^4 a maximum, and x3x^3 neither, and all three have f′(0)=f′′(0)=0f'(0) = f''(0) = 0.

The second derivative test has a picture that explains it, which Taylor's theorem below makes exact. Near a critical point the linear term of the approximation vanishes, so the first term that matters is the quadratic one:

f(x0+h)≈f(x0)+12f′′(x0) h2.f(x_0 + h) \approx f(x_0) + \tfrac12f''(x_0)\,h^2.

Near x0x_0 the graph looks like a parabola, opening downwards if f′′(x0)<0f''(x_0) < 0 (a maximum) and upwards if f′′(x0)>0f''(x_0) > 0 (a minimum). When f′′(x0)=0f''(x_0) = 0 the parabola degenerates to a flat line, and the shape is decided by higher-order terms, which is why the test is silent. In several variables the quadratic term becomes a quadratic form, the Hessian, and the test asks whether that form is negative definite (2B.8 Calculus in Several Variables); a saddle, where the form takes both signs, has no one-variable analogue except the inflection of x3x^3.

Example 10.8 Finding a maximum on a closed interval

Find the maximum and minimum of f(x)=x3−3xf(x) = x^3 - 3x on [−2,3][-2, 3]. By the maximum principle (2A.9 Continuous Functions) both exist. By Theorem 10.5, an extremum at an interior point must be a critical point, so the extrema occur among the critical points and the endpoints. Here f′(x)=3x2−3=0f'(x) = 3x^2 - 3 = 0 at x=±1x = \pm 1. Evaluate:

f(−2)=−2,f(−1)=2,f(1)=−2,f(3)=18.f(-2) = -2, \qquad f(-1) = 2, \qquad f(1) = -2, \qquad f(3) = 18.

So the maximum is 1818, at the endpoint x=3x = 3, where f′(3)=24≠0f'(3) = 24 \neq 0; and the minimum is −2-2, attained twice, at the endpoint −2-2 and at the critical point 11. The local maximum at x=−1x = -1 is not the global one. The method needs both ingredients: existence from the maximum principle, and the list of candidates from Fermat's theorem.

The mean value theorem

Theorem 10.9 Rolle's theorem

If ff is continuous on [a,b][a, b], differentiable on (a,b)(a, b), and f(a)=f(b)f(a) = f(b), then f′(c)=0f'(c) = 0 for some c∈(a,b)c \in (a, b).

Proof. By the maximum principle (2A.9 Continuous Functions), ff attains a maximum and a minimum on [a,b][a, b]. If both are attained only at the endpoints, then ff is constant (both equal f(a)=f(b)f(a) = f(b)) and f′=0f' = 0 everywhere. Otherwise one of them is attained at an interior point cc, and f′(c)=0f'(c) = 0 by Theorem 10.5.

Theorem 10.10 Mean value theorem

If ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), then

f′(c)=f(b)−f(a)b−afor some c∈(a,b).f'(c) = \frac{f(b) - f(a)}{b - a} \qquad\text{for some } c \in (a, b).

Proof. Apply Rolle to g(x)=f(x)−f(b)−f(a)b−a(x−a)g(x) = f(x) - \frac{f(b) - f(a)}{b - a}(x - a), which has g(a)=g(b)=f(a)g(a) = g(b) = f(a).

Geometrically, some tangent is parallel to the chord. The chain of dependence is worth noticing: the mean value theorem uses Rolle, which uses the maximum principle, which uses Bolzano–Weierstrass, which uses the least upper bound property. Every theorem relating derivatives to values rests, ultimately, on the completeness of R\mathbb{R}.

In the world In use Average-speed cameras rely on the mean value theorem

On many roads, speed is enforced by section control: cameras at two points a known distance apart read each vehicle's number plate, and the system divides the distance by the time taken to get the average speed over the section. The UK's SPECS system and similar systems in several European countries work this way. The mean value theorem says that if a car's position s(t)s(t) is differentiable, then at some instant between the two cameras its speed s′(c)s'(c) was exactly equal to the average speed. So an average above the limit proves the car was above the limit at some moment, even though no camera saw it there. A short burst of speed that is later compensated by slowing down may not raise the average enough to register, which is the price of measuring only the average.

Figure 10.3. Position against time between two cameras. The chord's slope is the average speed. The mean value theorem finds a time cc at which the tangent is parallel to the chord: at that moment the car's speed equalled the average.

The mean value theorem converts derivative bounds into value bounds. Its most-used consequences:

Corollary 10.11 Consequences of the mean value theorem

Let ff be continuous on [a,b][a, b] and differentiable on (a,b)(a, b).

  1. If f′>0f' > 0 on (a,b)(a, b), ff is strictly increasing; if f′≥0f' \geq 0, increasing; if f′=0f' = 0, constant.
  2. If ∣f′∣≤K|f'| \leq K on (a,b)(a, b), then ∣f(x)−f(y)∣≤K∣x−y∣|f(x) - f(y)| \leq K|x - y|: ff is Lipschitz.
  3. If f′=g′f' = g' on (a,b)(a, b), then f−gf - g is constant.

Proof. (1) For a≤x<y≤ba \leq x < y \leq b, the mean value theorem on [x,y][x, y] gives f(y)−f(x)=f′(c)(y−x)f(y) - f(x) = f'(c)(y - x) with c∈(x,y)c \in (x, y). This is >0> 0, ≥0\geq 0 or =0= 0 according to the sign of f′f'. (2) The same identity gives ∣f(y)−f(x)∣=∣f′(c)∣ ∣y−x∣≤K∣y−x∣|f(y) - f(x)| = |f'(c)|\,|y - x| \leq K|y - x|. (3) Apply the last part of (1) to f−gf - g, whose derivative is 00.

Part (3) is what makes antiderivatives unique up to a constant, the fact behind the fundamental theorem of calculus in 2A.11 The Riemann Integral. Notice that it needs an interval: on (0,1)∪(2,3)(0, 1) \cup (2, 3), a function equal to 00 on the first piece and 11 on the second has derivative 00 everywhere but is not constant. Connectedness, the general form of "being an interval", is the subject of 2B.4 Connectedness.

What the mean value theorem does not say

The theorem asserts that a suitable cc exists and says nothing about where it is. That is enough for almost every application, because the applications only need bounds on f′f' everywhere, and then it does not matter which cc the theorem produces. Here is the typical use.

Example 10.12 Proving an inequality with the mean value theorem

Claim. For x>0x > 0, 1+x<1+x2\sqrt{1 + x} < 1 + \frac x2.

Proof. Let f(t)=1+tf(t) = \sqrt{1 + t} on [0,x][0, x]. By the mean value theorem, f(x)−f(0)=f′(c) xf(x) - f(0) = f'(c)\,x for some c∈(0,x)c \in (0, x), and f′(c)=121+c<12f'(c) = \frac{1}{2\sqrt{1 + c}} < \frac12 because c>0c > 0. So 1+x−1<x2\sqrt{1 + x} - 1 < \frac x2.

The unknown cc never had to be found; it was enough that every possible cc in (0,x)(0, x) gives f′(c)<12f'(c) < \frac12. The inequality says the graph of 1+x\sqrt{1 + x} lies below its tangent line at 00, as it must for a function whose slope keeps decreasing.

It fails for curves. The theorem is about real-valued functions, and it has no exact analogue for functions with values in the plane. A point moving around the unit circle, γ(t)=(cos⁡t,sin⁡t)\gamma(t) = (\cos t, \sin t) for t∈[0,2π]t \in [0, 2\pi], ends where it started, so its average velocity is the zero vector; but its velocity γ′(t)=(−sin⁡t,cos⁡t)\gamma'(t) = (-\sin t, \cos t) has length 11 at every moment and is never zero. What survives in every dimension is the mean value inequality: if ∣γ′∣≤K|\gamma'| \leq K, then ∣γ(b)−γ(a)∣≤K(b−a)|\gamma(b) - \gamma(a)| \leq K(b - a). That is part 2 of Corollary 10.11, and it is the form used for maps between spaces of several dimensions (2B.8 Calculus in Several Variables) and for curves on manifolds. When you see a "mean value theorem" in a later course, expect an inequality, not an equation.

Part 2 links derivatives to the uniform continuity of 2A.9 Continuous Functions. A bounded derivative gives a uniform modulus of continuity. In later courses, bounds on derivatives are exactly what make families of functions compact (2B.5 Uniform Convergence and Arzelà–Ascoli), and Shi's derivative estimates for Ricci flow (11A.4 Short-Time Existence and Uniqueness) are what make families of Ricci flows compact (11B.3 Compactness of Ricci Flows).

Inverse functions

Proposition 10.13 Derivative of an inverse

Let ff be continuous and strictly monotone on an interval, with inverse f−1f^{-1}. If ff is differentiable at x0x_0 with f′(x0)≠0f'(x_0) \neq 0, then f−1f^{-1} is differentiable at y0=f(x0)y_0 = f(x_0), with

(f−1)′(y0)=1f′(x0).(f^{-1})'(y_0) = \frac{1}{f'(x_0)}.

Proof. Write g=f−1g = f^{-1}, which is continuous by 2A.9 Continuous Functions, defined on the interval f(I)f(I). Let yn→y0y_n \to y_0 with yn≠y0y_n \neq y_0 in f(I)f(I), and put xn=g(yn)x_n = g(y_n). Then xn≠x0x_n \neq x_0 (as gg is injective) and xn→x0x_n \to x_0 (as gg is continuous). So

g(yn)−g(y0)yn−y0=xn−x0f(xn)−f(x0)=(f(xn)−f(x0)xn−x0)−1→1f′(x0),\frac{g(y_n) - g(y_0)}{y_n - y_0} = \frac{x_n - x_0}{f(x_n) - f(x_0)} = \left(\frac{f(x_n) - f(x_0)}{x_n - x_0}\right)^{-1} \to \frac{1}{f'(x_0)},

because the bracket tends to f′(x0)≠0f'(x_0) \neq 0. By the sequence criterion for limits (2A.9 Continuous Functions), g′(y0)=1/f′(x0)g'(y_0) = 1/f'(x_0).

If f′(x0)=0f'(x_0) = 0 the inverse has a vertical tangent: y3\sqrt[3]{y}, the inverse of x3x^3, is not differentiable at 00. For example, x\sqrt x is the inverse of x2x^2 on [0,∞)[0, \infty), so at y0=x02>0y_0 = x_0^2 > 0 its derivative is 12x0=12y0\frac{1}{2x_0} = \frac{1}{2\sqrt{y_0}}, as computed directly in Example 10.3.

In the world In use How sensitive is a thermometer?

In 2A.9 Continuous Functions, a digital thermometer computes temperature as T=f−1(R)T = f^{-1}(R) from a measured resistance RR. Proposition 10.13 tells the designer how errors propagate: a small error ΔR\Delta R produces a temperature error of about ΔR/f′(T)\Delta R / f'(T). Where the curve R=f(T)R = f(T) is steep, small resistance errors barely matter; where it flattens, they are amplified. This is why each thermistor type has a stated useful range, the range over which ∣f′(T)∣|f'(T)| is large enough for the target accuracy. In several variables the same question, how well an inverse is conditioned, is answered by the inverse function theorem (2B.9 The Inverse and Implicit Function Theorems), and in GPS positioning by the "dilution of precision".

L'Hôpital's rule

Proposition 10.14 L'Hôpital's rule

Let f,gf, g be differentiable near x0x_0 (except possibly at x0x_0), with f(x),g(x)→0f(x), g(x) \to 0 as x→x0x \to x_0 and g′(x)≠0g'(x) \neq 0 near x0x_0. If f′(x)/g′(x)→Lf'(x)/g'(x) \to L, then f(x)/g(x)→Lf(x)/g(x) \to L.

It follows from a two-function version of the mean value theorem, due to Cauchy, which is worth having on its own.

Theorem 10.15 Cauchy's mean value theorem

If ff and gg are continuous on [a,b][a, b] and differentiable on (a,b)(a, b), then for some c∈(a,b)c \in (a, b),

(f(b)−f(a)) g′(c)=(g(b)−g(a)) f′(c).\big(f(b) - f(a)\big)\,g'(c) = \big(g(b) - g(a)\big)\,f'(c).

Proof. Let h(x)=(f(b)−f(a))g(x)−(g(b)−g(a))f(x)h(x) = \big(f(b) - f(a)\big)g(x) - \big(g(b) - g(a)\big)f(x). Expanding, h(a)=f(b)g(a)−g(b)f(a)=h(b)h(a) = f(b)g(a) - g(b)f(a) = h(b). By Rolle's theorem h′(c)=0h'(c) = 0 for some c∈(a,b)c \in (a, b), which is the claim. (With g(x)=xg(x) = x this is the ordinary mean value theorem.)

Proof (L'Hôpital's rule, from the right). Define f(x0)=g(x0)=0f(x_0) = g(x_0) = 0; then ff and gg are continuous at x0x_0. Let ε>0\varepsilon > 0, and choose δ>0\delta > 0 such that ∣f′(t)g′(t)−L∣≤ε\big|\frac{f'(t)}{g'(t)} - L\big| \leq \varepsilon for x0<t<x0+δx_0 < t < x_0 + \delta. Take xx with x0<x<x0+δx_0 < x < x_0 + \delta. First, g(x)≠0g(x) \neq 0: otherwise Rolle's theorem on [x0,x][x_0, x] would give a zero of g′g'. Cauchy's theorem on [x0,x][x_0, x] gives c∈(x0,x)c \in (x_0, x) with f(x)g′(c)=g(x)f′(c)f(x)g'(c) = g(x)f'(c), so

f(x)g(x)=f′(c)g′(c),\frac{f(x)}{g(x)} = \frac{f'(c)}{g'(c)},

which is within ε\varepsilon of LL, because x0<c<x0+δx_0 < c < x_0 + \delta. So f(x)g(x)→L\frac{f(x)}{g(x)} \to L as x→x0+x \to x_0^+. The left side is the same, and the two together give the two-sided limit.

Example 10.16 Using L'Hôpital's rule, and misusing it

(a) lim⁡x→1x5−1x3−1\lim_{x \to 1}\frac{x^5 - 1}{x^3 - 1}. Both tend to 00, and 5x43x2→53\frac{5x^4}{3x^2} \to \frac53. So the limit is 53\frac53. (Check by factoring: x5−1x3−1=x4+x3+x2+x+1x2+x+1→53\frac{x^5 - 1}{x^3 - 1} = \frac{x^4 + x^3 + x^2 + x + 1}{x^2 + x + 1} \to \frac53.)

(b) lim⁡x→01+x−1x\lim_{x \to 0}\frac{\sqrt{1 + x} - 1}{x}: the derivatives give 1/(21+x)1→12\frac{1/(2\sqrt{1+x})}{1} \to \frac12.

(c) Not 00\frac00. lim⁡x→0x+1x+2=12\lim_{x \to 0}\frac{x + 1}{x + 2} = \frac12, by continuity. Applying the rule anyway gives 11=1\frac{1}{1} = 1, which is wrong. The hypothesis that both functions tend to 00 is not decoration.

(d) The rule is silent, the limit exists. With f(x)=x2sin⁡(1/x)f(x) = x^2\sin(1/x) and g(x)=xg(x) = x, f(x)g(x)=xsin⁡(1/x)→0\frac{f(x)}{g(x)} = x\sin(1/x) \to 0, by squeezing between ±∣x∣\pm|x|. But f′(x)g′(x)=2xsin⁡(1/x)−cos⁡(1/x)\frac{f'(x)}{g'(x)} = 2x\sin(1/x) - \cos(1/x) has no limit. L'Hôpital's rule only ever says "if f′/g′f'/g' has a limit, so does f/gf/g"; it never says the converse.

Taylor's theorem

The tangent line is the best linear approximation, with an error that is small compared with ∣x−x0∣|x - x_0|. How small, exactly? And can a polynomial of higher degree do better? Taylor's theorem answers both questions with an exact formula for the error.

Definition 10.17 Taylor polynomial

If ff is nn times differentiable at x0x_0, its Taylor polynomial of degree nn at x0x_0 is

Pn(x)=∑k=0nf(k)(x0)k!(x−x0)k=f(x0)+f′(x0)(x−x0)+f′′(x0)2(x−x0)2+⋯+f(n)(x0)n!(x−x0)n.P_n(x) = \sum_{k=0}^{n} \frac{f^{(k)}(x_0)}{k!}(x - x_0)^k = f(x_0) + f'(x_0)(x - x_0) + \frac{f''(x_0)}{2}(x - x_0)^2 + \cdots + \frac{f^{(n)}(x_0)}{n!}(x - x_0)^n.

The coefficients are chosen so that PnP_n and its first nn derivatives agree with those of ff at x0x_0: differentiating (x−x0)k(x - x_0)^k exactly kk times gives k!k!, and fewer or more times gives 00 at x0x_0. P1P_1 is the tangent line. That is where the factorials come from: they undo the k!k! produced by differentiating kk times, so that the kk-th derivative of PnP_n at x0x_0 is exactly f(k)(x0)f^{(k)}(x_0).

Think of the Taylor polynomials as successive corrections. P0P_0 matches the value; P1P_1 also matches the slope; P2P_2 also matches the bending, the rate at which the slope changes; and so on. Each new term is smaller near x0x_0 than the one before, by a factor of about ∣x−x0∣|x - x_0|, so close to x0x_0 each correction refines the last without disturbing it.

Theorem 10.18 Taylor's theorem with the Lagrange remainder

Let ff be n+1n + 1 times differentiable on an open interval containing x0x_0 and xx. Then

f(x)=Pn(x)+f(n+1)(c)(n+1)!(x−x0)n+1f(x) = P_n(x) + \frac{f^{(n+1)}(c)}{(n+1)!}(x - x_0)^{n+1}

for some cc strictly between x0x_0 and xx (or c=x0c = x_0 if x=x0x = x_0).

Proof. Fix x≠x0x \neq x_0, and choose the number MM so that f(x)=Pn(x)+M(x−x0)n+1f(x) = P_n(x) + M(x - x_0)^{n+1}. We must show M=f(n+1)(c)/(n+1)!M = f^{(n+1)}(c)/(n+1)! for some cc. Let

g(t)=f(t)−Pn(t)−M(t−x0)n+1.g(t) = f(t) - P_n(t) - M(t - x_0)^{n+1}.

By the choice of the coefficients of PnP_n, g(x0)=g′(x0)=⋯=g(n)(x0)=0g(x_0) = g'(x_0) = \cdots = g^{(n)}(x_0) = 0, and by the choice of MM, g(x)=0g(x) = 0. Now apply Rolle's theorem repeatedly. Since g(x0)=g(x)=0g(x_0) = g(x) = 0, there is c1c_1 strictly between x0x_0 and xx with g′(c1)=0g'(c_1) = 0. Since g′(x0)=g′(c1)=0g'(x_0) = g'(c_1) = 0, there is c2c_2 strictly between x0x_0 and c1c_1 with g′′(c2)=0g''(c_2) = 0. Continuing, we reach c=cn+1c = c_{n+1}, strictly between x0x_0 and xx, with g(n+1)(c)=0g^{(n+1)}(c) = 0. (Rolle's theorem applies at each step because each g(k)g^{(k)} with k≤nk \leq n is differentiable, hence continuous.) Finally, PnP_n has degree nn, so Pn(n+1)=0P_n^{(n+1)} = 0, and the (n+1)(n+1)-th derivative of M(t−x0)n+1M(t - x_0)^{n+1} is M(n+1)!M(n+1)!. So 0=g(n+1)(c)=f(n+1)(c)−M(n+1)!0 = g^{(n+1)}(c) = f^{(n+1)}(c) - M(n+1)!.

With n=0n = 0 this is the mean value theorem. With n=1n = 1 it is the precise form of the best-linear-approximation statement:

Corollary 10.19 The error of the tangent line

If ∣f′′∣≤K|f''| \leq K on an interval containing x0x_0 and xx, then

∣f(x)−f(x0)−f′(x0)(x−x0)∣≤K2 (x−x0)2.\big|f(x) - f(x_0) - f'(x_0)(x - x_0)\big| \leq \frac K2\,(x - x_0)^2.
Example 10.20 Estimating a square root, with a guaranteed error

Approximate 4.1\sqrt{4.1} by the tangent line to f(x)=xf(x) = \sqrt x at x0=4x_0 = 4: f(4)=2f(4) = 2 and f′(4)=14f'(4) = \frac14, so 4.1≈2+0.14=2.025\sqrt{4.1} \approx 2 + \frac{0.1}{4} = 2.025. How good is this? Here f′′(x)=−14x−3/2f''(x) = -\frac14 x^{-3/2}, whose size on [4,4.1][4, 4.1] is at most 14⋅4−3/2=132\frac14 \cdot 4^{-3/2} = \frac{1}{32}. By Corollary 10.19 the error is at most 164(0.1)2≈0.000156\frac{1}{64}(0.1)^2 \approx 0.000156. In fact 4.1=2.0248457…\sqrt{4.1} = 2.0248457\ldots, so the error is 0.0001540.000154: the bound is almost exact. And the sign is predictable too, since f′′<0f'' < 0 makes the remainder negative: the tangent line lies above the graph.

Taylor polynomials of every degree, and what happens as n→∞n \to \infty, are the subject of 2B.6 Power Series, Exponentials and Bump Functions; the second-order expansion in several variables, with the Hessian matrix in place of f′′f'', is in 2B.8 Calculus in Several Variables.

The derivative of a maximum

Suppose we track the largest of several quantities as time goes on: the hottest of several components, or the largest curvature on a manifold. The maximum M(t)=max⁡iFi(t)M(t) = \max_i F_i(t) of differentiable functions is usually not differentiable: it has corners where the leading function changes (Figure 10.4). Yet its rate of change is still controlled.

Definition 10.21 Upper right derivative

For a function MM, the upper right Dini derivative is D+M(t)=lim sup⁡h→0+M(t+h)−M(t)hD^+M(t) = \limsup_{h \to 0^+} \frac{M(t + h) - M(t)}{h}, the steepest rate of increase seen immediately to the right of tt.

It always exists in R∗\mathbb{R}^* (2A.6 Sequences), and equals M′(t)M'(t) wherever MM is differentiable.

Proposition 10.22 Hamilton's trick, finite version

Let F1,…,FkF_1, \dots, F_k be differentiable, and M(t)=max⁡iFi(t)M(t) = \max_i F_i(t). Then

D+M(t)=max⁡{Fi′(t):i with Fi(t)=M(t)}.D^+M(t) = \max\{F_i'(t) : i \text{ with } F_i(t) = M(t)\}.

In words: the maximum increases at the rate of the fastest-rising function among those currently attaining it.

Proof. Let II be the set of indices with Fi(t)=M(t)F_i(t) = M(t). For i∉Ii \notin I, Fi(t)<M(t)F_i(t) < M(t), and by continuity Fi<MF_i < M on a short interval after tt, so these don't affect MM just after tt. For small h>0h > 0, then, M(t+h)=max⁡i∈IFi(t+h)M(t + h) = \max_{i \in I} F_i(t + h), and

M(t+h)−M(t)h=max⁡i∈IFi(t+h)−Fi(t)h→max⁡i∈IFi′(t).\frac{M(t + h) - M(t)}{h} = \max_{i \in I} \frac{F_i(t + h) - F_i(t)}{h} \to \max_{i \in I} F_i'(t).
Figure 10.4. The maximum M(t)M(t) of three smooth functions (bold) has corners where the leader changes, so it isn't differentiable there. Its right-hand rate of increase is the slope of the fastest-rising function among those on top. That is Hamilton's trick.

In Ricci flow the "family" is the curvature at every point of a manifold, infinitely many functions, and the maximum over the manifold is attained because the manifold is compact. Hamilton's trick (11A.7 Maximum Principles under Ricci Flow) is the same statement: at any time, the maximum of the curvature changes at the rate ∂tF\partial_t F computed at a point where the maximum is attained. Combined with ΔF≤0\Delta F \leq 0 at that point (Theorem 10.6, in several variables), this turns a PDE for FF into a differential inequality for M(t)M(t), which the next section shows how to solve.

Comparison and blow-up

A differential inequality such as y′≥g(y)y' \geq g(y) doesn't determine yy, but it does bound it, by comparison with the solution of z′=g(z)z' = g(z). The simplest example has dramatic consequences.

Example 10.23 Blow-up of y′=cy2y' = c y^2

For c>0c > 0 and y(0)=y0>0y(0) = y_0 > 0, the equation y′=cy2y' = cy^2 has the solution

y(t)=11/y0−ct=y01−c y0 t.y(t) = \frac{1}{1/y_0 - ct} = \frac{y_0}{1 - c\,y_0\,t}.

(Check: y′=c y02(1−cy0t)2=cy2y' = \frac{c\,y_0^2}{(1 - cy_0t)^2} = cy^2.) This tends to +∞+\infty as t→T=1c y0t \to T = \frac{1}{c\,y_0}. The solution exists only for a finite time, and it blows up: the quantity becomes infinite in finite time. A linear equation y′=cyy' = cy can only grow exponentially, which never reaches infinity. Quadratic self-reinforcement can.

Proposition 10.24 Comparison

Let yy be differentiable on [0,T)[0, T) with y(0)=y0>0y(0) = y_0 > 0 and y′≥cy2y' \geq cy^2, with c>0c > 0. Then y(t)≥y01−c y0 ty(t) \geq \frac{y_0}{1 - c\,y_0\,t} for all tt in [0,T)[0, T) with t<1cy0t < \frac{1}{c y_0}. In particular T≤1cy0T \leq \frac{1}{c y_0}: the solution can't survive past the blow-up time of the comparison equation.

Proof. Since y′≥0y' \geq 0, yy is increasing, so y≥y0>0y \geq y_0 > 0. Consider u=1/yu = 1/y. Then u′=−y′/y2≤−cu' = -y'/y^2 \leq -c, so by the mean value theorem u(t)≤u(0)−ct=1/y0−ctu(t) \leq u(0) - ct = 1/y_0 - ct. While the right side is positive this gives y(t)≥11/y0−cty(t) \geq \frac{1}{1/y_0 - ct}. If the solution existed up to time 1cy0\frac{1}{cy_0}, then uu would have to become ≤0\leq 0 there, which is impossible since u=1/y>0u = 1/y > 0.

Figure 10.5. Solutions of y′=y2y' = y^2 starting at y0=1,2,4y_0 = 1, 2, 4 blow up at t=1,12,14t = 1, \tfrac12, \tfrac14: the larger the start, the sooner. The exponential solution of the linear equation y′=yy' = y (dashed) grows but stays finite for all time.

Why quadratic growth reaches infinity: doubling times

The explicit solution shows that y′=cy2y' = cy^2 blows up. A different calculation shows why, and connects blow-up to the series of 2A.7 Series. Ask how long the solution takes to double. Starting from a value YY, the solution 11/Y−cs\frac{1}{1/Y - cs} reaches 2Y2Y when 1Y−cs=12Y\frac1Y - cs = \frac{1}{2Y}, that is, after time s=12cYs = \frac{1}{2cY}. So each doubling takes half as long as the one before: from y0y_0 to 2y02y_0 takes 12cy0\frac{1}{2cy_0}, from 2y02y_0 to 4y04y_0 takes 14cy0\frac{1}{4cy_0}, and so on. Infinitely many doublings fit into the total time

12cy0+14cy0+18cy0+⋯=1cy0,\frac{1}{2cy_0} + \frac{1}{4cy_0} + \frac{1}{8cy_0} + \cdots = \frac{1}{cy_0},

a geometric series, whose sum is exactly the blow-up time. Compare the linear equation y′=cyy' = cy: every doubling takes the same time, ln⁡2c\frac{\ln 2}{c}, so infinitely many doublings take infinitely long, and the solution is finite at every time.

The criterion behind this is general. For y′=g(y)y' = g(y) with gg positive, the time to climb from y0y_0 to infinity is the total of the times spent crossing each stretch of values, which is ∫y0∞dyg(y)\int_{y_0}^\infty\frac{dy}{g(y)} (the integral of 2A.11 The Riemann Integral). Blow-up happens exactly when this is finite. For g(y)=cy2g(y) = cy^2 it is 1cy0\frac{1}{cy_0}; for g(y)=cyg(y) = cy it is infinite; for g(y)=cy1+αg(y) = cy^{1+\alpha} with any α>0\alpha > 0 it is finite. Any growth even slightly faster than linear can blow up, which is the same threshold as for the series ∑1np\sum\frac{1}{n^p} at p=1p = 1.

The other direction: curvature cannot double too fast

Comparison works both ways. An upper bound y′≤cy2y' \leq cy^2 prevents yy from growing too quickly, and that is just as useful.

Proposition 10.25 Doubling time

Let y>0y > 0 be differentiable on [0,T)[0, T) with y′≤cy2y' \leq cy^2, c>0c > 0. Then y(t)≤2y(0)y(t) \leq 2y(0) for all t<min⁡(T,12cy(0))t < \min\big(T, \frac{1}{2cy(0)}\big).

Proof. Let u=1yu = \frac1y. Then u′=−y′y2≥−cu' = -\frac{y'}{y^2} \geq -c, so by the mean value theorem u(t)≥u(0)−ctu(t) \geq u(0) - ct. For t<12cy(0)t < \frac{1}{2cy(0)} this gives u(t)>1y(0)−12y(0)=12y(0)u(t) > \frac{1}{y(0)} - \frac{1}{2y(0)} = \frac{1}{2y(0)}, that is, y(t)<2y(0)y(t) < 2y(0).

In words: a quantity that grows at most quadratically in itself cannot double in less than a fixed multiple of 1its current size\frac{1}{\text{its current size}}. In Ricci flow the curvature satisfies exactly such an inequality, ddtmax⁡∣Rm⁡∣≤Cmax⁡∣Rm⁡∣2\frac{d}{dt}\max|\operatorname{Rm}| \leq C\max|\operatorname{Rm}|^2, and this proposition becomes the doubling-time estimate of 11A.2 How Curvature Evolves: if the curvature is at most KK now, it stays at most 2K2K for a time of order 1K\frac1K. Much of the analysis of singularities rests on that one estimate, which is this proposition with a different letter.

In the world Model Thermal runaway

When a chemical reaction releases heat, and its rate increases steeply with temperature (exponentially, by the Arrhenius law), a body that can't shed heat fast enough enters a feedback loop: hotter means faster means hotter still. The theory of thermal explosion developed by Nikolay Semenov and David Frank-Kamenetskii in the late 1920s and 1930s analysed exactly when heat loss can no longer keep up and the temperature runs away. The same feedback drives "thermal runaway" in lithium-ion batteries. The model y′=cy2y' = cy^2 is a deliberate simplification of these systems, not a model of any one of them. But it captures the mechanism: when the rate of growth grows faster than linearly with the quantity itself, the quantity can become infinite in finite time.

Where this goes A singularity in finite time, from first-year calculus

Here is the payoff, stated now and proved in 11A.7 Maximum Principles under Ricci Flow. Under Ricci flow on a closed nn-dimensional manifold, the scalar curvature RR evolves by ∂tR=ΔR+2∣Ric∣2\partial_t R = \Delta R + 2|\mathrm{Ric}|^2, and ∣Ric∣2≥R2/n|\mathrm{Ric}|^2 \geq R^2/n (an inequality of linear algebra). At a point where RR is smallest, ΔR≥0\Delta R \geq 0, the minimum version of Theorem 10.6. Hamilton's trick (Proposition 10.22, for the minimum) then gives

ddtRmin⁡≥2n Rmin⁡2.\frac{d}{dt} R_{\min} \geq \frac{2}{n}\,R_{\min}^2.

If Rmin⁡(0)>0R_{\min}(0) > 0, Proposition 10.24 with c=2/nc = 2/n says the flow must develop a singularity by time T≤n2Rmin⁡(0)T \leq \frac{n}{2R_{\min}(0)}.

Check it on the round unit 3-sphere (n=3n = 3). It has R=n(n−1)=6R = n(n-1) = 6 everywhere, so the bound is T≤312=14T \leq \frac{3}{12} = \frac14. Under Ricci flow the sphere stays round while its radius shrinks, with radius squared r(t)2=1−4tr(t)^2 = 1 - 4t, so R(t)=6/(1−4t)R(t) = 6/(1 - 4t), which reaches infinity at exactly t=14t = \tfrac14. (Indeed ddt61−4t=24(1−4t)2=23(61−4t)2\frac{d}{dt}\frac{6}{1 - 4t} = \frac{24}{(1-4t)^2} = \frac23\big(\frac{6}{1 - 4t}\big)^2: the sphere satisfies the comparison equation with equality.) A singularity of the flow, predicted by a first-year comparison argument, and attained exactly by the most symmetric example. Perelman's work is largely about what happens at such singularities when the space is not so symmetric.

Recall Where we stand

The derivative is the best linear approximation. At an interior maximum it vanishes and the second derivative is non-positive. The mean value theorem turns derivative information into value information, and rests through Rolle and the maximum principle on the completeness of R\mathbb{R}. Maxima of families have one-sided derivatives given by Hamilton's trick, and differential inequalities like y′≥cy2y' \geq cy^2 force blow-up in finite time. 2A.11 The Riemann Integral goes the other way, from rates of change back to totals: the integral.

Exercises

Exercise 10.26 From the definition

Prove from the definition that f(x)=xnf(x) = x^n has f′(x)=nxn−1f'(x) = nx^{n-1} for every natural number nn, by induction using the product rule. Then show that ddxx−n=−nx−n−1\frac{d}{dx}x^{-n} = -nx^{-n-1} for x≠0x \neq 0.

Solution

For n=0n = 0, x0=1x^0 = 1 is constant with derivative 00; for n=1n = 1, the difference quotient of xx is 11. If (xn)′=nxn−1(x^n)' = nx^{n-1}, then xn+1=x⋅xnx^{n+1} = x \cdot x^n and the product rule gives (xn+1)′=1⋅xn+x⋅nxn−1=(n+1)xn(x^{n+1})' = 1 \cdot x^n + x \cdot nx^{n-1} = (n+1)x^n. For negative powers, the quotient rule with f=1f = 1, g=xng = x^n: (x−n)′=−nxn−1x2n=−nx−n−1(x^{-n})' = -\frac{nx^{n-1}}{x^{2n}} = -nx^{-n-1}.

Exercise 10.27 Differentiable but not C¹

Show that f(x)=x2sin⁡(1/x)f(x) = x^2\sin(1/x), f(0)=0f(0) = 0, is differentiable everywhere, compute f′f', and show f′f' is not continuous at 00. Does f′f' have the intermediate value property anyway? (It does: Darboux's theorem says every derivative does. Try to prove it, using the maximum principle on f(x)−yxf(x) - yx.)

Solution

At 00, ∣f(x)−f(0)x∣=∣xsin⁡(1/x)∣≤∣x∣→0\big|\frac{f(x) - f(0)}{x}\big| = |x\sin(1/x)| \leq |x| \to 0, so f′(0)=0f'(0) = 0. For x≠0x \neq 0, by the rules, f′(x)=2xsin⁡(1/x)−cos⁡(1/x)f'(x) = 2x\sin(1/x) - \cos(1/x). Along xk=12πkx_k = \frac{1}{2\pi k}, f′(xk)=−1f'(x_k) = -1; along xk=1(2k+1)πx_k = \frac{1}{(2k+1)\pi}, f′(xk)=1f'(x_k) = 1. Both sequences tend to 00, so f′f' has no limit at 00, and isn't continuous there.

Darboux's theorem. Let ff be differentiable on [a,b][a, b] with f′(a)<y<f′(b)f'(a) < y < f'(b), and h(x)=f(x)−yxh(x) = f(x) - yx, so h′(a)<0<h′(b)h'(a) < 0 < h'(b). By the maximum principle hh has a minimum on [a,b][a, b]. It is not at aa: since h(x)−h(a)x−a→h′(a)<0\frac{h(x) - h(a)}{x - a} \to h'(a) < 0, we have h(x)<h(a)h(x) < h(a) for xx slightly to the right of aa. It is not at bb, similarly. So the minimum is at an interior cc, where h′(c)=0h'(c) = 0, that is, f′(c)=yf'(c) = y. (The case f′(a)>y>f′(b)f'(a) > y > f'(b) is the same with a maximum.)

Exercise 10.28 Bounding values by derivatives

Use the mean value theorem to prove ∣sin⁡x−sin⁡y∣≤∣x−y∣|\sin x - \sin y| \leq |x - y| and ln⁡(1+x)≤x\ln(1 + x) \leq x for x>−1x > -1 (taking for granted the derivatives of sin⁡\sin and ln⁡\ln, constructed properly in 2B.6 Power Series, Exponentials and Bump Functions).

Solution

sin⁡x−sin⁡y=cos⁡(c)(x−y)\sin x - \sin y = \cos(c)(x - y) for some cc, and ∣cos⁡c∣≤1|\cos c| \leq 1. For the logarithm, ln⁡(1+x)−ln⁡1=x1+c\ln(1 + x) - \ln 1 = \frac{x}{1 + c} with cc between 00 and xx. If x>0x > 0 then 0<c<x0 < c < x, so 11+c<1\frac{1}{1+c} < 1 and ln⁡(1+x)<x\ln(1 + x) < x. If −1<x<0-1 < x < 0 then x<c<0x < c < 0, so 11+c>1\frac{1}{1 + c} > 1, and multiplying the negative number xx by something larger than 11 makes it smaller: ln⁡(1+x)<x\ln(1 + x) < x. At x=0x = 0 both sides are 00.

Exercise 10.29 Section control

Two cameras are 88 km apart on a road with a 100100 km/h limit. A car passes them 44 minutes 3030 seconds apart. (a) Compute its average speed, and explain what the mean value theorem allows you to conclude. (b) Could the car have exceeded 130130 km/h somewhere in the section? Could you prove it did?

Solution

(a) 88 km in 4.54.5 minutes is 8/0.075≈106.78 / 0.075 \approx 106.7 km/h. By the mean value theorem its speed was exactly 106.7106.7 km/h at some instant, so above the limit. (b) Possibly, yet nothing proves it: the data are consistent with a constant 106.7106.7 km/h, and also with bursts above 130130 balanced by slower stretches. Average speed bounds the maximum speed from below, but gives no upper bound.

Exercise 10.30 Hamilton's trick for the minimum

State and prove the version of Proposition 10.22 for m(t)=min⁡iFi(t)m(t) = \min_i F_i(t), using the lower right Dini derivative D+m(t)=lim inf⁡h→0+m(t+h)−m(t)hD_+ m(t) = \liminf_{h \to 0^+} \frac{m(t+h) - m(t)}{h}.

Solution

Statement: D+m(t)=min⁡{Fi′(t):Fi(t)=m(t)}D_+ m(t) = \min\{F_i'(t) : F_i(t) = m(t)\}. Proof: m=−max⁡i(−Fi)m = -\max_i(-F_i), and lim inf⁡\liminf of a quantity is −lim sup⁡-\limsup of its negative, so D+m(t)=−D+(max⁡i(−Fi))(t)=−max⁡{−Fi′(t):−Fi(t)=max⁡j(−Fj(t))}=min⁡{Fi′(t):Fi(t)=m(t)}D_+ m(t) = -D^+\big(\max_i(-F_i)\big)(t) = -\max\{-F_i'(t) : -F_i(t) = \max_j(-F_j(t))\} = \min\{F_i'(t) : F_i(t) = m(t)\}. In words: the minimum decreases at the rate of the fastest-falling function among those currently attaining it.

Exercise 10.31 L'Hôpital practice

Compute (a) lim⁡x→01−cos⁡xx2\lim_{x \to 0}\frac{1 - \cos x}{x^2}; (b) lim⁡x→1ln⁡xx−1\lim_{x \to 1}\frac{\ln x}{x - 1}; (c) lim⁡x→0x−sin⁡xx3\lim_{x \to 0}\frac{x - \sin x}{x^3}. (Take the derivatives of sin⁡\sin, cos⁡\cos, ln⁡\ln for granted.)

Solution

(a) sin⁡x2x→12\frac{\sin x}{2x} \to \frac12 (apply the rule again, or use sin⁡xx→1\frac{\sin x}{x} \to 1). (b) 1/x1→1\frac{1/x}{1} \to 1. (c) Three applications: 1−cos⁡x3x2→\frac{1 - \cos x}{3x^2} \to (by (a)) 13⋅12=16\frac{1}{3}\cdot\frac12 = \frac16.

Exercise 10.32 The closest point on a parabola

Find the point of the parabola y=x2y = x^2 closest to (0,3)(0, 3). Justify that a closest point exists before computing it.

Solution

Minimise the squared distance D(x)=x2+(x2−3)2=x4−5x2+9D(x) = x^2 + (x^2 - 3)^2 = x^4 - 5x^2 + 9. Existence: D(x)≥9D(x) \geq 9 when x2≥5x^2 \geq 5 (then x4−5x2≥0x^4 - 5x^2 \geq 0), while D(0)=9D(0) = 9; so a minimum over R\mathbb{R} is a minimum over [−5,5][-\sqrt5, \sqrt5], which exists by the maximum principle. Location: D′(x)=4x3−10x=2x(2x2−5)D'(x) = 4x^3 - 10x = 2x(2x^2 - 5), zero at x=0x = 0 and x=±5/2x = \pm\sqrt{5/2}. D(0)=9D(0) = 9 and D(±5/2)=254−252+9=114D(\pm\sqrt{5/2}) = \frac{25}{4} - \frac{25}{2} + 9 = \frac{11}{4}. The endpoints give D(±5)=9D(\pm\sqrt5) = 9. So the closest points are (±5/2,52)(\pm\sqrt{5/2}, \tfrac52), at distance 112≈1.658\frac{\sqrt{11}}{2} \approx 1.658. The critical point x=0x = 0, the bottom of the parabola, is a local maximum of the distance.

Exercise 10.33 Convex functions lie above their tangents

Let f′′≥0f'' \geq 0 on an open interval II. Prove that f(x)≥f(x0)+f′(x0)(x−x0)f(x) \geq f(x_0) + f'(x_0)(x - x_0) for all x,x0∈Ix, x_0 \in I, and deduce that f(x+y2)≤f(x)+f(y)2f\big(\frac{x + y}{2}\big) \leq \frac{f(x) + f(y)}{2}. (This is the simplest case of Jensen's inequality, 3A.7 Lᵖ Spaces and Jensen’s Inequality.)

Solution

By Taylor's theorem with n=1n = 1, f(x)−f(x0)−f′(x0)(x−x0)=f′′(c)2(x−x0)2≥0f(x) - f(x_0) - f'(x_0)(x - x_0) = \frac{f''(c)}{2}(x - x_0)^2 \geq 0. For the midpoint inequality, let m=x+y2m = \frac{x + y}{2} and apply this at x0=mx_0 = m to both xx and yy: f(x)≥f(m)+f′(m)(x−m)f(x) \geq f(m) + f'(m)(x - m) and f(y)≥f(m)+f′(m)(y−m)f(y) \geq f(m) + f'(m)(y - m). Adding, and using (x−m)+(y−m)=0(x - m) + (y - m) = 0, gives f(x)+f(y)≥2f(m)f(x) + f(y) \geq 2f(m).

Exercise 10.34 Computing e with a guaranteed error

Taking for granted that exp⁡′=exp⁡\exp' = \exp, exp⁡(0)=1\exp(0) = 1 and e=exp⁡(1)<3e = \exp(1) < 3 (all proved in 2B.6 Power Series, Exponentials and Bump Functions), use Taylor's theorem at 00 to show that 0<e−∑k=0n1k!<3(n+1)!0 < e - \sum_{k=0}^n \frac{1}{k!} < \frac{3}{(n+1)!}. How many terms give ee to six decimal places?

Solution

Every derivative of exp⁡\exp is exp⁡\exp, so the Taylor polynomial at 00 is ∑k≤nxkk!\sum_{k \leq n} \frac{x^k}{k!}, and with x=1x = 1 the remainder is exp⁡(c)(n+1)!\frac{\exp(c)}{(n+1)!} for some 0<c<10 < c < 1, which lies between 1(n+1)!\frac{1}{(n+1)!} and 3(n+1)!\frac{3}{(n+1)!}. For six decimal places we need 3(n+1)!<5×10−7\frac{3}{(n+1)!} < 5 \times 10^{-7}: n=9n = 9 gives 310!≈8.3×10−7\frac{3}{10!} \approx 8.3 \times 10^{-7}, not quite; n=10n = 10 gives 311!≈7.5×10−8\frac{3}{11!} \approx 7.5 \times 10^{-8}. So the terms up to 110!\frac{1}{10!}, eleven in all.

Exercise 10.35 Other powers

(a) Solve y′=y1+αy' = y^{1+\alpha} with y(0)=y0>0y(0) = y_0 > 0 and α>0\alpha > 0, and find the blow-up time. (b) Show that y′=y (1+ln⁡y)y' = y\,(1 + \ln y) (with y0>1y_0 > 1) does not blow up in finite time, though it grows faster than any exponential. (Substitute u=ln⁡yu = \ln y.) Where exactly is the dividing line?

Solution

(a) y−α=y0−α−αty^{-\alpha} = y_0^{-\alpha} - \alpha t, so y=(y0−α−αt)−1/αy = (y_0^{-\alpha} - \alpha t)^{-1/\alpha}, blowing up at T=1αy0αT = \frac{1}{\alpha y_0^{\alpha}}. (b) With u=ln⁡yu = \ln y, u′=1+uu' = 1 + u, so u=(1+u0)et−1u = (1 + u_0)e^t - 1, finite for all tt, and y=exp⁡((1+u0)et−1)y = \exp\big((1+u_0)e^t - 1\big), a double exponential. The dividing line (Osgood's criterion) is whether ∫∞dyg(y)\int^\infty \frac{dy}{g(y)} is finite: it is for g(y)=y1+αg(y) = y^{1+\alpha}, and not for g(y)=yln⁡yg(y) = y\ln y.

Exercise 10.36 Rehearsal: the shrinking sphere

Under Ricci flow, a round nn-sphere of initial radius r0r_0 stays round with r(t)2=r02−2(n−1)tr(t)^2 = r_0^2 - 2(n-1)t, and its scalar curvature is R=n(n−1)/r2R = n(n-1)/r^2. (a) Show that R(t)R(t) satisfies R′=2nR2R' = \frac{2}{n}R^2 exactly. (b) Find the extinction time, and check it agrees with the comparison bound n2R(0)\frac{n}{2R(0)}. (c) A round 2-sphere of radius 11 metre: when does it vanish, in the units in which the flow is ∂tg=−2 Ric\partial_t g = -2\,\mathrm{Ric}? This computation reappears as the first exact solution of Ricci flow in 11A.1 The Equation and Its First Solutions.

Solution

(a) R=n(n−1)r02−2(n−1)tR = \frac{n(n-1)}{r_0^2 - 2(n-1)t}, so R′=2n(n−1)2(r02−2(n−1)t)2=2n⋅n2(n−1)2(r02−2(n−1)t)2=2nR2R' = \frac{2n(n-1)^2}{(r_0^2 - 2(n-1)t)^2} = \frac{2}{n}\cdot\frac{n^2(n-1)^2}{(r_0^2 - 2(n-1)t)^2} = \frac2n R^2. (b) r(t)=0r(t) = 0 at T=r022(n−1)T = \frac{r_0^2}{2(n-1)}, and n2R(0)=nr022n(n−1)=r022(n−1)\frac{n}{2R(0)} = \frac{n r_0^2}{2n(n-1)} = \frac{r_0^2}{2(n-1)}: equal. (c) n=2n = 2, r0=1r_0 = 1: T=12T = \frac12 (in square metres, the units of r2r^2, since time in Ricci flow has the units of length squared).

Free resources for this chapter

Chosen for what this chapter covers, and all free to read or watch. Where a lecture covers more than this chapter, the minutes to watch are given, and the link starts there when it can. Links checked Nov 6, 2026.

Read

Watch 4 lectures and talks

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