Solved Exercises on Riemann Sums in Calculus 1

Master Riemann sums: understanding left, right, and midpoint approximations, connecting to definite integrals through these 3 detailed exercises.

Solution: Exercises 1 to 3
1 Left Riemann Sum
Exercise 1
Approximate ∫[0,4] (x² + 1) dx using a left Riemann sum with n = 4 subintervals.
Definition:

Left Riemann Sum: A method to approximate the definite integral by using the left endpoint of each subinterval to determine the height of the rectangle: Lₙ = Σ[f(xᵢ₋₁)]Δx, where xᵢ₋₁ is the left endpoint of the i-th subinterval.

Method for left Riemann sum:
  1. Divide interval [a,b] into n equal subintervals
  2. Calculate Δx = (b - a)/n
  3. Find left endpoints: x₀, x₁, x₂, ..., xₙ₋₁
  4. Evaluate function at left endpoints
  5. Calculate sum: Lₙ = Δx[f(x₀) + f(x₁) + ... + f(xₙ₋₁)]
Interval
[0, 4]
Subintervals
n = 4
Width
Δx = 1
Step 1: Calculate subinterval width

Δx = (b - a)/n = (4 - 0)/4 = 4/4 = 1

Step 2: Find subinterval endpoints

x₀ = 0, x₁ = 1, x₂ = 2, x₃ = 3, x₄ = 4

Step 3: Identify left endpoints

For left Riemann sum, use: x₀ = 0, x₁ = 1, x₂ = 2, x₃ = 3

Step 4: Evaluate function at left endpoints

f(x) = x² + 1

f(0) = 0² + 1 = 1

f(1) = 1² + 1 = 2

f(2) = 2² + 1 = 5

f(3) = 3² + 1 = 10

Step 5: Calculate the left Riemann sum

L₄ = Δx[f(x₀) + f(x₁) + f(x₂) + f(x₃)]

L₄ = 1[1 + 2 + 5 + 10] = 1[18] = 18

Left Riemann sum: L₄ = 18
Final answer:

The left Riemann sum approximation for ∫[0,4] (x² + 1) dx with n = 4 subintervals is 18.

Applied rules:

• Riemann Sum Formula: Lₙ = Σ[i=1 to n] f(xᵢ₋₁)Δx

• Subinterval Width: Δx = (b - a)/n

• Left Endpoint: For i-th subinterval, use xᵢ₋₁

2 Right Riemann Sum
Exercise 2
Approximate ∫[1,3] (2x + 1) dx using a right Riemann sum with n = 4 subintervals.
Definition:

Right Riemann Sum: A method to approximate the definite integral by using the right endpoint of each subinterval to determine the height of the rectangle: Rₙ = Σ[f(xᵢ)]Δx, where xᵢ is the right endpoint of the i-th subinterval.

Interval
[1, 3]
Subintervals
n = 4
Width
Δx = 0.5
Step 1: Calculate subinterval width

Δx = (b - a)/n = (3 - 1)/4 = 2/4 = 0.5

Step 2: Find subinterval endpoints

x₀ = 1, x₁ = 1.5, x₂ = 2, x₃ = 2.5, x₄ = 3

Step 3: Identify right endpoints

For right Riemann sum, use: x₁ = 1.5, x₂ = 2, x₃ = 2.5, x₄ = 3

Step 4: Evaluate function at right endpoints

f(x) = 2x + 1

f(1.5) = 2(1.5) + 1 = 4

f(2) = 2(2) + 1 = 5

f(2.5) = 2(2.5) + 1 = 6

f(3) = 2(3) + 1 = 7

Step 5: Calculate the right Riemann sum

R₄ = Δx[f(x₁) + f(x₂) + f(x₃) + f(x₄)]

R₄ = 0.5[4 + 5 + 6 + 7] = 0.5[22] = 11

Step 6: Compare with exact value

Exact value: ∫[1,3] (2x + 1) dx = [x² + x][1,3] = (9 + 3) - (1 + 1) = 12 - 2 = 10

Right sum (11) is greater than exact value (10) because f(x) = 2x + 1 is increasing

Right Riemann sum: R₄ = 11
Exact value: 10
Final answer:

The right Riemann sum approximation for ∫[1,3] (2x + 1) dx with n = 4 subintervals is 11. The exact value is 10.

Applied rules:

• Riemann Sum Formula: Rₙ = Σ[i=1 to n] f(xᵢ)Δx

• For increasing functions: Right sum overestimates, left sum underestimates

• Right Endpoint: For i-th subinterval, use xᵢ

3 Midpoint Riemann Sum
Exercise 3
Approximate ∫[0,2] x³ dx using a midpoint Riemann sum with n = 4 subintervals.
Definition:

Midpoint Riemann Sum: A method to approximate the definite integral by using the midpoint of each subinterval to determine the height of the rectangle: Mₙ = Σ[f(x̄ᵢ)]Δx, where x̄ᵢ is the midpoint of the i-th subinterval.

Interval
[0, 2]
Subintervals
n = 4
Width
Δx = 0.5
Step 1: Calculate subinterval width

Δx = (b - a)/n = (2 - 0)/4 = 2/4 = 0.5

Step 2: Find subinterval endpoints

x₀ = 0, x₁ = 0.5, x₂ = 1, x₃ = 1.5, x₄ = 2

Step 3: Find midpoints of each subinterval

Subinterval 1: [0, 0.5], midpoint = (0 + 0.5)/2 = 0.25

Subinterval 2: [0.5, 1], midpoint = (0.5 + 1)/2 = 0.75

Subinterval 3: [1, 1.5], midpoint = (1 + 1.5)/2 = 1.25

Subinterval 4: [1.5, 2], midpoint = (1.5 + 2)/2 = 1.75

Step 4: Evaluate function at midpoints

f(x) = x³

f(0.25) = (0.25)³ = 0.015625

f(0.75) = (0.75)³ = 0.421875

f(1.25) = (1.25)³ = 1.953125

f(1.75) = (1.75)³ = 5.359375

Step 5: Calculate the midpoint Riemann sum

M₄ = Δx[f(0.25) + f(0.75) + f(1.25) + f(1.75)]

M₄ = 0.5[0.015625 + 0.421875 + 1.953125 + 5.359375]

M₄ = 0.5[7.75] = 3.875

Step 6: Compare with exact value

Exact value: ∫[0,2] x³ dx = [x⁴/4][0,2] = (16/4) - (0/4) = 4 - 0 = 4

Midpoint sum (3.875) is very close to exact value (4), demonstrating its accuracy

Midpoint Riemann sum: M₄ = 3.875
Exact value: 4
Final answer:

The midpoint Riemann sum approximation for ∫[0,2] x³ dx with n = 4 subintervals is 3.875. The exact value is 4.

Applied rules:

• Midpoint Formula: x̄ᵢ = (xᵢ₋₁ + xᵢ)/2

• Midpoint Riemann Sum: Mₙ = Σ[i=1 to n] f(x̄ᵢ)Δx

• Accuracy: Midpoint rule is generally more accurate than left/right rules

Riemann Sums Summary
\lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*) \Delta x = \int_a^b f(x) dx
Definition of Definite Integral
Left Sum
L_n = \sum_{i=1}^{n} f(x_{i-1}) \Delta x
Uses left endpoints
Right Sum
R_n = \sum_{i=1}^{n} f(x_i) \Delta x
Uses right endpoints
Midpoint Sum
M_n = \sum_{i=1}^{n} f(\bar{x}_i) \Delta x
Uses midpoints
Key definitions:

Riemann Sum: An approximation of the area under a curve using rectangles. The sum of the areas of these rectangles approximates the definite integral.

Partition: Dividing the interval [a,b] into n subintervals of equal width Δx = (b-a)/n.

Sample Point: The point in each subinterval where the function is evaluated to determine the height of the rectangle.

Complete methodology:
  1. Define interval: Identify [a,b] and number of subintervals n
  2. Calculate width: Δx = (b-a)/n
  3. Find endpoints: x₀, x₁, x₂, ..., xₙ where xᵢ = a + iΔx
  4. Select sample points: Left (xᵢ₋₁), Right (xᵢ), or Midpoint ((xᵢ₋₁ + xᵢ)/2)
  5. Evaluate function: Calculate f at each sample point
  6. Calculate sum: Multiply each function value by Δx and sum
Tip 1: For increasing functions, left sums underestimate and right sums overestimate.
Tip 2: For decreasing functions, left sums overestimate and right sums underestimate.
Tip 3: Midpoint rule is generally more accurate than left/right rules.
Tip 4: As n increases, Riemann sums approach the exact definite integral value.
Common errors: Miscounting subintervals, wrong endpoint selection, arithmetic mistakes in function evaluations.
Exam preparation: Practice with various function types, memorize formulas, understand error patterns.
Essential rules to remember:

• Subinterval Width: Δx = (b-a)/n

• Endpoint Formula: xᵢ = a + iΔx

• Left Rule: Use f(xᵢ₋₁) for i = 1,2,...,n

• Right Rule: Use f(xᵢ) for i = 1,2,...,n

• Midpoint Rule: Use f((xᵢ₋₁ + xᵢ)/2) for i = 1,2,...,n

Detailed Educational Summary
Core Concepts:

Riemann Sums Concept: The fundamental idea of approximating area under a curve by dividing it into rectangles and summing their areas. As the number of rectangles increases, the approximation becomes more accurate.

Definite Integral Connection: Riemann sums provide the theoretical foundation for definite integrals. The definite integral is defined as the limit of Riemann sums as n approaches infinity.

Error Patterns: Understanding when different Riemann sum methods overestimate or underestimate based on function behavior.

Step-by-Step Process:
  1. Setup: Identify the interval [a,b] and number of subintervals n
  2. Calculate Δx: Find the width of each subinterval using Δx = (b-a)/n
  3. Find endpoints: Calculate x₀, x₁, x₂, ..., xₙ using xᵢ = a + iΔx
  4. Identify sample points: Determine which points to use based on the method (left, right, midpoint)
  5. Evaluate function: Calculate f(x) at each sample point
  6. Calculate sum: Multiply each function value by Δx and add them together
Memory Aid: "Left, Right, Midpoint" - for left use x₀ to xₙ₋₁, for right use x₁ to xₙ, for midpoint use centers.
Visualization: Think of rectangles filling the area under the curve, each contributing to the total approximation.
Strategy: For concave up functions, midpoint underestimates; for concave down, it overestimates.
Important Notes:

• The accuracy of Riemann sums improves as n increases (more subintervals)

• For linear functions, all three methods (left, right, midpoint) give the same result

• The midpoint rule is often more accurate than left/right rules for the same n

• Riemann sums provide the conceptual foundation for the definite integral

Comprehensive Rules, Methods, and Examples
\int_a^b f(x) dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*) \Delta x
Riemann Sum Limit Definition
Detailed Definitions:

Norm of Partition: The width of the largest subinterval. As the norm approaches 0, the Riemann sum approaches the definite integral.

Upper and Lower Sums: Use maximum and minimum function values in each subinterval respectively. These provide bounds for the integral.

Trapezoidal Rule: Average of left and right Riemann sums, often more accurate than either alone.

Advanced Methodology:
  1. Error Analysis: Understand how error decreases with increasing n
  2. Convergence Rates: Different methods converge at different rates to the true value
  3. Optimization: Choose appropriate n for desired accuracy
  4. Numerical Integration: Extend to more sophisticated methods like Simpson's rule
Example Pattern: For f(x) = x², left sum underestimates, right sum overestimates on increasing intervals.
Testing Strategy: Use simple functions with known integrals to verify your calculations.
Verification: Check that your sample points fall within the correct subintervals.
Advanced Tip: For symmetric functions, use symmetry to reduce computation.
Connection: Riemann sums bridge discrete mathematics (finite sums) with continuous mathematics (integrals).
Advanced Applications:

• Numerical analysis: basis for computer algorithms for integration

• Physics: approximating work done by variable forces

• Engineering: calculating volumes and centroids

• Economics: computing consumer and producer surplus

Questions & Answers

Question: How do I know which Riemann sum method to use?

Answer: The choice depends on the context and requirements:

  • Problem asks specifically: Follow the instructions (left, right, or midpoint)
  • Best accuracy: Midpoint rule is generally most accurate for the same n
  • Understanding behavior: Use left and right to see over/underestimation patterns
  • Computational efficiency: All three have similar complexity

For increasing functions: Left sum < Midpoint sum < Right sum < Exact value

For decreasing functions: Right sum < Midpoint sum < Left sum < Exact value

The midpoint rule typically has smaller error than left or right rules.

Question: Why does the midpoint rule usually give better accuracy?

Answer: The midpoint rule tends to be more accurate due to error cancellation:

  • At left endpoint: Function value might be too low (for increasing function)
  • At right endpoint: Function value might be too high (for increasing function)
  • At midpoint: Function value is often closer to the average value over the subinterval

The midpoint rule is equivalent to using the average of the function values over each subinterval, which better represents the "typical" height of the region.

Mathematically, the error in the midpoint rule is proportional to 1/n², while the error in left/right rules is proportional to 1/n, making midpoint convergence faster.

Question: How do I find the exact x-coordinates of sample points?

Answer: First, establish the basic partition:

Δx = (b - a)/n

xᵢ = a + i·Δx for i = 0, 1, 2, ..., n

Then, for each method:

  • Left Riemann sum: Use x₀, x₁, x₂, ..., xₙ₋₁ (the left endpoints)
  • Right Riemann sum: Use x₁, x₂, x₃, ..., xₙ (the right endpoints)
  • Midpoint rule: Use (x₀+x₁)/2, (x₁+x₂)/2, ..., (xₙ₋₁+xₙ)/2

For example, with [a,b] = [0,4], n = 4: Δx = 1, and x₀=0, x₁=1, x₂=2, x₃=3, x₄=4

Left: use 0, 1, 2, 3; Right: use 1, 2, 3, 4; Midpoint: use 0.5, 1.5, 2.5, 3.5

Question: What happens to Riemann sums as n approaches infinity?

Answer: This is the fundamental connection between Riemann sums and definite integrals:

lim (n→∞) Riemann sum = ∫[a,b] f(x) dx

As n increases (meaning more subintervals, each with smaller width), the approximation becomes more accurate. The rectangles better conform to the shape of the curve.

This limit is the precise mathematical definition of the definite integral. It means that the definite integral is not just a computational tool, but a limit of increasingly refined approximations.

For continuous functions, this limit always exists and equals the definite integral. The Riemann sum approaches the exact area under the curve.

Question: How can I visualize Riemann sums?

Answer: Here are effective visualization strategies:

  1. Draw the curve: Sketch the function f(x) over [a,b]
  2. Partition the interval: Draw vertical lines at x₀, x₁, ..., xₙ
  3. Construct rectangles: For each subinterval, draw a rectangle with base Δx and height determined by the sample point
  4. Left sum: Rectangle height at left edge of subinterval
  5. Right sum: Rectangle height at right edge of subinterval
  6. Midpoint: Rectangle height at center of subinterval

Imagine the rectangles as building blocks that approximate the area under the curve. As you add more rectangles (increase n), the approximation becomes smoother and closer to the actual curve.

For increasing functions, left rectangles sit below the curve, right rectangles extend above, and midpoint rectangles often provide the best fit.