Start the course

Integrals

The Fundamental Theorem of Calculus, explained

8 min readUpdated

Quick answer

The Fundamental Theorem of Calculus connects derivatives and integrals. Part 1: the derivative of an area function is the original function, ddx∫axf(t)dt= f(x). Part 2: to evaluate a definite integral, find any antiderivative F of f and subtract: ∫abf(x)dx= F(b)−F(a).

Key points
  • Part 1 says integration and differentiation undo each other: the rate at which area accumulates is the height of the curve.
  • Part 2 turns a limit of sums into one subtraction, F(b)−F(a), using any antiderivative.
  • With an upper limit like x3 instead of x, Part 1 needs the chain rule: multiply by the derivative of the upper limit.
  • The integral gives net area; for total area, split the interval where the function changes sign.

Why is it called the fundamental theorem?

Calculus has two big ideas that look unrelated. The derivative measures a rate of change, like a slope. The definite integral measures an accumulated total, like an area, defined as a limit of sums of thin rectangles. The Fundamental Theorem of Calculus shows that these are two sides of one idea, each undoing the other. That's what makes integrals practical: instead of adding up rectangles, you can evaluate them with antiderivatives.

What is an area function?

Fix a starting point a and let the right edge x move. The area under the curve y=f(t) from a to x is then a function of x, called an area function:

g(x)=∫axf(t)dt

The letter inside changes to t only so that x can name the moving edge; t is just the variable along the axis.

123450.511.522.5area g(x)moving edge at x
The area function g(x) is the shaded area under y=f(t) from a fixed start to the moving edge at x.

What does Part 1 of the Fundamental Theorem say?

The Fundamental Theorem of Calculus, Part 1
If f is continuous, then ddx∫axf(t)dt= f(x).
Why it works
  1. Move the edge from x to x+h. The extra area g(x+h)−g(x) is a thin strip of width h.
  2. Over that thin strip, f barely changes, so the strip is almost a rectangle of height f(x): its area is about f(x)⋅h.
  3. So g(x+h)−g(x)h≈f(x)⋅hh= f(x), and the approximation becomes exact as h→0.
  4. The left side is the difference quotient, so its limit is g′(x). Therefore g′(x)=f(x).

In words: the rate at which area accumulates is the height of the curve at the moving edge. So the area function is an antiderivative of f, a function whose derivative is f. No integrating is needed to use Part 1.

Worked example: Part 1 directly

Find ddx∫2xt1+t2dt.

  1. The lower limit is a constant and the upper limit is plain x, so Part 1 applies directly.
  2. Replace t by x in the integrand.

Answer: x1+x2

If the upper limit is a function of x, like x3, the area function is a composite, so the chain rule adds a factor: put the upper limit into the integrand, then multiply by the derivative of the upper limit.

Worked example: Part 1 with the chain rule

Find ddx∫1x3ln⁡tdt for x>0.

  1. Put the upper limit x3 into the integrand: ln⁡(x3).
  2. Multiply by the derivative of the upper limit, 3x2: ln⁡(x3)⋅3x2.
  3. Simplify with ln⁡(x3)=3ln⁡x: 3ln⁡x⋅3x2= 9x2ln⁡x.

Answer: 9x2ln⁡x

Common mistake

Integrating first, or forgetting the chain rule factor. Part 1 needs no antiderivative at all, and when the upper limit isn't plain x the answer must include its derivative. If x is the lower limit, flip the limits first, which flips the sign.

What does Part 2 of the Fundamental Theorem say?

The Fundamental Theorem of Calculus, Part 2
If f is continuous on [a,b] and F is any antiderivative of f (so F′=f), then ∫abf(x)dx= F(b)−F(a).
Why it works
  1. By Part 1, the area function g(x)= ∫axf(t)dt is an antiderivative of f.
  2. Two antiderivatives of the same function differ by a constant (their difference has derivative 0), so F(x)=g(x)+C.
  3. Then F(b)−F(a)= (g(b)+C)−(g(a)+C)= g(b)−g(a).
  4. And g(b)= ∫abf(t)dt while g(a)= ∫aaf(t)dt= 0. So F(b)−F(a)= ∫abf(t)dt.

The difference F(b)−F(a) is often written [F(x)]ab. Any antiderivative works, so the +C can be left out: it would cancel in the subtraction anyway.

Worked example: A polynomial

Evaluate ∫13(3x2−2x+ 1)dx.

  1. Antiderivative, term by term with the power rule in reverse (xn→xn+1n+1): F(x)=x3−x2+x.
  2. F(3)=27−9+3=21.
  3. F(1)=1−1+1=1.
  4. F(3)−F(1)=21−1=20.

Answer: 20

Worked example: A trig function

Evaluate ∫0πsin⁡xdx.

  1. An antiderivative of sin⁡x is −cos⁡x, because ddx(−cos⁡x)= sin⁡x.
  2. [−cos⁡x]0π= −cos⁡π−(−cos⁡0).
  3. =−(−1)+1=2.

Answer: 2: the area under one arch of the sine curve.

Worked example: A logarithm

Evaluate ∫1e1xdx.

  1. An antiderivative of 1x is ln⁡|x|.
  2. ln⁡e−ln⁡1=1−0=1.

Answer: 1

Common mistake

Subtracting in the wrong order. It's always the top limit minus the bottom limit: F(b)−F(a). Also, the theorem needs f continuous on the whole interval: ∫−111x2dx can't be done this way, because 1x2 blows up at x=0.

How do you find total area instead of net area?

The definite integral counts area below the x-axis as negative. To find the total area between a graph and the axis, find where the function changes sign, integrate over each piece separately, and add the sizes, ignoring signs.

Worked example: Net area and total area

For f(x)=x2−2x−3 on [0,4], find ∫04f(x)dx and the total area between the graph and the x-axis.

  1. Factor: f(x)=(x−3)(x+1), so on [0,4] it is 0 at x=3: negative on [0,3] and positive on [3,4].
  2. Antiderivative: F(x)= x33−x2−3x.
  3. F(0)=0, F(3)=9−9−9=−9, and F(4)= 643−16−12= 643−28= −203.
  4. From 0 to 3: F(3)−F(0)=−9, an area of 9 below the axis.
  5. From 3 to 4: F(4)−F(3)= −203+9= 73, above the axis.
  6. Net: −9+73= −203. Total: 9+73= 343.

Answer: The integral is −203; the total area is 343.

1234-4-224area 9 (below)area 7/3
y=x2−2x−3 on [0,4]: the region below the axis (area 9) outweighs the region above it (area 73), so the integral is negative.
Tip

For velocity, the same distinction separates displacement (the integral of velocity: where you end up relative to the start) from total distance traveled (the integral of speed, found by splitting where the velocity changes sign).

When no antiderivative is obvious, the most common technique in a first course is u-substitution, which reverses the chain rule.

Learn it step by step

The full lessons in the course explain this from the ground up, with graphs, worked examples, and practice problems that each have a complete worked solution.

Open the lesson

Frequently asked questions

What are the two parts of the Fundamental Theorem of Calculus?

Part 1: the derivative of ∫axf(t)dt is f(x). Part 2: ∫abf(x)dx= F(b)−F(a) for any antiderivative F of f.

Why don't you need +C in a definite integral?

Because it cancels: (F(b)+C)−(F(a)+C)= F(b)−F(a). Any antiderivative gives the same answer.

How do you take the derivative of an integral with x in the upper limit?

Put the upper limit into the integrand and multiply by the upper limit's derivative. If the upper limit is plain x, that factor is 1.

Why is the Fundamental Theorem of Calculus important?

It shows that differentiation and integration undo each other, and it lets you evaluate integrals exactly with antiderivatives instead of limits of sums.

Can the result of a definite integral be negative?

Yes, when more of the area lies below the x-axis than above it. The integral is a net signed area.