← Back to course

Area Approximation

Area approximation uses rectangles to estimate the area under a curve. Partition the interval into equal subintervals, build rectangles using left endpoints, right endpoints, or midpoints to determine height, then sum their areas.

Area Approximation Using Rectangles

When we need to find the area under a curve f(x)≥0f(x) \geq 0 on an interval [a,b][a,b], we can approximate it by dividing the region into rectangles. This approach works even when we lack a closed-form antiderivative.

Setting Up the Partition

We partition [a,b][a,b] into nn equal subintervals, each with width: Δx=b−an\Delta x = \frac{b-a}{n}

The partition points are x0=a,x1,x2,…,xn=bx_0 = a, x_1, x_2, \ldots, x_n = b, where xi=a+iΔxx_i = a + i\Delta x. On each subinterval [xi−1,xi][x_{i-1}, x_i], we construct a rectangle of width Δx\Delta x. The height depends on where we sample the function value.

Graph illustrating Area Approximation

The Three Riemann Sums

For each subinterval, we can choose the function value at three different points:

MethodFormula
Left sumLn=∑i=1nf(xi−1) ΔxL_n = \sum_{i=1}^{n} f(x_{i-1})\,\Delta x
Right sumRn=∑i=1nf(xi) ΔxR_n = \sum_{i=1}^{n} f(x_i)\,\Delta x
Midpoint sumMn=∑i=1nf ⁣(xi−1+xi2)ΔxM_n = \sum_{i=1}^{n} f\!\left(\frac{x_{i-1}+x_i}{2}\right)\Delta x

Each sum represents the total area of all rectangles. As n→∞n \to \infty, all three approach the true area.

Behavior Based on Function Monotonicity

For an increasing function, left endpoints give the smallest heights on each subinterval, making LnL_n an underestimate. Right endpoints give the largest, making RnR_n an overestimate. For decreasing functions, this reverses. The midpoint sum typically provides a better approximation than either endpoint method.

Example

For f(x)=x2+1f(x) = x^2 + 1 on [0,2][0,2] with n=4n=4 subintervals (Δx=0.5\Delta x = 0.5):

L4=0.5[f(0)+f(0.5)+f(1)+f(1.5)]=0.5(7.5)=3.75L_4 = 0.5[f(0)+f(0.5)+f(1)+f(1.5)] = 0.5(7.5) = 3.75 M4=0.5[f(0.25)+f(0.75)+f(1.25)+f(1.75)]=0.5(9.25)=4.625M_4 = 0.5[f(0.25)+f(0.75)+f(1.25)+f(1.75)] = 0.5(9.25) = 4.625 R4=0.5[f(0.5)+f(1)+f(1.5)+f(2)]=0.5(11.5)=5.75R_4 = 0.5[f(0.5)+f(1)+f(1.5)+f(2)] = 0.5(11.5) = 5.75

Since ff is increasing, L4<M4<R4L_4 < M_4 < R_4 as expected.

Practice problems

Practice similar problems interactively, with instant feedback.

Start Closing the Gap