Learning Objectives
By the end of this section, you will be able to:
- Understand the accumulation function and its geometric meaning
- State and explain the Fundamental Theorem of Calculus Part 1
- Prove intuitively why using the thin strip argument
- Apply FTC Part 1 to find derivatives of integral functions
- Extend the theorem using the chain rule for variable limits
- Connect this theorem to probability (CDF/PDF relationship) and machine learning
The Big Picture: Bridging Two Worlds
"The Fundamental Theorem of Calculus is the spine of calculus — it connects the two halves (differentiation and integration) into one coherent body."
Throughout history, mathematicians developed two seemingly unrelated operations:
- Differentiation: Finding instantaneous rates of change — how fast things are changing at any moment
- Integration: Computing areas and accumulations — the total effect of continuous change
For centuries, these were studied as separate subjects. Then came the remarkable discovery: they are inverse operations. The Fundamental Theorem of Calculus (FTC) reveals this profound connection, and it comes in two parts:
FTC Part 1 (This Section)
Integration then Differentiation
If you integrate a function and then differentiate the result, you get the original function back.
FTC Part 2 (Next Section)
Differentiation then Integration
If you find an antiderivative and evaluate at the endpoints, you get the definite integral.
Why This Matters
The FTC is not just a theoretical result — it's a computational breakthrough. Before the FTC, calculating areas required tedious limit computations with Riemann sums. After the FTC, we can find areas simply by finding antiderivatives — a far easier task in most cases.
Historical Context: A Revolutionary Insight
The Fundamental Theorem emerged from the work of two mathematical giants in the 17th century:
Isaac Newton (1643–1727)
Newton developed his "method of fluxions" around 1666 while escaping the plague in the English countryside. He viewed derivatives as velocities (rates of change) and integrals as areas under velocity curves (accumulated distance). His key insight was that finding the area under a velocity curve gives you the total distance traveled — connecting integration to antidifferentiation.
Gottfried Wilhelm Leibniz (1646–1716)
Working independently in Germany, Leibniz developed the notation we use today: for integration and for derivatives. He understood the integral as a "sum" of infinitesimal rectangles and recognized that differentiation "undoes" this summation.
The Controversy
Newton and Leibniz independently discovered calculus, leading to one of history's bitterest priority disputes. Today, we recognize both as co-discoverers, and we use Leibniz's notation while appreciating Newton's physical intuition.
The Physical Insight
Consider a car traveling along a road. Let be its velocity at time .
- The position at time is — the accumulated distance
- The velocity is the rate of change of position:
Combining these: . This is exactly FTC Part 1! The rate at which distance accumulates is the instantaneous velocity.
The Accumulation Function
Before stating the FTC, we need to understand a special kind of function called the accumulation function (also known as the area function).
Definition: The Accumulation Function
What each symbol means:
- : A fixed starting point (lower limit)
- : A variable endpoint (upper limit) — this is the input to
- : A "dummy variable" of integration (could be any letter)
- : The function being integrated (assumed continuous)
- : The accumulated area under from to
What Does F(x) Measure?
For each value of , gives the signed area under the curve from to .
- When : (no area yet)
- As increases, more area is included, so grows (if )
- If for some , that region contributes negative area
Key Insight
The accumulation function transforms a rate function into a total function. If represents a rate (like velocity), then represents the cumulative total (like distance traveled).
Interactive: The Accumulation Function
Explore how the accumulation function works. Drag the upper limit and watch how the shaded area (and hence ) changes:
The Fundamental Insight
As you drag x to the right, the shaded area grows. The rate at which this area grows is exactly the height of the function f at that point. This is why F'(x) = f(x).
FTC Part 1: The Statement
The Fundamental Theorem of Calculus, Part 1
If is continuous on , then the function
is continuous on , differentiable on , and
Equivalently:
What This Theorem Says
In plain language: differentiation undoes integration. If you start with a function , integrate it to get the area function , and then differentiate , you get back the original .
More intuitively: the rate at which area accumulates equals the height of the curve. As you move the upper limit to the right, the area grows at a rate equal to the current height .
Intuitive Proof: The Thin Strip Argument
Let's understand why FTC Part 1 is true through geometric reasoning.
Consider the accumulation function . We want to find , the instantaneous rate of change of the area.
Step 1: The Difference Quotient
By definition of the derivative:
Step 2: Interpret F(x + Δx) - F(x)
Using the additivity property of integrals:
This is the area of a thin strip of width under the curve.
Step 3: Approximate the Strip
When is very small, the thin strip is approximately a rectangle with:
- Width:
- Height: approximately (the height at the left edge)
So the area of the strip is approximately:
Step 4: Take the Limit
Substituting into the difference quotient:
The approximation becomes exact as because is continuous.
Interactive: The Thin Strip Argument
Explore the thin strip argument visually. Shrink and watch how the strip area divided by approaches :
The FTC Part 1 Derivation
The green strip has area \u0394F = F(x + \u0394x) - F(x). When \u0394x is small:
Current approximation error: 0.056705
Convergence as \u0394x \u2192 0
As \u0394x gets smaller, \u0394F/\u0394x converges to exactly f(x) - this is the FTC!
Formal Proof
For completeness, here is the rigorous proof using the definition of the derivative and properties of continuous functions.
Proof of FTC Part 1
Given: is continuous on and .
To prove: for all .
Proof:
For small enough that :
By the Mean Value Theorem for Integrals, since is continuous, there exists between and such that:
Therefore:
As , we have (since is squeezed between and ).
Since is continuous, as .
Therefore:
Worked Examples
Example 1: Basic Application
Problem: Let . Find .
Solution: By FTC Part 1, since is continuous:
Notice: We don't need to evaluate the integral first! FTC Part 1 tells us the derivative directly.
Example 2: Trigonometric Integrand
Problem: Let . Find .
Solution: Even though has no elementary antiderivative, FTC Part 1 gives:
This demonstrates the power of FTC Part 1 — we can differentiate integral functions even when we can't integrate explicitly.
Example 3: Finding Specific Values
Problem: Let . Find and .
Solution:
By FTC Part 1:
So
For : (zero-width integral)
Chain Rule Extension
What if the upper limit is not simply , but a function of ? We combine FTC Part 1 with the chain rule.
FTC Part 1 with Chain Rule
Example: Variable Upper Limit
Problem: Find
Solution:
Let , so .
By the chain rule version of FTC Part 1:
Example: Variable Lower and Upper Limits
Problem: Find
Solution: Split using additivity:
Differentiating each term:
Real-World Applications
Physics: Position from Velocity
If is velocity, then position at time is:
FTC Part 1 confirms: — the derivative of position is velocity.
Economics: Total Cost from Marginal Cost
If is marginal cost (cost of producing one more unit), then total cost of producing units beyond a base level is:
FTC Part 1 confirms: — marginal cost is the derivative of total cost.
Biology: Accumulated Drug Concentration
If is the rate of drug absorption, the total drug in the body at time is:
FTC Part 1 tells us — the rate of change of total drug equals the absorption rate.
Machine Learning Connection
The Fundamental Theorem of Calculus Part 1 appears throughout machine learning and statistics in several important ways.
The CDF-PDF Relationship
In probability theory, if is a continuous random variable with probability density function (PDF) , then its cumulative distribution function (CDF) is:
By FTC Part 1: — the derivative of the CDF is the PDF. This fundamental relationship is used constantly in:
- Density estimation: Learning probability distributions from data
- Normalizing flows: Transforming simple distributions into complex ones
- Quantile functions: Inverse sampling for Monte Carlo methods
Gradients of Expected Loss
In ML, loss functions are often expectations (integrals over distributions):
To optimize with gradient descent, we need . Under certain conditions (Leibniz integral rule, related to FTC), we can differentiate under the integral:
Score Functions and Fisher Information
In maximum likelihood estimation, the score function is:
The expected score is zero: . This follows from FTC Part 1 applied to the condition that probability integrates to 1.
Reparameterization Trick
The reparameterization trick in Variational Autoencoders (VAEs) relies on being able to move derivatives inside expectations. This is essentially an application of the ideas behind FTC Part 1 to stochastic gradients.
Python Implementation
Verifying FTC Part 1 Numerically
Let's verify that using numerical methods:
FTC Part 1 in Machine Learning
Here's how FTC Part 1 appears in probability and ML contexts:
Common Mistakes to Avoid
Mistake 1: Forgetting the Chain Rule
Wrong:
Correct:
When the upper limit is a function of , multiply by its derivative.
Mistake 2: Confusing the Variable of Integration
Wrong: In , thinking that
Correct:
Replace the dummy variable with after applying FTC Part 1.
Mistake 3: Ignoring the Continuity Requirement
FTC Part 1 requires to be continuous. If has discontinuities, the theorem may not apply directly.
For piecewise continuous functions, apply the theorem on each continuous piece separately.
Mistake 4: Applying FTC Part 1 to Part 2 Problems
FTC Part 1: Differentiating an integral with variable upper limit
FTC Part 2: Evaluating a definite integral using antiderivatives
These are different applications! Part 1 tells us about derivatives; Part 2 tells us how to compute integrals.
Test Your Understanding
Summary
The Fundamental Theorem of Calculus Part 1 establishes the profound connection between differentiation and integration — they are inverse operations.
Key Results
| Concept | Formula | Meaning |
|---|---|---|
| Accumulation Function | F(x) = ∫ₐˣ f(t) dt | Area under f from a to x |
| FTC Part 1 | F'(x) = f(x) | Derivative of area = height |
| Chain Rule Version | d/dx ∫ₐ^{g(x)} f(t) dt = f(g(x))·g'(x) | For variable upper limits |
| CDF-PDF Relationship | F'(x) = f(x) where F is CDF | Derivative of CDF is PDF |
Key Takeaways
- Differentiation undoes integration: If you integrate a continuous function then differentiate, you recover the original function.
- Geometric interpretation: The rate at which area accumulates equals the height of the curve at that point.
- Practical power: We can differentiate integral functions without evaluating the integral explicitly.
- Chain rule extension: When the limit is a function, multiply by its derivative.
- ML connections: FTC Part 1 underlies the CDF-PDF relationship and enables differentiation through expectations.
Coming Next: In FTC Part 2, we'll discover how this relationship gives us a powerful method for computing definite integrals: just find an antiderivative and evaluate at the endpoints!