A limit of Riemann sums, and the theorem that replaces it with a subtraction.
What you will be able to do
Given a definite or indefinite integral, the learner can approximate it by a Riemann sum, evaluate it exactly by the fundamental theorem, apply the substitution rule with converted limits, and interpret the result as signed area or accumulated change, including recognising when the value is negative and when the theorem does not apply.
Orientation
How much accumulates
The derivative answers how fast something changes at an instant. The integral answers the complementary question: given the rate, how much accumulates over an interval.
When the rate is constant the answer is a multiplication, travelling at 60 km/h for two hours covers 120 km. When the rate varies, no single multiplication applies, and the resolution mirrors the derivative's: chop the interval into pieces short enough that the rate is nearly constant on each, multiply and add, then take more and shorter pieces.
For the approximations from below run , , , as the number of pieces goes , , , , while those from above come down through , , , . The true value is squeezed between them, and it is .
What makes the subject workable is that this limit is almost never computed. The fundamental theorem shows that accumulating and differentiating are inverse operations, so the integral of is found by asking what differentiates to . Nothing in the two definitions hints at that connection, one concerns tangent slopes, the other rectangle areas, which is why the theorem earns its name.
This unit builds the limit, states and uses both parts of the theorem, derives the substitution rule as the chain rule reversed, and marks the two places the machinery misleads: when the integrand dips below the axis, and when it is discontinuous inside the interval.
Intuition
Watching the sums close in
The canonical intuition gives the construction and the theorem. What follows is the numerical detail that makes the limit credible rather than merely asserted.
The squeeze. For , take equal subintervals of width . Because increases on , sampling at each subinterval's left endpoint underestimates and at the right endpoint overestimates:
left sum
midpoint
right sum
gap
The gap is exactly . It is times the subinterval width, since the two sums differ only in their first and last rectangles. So the true value is pinned to an interval shrinking to nothing, and no appeal to intuition is needed to say the limit exists.
Exactly, without a limit process. The right sum has a closed form. Sampling at ,
At this is ; at , ; at , . Expanding, the expression is , whose limit is visibly .
Why the midpoint rule does better. At the midpoint sum is already correct to four decimal places while the endpoint sums are correct to two. Sampling in the middle makes the rectangle's overshoot on one half cancel its undershoot on the other, leaving an error of order rather than . This is the same first-order-versus-second-order distinction the derivative's tangent-line error showed.
That the limit equals is visible here, but that it can be obtained without summing anything is not. The fundamental theorem supplies as an antiderivative and the answer follows from . One subtraction against a thousand-term sum.
Figure
A right Riemann sum for y = x squared on [0,1]
right endpoints overshoot, so the sum bounds the area from above
Ten right-endpoint rectangles for on . Each has width and height at its right edge, so together they total against the true value .
Because increases, every rectangle overshoots its strip, which is why the right sum is an overestimate and the left sum an underestimate. The gap between them is exactly , so it closes as grows and the two sums squeeze the area between them.
Definition
What the construction requires
The canonical definition gives the Riemann sum, the theorem and the properties. What follows is why each is stated with the conditions it carries.
Why the limit must be independent of the sample points. The definition requires the same limit whatever is chosen in each subinterval. This is not pedantry: for a badly behaved function the choice changes the answer. On , the function that is 1 at rationals and 0 at irrationals gives a sum of 1 when every sample is rational and 0 when every sample is irrational, so no limit exists and the function is not Riemann integrable. Requiring independence is what excludes it.
Why continuity is sufficient but not necessary. A continuous function on a closed bounded interval is uniformly continuous, so the oscillation within each subinterval can be forced below any threshold by taking large. The upper and lower sums converge together. But a step function is discontinuous and plainly integrable: finitely many jumps contribute finitely many rectangles of vanishing width. What must be avoided is discontinuity on a set large enough to matter.
Why the sign convention is forced rather than chosen. Each term is with , so the sign of the term is the sign of . Nothing in the construction takes an absolute value, and inserting one would break the additivity property . The pieces would stop summing correctly whenever changed sign in between.
Why . Reversing the limits reverses the orientation, making negative. The convention is not an extra rule but the same formula read with , and it is what keeps additivity true for every arrangement of , and rather than only for .
Why Part 2 needs an antiderivative on the whole interval. The proof applies the mean value theorem on each subinterval of a partition of , which requires to be differentiable throughout. If blows up inside the interval, no such exists there, and the formula , though still computable as arithmetic, is answering a question that was never posed.
Why the constant of integration is real. If on an interval then , and a function with vanishing derivative on an interval is constant, so . The word interval is load-bearing: on a disconnected domain such as the difference can be one constant on each piece, which is why hides a subtlety about the two branches.
Theorem
The fundamental theorem, both parts
Part 1. Let be continuous on and define the accumulation function
Then is differentiable on and .
Proof. By additivity, . Since is continuous on the closed interval between and , it attains a minimum and a maximum there, and the integral of a function between two constants lies between their integrals:
Dividing by gives . As both and tend to by continuity, so the difference quotient is squeezed to . The same argument with inequalities reversed covers .
Check. With and , . Differentiating numerically at and gives and , matching .
Part 2. If is any antiderivative of on , that is, throughout, then
Proof. Part 1 gives one antiderivative, . Any other differs from it by a constant, so . Then
since . The constant cancels, which is why any antiderivative serves.
What the two parts say together. Part 1: differentiating an accumulation returns the integrand. Part 2: accumulating a derivative returns the net change. They are the two directions of a single inverse relationship, and Part 2 follows from Part 1 rather than standing independently.
Verification on a case with a negative integrand. For on , take . Then and , so
A midpoint Riemann sum with subintervals returns . The value is negative because throughout , indeed , , .
The substitution rule as a corollary. If then by the chain rule, so is an antiderivative of . Applying Part 2,
The limits transform because the antiderivative is evaluated at and , not at and , which is exactly the step that is forgotten when a substitution is done in a definite integral without converting.
Derivation
from the sum alone
Computing one integral from the definition, with no appeal to antiderivatives, shows what the fundamental theorem saves.
Setting up. Partition into equal subintervals, each of width . Sample at right endpoints, for . The Riemann sum is
The sum of squares. The identity is proved by induction: it holds at , since , and assuming it at ,
which is the formula at .
Substituting.
Checking before the limit. At : . At : . At : . These match the right-sum column of the table exactly.
Taking the limit. The two correction terms vanish, so
The same answer in one line. satisfies , so Part 2 gives .
The direct route needed a closed form for , which exists for squares and cubes but becomes unwieldy quickly and is unavailable for most integrands. There is no comparable identity waiting for . The antiderivative route needed only the power rule read backwards. This is why the fundamental theorem is the organising result of the subject rather than one theorem among many: it converts an intractable limit into an algebra problem.
Worked example
Four integrals, including one that is negative
1. A polynomial by the fundamental theorem: .
An antiderivative is , since .
Check: a midpoint sum with subintervals gives .
The answer is negative, and correctly so: , , , so the curve is below the axis across the whole interval. This is signed area, not total area.
Order matters. Computing instead gives , the right magnitude with the wrong sign. The most common slip in applying Part 2.
2. Signed area with a sign change: .
Same antiderivative: .
The integrand is negative on all of , so no cancellation occurs here. The value is simply more negative than the previous one because the interval is longer. To obtain the total area between curve and axis on one would compute , which is a different number from the integral whenever the integrand takes negative values.
3. Substitution in a definite integral: .
Let , so . The factor is present, which is what makes this substitution available.
Convert the limits:, and .
Check: a midpoint sum with subintervals.
The error to avoid: evaluating at and rather than at and gives , which is wrong by a factor of 39 and carries no visible warning.
4. Part 1 in use: .
Part 1 answers immediately: the derivative is , with no integration performed.
Confirming the long way:, whose derivative is . Numerically at and , symmetric difference quotients of give and , matching and .
The point of Part 1 is that the first answer required no antiderivative at all, accumulating then differentiating returns the integrand, whatever it was.
Example
Integrals worth recognising
A constant, . Every rectangle has the same height, so the sum is times the total width, with no limit needed. This is the case where accumulation reduces to multiplication, and it is the sanity check every other formula must reproduce when the integrand is flat.
A power, for . The antiderivative is . At this gives , matching the Riemann-sum derivation; at it gives , which is the area of the triangle under on , checkable by elementary geometry.
The exclusion is not a technicality: at the formula divides by zero, and is instead. Every other exponent follows one rule; this one does not.
A symmetric integrand over a symmetric interval, . The antiderivative takes the same value at and , so the difference vanishes. Geometrically the area below the axis on exactly cancels the area above on . Any odd function integrates to zero over an interval symmetric about the origin, which is worth spotting before computing, and is a case where the integral is zero while the total area is not.
An accumulation function, . This is a function of the upper limit, not a number. Part 1 says , and the explicit form confirms it. Recognising when a symbol denotes an accumulation rather than a value is what makes Part 1 usable.
A substitution-ready form, . The integrand contains an inner function together with its derivative , which is the signature of a chain rule run backwards. Recognising that pattern is the whole skill; the arithmetic that follows is routine.
An integral with no elementary antiderivative, . It exists, the integrand is continuous on a closed bounded interval, and it is approximately , but no combination of elementary functions differentiates to . This is not a gap in anyone's technique; it is a theorem. Such integrals are evaluated numerically, and this particular one is the reason the normal distribution's cumulative function is tabulated rather than written in closed form.
Four of the six are one power rule read backwards. The two exceptions mark the boundaries of the method: , where the power rule's formula breaks down, and , where antidifferentiation is not available at all and the limit of sums is the only definition left standing.
Procedure
Evaluating an integral
Step 1 — check that the theorem applies. Is the integrand continuous on the whole closed interval? If it blows up anywhere inside, Part 2 does not apply, and the integral is improper: it must be split at the singularity and handled as a limit, or it diverges. Skipping this step is how acquires a finite answer it does not have.
Step 2 — look for a substitution before reaching for anything harder. The signature is an inner function together with its derivative, up to a constant factor: has both and . Set to the inner function, compute , and confirm the remaining factor matches.
Step 3 — convert the limits, or don't convert the variable. Two consistent routes:
Change the limits with the variable: becomes , and the answer comes straight out.
Or find the antiderivative in , rewrite it in , then use the original limits.
What fails is the hybrid. An antiderivative in evaluated at the limits. It produces a plausible number with no warning.
Step 4 — find the antiderivative. Reverse the differentiation rules: for , and for the exception. Use linearity to split sums and pull out constants.
Step 5 — evaluate in the right order.: upper limit first. Reversing gives the correct magnitude with the wrong sign.
Step 6 — check.
Differentiate the antiderivative. If , the antiderivative is wrong, and this catches nearly every algebraic slip.
Check the sign against the graph. If the integrand is negative across the interval, the answer must be negative. A positive answer means an ordering or sign error.
Sanity-check the magnitude. The integral lies between and . For the integrand ranges over , so the answer must lie in ; does.
Numerical spot check. A midpoint sum with a few hundred subintervals settles any remaining doubt.
For an indefinite integral. There are no limits to evaluate, and the answer is a family: write . Omitting it asserts one antiderivative among infinitely many, and in a differential equation that constant is precisely what the initial condition determines.
Non-example
Where the machinery misleads
The integral is not total area., a negative number. The integrand is below the axis throughout, , , , and each Riemann rectangle contributes a negative term. Reporting as "the area" answers a different question: total area is , and the two coincide only when throughout.
The distinction matters most when the integrand changes sign, where the integral can be zero while the total area is large. , yet the region between the curve and the axis has area .
Part 2 across a discontinuity. Consider
Mechanically, gives . This is nonsense twice over: the integrand is positive everywhere it is defined, so no negative answer is possible, and the integral in fact diverges. The area near 0 is unbounded. The failure is that is not an antiderivative on , because neither nor is defined at 0. Part 2's hypothesis was not met, and the arithmetic proceeded anyway.
The warning sign is available before computing: the integrand blows up inside the interval. Checking that first is Step 1 of the procedure for this reason.
Substitution without converting the limits. For with , the correct evaluation is . Evaluating the same antiderivative at the original limits gives . Nothing in the written work looks wrong; the answer is simply not the integral.
The constant of integration is not decoration.. Writing alone names one antiderivative among infinitely many, and in solving a differential equation that constant is what an initial condition fixes. Omitting it there discards the only freedom the problem had.
A vanishing derivative does not make the integrand zero. If it does not follow that ; it follows only that the positive and negative contributions balanced. while is zero at only three points of the interval.
Not every integral has an elementary antiderivative. cannot be written in closed form using elementary functions. A theorem, not a limitation of technique. Searching for a clever substitution is wasted effort, and the integral is evaluated numerically. Recognising the cases where antidifferentiation is unavailable is part of knowing the method's scope.
Next step
Practice The Definite Integral
Practice records what support you used, so the evidence reflects how you actually performed.