The fundamental theorem of calculus
Statement
Let \( a \lt b \) be real numbers and let \( f : [a,b] \to \mathbb{R} \) be Riemann integrable (in particular, bounded). Define the indefinite integral \( F : [a,b] \to \mathbb{R} \) by \( F(x) = \int_a^x f(t)\,\mathrm{d}t \). Part I. \( F \) is Lipschitz continuous on \( [a,b] \); and at every point \( c \in [a,b] \) at which \( f \) is continuous, \( F \) is differentiable with \( F'(c) = f(c) \) (one-sided derivatives at the endpoints). In particular, if \( f \) is continuous on all of \( [a,b] \), then \( F \) is an antiderivative of \( f \). Part II (evaluation form). If \( G : [a,b] \to \mathbb{R} \) is continuous on \( [a,b] \), differentiable at every point of \( (a,b) \) with \( G'(x) = f(x) \) for all \( x \in (a,b) \), and \( f \) is Riemann integrable on \( [a,b] \), then \[ \int_a^b f(t)\,\mathrm{d}t = G(b) - G(a). \]
Why it matters
The theorem welds together the two pillars of calculus, which are defined by entirely unrelated limit processes: the derivative (a local limit of difference quotients) and the Riemann integral (a global limit of sums over partitions). Part I manufactures antiderivatives — it is the only general existence theorem for antiderivatives of continuous functions, and it is how the logarithm, the arctangent, and the error function are rigorously defined. Part II converts the computation of an integral, a priori an infinite limiting procedure, into the evaluation of a single function at two points.
Almost every downstream tool of analysis — integration by parts, substitution, the integral form of Taylor's remainder, the theory of ordinary differential equations, and ultimately Stokes' theorem on manifolds — is a corollary or a descendant of this result. Its failure modes (Cantor's function, Volterra's function) drove the twentieth-century rebuilding of integration theory by Lebesgue.
Hypotheses
Proof
Throughout, \( F(x) = \int_a^x f(t)\,\mathrm{d}t \). We prove Part I in Steps 1–6 and Part II in Steps 7–10.
Result
Reading. Integrating \( f \) and then differentiating gives back \( f \) wherever \( f \) is continuous; differentiating \( G \) and then integrating gives back the total change of \( G \), provided the derivative is honest on the whole open interval and integrable. Differentiation and integration are mutually inverse — but each direction carries its own fine print.
Scope. Riemann integration on a compact interval \( [a,b] \subseteq \mathbb{R} \). Part I needs only integrability of \( f \) plus pointwise continuity where the derivative is claimed. Part II needs \( G \) continuous on \( [a,b] \), \( G' = f \) at every interior point, and \( f \) Riemann integrable. For improper integrals, unbounded intervals, or the Lebesgue theory, separate theorems (with absolute continuity replacing differentiability-plus-integrability) are required.
Corollaries & converses
- Existence of antiderivatives. Every continuous \( f : [a,b] \to \mathbb{R} \) has an antiderivative, namely \( F(x) = \int_a^x f \). This is how \( \ln x = \int_1^x t^{-1}\mathrm{d}t \) and \( \arctan x = \int_0^x (1+t^2)^{-1}\mathrm{d}t \) are constructed.
- Uniqueness up to a constant. If \( F_1' = F_2' = f \) on an interval, then \( (F_1 - F_2)' = 0 \), so \( F_1 - F_2 \) is constant (corollary of the MVT). Hence Part II is independent of which antiderivative is used.
- Integration by parts. For \( u, v \in C^1[a,b] \): \( \int_a^b u v' = [uv]_a^b - \int_a^b u' v \) — apply Part II to \( G = uv \) with the product rule.
- Substitution. For \( \varphi \in C^1[\alpha,\beta] \) and \( f \) continuous on \( \varphi([\alpha,\beta]) \): \( \int_\alpha^\beta f(\varphi(s))\varphi'(s)\,\mathrm{d}s = \int_{\varphi(\alpha)}^{\varphi(\beta)} f \) — apply Part II to \( G = F \circ \varphi \) with the chain rule and Part I.
- Converse of Part I fails. Not every Riemann integrable \( f \) is a derivative: \( \operatorname{sgn} \) on \( [-1,1] \) is integrable but is no function's derivative, because derivatives satisfy the Darboux intermediate value property (Darboux's theorem) and \( \operatorname{sgn} \) skips every value in \( (-1,0) \cup (0,1) \).
- Converse of Part II fails. "\( G \) continuous and \( G' \) exists almost everywhere with \( G' \) integrable" does not imply \( \int_a^b G' = G(b) - G(a) \): the Cantor function is the standard counterexample. The correct equivalence (Lebesgue): the identity holds for the Lebesgue integral exactly when \( G \) is absolutely continuous.
Fails without
- Drop continuity of \( f \) at \( c \) (Part I): \( f = \operatorname{sgn} \) on \( [-1,1] \) gives \( F(x) = \int_{-1}^x \operatorname{sgn}(t)\,\mathrm{d}t = |x| - 1 \), which is continuous everywhere but not differentiable at \( 0 \); no version of \( F'(0) = f(0) \) can be rescued, whatever value \( f(0) \) is assigned.
- Weaken "\( G' = f \) everywhere on \( (a,b) \)" to "almost everywhere" (Part II): the Cantor–Lebesgue function \( c \) satisfies \( c' = 0 \) off a measure-zero set, is continuous and monotone, yet \( c(1) - c(0) = 1 \neq 0 = \int_0^1 0 \). All the increase happens on the null set where differentiability fails.
- Drop integrability of \( f = G' \) (Part II): Volterra's function \( V \) is differentiable everywhere on \( [0,1] \) with \( |V'| \leq 1 \), but \( V' \) is discontinuous on a positive-measure set, hence not Riemann integrable (Lebesgue's criterion); the left side of the formula does not exist. The Henstock–Kurzweil integral repairs exactly this failure.
- Drop continuity of \( G \) at an endpoint (Part II): \( G = 0 \) on \( [0,1) \), \( G(1) = 5 \): then \( \int_0^1 G' = 0 \neq 5 = G(1) - G(0) \).
Common errors
- Chain-rule amnesia. Writing \( \frac{\mathrm{d}}{\mathrm{d}x} \int_0^{x^2} f(t)\,\mathrm{d}t = f(x^2) \). Correct: \( f(x^2) \cdot 2x \). The FTC differentiates with respect to the upper limit; a composed limit needs the chain rule.
- Integrating across a singularity. \( \int_{-1}^{1} t^{-2}\,\mathrm{d}t = \bigl[-t^{-1}\bigr]_{-1}^{1} = -2 \): a negative "value" for a positive integrand. The function is unbounded on \( [-1,1] \), so it is not Riemann integrable and Part II never applied.
- "Integrable \( \Rightarrow \) has an antiderivative." False: \( \operatorname{sgn} \) is integrable but is not a derivative (Darboux's theorem). Part I only gives \( F' = f \) at points of continuity.
- "Differentiable \( \Rightarrow \) Part II applies." False without checking integrability of the derivative (Volterra). The hypothesis \( f \in \mathcal{R}[a,b] \) must be verified, not assumed.
- Dummy-variable collision. Writing \( F(x) = \int_a^x f(x)\,\mathrm{d}x \). The variable of integration must differ from the limit: \( \int_a^x f(t)\,\mathrm{d}t \). The collision breeds genuine errors when differentiating under the integral sign later.
- Endpoint carelessness. Claiming \( F'(a) = f(a) \) as a two-sided derivative, or applying the MVT step to a \( G \) not continuous at \( a \) or \( b \).
Discussion
Historically the theorem crystallised in stages. Isaac Barrow's geometric lemma (Lectiones Geometricae, 1670) already contains the inverse relationship between tangent and quadrature problems for monotone curves; Newton and Leibniz turned it into an algorithmic calculus in the 1660s–1680s, treating it as essentially self-evident. The first proof meeting modern standards is Cauchy's (1823), for continuous integrands, using his definition of the integral as a limit of sums. Riemann (1854) widened the class of integrable functions, and it was precisely this widening that made the theorem's hypotheses delicate: Darboux showed derivatives can be discontinuous yet still obey the intermediate value property, and Volterra (1881) produced a bounded derivative that is not Riemann integrable, splitting Part I from Part II irreparably within Riemann's framework.
Conceptually, the two parts are asymmetric. Part I is a smoothing statement: integration raises regularity (a merely integrable \( f \) yields a Lipschitz \( F \); a continuous \( f \) yields a \( C^1 \) function \( F \)). Part II is a rigidity statement: knowledge of the derivative at every interior point, plus continuity at the boundary, pins down the total change. The MVT is the engine of Part II, and it is worth internalising that the proof shows something slightly stronger than convergence of Riemann sums: for every partition there exist tags making the Riemann sum exactly equal to \( G(b) - G(a) \), with no limit taken.
In the Lebesgue theory the correct statement is a characterisation: for \( G : [a,b] \to \mathbb{R} \), the identity \( G(x) - G(a) = \int_a^x G'\,\mathrm{d}\mu \) (Lebesgue integral) holds for all \( x \) if and only if \( G \) is absolutely continuous — Lebesgue (1904) and Vitali. One direction uses the Lebesgue differentiation theorem, which guarantees that an absolutely continuous \( G \) is differentiable almost everywhere with integrable derivative; the Cantor function is continuous and of bounded variation but not absolutely continuous, marking the exact boundary of the theorem. Going further, the Henstock–Kurzweil (gauge) integral integrates every derivative and restores the clean statement "\( \int_a^b G' = G(b) - G(a) \) whenever \( G \) is differentiable on \( [a,b] \)," at the price of losing absolute integrability. In several variables the theorem generalises to \( \int_M \mathrm{d}\omega = \int_{\partial M} \omega \) (Stokes), of which FTC is the case \( M = [a,b] \), \( \partial M = \{a, b\} \) with signs.
Common misconceptions. The theorem does not say "differentiation and integration are inverse on the nose." Integration then differentiation recovers \( f \) only at continuity points (Part I); differentiation then integration recovers \( G \) only under everywhere-differentiability plus integrability of \( G' \) (Part II). Nor does it say every integrable function has an antiderivative, or that every derivative is integrable — both are false, and the counterexamples (sgn, Volterra) are part of the theorem's content, not curiosities.
Worked examples
Example 1. Differentiate \( F(x) = \displaystyle\int_0^{x^2} e^{-t^2}\,\mathrm{d}t \) for \( x \in \mathbb{R} \).
Reading. The FTC supplies the derivative of the outer integral; the chain rule transports it through the variable upper limit. Note that \( F \) is differentiable even though no elementary antiderivative of \( e^{-t^2} \) exists — the theorem is an existence statement, not a formula-finding device.
Example 2. Evaluate \( \displaystyle\lim_{n \to \infty} \sum_{k=1}^{n} \frac{n}{n^2 + k^2} \).
Reading. A limit of sums with no visible closed form is converted into an integral, and the integral is then dispatched by exhibiting one antiderivative — the two halves of the FTC working in tandem.
Problems
- Compute \( \dfrac{\mathrm{d}}{\mathrm{d}x} \displaystyle\int_x^{x^3} \cos(t^2)\,\mathrm{d}t \).
Solution
Let \( \Phi(u) = \int_0^u \cos(t^2)\,\mathrm{d}t \). The integrand is continuous on \( \mathbb{R} \), so by FTC Part I, \( \Phi'(u) = \cos(u^2) \) for all \( u \). By additivity, \[ \int_x^{x^3} \cos(t^2)\,\mathrm{d}t = \Phi(x^3) - \Phi(x). \] Differentiating with the chain rule: \[ \frac{\mathrm{d}}{\mathrm{d}x}\bigl( \Phi(x^3) - \Phi(x) \bigr) = \cos\bigl((x^3)^2\bigr)\cdot 3x^2 - \cos(x^2) = 3x^2 \cos(x^6) - \cos(x^2). \]
- Evaluate \( \displaystyle\lim_{x \to 0} \frac{1}{x} \int_0^x e^{t^2}\,\mathrm{d}t \) without L'Hôpital.
Solution
Let \( F(x) = \int_0^x e^{t^2}\,\mathrm{d}t \). Then \( F(0) = 0 \), so \[ \frac{1}{x}\int_0^x e^{t^2}\,\mathrm{d}t = \frac{F(x) - F(0)}{x - 0}, \] the difference quotient of \( F \) at \( 0 \). The integrand \( e^{t^2} \) is continuous at \( 0 \), so FTC Part I gives \( F'(0) = e^{0^2} = 1 \). By definition of the derivative the limit of the difference quotient is \( F'(0) \). Hence the limit is \( 1 \).
- Let \( f : \mathbb{R} \to \mathbb{R} \) be continuous with period \( T \gt 0 \), i.e. \( f(t + T) = f(t) \) for all \( t \). Prove that \( \displaystyle\int_a^{a+T} f(t)\,\mathrm{d}t \) does not depend on \( a \).
Solution
Define \( g(a) = \int_a^{a+T} f(t)\,\mathrm{d}t \). Writing \( \Phi(x) = \int_0^x f(t)\,\mathrm{d}t \), additivity gives \( g(a) = \Phi(a+T) - \Phi(a) \). Since \( f \) is continuous on \( \mathbb{R} \), FTC Part I makes \( \Phi \) differentiable everywhere with \( \Phi' = f \), so \( g \) is differentiable and \[ g'(a) = f(a+T)\cdot 1 - f(a) = f(a+T) - f(a) = 0 \] by periodicity. A function with vanishing derivative on the interval \( \mathbb{R} \) is constant (corollary of the Mean Value Theorem: for \( a_1 \lt a_2 \), \( g(a_2) - g(a_1) = g'(\xi)(a_2 - a_1) = 0 \)). Hence \( g \) is constant, which is the claim.
- On \( [-1,1] \) let \( f = \operatorname{sgn} \) (that is, \( f(t) = -1 \) for \( t \lt 0 \), \( f(0) = 0 \), \( f(t) = 1 \) for \( t \gt 0 \)) and let \( F(x) = \int_{-1}^x f(t)\,\mathrm{d}t \). Compute \( F \) explicitly, determine exactly where \( F' \) exists, and reconcile the answer with the FTC.
Solution
\( f \) is bounded with a single discontinuity, hence Riemann integrable. For \( x \leq 0 \): \( F(x) = \int_{-1}^x (-1)\,\mathrm{d}t = (-1)\bigl(x - (-1)\bigr) = -x - 1 \) (changing the integrand's value at the single point \( 0 \) does not affect the integral). For \( x \geq 0 \): \( F(x) = F(0) + \int_0^x 1\,\mathrm{d}t = -1 + x \). Both formulas combine to \[ F(x) = |x| - 1. \] \( F \) is continuous on all of \( [-1,1] \) (indeed Lipschitz with constant \( 1 \), as Part I promises with \( M = 1 \)). For \( x \neq 0 \), \( f \) is continuous at \( x \), and indeed \( F'(x) = \operatorname{sgn}(x) = f(x) \), confirming Part I. At \( x = 0 \) the left derivative of \( F \) is \( -1 \) and the right derivative is \( +1 \), so \( F'(0) \) does not exist. This is consistent with the theorem: Part I claims differentiability only at points where \( f \) is continuous, and \( 0 \) is not such a point. The example shows the continuity hypothesis in Part I is sharp.
- (First Mean Value Theorem for integrals.) Let \( f : [a,b] \to \mathbb{R} \) be continuous. Prove there exists \( c \in (a,b) \) with \[ \int_a^b f(t)\,\mathrm{d}t = f(c)\,(b-a). \]
Solution
Define \( F(x) = \int_a^x f(t)\,\mathrm{d}t \). Since \( f \) is continuous on \( [a,b] \), FTC Part I gives: \( F \) is continuous on \( [a,b] \) and differentiable on \( (a,b) \) with \( F'(x) = f(x) \) there (in fact on all of \( [a,b] \), but the open interval suffices). These are exactly the hypotheses of Lagrange's Mean Value Theorem for \( F \) on \( [a,b] \), so there exists \( c \in (a,b) \) with \[ F(b) - F(a) = F'(c)\,(b-a) = f(c)\,(b-a). \] But \( F(a) = 0 \) and \( F(b) = \int_a^b f(t)\,\mathrm{d}t \), so \[ \int_a^b f(t)\,\mathrm{d}t = f(c)\,(b-a), \] as required. Note the conclusion places \( c \) strictly inside \( (a,b) \), which is finer than what one gets from the crude bounds \( m(b-a) \leq \int_a^b f \leq M(b-a) \) plus the intermediate value theorem (that argument only yields \( c \in [a,b] \)).