Approximating Areas Under Curves and Riemann Sum Foundations
Foundations of Calculus and Approximating Area
- Calculus is built upon three foundational geometric and physical questions:
- The behavior of points infinitely close to each other or infinitely far away, which establishes the concept of limits.
- The definition of a tangent line to a curve or the instantaneous rate of change, which establishes the concept of derivatives.
- The definition of the area of curved shapes and the accumulation of changing quantities over an interval, which establishes the concept of integration (explored in Chapter 5).
- Development strategy for integration:
- Rather than computing areas under curved curves directly from the outset, approximations are constructed using simple geometric polygons (specifically rectangles).
- The approximation is subsequently transformed into an exact equality by evaluating the limit as the number of approximating rectangles approaches infinity.
- Section 5.1 focuses entirely on these rectangular approximations.
- Rectangles are selected because their geometric area is straightforward to compute:
- Area=base×height
- Area under the curve:
- Defined as the area of the region bounded between the graph of a function and the x-axis over a specified interval.
- Mechanics of basic rectangular approximation:
- Rectangular approximations are not exact because rectangles inevitably overshoot (extending above the curve and including unwanted area) or undershoot (failing to cover the entirety of the area beneath the curve).
- Over a partition of the domain, the total approximate area is the sum of the individual rectangular areas:
- Total Area=(base1×height1)+(base2×height2)+⋯+(basen×heightn)
- The base corresponds to the width of the interval along the x-axis (Δx), and the height corresponds to the y-coordinate of the function.
Example 1: Arbitrary Rectangular Approximation
- Approximation of the area under a curve using five distinct rectangles with varying base widths and heights:
- Rectangle 1:
- Base width: 2
- Height: 6
- Area: 2×6=12
- Rectangle 2:
- Spans from x=2 to x=4, giving a base width of 4−2=2
- Height: 5
- Area: 2×5=10
- Rectangle 3:
- Spans from x=4 to x=8, giving a base width of 8−4=4
- Height: 3
- Area: 4×3=12
- Rectangle 4:
- Spans a base width of 4
- Height: 5
- Area: 4×5=20
- Rectangle 5:
- Spans a base width of 4
- Height: 7
- Area: 4×7=28
- Total area computation:
- Total Area=12+10+12+20+28=82square units
- While base widths do not strictly need to be identical, setting all bases to an equal width significantly streamlines systematic algebraic computations.
Right Endpoint Approximation (Rn)
- Subdividing an interval [a,b] into n equal subintervals:
- The uniform base width (denoted Δx) is computed by taking the total length of the interval and dividing by the desired number of rectangles n:
- Δx=nb−a
- The interval [a,b] is partitioned into n subintervals of equal width: [xi−1,xi] for i=1,2,…,n.
- Endpoints are computed iteratively by shifting to the right from a by multiples of Δx:
- x0=a
- x1=a+Δx
- x2=a+2Δx
- xi=a+iΔx
- xn=a+nΔx=b
- Height selection for the right endpoint approximation:
- Rectangles are constructed such that their top-right corners intersect the curve.
- For each subinterval [xi−1,xi], the height of the i-th rectangle is determined by evaluating the function at the right endpoint xi:
- Heighti=f(xi)
- Formula for the n-th Right Endpoint Approximation (Rn):
- Factoring out the uniform base width Δx yields:
- Rn=Δx⋅[f(x1)+f(x2)+⋯+f(xn)]
- Behavior as n increases:
- Making rectangles thinner by increasing n diminishes the magnitude of both undershooting and overshooting gaps.
- As n→∞, the approximation converges to the true area under the curve.
Example 2: Approximating the Area Under f(x)=x2 on [1,3]
- Problem objective: Estimate the area under f(x)=x2 on the interval [1,3] using right endpoint approximations with n=4 and n=6.
- Part (a): Four rectangles (n=4):
- Calculate the uniform base width Δx:
- Δx=43−1=42=21
- Identify the subinterval endpoints by starting at a=1 and repeatedly adding Δx=21:
- x0=1
- x1=1+21=23
- x2=23+21=24=2
- x3=24+21=25
- x4=25+21=26=3
- Calculate rectangular heights using f(x)=x2:
- f(x1)=f(23)=(23)2=49
- f(x2)=f(24)=(24)2=416
- f(x3)=f(25)=(25)2=425
- f(x4)=f(26)=(26)2=436
- Compute R4:
- R4=Δx⋅[f(x1)+f(x2)+f(x3)+f(x4)]
- R4=21[49+416+425+436]
- Sum of numerators: 9+16+25+36=86
- R4=21(486)=886=10.75
- Part (b): Six rectangles (n=6):
- Calculate the uniform base width Δx:
- Δx=63−1=62=31
- Identify the subinterval endpoints by starting at a=1 and repeatedly adding Δx=31:
- x0=1
- x1=1+31=34
- x2=34+31=35
- x3=35+31=36=2
- x4=36+31=37
- x5=37+31=38
- x6=38+31=39=3
- Calculate rectangular heights using f(x)=x2:
- f(x1)=(34)2=916
- f(x2)=(35)2=925
- f(x3)=(36)2=936
- f(x4)=(37)2=949
- f(x5)=(38)2=964
- f(x6)=(39)2=981
- Compute R6:
- R6=31[916+925+936+949+964+981]
- Sum of numerators: 16+25+36+49+64+81=271
- R6=31(9271)=27271≈10.04
- Analysis of results:
- The approximation decreased from 10.75 to 10.04.
- Because f(x)=x2 is an increasing function on [1,3], right endpoint rectangles consistently overshoot the actual area under the graph.
- Increasing n from 4 to 6 reduces the overcounting margin, driving the estimate closer to the actual value.
Summation (Sigma) Notation
- Definition and structure:
- Summation notation provides a concise mathematical shorthand for expressing long sums of indexed numbers am,am+1,…,an:
- ∑i=mnai=am+am+1+am+2+⋯+an
- Read aloud as: "the sum as i goes from m to n of ai".
- Components of the notation:
- Capital Greek letter Sigma (Σ): Represents "sum" (originating from the English letter S).
- Summation index (i): A "dummy variable" that keeps track of the current term. Any symbol can serve as the index.
- Lower limit (m): The starting integer value substituted into the expression.
- Upper limit (n): The stopping integer value substituted into the expression.
- Algorithmic analogy:
- Sigma notation is equivalent to a programming
for loop initialized at i=m, running up to i=n, incrementing by 1 each iteration, and accumulating the term ai into a total sum.
- Illustrative evaluation example:
- ∑i=35(i2+i)
- Term for i=3: 32+3=9+3=12
- Term for i=4: 42+4=16+4=20
- Term for i=5: 52+5=25+5=30
- Sum evaluation:
- ∑i=35(i2+i)=(32+3)+(42+4)+(52+5)=12+20+30=62
- Compact representation of Right Endpoint Approximation (Rn):
- Rn=Δx∑i=1nf(xi)
Left Endpoint and Midpoint Approximations
- Left Endpoint Approximation (Ln):
- Rectangles are constructed such that their top-left corners touch the graph of f(x).
- On each subinterval [xi−1,xi], the height is evaluated at the left boundary xi−1:
- Heighti=f(xi−1)
- Expressed using an index starting at 1:
- Ln=Δx∑i=1nf(xi−1)
- Expressed alternatively by re-indexing to start at 0 and stop at n−1:
- Ln=Δx∑i=0n−1f(xi)
- The index begins at x0=a and stops at xn−1, omitting the right boundary xn=b.
- Midpoint Approximation (Mn):
- Rectangles are constructed such that their heights match the value of the function at the exact midpoint of each subinterval.
- The midpoint of subinterval [xi−1,xi] is defined as the arithmetic average of the two endpoints:
- xi∗=2xi−1+xi
- The height of the i-th rectangle is:
- Heighti=f(2xi−1+xi)
- Formula for Mn:
- Mn=Δx∑i=1nf(2xi−1+xi)
- Accuracy comparison across approximations:
- For a fixed number of rectangles n, the midpoint approximation Mn typically yields a substantially more accurate approximation than either Ln or Rn.
- Because the midpoint sample lies in the interior of each subinterval, the rectangle overshoots the curve on one side and undershoots it on the other side. These two opposite errors partially cancel each other out across each subinterval.
Physical Application: Estimating Distance from Velocity Data
- Physical foundations:
- At a constant speed v, distance traveled across elapsed time t is given by:
- Distance=speed×time=v⋅t
- When velocity is non-constant, this product is no longer directly applicable over the entire duration.
- Rectangular approximations operate on the premise that over sufficiently small time increments (subintervals), velocity is approximately constant.
- Total distance is approximated by accumulating the estimated distances across all subintervals.
- Example 3 setup and data:
- An object's velocity v(t) was recorded at half-second intervals over the span t∈[0,3]:
- At t=0.0s: v(0.0)=0m/s
- At t=0.5s: v(0.5)=12m/s
- At t=1.0s: v(1.0)=18m/s
- At t=1.5s: v(1.5)=25m/s
- At t=2.0s: v(2.0)=20m/s
- At t=2.5s: v(2.5)=14m/s
- At t=3.0s: v(3.0)=20m/s
- Part (a): Right endpoint approximation with six rectangles (R6):
- Calculate time increment Δt for n=6:
- Δt=63−0=0.5s
- Right endpoint sample times: t1=0.5, t2=1.0, t3=1.5, t4=2.0, t5=2.5, t6=3.0
- Computation:
- R6=Δt∑i=16v(ti)
- R6=0.5⋅[v(0.5)+v(1.0)+v(1.5)+v(2.0)+v(2.5)+v(3.0)]
- R6=0.5⋅[12+18+25+20+14+20]
- R6=0.5⋅[109]=54.5meters
- Part (b): Left endpoint approximation with six rectangles (L6):
- The subinterval width remains Δt=0.5s.
- Left endpoint sample times: t0=0.0, t1=0.5, t2=1.0, t3=1.5, t4=2.0, t5=2.5
- Computation:
- L6=Δt∑i=05v(ti)
- L6=0.5⋅[v(0.0)+v(0.5)+v(1.0)+v(1.5)+v(2.0)+v(2.5)]
- L6=0.5⋅[0+12+18+25+20+14]
- L6=0.5⋅[89]=44.5meters
- With L6=44.5m and R6=54.5m, one method undershoots and the other overshoots; the actual total distance is estimated to lie near the center of these bounds (around 50m.
- Part (c): Midpoint approximation with three rectangles (M3):
- Because n=3, Δt must be recalculated:
- Δt=33−0=1.0s
- Subintervals: [0,1], [1,2], and [2,3]
- Subinterval midpoints:
- For [0,1]: 20+1=0.5s
- For [1,2]: 21+2=1.5s
- For [2,3]: 22+3=2.5s
- Computation:
- M3=1.0⋅[v(0.5)+v(1.5)+v(2.5)]
- M3=1.0⋅[12+25+14]=51meters
- Result analysis:
- The value 51meters lands directly between L6 (44.5m) and R6 (54.5m), demonstrating that the midpoint approximation achieves superior balance and accuracy even with half the number of rectangles (n=3 vs. n=6).
Convergence and the Definition of Area Under a Curve
- Equivalence of approximations in the limit:
- Turning discrete geometric approximations into exact values requires taking the limit as the number of subintervals approaches infinity (n→∞).
- For well-behaved functions, the choice of evaluation point within each subinterval (right endpoint, left endpoint, or midpoint) becomes irrelevant in the infinite limit.
- Formal Theorem for Continuous Functions:
- Let f be a continuous function defined on the closed interval [a,b].
- There exists a unique real number A such that:
- limn→∞Rn=limn→∞Ln=limn→∞Mn=A
- If f(x)≥0 for all x∈[a,b], then A≥0.
- This common limit A is formally defined as the exact area under the curve y=f(x) on [a,b].
- Theoretical role of continuity in convergence:
- The width of each subinterval is Δx=nb−a.
- As n→∞, Δx→0, meaning the endpoints xi−1, xi, and the midpoint 2xi−1+xi converge toward the exact same value.
- By the fundamental definition of continuity, if input coordinates get arbitrarily close to one another, their corresponding function outputs f(xi−1), f(xi), and f(2xi−1+xi) must also get arbitrarily close to one another.
- Consequently, the evaluations across all three methods converge to the identical sum in the limit.
Questions & Discussion
- Summing an infinite collection of rectangles:
- Question: How do we add up an infinite amount of rectangles?
- Answer: By evaluating limits. The discrete sum with n rectangles is evaluated under the limit process as n→∞.
- Upper bound in sigma notation:
- Question: The n on the top is basically the number we stop at?
- Answer: Yes. The variable m at the base of the sigma denotes the starting index, and the variable n at the top denotes the stopping index. It is important to emphasize that these limits are not the numbers being summed; they are indices that specify which evaluated terms enter the summation.
- Dummy variables and indices:
- Question: Are the i and the n like normal variables?
- Answer: The variable i is a dummy variable/index that keeps track of the progression through the sum, and any letter can be substituted in its place. The variable n represents the total number of rectangles into which the interval is partitioned. Because right endpoint approximations evaluate after shifting over by Δx, they initialize at i=1.
- Starting index for left endpoint approximations:
- Question: And left endpoint thing was a thing when we start with zero?
- Answer: Yes. The left endpoint approximation begins evaluating at the far left boundary x0=a, which corresponds to starting the summation index at i=0 and terminating at n−1.
- Behavior when functions reach zero or negative values:
- Question: What if our line goes to zero?
- Answer: That condition is addressed in subsequent sections. For introductory approximations, the function is assumed to satisfy f(x)≥0 to keep the geometric concept of area straightforward.
- Derivation of evaluation points in midpoint approximation:
- Question: How do we know to derive the equation for t? Like, where am I getting these numbers from?… The line under that M3 equals summation…
- Answer: Those values are obtained because the midpoint approximation requires evaluating the function at the center of each subinterval, which is the average of successive endpoints. For subintervals [0,1], [1,2], and [2,3], the midpoints are 20+1=0.5, 21+2=1.5, and 22+3=2.5. These times are then referenced directly in the table to retrieve their respective velocities.