What is the fundamental theorem of calculus?
Last updated: 2026-11-26
The fundamental theorem of calculus is the statement that the two big operations of calculus, differentiating and integrating, reverse each other: the area accumulated under a function f grows at rate f, so the integral of f across an interval equals the change of any antiderivative across it. That second half is the license you use each time you evaluate a definite integral by antidifferentiating. The trap is silent: the shortcut feels like a rule of notation, and it is in fact a theorem with conditions, one you can check by going back to the rectangles.
Start learning No account needed
1. The two parts, and what each one is for
The theorem comes in two parts, and they answer different questions. The first part hands you a new function: for a continuous f, define A(x) as the integral from a fixed starting point up to x, the area collected so far. Then A is differentiable and A'(x) = f(x), so A is an antiderivative of f. Differentiate the area function and you get back the curve you started with, which is why Wikipedia says that, roughly speaking, differentiation and integration "can be thought of as inverses of each other". The second part is the evaluation rule: the integral of f over a fixed interval equals the change of any antiderivative across that interval, so you compute a definite integral without ever building the rectangles. The Wikipedia article notes that this second part is also named for Newton and Leibniz.
One warning about names before any exam: the mathematics literature has not settled which part deserves the label "first". The article says so in plain terms and describes textbooks that assign the names differently. So on an exam, name the statement you mean, not the number. A useful picture for the pair is a car driving forward, with a speedometer and an odometer. The first part says that if you accumulate the speed over time, the running total grows at the current speed. The second says that adding up the speed over a trip gives the same number as the change in the odometer reading.
2. A worked example: x squared from 0 to 3
Take f(x) = x^2 on x = 0 to x = 3, and compute the definite integral two ways: by the shortcut and by rectangles. Because f grows across the whole interval, the n = 3 left rectangles sit below the true area and the right rectangles above it, which brackets the answer before any antiderivative enters. The script runs the comparison, then shrinks the rectangle width by factors of 10 until the sum is a hair from 9:
Output from the script scripts/what-is-the-fundamental-theorem-of-calculus-worked-example.py:
The definite integral of f(x) = x^2 from x = 0 to x = 3, computed
two ways: by an antiderivative, and by Riemann sums.
Way 1, the antiderivative shortcut. F(x) = x^3/3, so
F(3) - F(0) = 9.000000 - 0.000000 = 9.000000
Way 2, rectangles first. f grows on the whole interval, so at n = 3
the left sum sits below the integral and the right sum above it:
left n = 3: 5.000000 (underestimate)
right n = 3: 14.000000 (overestimate)
the antiderivative answer 9.000000 sits between them; midpoint
n = 3 already lands at 8.750000
Finer rectangles close in on 9.000000. Each factor of 10 in n cuts
the gap by a factor of about 100, because the gap behaves like
1 over n squared:
midpoint n = 30: 8.997500, gap 0.00250000
midpoint n = 300: 8.999975, gap 0.00002500
midpoint n = 3000: 9.000000, gap 0.00000025
Why any antiderivative works. Add a constant to F and the change
over the interval stays the same, because the constant cancels:
F(x) = x^3/3 with constant +0.0: F(3) - F(0) = 9.000000
F(x) = x^3/3 with constant +7.0: F(3) - F(0) = 9.000000
F(x) = x^3/3 with constant -4.5: F(3) - F(0) = 9.000000
The first part is what ties the two ways together. Build the area
function A(x) = the integral from 0 to x of f, out of fine midpoint
rectangles, then ask how fast A grows. The difference quotient of A
lands on f itself:
x = 1: A(1) = 0.333333, A' by difference quotient = 1.0010, f(x) = 1.0000
x = 2: A(2) = 2.666667, A' by difference quotient = 4.0020, f(x) = 4.0000
x = 3: A(3) = 9.000000, A' by difference quotient = 9.0030, f(x) = 9.0000
Cross-check: the fine area function gives A(3) = 9.000000, matching
the antiderivative answer 9.000000. The shortcut is allowed because
the area function is itself an antiderivative, so the antiderivative
shortcut and the area definition agree.
checks passed
The table in the middle carries the point a formula sheet omits: at n = 300 the midpoint sum is 8.999975, 25 millionths below the antiderivative answer, and the gap shrinks by about a factor of 100 each time n gains a zero. The Wikipedia Riemann sum article states the bracket rule the example uses: for a continuous, increasing function, "a right Riemann sum overestimates the integral by the largest amount", and a left sum falls furthest below it. The antiderivative answer lands inside that bracket, which is the numerical promise of the theorem made visible.
3. Why the shortcut is allowed
The chain runs from the definition to the rule. The definite integral is defined as a limit of sums of rectangles; that definition is what the Riemann sums in the example approximate. The first part says the area function A(x), built from those sums, differentiates back to f. Now suppose F is any antiderivative of f. Then A and F rise at the same rate, so they differ by a constant, and a constant contributes nothing to a change: A(b) - A(a) = F(b) - F(a). The left side is the integral by definition; the right side is the shortcut. The script shows the cancellation concretely: F(x) = x^3/3 with a constant of +7 or -4.5 gives F(3) - F(0) = 9.000000 in each case, which is why any one antiderivative will do.
Conditions ride along. The first part, as stated above, asks f to be continuous on the closed interval. For the second, the article asks for F to be continuous on that interval with F' = f inside it, and for f to be Riemann integrable; a continuous f with an antiderivative on the interval meets this. Check before you swap. For f(x) = 1/x^2 from -1 to 1, writing F(x) = -1/x and subtracting gives -1 - 1 = -2, a negative result for a function that is positive wherever it is defined. The theorem does not apply, because f is undefined and unbounded at x = 0.
4. A common misconception: the shortcut is the definition
The most common damage from a silent theorem is treating F(b) - F(a) as what a definite integral means. It is not the meaning; it is a consequence, and it can fail you in two ways. First, some continuous functions, such as e to the power of minus x squared, have an antiderivative that cannot be written in a simpler elementary form. For those, the shortcut gives you no number to plug into, so you estimate the value with sums or a numerical rule built on the same idea. Wikipedia's Riemann sum article notes drily that when the example function has an easy antiderivative, estimating by sums is "mostly an academic exercise"; the exercise becomes practical exactly when the antiderivative is missing.
Second, the direction of the swap trips people in reverse. The theorem does not say a definite integral is an antiderivative; it says the integral, a number, equals a change in antiderivative values. Mixing the number with the function is the same slip as mixing a distance with a speedometer reading. A quick check that catches both: ask yourself whether your answer is a function of x or a number. A definite integral across a fixed interval is a number, 9.000000 in the example, and if your answer still has an x in it, you have computed something else.
5. Test yourself
Work each question on paper first, then open the answer.
Question 1. F(x) = x^3/3 and G(x) = x^3/3 + 5 both claim to evaluate the integral of x^2 from 0 to 3. Do they agree, and why?
Answer to question 1
They agree. G(3) - G(0) = 9 + 5 - 5 = 9, the same as F(3) - F(0) = 9, because the constant cancels in the change. The script runs the same check with constants 0, +7 and -4.5, and the answer stays 9.000000 in each case.
Question 2. You need the definite integral of e to the power of minus x squared from 0 to 1, and you have no elementary formula for an antiderivative. What does the theorem's first part still let you say about the area function?
Answer to question 2
The evaluation shortcut does not produce a number, since it needs a formula you can evaluate at both ends. The first part still holds: the area function exists, and its rate of change is e to the power of minus x squared at each point. You can compute the integral as finely as you need with sums, which is what numerical integration does.
Question 3. In one sentence: what does the first part say, and what does the second part say?
Answer to question 3
First part: the area function A(x), built by integrating from a fixed point up to x, grows at rate f, so A'(x) = f(x). Second part: the integral of f from a to b equals the change F(b) - F(a) of any antiderivative F, so the number comes without building rectangles.
To check your answers without help, see how to test yourself. For the course this sits in, see how to study for calculus, for the wider study questions around the topic, see why is calculus so hard, and for the differentiation side of the pair, see how to remember derivatives of trig functions.
What the sources found, and their limits
Wikipedia, "Fundamental theorem of calculus". It states the two parts, with the first as the area function claim F'(x) = f(x) and the second as the evaluation rule, notes that the second part is also named for Newton and Leibniz, and records that the literature has not settled which part gets the label "first". It uses a car with a speedometer as an illustration, states the conditions for each part, and says the second part should not be read as the definition of the integral. Source: Fundamental theorem of calculus, read on 2026-11-25.
Wikipedia, "Riemann sum". It defines the left, right, midpoint and trapezoidal rules, states that for a continuous, increasing function the right sum errs furthest above the integral and the left sum furthest below, gives an error bound for the midpoint rule that shrinks like 1 over n squared, and that the average of the left and right sums is the trapezoidal rule. The example's bracket and convergence rate agree with that discussion. Source: Riemann sum, read on 2026-11-25.
Limits: two encyclopedia articles, not course texts, and this page does not derive the midpoint error bound; the script shows the rate numerically. The worked example, the script and the difference-quotient table are ours, computed for this page; the 1/x^2 example is ours too, and the quoted phrases were checked against the articles. Both articles are CC BY-SA.
How Professor Turing helps
Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start.
Bring the step you are stuck on, such as why the constant cancels or what the area function has to do with the shortcut. Its first reply asks what you already know before it teaches anything. If you answer with a bare guess, it asks how you got there instead of saying right or wrong, and when you stay stuck it changes its approach and makes the next step smaller instead of handing over the answer. Later in a session it can offer a short test without help, scored apart from the tutoring, so you can tell what you can do alone from what the tutor carried you through. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.
FAQ
What does the first part of the theorem say? It is about the area function. For a continuous f, define A(x) as the integral from a fixed point up to x. The first part says A grows at rate f: A'(x) = f(x), so the area function is itself an antiderivative of f. In the worked example, A(2) = 2.666667, and the difference quotient of A near x = 2 lands on 4.0020, next to f(2) = 4.
Do I still need Riemann sums if the shortcut exists? When the antiderivative is on hand, the shortcut is the faster road, and the Riemann sum is the check that keeps the meaning honest. When you have no elementary formula for an antiderivative, the shortcut gives nothing to evaluate, so fine sums, or a numerical rule built on the same idea, are how you estimate the value.
Start with what you're working on
Tell the tutor which part of the theorem you are working through and let it ask you the questions.
Start learning No account needed
See also: what is a Riemann sum · definite and indefinite integrals · how to study for calculus · how to test yourself · what is a derivative · all study guides