math.wiki
Calculus › Integrals › The fundamental theorem of calculus › The first fundamental theorem of calculus
Open on the map
Calculus 1

The first fundamental theorem of calculus

An integral with a moving end point is a function of that end point. How fast does it change as the end point moves, and can that be found without ever computing the integral?

Where you are 2 in The fundamental theorem of calculus

When you reach for it

An integral \int_a^b f(t)\,dt is a number. Let the upper end move and it becomes a function: the amount built up from a to x. Pipaluk measures sea ice in a fjord. If r(t) is the rate at which the ice thickens, in centimeters per day, then \int_0^x r(t)\,dt is how much thicker the ice is on day x than on day 0. A natural question is how fast that amount changes as x moves.

The answer, the first fundamental theorem of calculus, is that the rate of change is the integrand at the moving end. You reach for it whenever an integral has a variable limit and you need its derivative, its tangent line, or its rising and falling, and especially when the integral itself cannot be written with the usual functions. It is the first half of the fundamental theorem of calculus, the link between the two halves of the subject.

The procedure

Day 1: the accumulation function

Let f be continuous on an interval I and let a be a fixed number in I. The accumulation function of f from a is

A(x) = \int_a^x f(t)\,dt \qquad \text{for } x \text{ in } I.

The input of A is the upper limit x. The letter t is a dummy variable (The definite integral as a limit of Riemann sums): it runs from a to x inside the integral and is gone once the integral is a number, so \int_a^x f(s)\,ds is the same function. A different letter is used for the dummy so that x has one job, the end point. For x < a the integral runs backward and \int_a^x = -\int_x^a; also A(a) = 0 (Signed area and integrals from geometry).

When the graph of f is made of lines and circles, values of A come from geometry: A(x) is the area above the axis minus the area below it, between t = a and t = x.

Day 1: the mean value theorem for integrals

Theorem. If f is continuous on [a, b] with a < b, there is a number c in [a, b] with

\int_a^b f(x)\,dx = f(c)\,(b - a).

In pictures: the region under the graph has the same signed area as a rectangle on [a, b] whose height is a value of f. That height, \displaystyle \frac{1}{b - a}\int_a^b f(x)\,dx, is the average value of f.

Proof. By the The extreme value theorem, f has an absolute minimum m = f(d) and an absolute maximum M = f(e) on [a, b]. Since m \le f(x) \le M there, the comparison property (Properties of definite integrals) gives

m(b - a) \le \int_a^b f(x)\,dx \le M(b - a).

Dividing by b - a > 0, the number \displaystyle \mu = \frac{1}{b - a}\int_a^b f(x)\,dx lies between f(d) and f(e). If d = e, then f is constant and any c works. Otherwise f is continuous on the closed interval between d and e, so the intermediate value theorem gives a c between them with f(c) = \mu. Multiplying by b - a gives the theorem. \blacksquare

Day 1: the first fundamental theorem

Theorem. Let f be continuous on an interval I containing a, and let A(x) = \int_a^x f(t)\,dt. Then A is differentiable at every x in I (one-sided at an end point of I), and

A'(x) = f(x), \quad \text{that is,} \quad \frac{d}{dx}\int_a^x f(t)\,dt = f(x).

Proof. Fix x in I and take h \ne 0 with x + h in I. Additivity splits off the new strip:

\begin{aligned} A(x + h) - A(x) &= \int_a^{x+h} f(t)\,dt - \int_a^{x} f(t)\,dt \\ &= \int_x^{x+h} f(t)\,dt. \end{aligned}
t y x c
x + h
y = f(t)
f(c)
Figure 1The strip has area A(x + h) - A(x), the same as a rectangle of width h and height f(c) for some c in the strip.

If h > 0, the mean value theorem for integrals on [x, x + h] gives a c_h in that interval with \int_x^{x+h} f(t)\,dt = f(c_h)\,h. If h < 0, it gives a c_h in [x + h, x] with \int_{x+h}^{x} f(t)\,dt = f(c_h)(-h), and reversing the limits gives again \int_x^{x+h} f(t)\,dt = f(c_h)\,h. Either way,

\frac{A(x + h) - A(x)}{h} = f(c_h), \qquad |c_h - x| \le |h|.

As h \to 0, x - |h| \le c_h \le x + |h| and both outer bounds tend to x, so c_h \to x by the squeeze theorem; because f is continuous at x, f(c_h) \to f(x). So the difference quotient has limit f(x), which is A'(x). \blacksquare

Two things follow at once. A differentiable function is continuous, so A is continuous on I. And A is an antiderivative of f: every continuous function has one, even when no formula for it exists.

Day 2: a function in the limit

If the upper limit is a differentiable function g(x) with values in I, then \int_a^{g(x)} f(t)\,dt = A(g(x)) is a composition, and the chain rule gives

\begin{aligned} \frac{d}{dx}\int_a^{g(x)} f(t)\,dt &= A'(g(x))\,g'(x) \\ &= f(g(x))\,g'(x). \end{aligned}

A variable lower limit is turned into an upper one by reversing: \int_{h(x)}^{b} f(t)\,dt = -\int_b^{h(x)} f(t)\,dt, whose derivative is -f(h(x))\,h'(x). With both limits variable, split at any constant c in I, which additivity allows in any order:

\int_{h(x)}^{g(x)} f(t)\,dt = \int_c^{g(x)} f(t)\,dt - \int_c^{h(x)} f(t)\,dt,
\begin{aligned} &\frac{d}{dx}\int_{h(x)}^{g(x)} f(t)\,dt \\ &\quad = f(g(x))\,g'(x) - f(h(x))\,h'(x). \end{aligned}

None of this requires a formula for the integral. The integrands e^{-t^2} and \sin(t^2) are continuous everywhere, but no antiderivative of either can be written with polynomials, roots, exponentials, logarithms and trigonometric functions. Their accumulation functions are new functions, and the theorem still gives their derivatives exactly.

Worked examples

Example 1

Day 1: Pipaluk’s sea ice

Pipaluk’s freezing rate r(t), in centimeters per day, is graphed below for 0 \le t \le 8; negative values mean the ice is thinning during a warm spell. Let A(x) = \int_0^x r(t)\,dt. Find A(2), A(4), A(5), A(6) and A(8), and find A'(3) and A'(7).

t y 2 4 6 8 3 2 −2
A(3)
y = r(t)
Figure 2The rate r(t), in centimeters per day. The shaded area is A(3) = \int_0^3 r(t)\,dt.
Solution

Each value is a signed area, built up left to right with additivity. From 0 to 2 the region is a triangle with base 2 and height 2, so A(2) = 2. From 2 to 4 it is a 2 by 2 square, so A(4) = 2 + 4 = 6. The graph crosses zero at t = 5; from 4 to 5 it encloses a triangle of area \displaystyle \frac{1}{2}(1)(2) = 1 above the axis, so A(5) = 7. From 5 to 6 a triangle of area 1 lies below, so A(6) = 7 - 1 = 6. From 6 to 8 a 2 by 2 rectangle lies below, so A(8) = 6 - 4 = 2. On day 8 the ice is 2 centimeters thicker than on day 0.

The rate r is continuous on [0, 8], so the first fundamental theorem applies: A'(3) = r(3) = 2 and A'(7) = r(7) = -2 centimeters per day. As a check on [0, 2], where r(t) = t, the shaded region is a triangle and \displaystyle A(x) = \frac{x^2}{2}, whose derivative is x = r(x). The thickening stops and reverses where r changes sign, at t = 5, where A is largest (Graphing an accumulation function takes this up).

Example 2

Day 1: Inuk finds the height of the matching rectangle

For each function, find every c promised by the mean value theorem for integrals.

(a) f(x) = x^2 on [1, 4], using \displaystyle \int_a^b x^2\,dx = \frac{b^3 - a^3}{3} from Properties of definite integrals.

(b) f(x) = |x - 1| on [0, 3].

Solution

(a) Here \displaystyle \int_1^4 x^2\,dx = \frac{64 - 1}{3} = 21, so f(c) \cdot 3 = 21 and c^2 = 7. Of \displaystyle c = \pm\sqrt{7} only \displaystyle c = \sqrt{7} \approx 2.646 lies in [1, 4].

(b) The graph is a V with its point at (1, 0): a triangle of area \displaystyle \frac{1}{2} on [0, 1] and a triangle of area \displaystyle \frac{1}{2}(2)(2) = 2 on [1, 3], so \displaystyle \int_0^3 |x - 1|\,dx = \frac{5}{2}. The average value is \displaystyle \frac{5/2}{3} = \frac{5}{6}, and \displaystyle |c - 1| = \frac{5}{6} gives \displaystyle c = \frac{1}{6} or \displaystyle c = \frac{11}{6}. Both lie in [0, 3], so here the theorem’s c is not unique.

Example 3

Day 1: Aqqaluk differentiates an integral he cannot compute

Let \displaystyle F(x) = \int_1^x \frac{\ln t}{t^2 + 1}\,dt for x > 0. Find F(1), F'(x), F'(e) and F''(1).

Solution

The integrand is continuous on (0, \infty), an interval containing the lower limit 1, so the theorem applies on all of (0, \infty). The integral from 1 to 1 has no width, so F(1) = 0. By the theorem,

F'(x) = \frac{\ln x}{x^2 + 1}, \qquad F'(e) = \frac{1}{e^2 + 1} \approx 0.1192.

The second derivative is the derivative of F', by the quotient rule:

\begin{aligned} F''(x) &= \frac{\frac{1}{x}(x^2 + 1) - 2x\ln x}{(x^2 + 1)^2}, \\ F''(1) &= \frac{2 - 0}{4} = \frac{1}{2}. \end{aligned}

At x = 1 the graph of F passes through (1, 0) with a horizontal tangent and bends upward.

Example 4

Day 1: an integrand with a corner

Let A(x) = \int_{-2}^{x} |t|\,dt. Find a formula for A(x) by geometry and confirm that A'(x) = |x| for every x, including x = 0.

Solution

For -2 \le x \le 0 the region from -2 to x is a trapezoid with parallel sides 2 and |x| = -x and width x + 2, so

A(x) = \frac{(x + 2)(2 - x)}{2} = \frac{4 - x^2}{2}.

For x < -2 the integral runs backward over a trapezoid with sides -x and 2 and width -2 - x, so \displaystyle A(x) = -\frac{(-2 - x)(2 - x)}{2}, which is again \displaystyle \frac{4 - x^2}{2}. For x \ge 0 add the triangle from 0 to x to the triangle of area 2 from -2 to 0: \displaystyle A(x) = 2 + \frac{x^2}{2}.

For x < 0, A'(x) = -x = |x|; for x > 0, A'(x) = x = |x|. At 0 both pieces have value 2, and the one-sided derivatives are -0 = 0 from the left and 0 from the right, so A'(0) = 0 = |0|. The function |t| has a corner at 0, yet A is smooth there: the theorem needs only continuity of f, and accumulating makes a function smoother by one derivative.

Example 5

Day 2: a limit inside the integral

Find (a) \dfrac{d}{dx}\displaystyle\int_0^{x^3} e^{-t^2}\,dt and (b) \displaystyle \dfrac{d}{dx}\displaystyle\int_{\sqrt{x}}^{4} \sin(t^2)\,dt for x > 0.

Solution

(a) The integrand is continuous everywhere. With u = x^3, the integral is A(u) with A(u) = \int_0^u e^{-t^2}\,dt, and the chain rule in Leibniz form gives \displaystyle \frac{dA}{du}\cdot\frac{du}{dx}:

\begin{aligned} \frac{d}{dx}\int_0^{x^3} e^{-t^2}\,dt &= e^{-(x^3)^2}\cdot 3x^2 \\ &= 3x^2 e^{-x^6}. \end{aligned}

(b) Reverse the limits so the variable one is on top, then use the chain rule with \displaystyle u = \sqrt{x}, \displaystyle \frac{du}{dx} = \frac{1}{2\sqrt{x}}:

\begin{aligned} &\frac{d}{dx}\left(-\int_4^{\sqrt{x}} \sin(t^2)\,dt\right) \\ &\quad = -\sin\big((\sqrt{x})^2\big)\cdot\frac{1}{2\sqrt{x}} = -\frac{\sin x}{2\sqrt{x}}. \end{aligned}

Neither integral has a formula in the usual functions, and neither derivative needed one.

Example 6

Day 2: both limits move

Let \displaystyle G(x) = \int_{\sin x}^{x^2} \sqrt{1 + t^2}\,dt. Find G'(x) and the tangent line to the graph of G at x = 0.

Solution

The integrand is continuous on all of \mathbb{R}. Split at 0, which additivity allows wherever \sin x and x^2 fall:

\begin{aligned} G(x) &= \int_0^{x^2} \sqrt{1 + t^2}\,dt \\ &\quad - \int_0^{\sin x} \sqrt{1 + t^2}\,dt. \end{aligned}

Each piece takes the chain rule:

G'(x) = 2x\sqrt{1 + x^4} - \cos x\,\sqrt{1 + \sin^2 x}.

At x = 0 both limits are 0, so \displaystyle G(0) = \int_0^0 \sqrt{1 + t^2}\,dt = 0, and G'(0) = 0 - 1 \cdot 1 = -1. The tangent line is y = -x.

Example 7

Day 2: what a jump does

Let f(t) = 1 for t < 2 and f(t) = 3 for t \ge 2, and let A(x) = \int_0^x f(t)\,dt on [0, 4]. Find A(x) and decide where A'(x) = f(x).

Solution

The function f is bounded with one jump, so it is integrable (The definite integral as a limit of Riemann sums) and A is defined. For 0 \le x \le 2 the region is a rectangle of height 1, so A(x) = x. For 2 \le x \le 4 add a rectangle of height 3 and width x - 2: A(x) = 2 + 3(x - 2) = 3x - 4. Both formulas give 2 at x = 2, so A has no break.

t y 2 4 1 3
y = f(t)
x y 2 4 2 8
y = A(x)
Figure 3A jump in f (left) becomes a corner in A(x) = \int_0^x f(t)\,dt (right).

On (0, 2), A'(x) = 1 = f(x), and on (2, 4), A'(x) = 3 = f(x): at every point where f is continuous the theorem holds. At x = 2 the difference quotient has limit 1 from the left and 3 from the right, so A'(2) does not exist, although f(2) = 3. The graph of A has a corner exactly where f jumps.

Boundaries

  • The theorem needs f continuous on an interval containing a and x. At a jump of f the accumulation function is still continuous but has a corner, and A' does not exist there (Example 7).
  • The proof uses continuity only at the point x itself, through f(c_h) \to f(x); continuity on the whole interval is what guarantees the mean value theorem for integrals on each strip.
  • The interval must not reach past a point where f is undefined. For \displaystyle \int_1^x \frac{dt}{t} the interval is (0, \infty); at x = -1 the integral would cross t = 0, where \displaystyle \frac{1}{t} is unbounded, and the formula \displaystyle \frac{1}{x} says nothing.
  • The chain rule version needs g differentiable and its values in I.
  • The variable x may appear only in the limits. If it also appears in the integrand, as in \int_0^x x\,f(t)\,dt, take it outside first (Exercise 23).
  • The mean value theorem for integrals needs continuity on the closed interval (Exercise 13), and its c need not be unique (Example 2).

Where this goes next

The theorem shows that every continuous function has an antiderivative, namely its accumulation function. Since any two antiderivatives on an interval differ by a constant, any antiderivative F of f satisfies \int_a^b f(x)\,dx = F(b) - F(a), which is the second fundamental theorem: integrals computed in a line instead of by limits of sums. Where a rate is given, accumulation and net change reads A as a total amount, and Graphing an accumulation function uses A' = f to find where the amount is largest. The functions \int_0^x e^{-t^2}\,dt and \int_0^x \sin(t^2)\,dt, defined only by integrals, become standard functions of their own in probability and in optics.

Exercises

Day 1: values from a graph

Let B(x) = \int_0^x g(t)\,dt, with g graphed below.

t y 1 2 3 5 6 7 4 2 −2
y = g(t)
Figure 4The graph of g for Exercises 1 to 4.
  1. Find B(2) and B(4).
  2. Find B(5) and B(7).
  3. Find B'(1), B'(4.5) and B'(6).
  4. Let C(x) = \int_4^x g(t)\,dt. Find C(0) and C(7).

Day 1: the mean value theorem for integrals

  1. Find every c for f(x) = x^2 on [-1, 2], using \displaystyle \int_a^b x^2\,dx = \frac{b^3 - a^3}{3}.
  2. Find every c for f(x) = 2x + 1 on [1, 4], computing the integral as a trapezoid.

Day 1: derivatives of accumulation functions

  1. Find \displaystyle \dfrac{d}{dx}\displaystyle\int_3^x \sqrt{t^2 + 7}\,dt and its value at x = 3.
  2. Find \dfrac{d}{dx}\displaystyle\int_0^x \cos(t^3)\,dt and its value at \displaystyle x = \sqrt[3]{\pi}.
  3. Let \displaystyle H(x) = \int_1^x \frac{e^t}{t}\,dt for x > 0. Find the tangent line to the graph of H at x = 1.
  4. Let \displaystyle F(x) = \int_0^x \frac{t - 1}{t^2 + 1}\,dt. Find F'(0) and F''(0).

Day 1: reasoning

  1. Explain why \int_2^x \cos(t^3)\,dt and \int_2^x \cos(s^3)\,ds are the same function of x, and why \int_2^x \cos(x^3)\,dx is a poor way to write it.
  2. Let f be continuous on \mathbb{R}, A(x) = \int_a^x f(t)\,dt and P(x) = \int_b^x f(t)\,dt. Show that A - P is a constant, and name it.
  3. Let f(x) = 0 for 0 \le x < 1 and f(x) = 2 for 1 \le x \le 2. Show that no c in [0, 2] satisfies \int_0^2 f(x)\,dx = 2f(c), and say which hypothesis fails.

Day 2: chain rule and two variable limits

  1. Find \dfrac{d}{dx}\displaystyle\int_0^{x^2} \sin(t^2)\,dt.
  2. Find \displaystyle \dfrac{d}{dx}\displaystyle\int_{\cos x}^{1} \sqrt{1 + t^4}\,dt.
  3. Find \dfrac{d}{dx}\displaystyle\int_1^{e^x} \ln t\,dt and simplify.
  4. Find \displaystyle \dfrac{d}{dx}\displaystyle\int_x^{3x} \frac{1}{t}\,dt for x > 0, and say what the answer means about the integral.
  5. Find \dfrac{d}{dx}\displaystyle\int_{-x}^{x} \cos(t^2)\,dt.
  6. Let \displaystyle G(x) = \int_{x^2}^{x^3} \frac{1}{1 + t^4}\,dt. Find G'(1).
  7. Evaluate \displaystyle \displaystyle\lim_{h \to 0} \frac{1}{h}\int_2^{2+h} \sqrt{1 + t^3}\,dt.
  8. Find the tangent line to the graph of \displaystyle y = \int_1^{x^2} \frac{\cos(\pi t)}{t}\,dt at x = 1.
  9. Let f(t) = 2 for t < 1 and f(t) = -1 for t \ge 1, and A(x) = \int_0^x f(t)\,dt on [0, 3]. Find A(x), A(3), and A'(x) wherever it exists.

Day 2: reasoning

  1. Let F(x) = \int_0^x x\sin(t^2)\,dt. Find F'(x), and explain why it is not x\sin(x^2).
  2. Prove that \dfrac{d}{dx}\displaystyle\int_{h(x)}^{b} f(t)\,dt = -f(h(x))\,h'(x) for f continuous and h differentiable, from the first fundamental theorem.
  3. Let f be integrable on [a, b] with |f(t)| \le M there, and A(x) = \int_a^x f(t)\,dt. Show that |A(x + h) - A(x)| \le M|h|, and conclude that A is continuous even where f jumps.
Answers
  1. B(2) = \pi, B(4) = 2\pi. Each half of the semicircle of radius 2 is a quarter circle of area \displaystyle \frac{1}{4}\pi(2^2) = \pi.
  2. B(5) = 2\pi - 1, B(7) = 2\pi - 5 \approx 1.283. From 4 to 5 a triangle of area 1 lies below the axis; from 5 to 7 a 2 by 2 rectangle lies below.
  3. \displaystyle B'(1) = g(1) = \sqrt{4 - 1} = \sqrt{3}; B'(4.5) = g(4.5) = -1, halfway down the segment from 0 to -2; B'(6) = -2.
  4. C(0) = -\int_0^4 g(t)\,dt = -2\pi; C(7) = -1 - 4 = -5.
  5. c = -1 or c = 1. The integral is \displaystyle \frac{8 + 1}{3} = 3, so the average is 1 and c^2 = 1; both values lie in [-1, 2].
  6. \displaystyle c = \frac{5}{2}. The trapezoid has sides 3 and 9 and width 3, area 18, so 2c + 1 = 6. For a linear function c is the midpoint.
  7. \displaystyle \sqrt{x^2 + 7}, which is \displaystyle \sqrt{16} = 4 at x = 3.
  8. \cos(x^3), which is \cos \pi = -1 at \displaystyle x = \sqrt[3]{\pi}.
  9. y = e(x - 1). H(1) = 0 and \displaystyle H'(1) = \frac{e^1}{1} = e.
  10. F'(0) = -1, F''(0) = 1. \displaystyle F'(x) = \frac{x - 1}{x^2 + 1}, and the quotient rule gives \displaystyle F''(x) = \frac{1 + 2x - x^2}{(x^2 + 1)^2}.
  11. The integration variable is a dummy: both integrals add up the same values \cos(u^3) for u from 2 to x, so they agree for every x. In \int_2^x \cos(x^3)\,dx the letter x would be both the fixed end point and the moving variable, two jobs for one name.
  12. By additivity, A(x) = \int_a^b f(t)\,dt + \int_b^x f(t)\,dt, so A(x) - P(x) = \int_a^b f(t)\,dt, the same for every x. (Also A' - P' = f - f = 0.)
  13. \int_0^2 f(x)\,dx = 2, a rectangle of height 2 on [1, 2], so f(c) would have to be 1; but f takes only the values 0 and 2. Continuity on [0, 2] fails at x = 1.
  14. 2x\sin(x^4), since \sin\big((x^2)^2\big)\cdot 2x.
  15. \displaystyle \sin x\,\sqrt{1 + \cos^4 x}. Reversing gives \displaystyle -\sqrt{1 + \cos^4 x}\cdot(-\sin x).
  16. x e^x. The integrand is continuous on (0, \infty), which holds 1 and e^x, and \ln(e^x)\cdot e^x = x e^x.
  17. 0. The derivative is \displaystyle \frac{1}{3x}\cdot 3 - \frac{1}{x} = 0, so the integral has the same value for every x > 0.
  18. 2\cos(x^2). It is \cos(x^2)\cdot 1 - \cos\big((-x)^2\big)\cdot(-1).
  19. \displaystyle \frac{1}{2}. \displaystyle G'(x) = \frac{3x^2}{1 + x^{12}} - \frac{2x}{1 + x^8}, so \displaystyle G'(1) = \frac{3}{2} - 1.
  20. 3. The expression is \displaystyle \frac{A(2 + h) - A(2)}{h} for \displaystyle A(x) = \int_2^x \sqrt{1 + t^3}\,dt, whose limit is \displaystyle A'(2) = \sqrt{9}.
  21. y = -2(x - 1). At x = 1 the integral is 0, and \displaystyle y' = \frac{\cos(\pi x^2)}{x^2}\cdot 2x is 2\cos\pi = -2 there.
  22. A(x) = 2x on [0, 1] and A(x) = 3 - x on [1, 3]; A(3) = 0. A'(x) = 2 on (0, 1) and -1 on (1, 3); at 1 the one-sided derivatives are 2 and -1, so A'(1) does not exist.
  23. F'(x) = \int_0^x \sin(t^2)\,dt + x\sin(x^2). Inside the integral x is a constant, so F(x) = x\int_0^x \sin(t^2)\,dt, a product, and the product rule adds the first term.
  24. Reversing the limits, \int_{h(x)}^{b} f(t)\,dt = -A(h(x)) with A(u) = \int_b^u f(t)\,dt. The theorem gives A' = f, and the chain rule gives the derivative -f(h(x))\,h'(x).
  25. By additivity A(x + h) - A(x) = \int_x^{x+h} f(t)\,dt, and comparison with -M \le f \le M bounds it by M|h| in size. As h \to 0, M|h| \to 0, so A(x + h) \to A(x): no continuity of f is used.
unattributed · CC-BY-SA-4.0