Learning Objectives
By the end of this section, you will be able to:
- State the formal definition of the definite integral as a limit of Riemann sums
- Explain what it means for the Riemann sum to converge as the partition becomes infinitely fine
- Interpret the integral notation in terms of limits
- Visualize how rectangles "fill in" the area under a curve as
- Recognize when a function is integrable and when it is not
- Apply the limit definition to compute simple integrals
- Connect this definition to numerical integration methods used in scientific computing and machine learning
The Big Picture: Exact Area from Approximation
"The definite integral is the limit of a sum — infinitely many infinitely thin rectangles that together capture the exact area under a curve."
In previous sections, we saw that Riemann sums approximate the area under a curve using rectangles. The more rectangles we use, the better our approximation becomes. But there's something much deeper going on here: as the number of rectangles approaches infinity, the approximation becomes exact.
The Central Question
If represents a Riemann sum with rectangles, and this approximation gets better as increases, does the sequence converge to a specific number?
If so, that limiting value is what we call the definite integral.
The definite integral is not just "the area under the curve." It is precisely defined as a limit — the value that Riemann sums approach as the partition of becomes infinitely fine.
Historical Context: From Archimedes to Riemann
The quest to compute areas precisely goes back over 2,000 years. The journey from intuition to rigor spans many brilliant minds.
Used the method of exhaustion to find areas by inscribing polygons with more and more sides. He essentially used limits before limits were formally defined!
Developed calculus and recognized that integration is the inverse of differentiation. They used infinitesimals — infinitely small quantities.
Put integration on rigorous footing using limits. His definition replaced vague infinitesimals with precise limit-based reasoning.
Why Riemann?
Riemann's contribution was to define exactly when a function is "integrable" — when the limit of Riemann sums exists and is unique. His framework handles functions that earlier methods could not, and it provides the logical foundation for all of modern analysis.
From Sums to Limits: Building the Definition
Let's carefully construct the definite integral, step by step.
Step 1: Partition the Interval
Given an interval , we divide it into subintervals:
For equal subintervals, each has width .
Step 2: Choose Sample Points
In each subinterval , we choose a sample point where we evaluate the function:
| Method | Sample Point | Formula |
|---|---|---|
| Left endpoint | x*ᵢ = xᵢ₋₁ | f(a + (i-1)Δx) |
| Right endpoint | x*ᵢ = xᵢ | f(a + i·Δx) |
| Midpoint | x*ᵢ = (xᵢ₋₁ + xᵢ)/2 | f(a + (i - ½)Δx) |
Step 3: Form the Riemann Sum
The Riemann sum is the sum of all rectangle areas:
Each term is the area of one rectangle — height times width.
Step 4: Take the Limit
The definite integral is defined as the limit of these sums as :
As , . The rectangles become infinitely thin and infinitely numerous, perfectly capturing the area.
The Formal Definition: The Definite Integral
Definition: The Definite Integral
Let be a function defined on . The definite integral of from to is:
provided this limit exists and is the same for all choices of sample points . Here, denotes the mesh (or norm) of the partition — the width of the largest subinterval.
When this limit exists, we say is Riemann integrable on .
Understanding the Notation
The integral symbol is an elongated "S" for "sum" (Leibniz's design). Each part of the notation has meaning:
| Symbol | Name | Meaning |
|---|---|---|
| ∫ | Integral sign | Indicates a limiting sum (from Latin 'summa') |
| a | Lower limit | The left endpoint of the interval |
| b | Upper limit | The right endpoint of the interval |
| f(x) | Integrand | The function being integrated |
| dx | Differential | Represents Δx → 0; indicates variable of integration |
Reading Integral Notation
Read as "the integral of x squared from 0 to 3 with respect to x." This equals the exact area under the parabola between and .
Interactive Exploration: Riemann Sums in Action
Experiment with different functions, numbers of rectangles, and sampling methods. Watch how the Riemann sum converges to the exact integral as you increase :
Interactive Riemann Sum Explorer
Watch how rectangles approximate the area under a curve
Key Insight: The Limit Definition
As n → ∞ (and Δx → 0), all three types of Riemann sums converge to the same value: the definite integral. This is what we mean when we write ∫ab f(x) dx = limn→∞ Σ f(xi*) Δx.
Watching the Limit Converge
The visualization below shows how the Riemann sum approaches the exact integral value as we increase the number of rectangles. Notice how:
- All sum types converge — left, right, and midpoint all approach the same limit
- Error decreases as increases
- Convergence is orderly — the values settle toward the exact integral systematically
The Definite Integral as a Limit
Watch the Riemann sum converge to the exact integral as n → ∞
Convergence: Ln → ∫₀² x² dx as n → ∞
| n | Δx = 2/n | Ln | Error | % Error |
|---|---|---|---|---|
| 2 | 1.000000 | 1.000000 | 1.666667 | 62.500% |
| 4 | 0.500000 | 1.750000 | 0.916667 | 34.375% |
| 8 | 0.250000 | 2.187500 | 0.479167 | 17.969% |
| 16 | 0.125000 | 2.421875 | 0.244792 | 9.180% |
| 32 | 0.062500 | 2.542969 | 0.123698 | 4.639% |
| 64 | 0.031250 | 2.604492 | 0.062174 | 2.332% |
| 128 | 0.015625 | 2.635498 | 0.031169 | 1.169% |
| 256 | 0.007813 | 2.651062 | 0.015605 | 0.585% |
| ∞ | → 0 | 2.666667 | 0 | 0% |
The Limit Definition of the Definite Integral
The definite integral is defined as the limit of Riemann sums as the partition becomes infinitely fine (n → ∞, Δx → 0). This limit exists and equals the same value regardless of which sample points xi* we choose (left, right, midpoint, or any other choice), as long as f is integrable on [a, b].
Partition Refinement: Why the Limit Works
Why does the limit of Riemann sums give us the exact area? The key insight is that as the partition gets finer:
- Rectangles fit the curve better. With thinner rectangles, the "error" between the rectangle tops and the actual curve shrinks.
- Local variations get captured. Where the function changes rapidly, more rectangles mean we sample the function more often, catching its behavior.
- Overestimates and underestimates balance. As , left and right sums converge to the same value from opposite sides.
For a continuous function on , the difference between the upper and lower Riemann sums is bounded by:
where is the modulus of continuity — how much can vary over intervals of width . As , this bound goes to zero, forcing upper and lower sums together.
When Does the Limit Exist? Integrability
Not every function has a well-defined integral. For the limit of Riemann sums to exist, the function must be "nice enough." Here are the key conditions:
Sufficient Conditions for Integrability
If is continuous on , then is integrable. This is the most common case.
If is bounded and has only finitely many discontinuities (like step functions), it is still integrable.
Any monotonic (always increasing or always decreasing) function on is integrable, even if it has countably many jump discontinuities.
Non-Integrable Functions
The Dirichlet Function
The function if is rational and if is irrational is NOT Riemann integrable. Every interval contains both rational and irrational points, so upper and lower sums never converge to the same value.
However, the Lebesgue integral (a more general theory) can handle such functions. For most practical applications in calculus, physics, and engineering, Riemann integration is sufficient.
Real-World Applications
The limit definition of the integral is not just abstract mathematics — it underlies how we model and compute in the real world.
Physics: Work Done by a Variable Force
When a force varies with position, the work done moving from to is:
Each term is the work done over a small displacement where force is approximately constant.
Engineering: Fluid Flow
The total volume of fluid flowing through a pipe with variable cross-section and velocity :
Probability: Expected Values
For a continuous random variable with probability density function :
This is the "weighted average" of all possible values, with weights given by probabilities.
Economics: Consumer Surplus
The area between the demand curve and the market price gives consumer surplus:
Machine Learning Connection
The limit definition of integration is foundational to many machine learning techniques.
Monte Carlo Integration
When integrals are too complex to compute analytically, we can approximate them using random samples — this is Monte Carlo integration:
where are random samples from . This is essentially a Riemann sum with randomly chosen sample points!
Key ML Applications
- Loss function computation: Many loss functions involve integrals over probability distributions
- Bayesian inference: Computing posterior distributions requires integrating (marginalizing) over parameters
- Variational autoencoders: The ELBO objective involves expectations (integrals) that are approximated using samples
- Reinforcement learning: Value functions are expectations over trajectories — integrals in disguise
- Gaussian processes: Predictions involve integrals over function space
The Law of Large Numbers
Monte Carlo integration works because of the Law of Large Numbers: as , the sample mean converges to the true expected value (integral). The rate of convergence is , independent of dimension — making Monte Carlo essential for high-dimensional integration.
Python Implementation
Computing Riemann Sums
The following code demonstrates how to compute Riemann sums and observe their convergence to the definite integral:
Visualization Code
This code creates visualizations showing both the geometric meaning and numerical convergence of Riemann sums:
Common Mistakes to Avoid
Mistake 1: Confusing Area with Signed Area
Wrong: "The integral of sin(x) from 0 to 2π is the area, which must be positive."
Correct: The definite integral gives signed area. Regions below the x-axis contribute negative values. because positive and negative areas cancel.
Mistake 2: Forgetting the Limit
Wrong: "The integral is just a sum of rectangles."
Correct: The integral is the limit of such sums as . Any finite Riemann sum is only an approximation.
Mistake 3: Thinking Sample Point Choice Matters for the Final Value
Wrong: "Left Riemann sums give a different integral than right Riemann sums."
Correct: For integrable functions, ALL choices of sample points give the same limit. The choice only affects the rate of convergence, not the final value.
Mistake 4: Confusing dx with Δx
Wrong: "dx is just a small number."
Correct: In the definite integral, "dx" is part of the notation indicating the variable of integration. It represents the limiting behavior as , not a specific small value.
Test Your Understanding
Test Your Understanding
What does the definite integral ∫ₐᵇ f(x) dx represent geometrically?
Summary
The definite integral is defined as the limit of Riemann sums — this is the foundation of integral calculus.
The Central Definition
Key Concepts
| Concept | Description |
|---|---|
| Partition | Dividing [a, b] into n subintervals of width Δx = (b-a)/n |
| Sample points x*ᵢ | Points in each subinterval where we evaluate f |
| Riemann sum | Σ f(x*ᵢ) Δx — sum of rectangle areas |
| Definite integral | The limit of Riemann sums as n → ∞ |
| Integrable | When the limit exists and is independent of sample point choice |
Key Takeaways
- The definite integral is defined as a limit of sums, not just "area under the curve"
- As , and rectangles fill the area exactly
- For integrable functions, all sample point choices give the same limit
- Continuous functions are always integrable; most functions we encounter in applications are integrable
- The integral gives signed area — regions below the x-axis contribute negatively
- Numerical integration methods (trapezoidal rule, Simpson's rule, Monte Carlo) are all built on this limit definition
Coming Next: In the next section, we'll explore the properties of definite integrals — linearity, additivity over intervals, and comparison properties that make integration a powerful tool for analysis.