Before we can compute the exact area under a curve, we need a way to approximate it. Riemann sums are the foundation: we divide the area into rectangles, sum their areas, and let the rectangles get narrower and narrower to approach the true area.

🎯 In this section you will learn

📌 The Basic Idea

To approximate the area under $y = f(x)$ from $x = a$ to $x = b$:

$$ \text{Area} \approx \sum_{i=1}^{n} f(x_i^*) \Delta x $$

where $\Delta x = \frac{b-a}{n}$ is the width of each rectangle, and $x_i^*$ is a sample point in the $i$-th subinterval.

💡 As $n \to \infty$, the approximation becomes exact
$$ \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*) \Delta x = \int_a^b f(x) \, dx $$

📊 Visualizing Riemann Sums

Both graphs show $f(x) = x^2$ on $[0, 4]$ with $n = 4$ rectangles. Notice how the left sum misses area above each rectangle, while the right sum overshoots.

Left Riemann Sum — n = 4
Approximation: 14.00 Exact: 21.33 Underestimate
Right Riemann Sum — n = 4
Approximation: 30.00 Exact: 21.33 Overestimate

📋 Types of Riemann Sums

TypeSample Point $x_i^*$Accuracy
Left Riemann SumLeft endpoint of each subintervalUnderestimates when $f$ is increasing, overestimates when decreasing
Right Riemann SumRight endpoint of each subintervalOverestimates when $f$ is increasing, underestimates when decreasing
Midpoint Riemann SumMidpoint of each subintervalMore accurate than left/right (error is smaller)
Trapezoidal RuleAverage of left and right sumsMore accurate; approximates area using trapezoids instead of rectangles
Example 1Left Riemann Sum

Approximate $\int_0^4 x^2 dx$ using a left Riemann sum with $n=4$ subintervals.

$\Delta x = \frac{4-0}{4} = 1$
Subintervals: $[0,1], [1,2], [2,3], [3,4]$
Left endpoints: $0, 1, 2, 3$
$f(0)=0$, $f(1)=1$, $f(2)=4$, $f(3)=9$
Sum
$\text{Area} \approx 1(0+1+4+9) = 14$
Compare with exact
Exact $\int_0^4 x^2 dx = \frac{64}{3} \approx 21.33$
Example 2Right Riemann Sum

Approximate $\int_0^4 x^2 dx$ using a right Riemann sum with $n=4$.

Example 3Midpoint Riemann Sum

Approximate $\int_0^4 x^2 dx$ using a midpoint sum with $n=4$.

Example 4Trapezoidal Rule

Approximate $\int_0^4 x^2 dx$ using the trapezoidal rule with $n=4$.

⚠️ Important Notes
🔍 Key Takeaways
← Back to Module Page