BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

The second fundamental theorem of calculus

Read the first fundamental theorem backwards: the change in F is the average of F′ times the length of the interval, which gives everything the mean value theorem gave and more. The second theorem says that the area function G(x) = ∫ₐˣ f(t) dt has derivative f: integrating and then differentiating gives back what you started with. Both theorems are proved here. And integrals define genuinely new functions, such as the antiderivative of e^(−x²).

You need this first

Full reading path (15 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Definite integrals and Riemann sums (18.01)
  15. The first fundamental theorem of calculus (18.01)
On this page · 7 sections
  1. The average of the derivative
  2. Better than the mean value theorem
  3. The second fundamental theorem
  4. Why FTC 2 is true
  5. Why FTC 1 is true
  6. New functions from integrals
  7. Summary

The first fundamental theorem was used to evaluate integrals. This lecture reads it the other way: what the derivative f=F′f = F' tells us about the function FF (transcript, p. 1).

The average of the derivative#

Write ΔF=F(b)−F(a)\Delta F = F(b) - F(a) and Δx=b−a\Delta x = b - a. Dividing the first theorem by Δx\Delta x (transcript, p. 1):

FTC 1 as an average
ΔFΔx=1b−a∫abf(x) dx\frac{\Delta F}{\Delta x} = \frac{1}{b - a}\int_a^b f(x)\,dx
In words

capital delta capital F over the quantity capital delta x, equals 1 over the quantity b minus a, times the integral from a to b of f(x) d x

The right side is the average value of ff on [a,b][a, b]. It is the continuous version of an ordinary average: with a=0a = 0, b=nb = n and steps of 1, the Riemann sum ∑f(i)\sum f(i) divided by nn is the average of nn values (p. 2). So the change in FF is the average of F′F' times Δx\Delta x.

Better than the mean value theorem#

The mean value theorem said ΔF=F′(c) Δx\Delta F = F'(c)\,\Delta x for some unknown cc, so all it could give was bounds: ΔF\Delta F lies between the minimum and the maximum of F′F', times Δx\Delta x (transcript, pp. 2–3). The fundamental theorem gives an exact formula, the average, and the same bounds follow at once, since an average lies between the smallest and largest value. As soon as you have integrals, the lecturer says, you can drop the mean value theorem (p. 3).

The lecture redoes a problem from the second exam (pp. 3–4): F′(x)=11+xF'(x) = \frac{1}{1 + x} and F(0)=1F(0) = 1; find bounds for F(4)F(4). By the mean value theorem, F(4)−F(0)=41+cF(4) - F(0) = \frac{4}{1 + c} for some 0<c<40 < c < 4, between 45\frac45 and 4, so 95<F(4)<5\frac95 < F(4) < 5. By the fundamental theorem,

The same bounds from an integral
∫0415 dx  ≤  F(4)−F(0)=∫04dx1+x  ≤  ∫041 dx\int_0^4 \frac{1}{5}\,dx \;\le\; F(4) - F(0) = \int_0^4 \frac{dx}{1 + x} \;\le\; \int_0^4 1\,dx
In words

the integral from 0 to 4 of one fifth d x is less than or equal to capital F (4) minus capital F (0) equals the integral from 0 to 4 of d x over the quantity 1 plus x, is less than or equal to the integral from 0 to 4 of 1 d x

Source: 18.01 Lecture 20 transcript, pp. 3–4

the same answer: the integrand lies between 15\tfrac15 and 1. The two outer integrals are the crudest possible lower and upper Riemann sums, a single rectangle each; more rectangles would give far better bounds (p. 4). (In fact F(4)=1+ln⁡5≈2.61F(4) = 1 + \ln 5 \approx 2.61.)

Worked example

Bounding an arctangent

F′(x)=11+x2F'(x) = \dfrac{1}{1 + x^2} and F(0)=0F(0) = 0. Without knowing FF, bound F(1)F(1).

Bounds on the derivative

On [0,1][0, 1], 1+x21 + x^2 runs from 1 to 2, so 12≤F′(x)≤1\tfrac12 \le F'(x) \le 1.

Integrate

∫0112 dx≤F(1)−F(0)≤∫011 dx\int_0^1 \tfrac12\,dx \le F(1) - F(0) \le \int_0^1 1\,dx, so 0.5≤F(1)≤10.5 \le F(1) \le 1. In fact F=tan⁡−1F = \tan^{-1} and F(1)=π/4≈0.785F(1) = \pi/4 \approx 0.785.

The second fundamental theorem#

Start with a continuous ff and define a new function by a definite integral with a variable upper limit (transcript, pp. 5–6; notes, p. 1):

Second fundamental theorem of calculus (FTC 2)
G(x)=∫axf(t) dt  ⇒  G′(x)=f(x)G(x) = \int_a^x f(t)\,dt \;\Rightarrow\; G'(x) = f(x)
In words

G(x) equals the integral from a to x of f(t) d t which gives G prime (x) equals f(x)

Here tt is the dummy variable, running from aa to xx, while xx stays fixed during the integration. Writing xx for both is common, even in textbooks, and the lecturer warns that it leads to confusion, especially in multivariable calculus (p. 5). GG is well defined, because Riemann sums give a way to compute it for any xx. And it solves the differential equation y′=fy' = f with y(a)=0y(a) = 0 (since ∫aa=0\int_a^a = 0): this is why the course could treat dy/dx=f(x)dy/dx = f(x) as always solvable (p. 6).

An example that "everybody gets wrong until they practise it" (pp. 6–7):

Integrate, then differentiate
ddx∫1xdtt2=1x2\frac{d}{dx}\int_1^x \frac{dt}{t^2} = \frac{1}{x^2}
In words

d over d x the integral from 1 to x of d t over t squared equals 1 over x squared

Nothing to integrate: just copy the integrand with tt replaced by xx. Differentiating an integral gives back the integrand exactly, with no constant: any constant in GG disappears when you differentiate (p. 7). Check with FTC 1: G(x)=[−1/t]1x=1−1xG(x) = \big[-1/t\big]_1^x = 1 - \frac1x, and G′(x)=1x2G'(x) = \frac{1}{x^2} (p. 7).

Worked example

Derivatives of integrals

Find ddx∫0x1+t3 dt\dfrac{d}{dx}\displaystyle\int_0^x \sqrt{1 + t^3}\,dt and ddx∫x5cos⁡(t2) dt\dfrac{d}{dx}\displaystyle\int_x^5 \cos(t^2)\,dt.

First

Copy the integrand: 1+x3\sqrt{1 + x^3}. (No formula for the integral itself is needed, or even known.)

Second

The variable is in the lower limit. Reverse the limits first: ∫x5=−∫5x\int_x^5 = -\int_5^x, so the derivative is −cos⁡(x2)-\cos(x^2).

Why FTC 2 is true#

A picture proof, with the integral as area (transcript, pp. 7–8; notes, pp. 1–2). G(x)G(x) is the area under y=f(t)y = f(t) from aa to xx. Move to x+Δxx + \Delta x: the extra area ΔG\Delta G is almost a rectangle of base Δx\Delta x and height f(x)f(x):

Proof of FTC 2
ΔG≈f(x) Δx  ⇒  G′(x)=lim⁡Δx→0ΔGΔx=f(x)\Delta G \approx f(x)\,\Delta x \;\Rightarrow\; G'(x) = \lim_{\Delta x\to 0}\frac{\Delta G}{\Delta x} = f(x)
In words

capital delta G is approximately f(x) capital delta x which gives G prime (x) equals the limit as capital delta x goes to 0 of capital delta G over the quantity capital delta x, equals f(x)

The limit needs ff to be continuous, so that its values near xx are close to f(x)f(x) (p. 8). The notes put it another way: ΔG/Δx=1Δx∫xx+Δxf(t) dt\Delta G/\Delta x = \frac{1}{\Delta x}\int_x^{x + \Delta x} f(t)\,dt is the average of ff over the small interval, and as the interval shrinks, that average tends to f(x)f(x) (notes, p. 2).

Why FTC 1 is true#

Now FTC 1 follows (transcript, pp. 8–9; notes, p. 2). Suppose F′=fF' = f, with ff continuous. Define G(x)=∫axf(t) dtG(x) = \int_a^x f(t)\,dt; by FTC 2, G′=f=F′G' = f = F'. Two functions with the same derivative differ by a constant, F=G+cF = G + c: this step is the one that needs the mean value theorem. The lecturer calls this fact, that functions with the same derivative differ by a constant, the underpinning of all calculus, and it is why the course took the trouble to discuss the mean value theorem (pp. 8–9). Then

Proof of FTC 1
F(b)−F(a)=(G(b)+c)−(G(a)+c)=G(b)−G(a)=∫abf(t) dt−0F(b) - F(a) = \big(G(b) + c\big) - \big(G(a) + c\big) = G(b) - G(a) = \int_a^b f(t)\,dt - 0
In words

capital F (b) minus capital F (a) equals the quantity G(b) plus c, all minus the quantity G(a) plus c, equals G(b) minus G(a) equals the integral from a to b of f(t) d t minus 0

since G(a)=∫aaf=0G(a) = \int_a^a f = 0. Any antiderivative works, because the constant cancels: with F(x)=−1/xF(x) = -1/x or G(x)=1−1/xG(x) = 1 - 1/x, ∫12dt/t2\int_1^2 dt/t^2 comes out the same (p. 10). (The notes illustrate this with "f(x)=sin⁡xf(x) = \sin x" but then integrate cos⁡t\cos t, and on p. 3 write ∫absin⁡x dx=sin⁡b−sin⁡a\int_a^b \sin x\,dx = \sin b - \sin a; they mean f(x)=cos⁡xf(x) = \cos x, notes, pp. 2–3.)

New functions from integrals#

All powers integrate easily except one, 1/x1/x. The solution of L′(x)=1xL'(x) = \frac1x, L(1)=0L(1) = 0, is (transcript, pp. 10–11)

The logarithm as an integral
L(x)=∫1xdttL(x) = \int_1^x \frac{dt}{t}
In words

L(x) equals the integral from 1 to x of d t over t

which we know as ln⁡x\ln x. Starting from a simple ratio of polynomials, an integral produces a transcendental function, and the next lecture derives the logarithm's properties from this definition, more quickly than before (pp. 10–11).

More: the solution of y′=e−x2y' = e^{-x^2}, y(0)=0y(0) = 0 is ∫0xe−t2 dt\int_0^x e^{-t^2}\,dt, the area under the bell curve, and it cannot be written in terms of any function met so far, not logs, exponentials or trig functions (p. 11; notes, p. 1). Yet it is a perfectly good function. The lecturer compares it with π\pi: the Greeks could define it geometrically, as the area of a unit circle, but it is not the root of any polynomial equation with rational coefficients (p. 11). The notes list more such functions (notes, pp. 3–4): the error function erf⁡(x)=2π∫0xe−t2 dt\operatorname{erf}(x) = \frac{2}{\sqrt\pi}\int_0^x e^{-t^2}\,dt of statistics, which tends to 1 as x→∞x \to \infty; the logarithmic integral Li⁡(x)=∫2xdtln⁡t\operatorname{Li}(x) = \int_2^x \frac{dt}{\ln t}, which approximates the number of primes below xx; the Fresnel integrals C(x)=∫0xcos⁡(t2) dtC(x) = \int_0^x \cos(t^2)\,dt of optics, with C′(x)=cos⁡(x2)C'(x) = \cos(x^2) by FTC 2; and the Bessel function J0J_0.

The notes estimate how many primes lie between 1020010^{200} and 1020110^{201}: ln⁡t\ln t is between about 460 and 462 there, which they round to 500 "to one significant figure", so roughly ∫1020010201dtln⁡t≈9×10200500\int_{10^{200}}^{10^{201}} \frac{dt}{\ln t} \approx \frac{9\times10^{200}}{500}, which they give as about 1019810^{198} (more precisely 1.8×101981.8\times10^{198}): far too many for a code-breaker to try them all (notes, pp. 3–4). (The notes call these "200-digit primes", but numbers from 1020010^{200} to 1020110^{201} have 201 digits.)

The bell curve e−x2e^{-x^2} and its area function ∫0xe−t2 dt\int_0^x e^{-t^2}\,dt, computed from the error function. By FTC 2 the slope of the second curve at each xx is the height of the first; the area levels off at π/2≈0.886\sqrt{\pi}/2 \approx 0.886.

Summary#

  • FTC 1 read backwards: ΔF\Delta F = (average of F′F') × Δx\Delta x, with average 1b−a∫abf\frac{1}{b - a}\int_a^b f. It gives the mean value theorem's bounds and better ones.
  • FTC 2: if ff is continuous and G(x)=∫axf(t) dtG(x) = \int_a^x f(t)\,dt, then G′(x)=f(x)G'(x) = f(x). Keep the dummy variable tt distinct from xx.
  • Proof of FTC 2: the extra area is about f(x) Δxf(x)\,\Delta x. Proof of FTC 1: from FTC 2 and "same derivative, differ by a constant" (the mean value theorem).
  • Integrals define new functions: ln⁡x=∫1xdt/t\ln x = \int_1^x dt/t, ∫0xe−t2 dt\int_0^x e^{-t^2}\,dt, erf, Li, Fresnel integrals.

Symbols on this page

Show the 40 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ℓ\ell script l.
A length or distance; ℓ_p is a physical distance and ℓ_c a comoving one. Unit: m (a comoving ℓ_c is in notches, Guth's units). Say it: “ell”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
∑\sum sum.
Sum: add up the terms over the range written below and above. Say it: “the sum of”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
The lower limit of integration; in the cosmology note, a(t) is the scale factor of the universe. Say it: “a”.
GG G.
The area function G(x) = ∫ₐˣ f(t) dt. Say it: “G”.
cc c.
A constant (in the mean value theorem, the unknown point between a and b); in the cosmology note, the speed of light. Say it: “c”.
ℓc\ell_{c} comoving distance.
A comoving distance: fixed as the universe expands, measured in coordinate units (Guth's notches). Unit: notch (Guth's comoving unit of length). Say it: “ell c”.
xx x.
The variable; in G(x), the upper limit of integration. Say it: “x”.
yy y.
The unknown function of a differential equation. Say it: “y”.
tt t.
The dummy variable of integration, running from a to x; in the cosmology note, cosmic time. Say it: “t”.
dd d.
As in dx and dt: the variable of integration; d/dx is the derivative. Say it: “d”.
ii i.
The label of a value in a sum. Say it: “i”.
nn n.
The number of values in a discrete average. Say it: “n”.
ee e.
Euler's number, e ≈ 2.718. Say it: “e”.
ff f.
A continuous function (the integrand). Say it: “f”.
FF F.
A function whose derivative F′ = f is known. Say it: “capital F”.
CC C.
The Fresnel integral C(x) = ∫₀ˣ cos(t²) dt. Say it: “capital C”.
bb b.
The upper limit of integration. Say it: “b”.
LL L.
The logarithm defined as an integral, L(x) = ∫₁ˣ dt/t. Say it: “L”.
y′y' y prime.
The derivative of y. Say it: “y prime”.
t′t' t prime.
In the cosmology note, the dummy time variable of the integral. Say it: “t prime”.
G′G' G prime.
The derivative of G, equal to f by the second fundamental theorem. Say it: “G prime”.
F′F' F prime.
The derivative of F, equal to f. Say it: “capital F prime”.
L′L' L prime.
The derivative of L, equal to 1/x. Say it: “L prime”.
C′C' C prime.
The derivative of the Fresnel integral C, equal to cos(x²). Say it: “capital C prime”.
J0J_{0} J nought.
The Bessel function of order zero. Say it: “J nought”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 37 words used here

New here

average value.
The integral of a function over an interval divided by the interval's length: the height of a rectangle with the same area.
limits of integration.
The two end values, lower and upper, between which a definite integral is taken: the a and b in the integral from a to b.
dummy variable.
The variable inside an integral or sum, which could be renamed without changing the result, like the t in ∫ f(t) dt.
transcendental.
Beyond algebra: a transcendental number, such as π or e, solves no polynomial equation with whole-number coefficients; ln x and eˣ are transcendental functions.
error function.
The function erf(x): the area under a bell curve from 0 to x, scaled so that it tends to 1; it has no simpler formula.
logarithmic integral.
The function Li(x), the integral of 1/ln t from 2 to x, which estimates how many prime numbers there are below x.

Also used

theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
continuous.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
Riemann sum.
An estimate of an integral: cut the interval into strips, multiply each strip's width by a value of the function in it, and add. Explained in Definite integrals and Riemann sums.
mean value theorem.
If a function is smooth between two points, somewhere between them its slope equals its average slope over the whole interval. Explained in The mean value theorem and inequalities.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
definite integral.
The integral of a function between two limits, a single number: the area under the graph between them, with parts below the axis counted negative. Explained in Definite integrals and Riemann sums.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
differential equation.
An equation that links an unknown function to its derivatives; solving it means finding the function. Explained in Circular motion dynamics: worked problems.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
normal distribution.
The bell-shaped probability curve, highest at the average and falling off equally on both sides; it describes many sums of random effects. Explained in Differential equations and separation of variables.
unit circle.
The circle of radius 1 centred at the origin; the point at angle θ on it is (cos θ, sin θ). Explained in Angles, radians and trigonometry.
statistics.
The mathematics of data and chance, or the averages, spreads and other numbers that describe how a random quantity behaves. Explained in Measuring structure: the power spectrum and the correlation function.
comoving distance.
The distance between two objects measured on the stretching grid of comoving coordinates, which does not change as the universe expands.
Big Bang.
The hot, dense early state from which the whole observable universe has been expanding for about 13.8 billion years. Explained in The Big Bang.
horizon distance.
The present distance of the farthest objects whose light has had time to reach us since the Big Bang. Explained in Inflation.
comoving.
Moving along with the expansion of the universe, or measured on a grid that stretches with it, so the expansion itself is divided out. Explained in The homogeneous expanding universe.
horizon problem.
The puzzle of why the cosmic microwave background has the same temperature in all directions, though those regions were never in contact. Explained in Inflation.
inflation.
A proposed burst of enormously fast expansion in the first tiny fraction of a second, which made the universe smooth and flat. Explained in Inflation.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
crude.
Rough and simple, accurate only to the general size of the answer.
underpin.
To support from below; to be the basis of.
derive.
To obtain a result by reasoning or calculation from other known results.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
significant.
In 'significant figures': the digits of a number that carry real information about its value.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

33 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. If G(x)=∫1xdtt2G(x) = \int_1^x \frac{dt}{t^2}, then G′(x)=G'(x) =
  2. ddx∫x5cos⁡(t2) dt=\dfrac{d}{dx}\int_x^5 \cos(t^2)\,dt =
  3. F′(x)=11+x2F'(x) = \frac{1}{1 + x^2} and F(0)=0F(0) = 0. Comparing with the largest and smallest values of F′F' on [0,1][0, 1] shows that F(1)F(1) lies between…
  4. What is the average value of x2x^2 on [0,3][0, 3]?
0 of 4 answered

Flashcards

1 / 3