Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 39 · Integrals

The Fundamental Theorem of Calculus

See how derivatives and integrals are inverse operations: both parts of the Fundamental Theorem of Calculus, with examples and code that checks them.

Computing a definite integral from the limit of Riemann sums is slow. There is a far better way, and it is one of the most important results in all of mathematics: the Fundamental Theorem of Calculus (FTC). It links the two big ideas of this course, derivatives (slopes) and integrals (areas), and shows that they undo each other.

Part 2: evaluating definite integrals

This is the part you will use most often. If f is continuous on [a, b] and F is any antiderivative of f (that is, F' = f), then:

Text
∫ from a to b of f(x) dx = F(b) - F(a)

To evaluate, find an antiderivative, plug in the top limit, plug in the bottom limit, and subtract. We write the subtraction using a bracket:

Text
∫ from a to b of f(x) dx = [F(x)] from a to b = F(b) - F(a)

The constant C is not needed: it cancels in the subtraction.

Example 1. Area under x² from 0 to 2. An antiderivative is x³/3.

Text
[x³/3] from 0 to 2 = 8/3 - 0 = 8/3

This is the same 8/3 ≈ 2.6667 that thousands of rectangles approached in the previous lesson.

Example 2. ∫ from 1 to 4 of (3x² - 2x) dx. An antiderivative is x³ - x².

Text
[x³ - x²] from 1 to 4 = (64 - 16) - (1 - 1) = 48

Example 3. ∫ from 0 to π of sin x dx = [-cos x] from 0 to π = -cos π - (-cos 0) = 1 + 1 = 2.

Python Evaluate definite integrals with the FTC

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Part 1: the derivative of an accumulation function

Fix a starting point a and define a new function that records the area collected so far:

Text
A(x) = ∫ from a to x of f(t) dt

Imagine sweeping a vertical line from a to the right; A(x) is the area swept out up to x. Part 1 of the FTC says:

Text
A'(x) = f(x)

The rate at which the area grows is exactly the height of the curve at the edge. That makes sense: nudge x to the right by a tiny h, and the area gains a thin strip of width h and height about f(x), so the area grows by about f(x) · h.

So differentiating an integral returns the original function. Integration followed by differentiation gets you back where you started, which is what we mean by "inverse operations".

Example. If A(x) = ∫ from 0 to x of (t² + 1) dt, then A'(x) = x² + 1 immediately, with no integration needed.

With the chain rule: if the upper limit is itself a function, d/dx ∫ from a to g(x) of f(t) dt = f(g(x)) · g'(x). For d/dx ∫ from 0 to x² of cos t dt = cos(x²) · 2x.

Python Watch the accumulation function grow

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The dashed line (the slope of A) lies on top of the cosine curve, which is Part 1 in action. Also notice that A rises where f > 0 and falls where f < 0; it has its peaks where f crosses zero.

Why it matters

Before the FTC, finding areas meant clever geometry or hard limits. After it, you can compute an exact area by differentiating backwards. Newton and Leibniz each recognized this connection in the 17th century, and it launched modern science and engineering. The theorem also tells us a definite integral of a rate of change gives the total change:

Text
∫ from a to b of F'(x) dx = F(b) - F(a)

If r(t) is the rate (in liters per minute) at which water flows into a tank, then ∫ from 0 to 10 of r(t) dt is the number of liters added in 10 minutes.

The FTC needs f to be continuous on [a, b]. Do not apply it blindly to something like ∫ from -1 to 1 of 1/x² dx: the function blows up at x = 0, so the naive answer -2 is wrong (the area is infinite).

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. By the FTC, ∫ from 1 to 3 of 2x dx equals

    An antiderivative is x². Then 3² - 1² = 9 - 1 = 8.
  2. 2. If A(x) = ∫ from 0 to x of sin(t) dt, what is A'(x)?

    Part 1 of the FTC: the derivative of the accumulated area is the integrand evaluated at x.
  3. 3. Why is the constant C not needed when evaluating a definite integral?

    (F(b) + C) - (F(a) + C) = F(b) - F(a).
  4. 4. What is d/dx of ∫ from 0 to x² of cos t dt?

    By Part 1 with the chain rule: f(g(x)) · g'(x) = cos(x²) · 2x.

Summary

  • Part 2: ∫ from a to b of f dx = F(b) - F(a) where F' = f.
  • Part 1: if A(x) = ∫ from a to x of f(t) dt then A'(x) = f(x).
  • Differentiation and integration are inverse processes.
  • The theorem requires f continuous on the interval.

Next: Integration by Substitution