Riemann Sums with Unequal Subintervals
What you'll learn: How to calculate Riemann sums when your rectangles have different widths.
The Core Idea
So far, you've worked with Riemann sums where the interval [a, b] is divided into n equal pieces, each with width Δx = (b - a)/n. But there's no mathematical requirement that all subintervals be the same size!
When we use unequal subintervals, we create a partition of [a, b] using points: a = x₀ < x₁ < x₂ < ... < xₙ = b
Each subinterval [xᵢ₋₁, xᵢ] has its own width: Δxᵢ = xᵢ - xᵢ₋₁
The key change: instead of one common Δx, we now track each individual Δxᵢ.
The Formula
For a function f(x) and any partition with sample points x*ᵢ in each subinterval:
Riemann Sum = Σ f(x*ᵢ) · Δxᵢ (from i=1 to n)
Notice: we multiply each function value by its corresponding subinterval width.
Example
Approximate the area under f(x) = x² on [0, 3] using the partition {0, 1, 1.5, 3} with right endpoints:
- Subinterval 1: [0, 1], Δx₁ = 1, f(1) = 1
- Subinterval 2: [1, 1.5], Δx₂ = 0.5, f(1.5) = 2.25
- Subinterval 3: [1.5, 3], Δx₃ = 1.5, f(3) = 9
Riemann Sum = 1(1) + 2.25(0.5) + 9(1.5) = 1 + 1.125 + 13.5 = 15.625
Why This Matters
Unequal partitions let us use narrower subintervals where the function changes rapidly and wider ones where it's relatively flat—making our approximations more efficient.
Key Takeaway: Riemann sums work with any partition; just multiply each function value by its own subinterval width Δxᵢ rather than a single common Δx.