The Fundamental Theorem of Calculus
Differentiation and integration look like two separate topics. One measures how fast something changes, the other accumulates quantities such as area. The Fundamental Theorem of Calculus shows that they are inverse operations, and this one fact is what makes most integral computations practical.
If you want to check any of the calculations below as you read, you can use the integral calculator, which shows step-by-step solutions. For the wider picture of methods, see How to Solve Integrals Step by Step.
Intuition: integral and derivative as inverse operations
Think about a car. Let v(t) be its speed at time t. The distance travelled from time a to time x is the accumulated speed:
D(x) = \int_a^x v(t)\,dt
Now ask how fast this distance is growing at the moment x. Obviously it grows at the current speed, v(x). In symbols:
D'(x) = v(x)
Integrating speed gives distance, and differentiating distance gives speed back. That is the whole idea of the theorem. If you need a refresher on what the integral itself measures, read What Is an Integral.
The two parts in plain language
Textbooks number the parts differently, and some swap them. Here we use the most common convention.
Part 1 says that if you build a function by integrating f from a fixed point up to a variable endpoint, differentiating that function returns f.
Part 2 says that to compute a definite integral, you only need an antiderivative of f and its values at the two endpoints.
Both parts assume that f is continuous on the interval [a, b].
| Statement | What it tells you | |
|---|---|---|
| Part 1 | If F(x) = \int_a^x f(t)\,dt, then F'(x) = f(x) | An integral with a variable upper limit is differentiable, and its derivative is the integrand |
| Part 2 | If F'(x) = f(x), then \int_a^b f(x)\,dx = F(b) - F(a) | A definite integral equals the change in any antiderivative |
A common shorthand for the difference in Part 2 is:
\int_a^b f(x)\,dx = \Big[F(x)\Big]_a^b = F(b) - F(a)
A useful extension: variable limits and the chain rule
If the upper limit is not x but a function g(x), Part 1 combines with the chain rule:
\frac{d}{dx}\int_a^{g(x)} f(t)\,dt = f\big(g(x)\big)\cdot g'(x)
You evaluate the integrand at the upper limit, then multiply by the derivative of that limit.
Why it matters: definite integrals without sums
Before this theorem, the only way to find an area was the definition of the integral as a limit of Riemann sums:
\int_a^b f(x)\,dx = \lim_{n\to\infty}\sum_{i=1}^{n} f(x_i^*)\,\Delta x
Even for f(x) = x^2 this takes real effort, and for most functions it is hopeless by hand.
Part 2 replaces the limit of sums with a short procedure:
- Find an antiderivative F of the integrand.
- Compute F(b) and F(a).
- Subtract: F(b) - F(a).
All the work moves into finding antiderivatives, which is why integration techniques matter so much. The full procedure for definite integrals is covered in How to Evaluate Definite Integrals.
Example 1: the derivative of an integral
Variable upper limit
Let
F(x) = \int_0^x \sin(t^2)\,dt
Find F'(x).
The function \sin(t^2) has no antiderivative that can be written with elementary functions, so you cannot integrate first and differentiate afterwards. You do not need to. The integrand is continuous, so Part 1 applies directly:
F'(x) = \sin(x^2)
This is a nice illustration of Part 1: you can know the derivative of a function exactly without having a formula for the function itself.
Upper limit that is a function
Now find
\frac{d}{dx}\int_0^{x^2} \cos t\,dt
Here g(x) = x^2, so g'(x) = 2x and f(t) = \cos t. By the chain rule version of Part 1:
\frac{d}{dx}\int_0^{x^2} \cos t\,dt = \cos(x^2)\cdot 2x = 2x\cos(x^2)
Check. This integrand is easy to integrate directly, so we can verify the answer:
\int_0^{x^2} \cos t\,dt = \Big[\sin t\Big]_0^{x^2} = \sin(x^2) - \sin 0 = \sin(x^2)
Differentiating with the chain rule gives \cos(x^2)\cdot 2x, which matches.
Example 2: evaluating a definite integral
Compute
\int_0^2 (x^3 - 3x)\,dx
Step 1. Find an antiderivative. Use the power rule term by term:
F(x) = \frac{x^4}{4} - \frac{3x^2}{2}
For a definite integral we do not need + C, and the next section explains why.
Step 2. Evaluate at the endpoints.
F(2) = \frac{2^4}{4} - \frac{3\cdot 2^2}{2} = 4 - 6 = -2
F(0) = 0 - 0 = 0
Step 3. Subtract.
\int_0^2 (x^3 - 3x)\,dx = F(2) - F(0) = -2 - 0 = -2
Check. Differentiate the antiderivative:
F'(x) = x^3 - 3x
This is the original integrand, so the antiderivative is correct.
Interpretation. The result is negative because x^3 - 3x = x(x^2 - 3) is negative on (0, \sqrt{3}) and positive only on (\sqrt{3}, 2]. The area below the axis is larger than the area above it, so the net signed area is -2.
You can check this step by step in the integral calculator.
Common mistakes
Applying the theorem across a discontinuity
Both parts require f to be continuous on the whole interval. If it is not, the formula can produce nonsense. Consider:
\int_{-1}^{1}\frac{1}{x^2}\,dx
A careless computation gives
\Big[-\frac{1}{x}\Big]_{-1}^{1} = -1 - 1 = -2
But \frac{1}{x^2} is positive everywhere, so its integral cannot be negative. The function is not defined at x = 0 and grows without bound near it, and the integral actually diverges. Always check for points inside [a, b] where the integrand breaks down before substituting the limits.
Mishandling the constant
There are two opposite errors here.
- Forgetting + C in an indefinite integral. An indefinite integral is a whole family of functions, so the answer must include the constant:
\int (x^3 - 3x)\,dx = \frac{x^4}{4} - \frac{3x^2}{2} + C
- Worrying about C in a definite integral. If you did add it, it cancels in the subtraction:
\big(F(b) + C\big) - \big(F(a) + C\big) = F(b) - F(a)
So any antiderivative works, and the simplest one, with C = 0, is the best choice.
In Part 1, the constant is not free. The function F(x) = \int_a^x f(t)\,dt is the one specific antiderivative with F(a) = 0.
Forgetting the chain rule
For \frac{d}{dx}\int_0^{x^2} \cos t\,dt, writing just \cos(x^2) is wrong. The factor 2x from the upper limit is required.
Mixing up the order of subtraction
The result is always upper minus lower: F(b) - F(a). Swapping them flips the sign. If a > b is allowed in the problem, remember that \int_a^b f\,dx = -\int_b^a f\,dx.
Summary
- Part 1: differentiating \int_a^x f(t)\,dt with respect to x gives f(x).
- Part 2: \int_a^b f(x)\,dx = F(b) - F(a) for any antiderivative F of f.
- With a function as the upper limit, multiply by its derivative (chain rule).
- Check continuity first, and remember that C cancels in definite integrals but never in indefinite ones.
To practice the full workflow, continue with How to Evaluate Definite Integrals, or return to How to Solve Integrals Step by Step for an overview of all methods.