Day 29 - Riemann Sums Notes

Course Objectives and Administrative Details
  • Primary Learning Objective: Compute left Riemann sums and right Riemann sums for continuous functions and discrete data sets.

  • Associated Course Material: Textbook Section 13.313.3.

  • Key Terminology:

    • Left Riemann Sum: Rectangular approximation evaluating curve heights at subinterval left endpoints.

    • Right Riemann Sum: Rectangular approximation evaluating curve heights at subinterval right endpoints.

    • Trapezoidal Riemann Sum: Average of left and right sums using trapezoids.

    • Subinterval Width (Δx\Delta x): Uniform width of approximating sections.

    • Partition Grid Points (aka_k): Discrete coordinate boundaries dividing the interval.

  • Upcoming Assignments and Deadlines:

    • Prelab 99 Quiz: Due tomorrow at 11:59 pm11:59\,\text{pm}.

    • Homework 1212: Due on WebAssign on Thursday.

Estimating Distance from Discrete Velocity Data
  • Problem Formulation:

    • Vehicle speedometer readings taken every 5 s5\,\text{s} over total duration of 25 s25\,\text{s}.

    • Recorded data points:

    • At t=0 st = 0\,\text{s}, velocity v(0)=0 ft/sv(0) = 0\,\text{ft/s}

    • At t=5 st = 5\,\text{s}, velocity v(5)=10 ft/sv(5) = 10\,\text{ft/s}

    • At t=10 st = 10\,\text{s}, velocity v(10)=14 ft/sv(10) = 14\,\text{ft/s}

    • At t=15 st = 15\,\text{s}, velocity v(15)=29 ft/sv(15) = 29\,\text{ft/s}

    • At t=20 st = 20\,\text{s}, velocity v(20)=40 ft/sv(20) = 40\,\text{ft/s}

    • At t=25 st = 25\,\text{s}, velocity v(25)=50 ft/sv(25) = 50\,\text{ft/s}

    • Objective: Estimate total distance traveled during the interval [0,25][0, 25].

    • Visual reference:     

      Discrete Velocity Data Plot
  • Step-by-Step Distance Estimations:

    • Time Step Size (Δt\Delta t):

    • Δt=5 s\Delta t = 5\,\text{s}

    • Left Riemann Sum (LL):

    • Uses left endpoint velocities: t∈{0,5,10,15,20}t \in \{0, 5, 10, 15, 20\}

    • L=∑k=04v(tk)ΔtL = \sum_{k=0}^{4} v(t_k) \Delta t

    • L=(0×5)+(10×5)+(14×5)+(29×5)+(40×5)L = (0 \times 5) + (10 \times 5) + (14 \times 5) + (29 \times 5) + (40 \times 5)

    • L=5×(0+10+14+29+40)=5×93=465 ftL = 5 \times (0 + 10 + 14 + 29 + 40) = 5 \times 93 = 465\,\text{ft}

    • Right Riemann Sum (RR):

    • Uses right endpoint velocities: t∈{5,10,15,20,25}t \in \{5, 10, 15, 20, 25\}

    • R=∑k=15v(tk)ΔtR = \sum_{k=1}^{5} v(t_k) \Delta t

    • R=(10×5)+(14×5)+(29×5)+(40×5)+(50×5)R = (10 \times 5) + (14 \times 5) + (29 \times 5) + (40 \times 5) + (50 \times 5)

    • R=5×(10+14+29+40+50)=5×143=715 ftR = 5 \times (10 + 14 + 29 + 40 + 50) = 5 \times 143 = 715\,\text{ft}

    • Average Approximation:

    • Average=L+R2\text{Average} = \frac{L + R}{2}

    • Average=465+7152=11802=590 ft\text{Average} = \frac{465 + 715}{2} = \frac{1180}{2} = 590\,\text{ft}

Mathematical Formulation of Riemann Sums
  • Conceptual Foundation: Approximates total net area bounded between continuous curve y=f(x)y = f(x) and the xx-axis across closed interval [a,b][a, b].

  • Interval Partitioning:

    • Divide interval [a,b][a, b] into nn subintervals of uniform width:

    • Δx=b−an\Delta x = \frac{b - a}{n}

    • Partition grid points aka_k across subintervals [ak,ak+1][a_k, a_{k+1}] for 0≤k≤n−10 \le k \le n - 1:

    • ak=a+k⋅Δxa_k = a + k \cdot \Delta x

    • a0=aa_0 = a

    • a1=a+Δxa_1 = a + \Delta x

    • an=a+n⋅Δx=ba_n = a + n \cdot \Delta x = b

  • Left Riemann Sum (LL):

    • L=∑k=0n−1f(ak)ΔxL = \sum_{k=0}^{n-1} f(a_k) \Delta x

    • L=Δx[f(a0)+f(a1)+f(a2)+⋯+f(an−1)]L = \Delta x \left[ f(a_0) + f(a_1) + f(a_2) + \dots + f(a_{n-1}) \right]

  • Right Riemann Sum (RR):

    • R=∑k=1nf(ak)ΔxR = \sum_{k=1}^{n} f(a_k) \Delta x

    • R=Δx[f(a1)+f(a2)+f(a3)+⋯+f(an)]R = \Delta x \left[ f(a_1) + f(a_2) + f(a_3) + \dots + f(a_n) \right]

  • Partition Refinement Effect:

    • As n→∞n \rightarrow \infty, Δx→0\Delta x \rightarrow 0, rectangle approximations converge to the exact definite integral.

    • Visual reference:     

      Riemann Sum Geometric Illustration
Worked Examples: Left and Right Riemann Sums
  • Example 29.1: Quadratic Function (n=3n = 3):

    • Problem: Compute LL and RR for f(x)=x2f(x) = x^2 over interval [0,3][0, 3] with n=3n = 3.

    • Parameters: [a,b]=[0,3][a, b] = [0, 3], n=3n = 3, Δx=3−03=1\Delta x = \frac{3 - 0}{3} = 1.

    • Grid Points & Evaluations:

    • a0=0  ⟹  f(0)=0a_0 = 0 \implies f(0) = 0

    • a1=1  ⟹  f(1)=1a_1 = 1 \implies f(1) = 1

    • a2=2  ⟹  f(2)=4a_2 = 2 \implies f(2) = 4

    • a3=3  ⟹  f(3)=9a_3 = 3 \implies f(3) = 9

    • Calculations:

    • L=1⋅[f(0)+f(1)+f(2)]=1⋅(0+1+4)=5L = 1 \cdot [f(0) + f(1) + f(2)] = 1 \cdot (0 + 1 + 4) = 5

    • R=1⋅[f(1)+f(2)+f(3)]=1⋅(1+4+9)=14R = 1 \cdot [f(1) + f(2) + f(3)] = 1 \cdot (1 + 4 + 9) = 14

  • Example 29.2: Quadratic Function Refined (n=8n = 8):

    • Problem: Compute LL and RR for f(x)=x2f(x) = x^2 over [0,3][0, 3] with n=8n = 8.

    • Parameters: Δx=3−08=38\Delta x = \frac{3 - 0}{8} = \frac{3}{8}, grid points ak=3k8a_k = \frac{3k}{8}.

    • Calculations:

    • L=38∑k=07(3k8)2=27512∑k=07k2=27512(140)=945128≈7.3828125L = \frac{3}{8} \sum_{k=0}^{7} \left(\frac{3k}{8}\right)^2 = \frac{27}{512} \sum_{k=0}^{7} k^2 = \frac{27}{512} (140) = \frac{945}{128} \approx 7.3828125

    • R=38∑k=18(3k8)2=27512∑k=18k2=27512(204)=1377128≈10.7578125R = \frac{3}{8} \sum_{k=1}^{8} \left(\frac{3k}{8}\right)^2 = \frac{27}{512} \sum_{k=1}^{8} k^2 = \frac{27}{512} (204) = \frac{1377}{128} \approx 10.7578125

  • Example 29.3: Cubic Polynomial (n=3n = 3):

    • Problem: Compute LL and RR for g(x)=x3+xg(x) = x^3 + x over [−1,1][-1, 1] with n=3n = 3.

    • Parameters: [a,b]=[−1,1][a, b] = [-1, 1], Δx=1−(−1)3=23\Delta x = \frac{1 - (-1)}{3} = \frac{2}{3}.

    • Grid Points & Evaluations:

    • a0=−1  ⟹  g(−1)=−2a_0 = -1 \implies g(-1) = -2

    • a1=−13  ⟹  g(−13)=−1027a_1 = -\frac{1}{3} \implies g\left(-\frac{1}{3}\right) = -\frac{10}{27}

    • a2=13  ⟹  g(13)=1027a_2 = \frac{1}{3} \implies g\left(\frac{1}{3}\right) = \frac{10}{27}

    • a3=1  ⟹  g(1)=2a_3 = 1 \implies g(1) = 2

    • Calculations:

    • L=23[−2−1027+1027]=23(−2)=−43L = \frac{2}{3} \left[ -2 - \frac{10}{27} + \frac{10}{27} \right] = \frac{2}{3} (-2) = -\frac{4}{3}

    • R=23[−1027+1027+2]=23(2)=43R = \frac{2}{3} \left[ -\frac{10}{27} + \frac{10}{27} + 2 \right] = \frac{2}{3} (2) = \frac{4}{3}

Geometric Properties and Behavior of Riemann Sums
  • Approximation Characteristics:

    • Riemann sums estimate total area bounded by a continuous curve and horizontal axis.

    • Standard evaluation points are left/right endpoints for computation efficiency.

  • Monotonicity & Error Bounds:

    • Strictly Increasing Functions:

    • Left sum evaluates minimum subinterval values: L<Exact AreaL < \text{Exact Area} (Underestimate)

    • Right sum evaluates maximum subinterval values: R>Exact AreaR > \text{Exact Area} (Overestimate)

    • Strictly Decreasing Functions:

    • Left sum evaluates maximum subinterval values: L>Exact AreaL > \text{Exact Area} (Overestimate)

    • Right sum evaluates minimum subinterval values: R<Exact AreaR < \text{Exact Area} (Underestimate)

The Trapezoidal Riemann Sum
  • Definition & Geometric Meaning:

    • Arithmetic mean of left and right sums for uniform nn terms:

    • T=L+R2T = \frac{L + R}{2}

    • Geometrically replaces rectangles with trapezoids over each subinterval [ak,ak+1][a_k, a_{k+1}].

    • Area of the kk-th trapezoid:

    • Areak=f(ak)+f(ak+1)2⋅Δx\text{Area}_k = \frac{f(a_k) + f(a_{k+1})}{2} \cdot \Delta x

  • Expanded Formula:

    • T=Δx2[f(a0)+2f(a1)+2f(a2)+⋯+2f(an−1)+f(an)]T = \frac{\Delta x}{2} \left[ f(a_0) + 2f(a_1) + 2f(a_2) + \dots + 2f(a_{n-1}) + f(a_n) \right]

  • Approximation Quality: Matches curves significantly better than flat rectangular tops, yielding superior accuracy.

  • Example 29.4: Trapezoidal Sum for an Odd Function:

    • Problem: Compute trapezoidal sum for g(x)=x3+xg(x) = x^3 + x over [−1,1][-1, 1] with n=3n = 3.

    • Values: From Example 29.3, L=−43L = -\frac{4}{3} and R=43R = \frac{4}{3}.

    • Calculation:

    • T=L+R2=−43+432=0T = \frac{L + R}{2} = \frac{-\frac{4}{3} + \frac{4}{3}}{2} = 0

    • Conclusion: Reflects exact anti-symmetry of odd function g(x)g(x) across origin.