Left Riemann Sum: \(L_n = \sum_{i=0}^{n-1} f(x_i) \Delta x\) where \(x_i\) are left endpoints of subintervals.
- Divide interval \([a,b]\) into \(n\) equal subintervals of width \(\Delta x = \frac{b-a}{n}\)
- Identify left endpoints: \(x_0, x_1, ..., x_{n-1}\)
- Evaluate function at left endpoints
- Calculate: \(L_n = \Delta x[f(x_0) + f(x_1) + ... + f(x_{n-1})]\)
\(\Delta x = \frac{b-a}{n} = \frac{4-0}{4} = 1\)
With \(n = 4\), the subintervals are: \([0,1], [1,2], [2,3], [3,4]\)
Left endpoints: \(x_0 = 0, x_1 = 1, x_2 = 2, x_3 = 3\)
For \(f(x) = x^2\):
\(f(x_0) = f(0) = 0^2 = 0\)
\(f(x_1) = f(1) = 1^2 = 1\)
\(f(x_2) = f(2) = 2^2 = 4\)
\(f(x_3) = f(3) = 3^2 = 9\)
\(L_4 = \Delta x[f(x_0) + f(x_1) + f(x_2) + f(x_3)]\)
\(L_4 = 1[0 + 1 + 4 + 9] = 14\)
The left Riemann sum approximation is 14.
(Note: The exact value is \(\frac{64}{3} \approx 21.33\), so this underestimates due to the increasing function.)
• Left endpoint selection: Use \(x_0, x_1, ..., x_{n-1}\) for left sum
• Underestimation property: For increasing functions, left sum underestimates the integral
• Formula: \(L_n = \sum_{i=0}^{n-1} f(x_i) \Delta x\)
Right Riemann Sum: \(R_n = \sum_{i=1}^{n} f(x_i) \Delta x\) where \(x_i\) are right endpoints of subintervals.
\(\Delta x = 1\) (same as Exercise 1)
Right endpoints: \(x_1 = 1, x_2 = 2, x_3 = 3, x_4 = 4\)
For \(f(x) = x^2\):
\(f(x_1) = f(1) = 1^2 = 1\)
\(f(x_2) = f(2) = 2^2 = 4\)
\(f(x_3) = f(3) = 3^2 = 9\)
\(f(x_4) = f(4) = 4^2 = 16\)
\(R_4 = \Delta x[f(x_1) + f(x_2) + f(x_3) + f(x_4)]\)
\(R_4 = 1[1 + 4 + 9 + 16] = 30\)
The right Riemann sum approximation is 30.
(Note: The exact value is \(\frac{64}{3} \approx 21.33\), so this overestimates due to the increasing function.)
• Right endpoint selection: Use \(x_1, x_2, ..., x_n\) for right sum
• Overestimation property: For increasing functions, right sum overestimates the integral
• Formula: \(R_n = \sum_{i=1}^{n} f(x_i) \Delta x\)
Midpoint Riemann Sum: \(M_n = \sum_{i=1}^{n} f(\bar{x}_i) \Delta x\) where \(\bar{x}_i\) are midpoints of subintervals.
\(\Delta x = 1\) (same as previous exercises)
For intervals \([0,1], [1,2], [2,3], [3,4]\):
\(\bar{x}_1 = 0.5, \bar{x}_2 = 1.5, \bar{x}_3 = 2.5, \bar{x}_4 = 3.5\)
For \(f(x) = x^2\):
\(f(\bar{x}_1) = f(0.5) = (0.5)^2 = 0.25\)
\(f(\bar{x}_2) = f(1.5) = (1.5)^2 = 2.25\)
\(f(\bar{x}_3) = f(2.5) = (2.5)^2 = 6.25\)
\(f(\bar{x}_4) = f(3.5) = (3.5)^2 = 12.25\)
\(M_4 = \Delta x[f(\bar{x}_1) + f(\bar{x}_2) + f(\bar{x}_3) + f(\bar{x}_4)]\)
\(M_4 = 1[0.25 + 2.25 + 6.25 + 12.25] = 21\)
The midpoint Riemann sum approximation is 21.
(Note: The exact value is \(\frac{64}{3} \approx 21.33\), so this is very close to the actual value.)
• Midpoint selection: Use \(\bar{x}_i = \frac{x_{i-1} + x_i}{2}\) for midpoint sum
• Accuracy property: Midpoint rule is typically more accurate than left/right rules
• Formula: \(M_n = \sum_{i=1}^{n} f(\bar{x}_i) \Delta x\)
Riemann sum: An approximation of a definite integral using rectangles to estimate the area under a curve
Partition: Division of interval \([a,b]\) into \(n\) subintervals of equal width \(\Delta x = \frac{b-a}{n}\)
Sample point: The point \(x_i^*\) in each subinterval where the function is evaluated
- Determine partition: Calculate \(\Delta x = \frac{b-a}{n}\) and identify subintervals
- Select sample points: Choose left, right, or midpoint of each subinterval
- Evaluate function: Calculate \(f(x_i^*)\) for each sample point
- Sum rectangles: Multiply each function value by \(\Delta x\) and sum all products
Trapezoidal Rule: \(T_n = \frac{\Delta x}{2}[f(x_0) + 2f(x_1) + 2f(x_2) + ... + 2f(x_{n-1}) + f(x_n)]\)
\(\Delta x = 1\) (same as previous exercises)
All endpoints: \(x_0 = 0, x_1 = 1, x_2 = 2, x_3 = 3, x_4 = 4\)
For \(f(x) = x^2\):
\(f(x_0) = 0, f(x_1) = 1, f(x_2) = 4, f(x_3) = 9, f(x_4) = 16\)
\(T_n = \frac{\Delta x}{2}[f(x_0) + 2f(x_1) + 2f(x_2) + ... + 2f(x_{n-1}) + f(x_n)]\)
\(T_4 = \frac{1}{2}[f(0) + 2f(1) + 2f(2) + 2f(3) + f(4)]\)
\(T_4 = \frac{1}{2}[0 + 2(1) + 2(4) + 2(9) + 16]\)
\(T_4 = \frac{1}{2}[0 + 2 + 8 + 18 + 16] = \frac{44}{2} = 22\)
The trapezoidal rule approximation is 22.
(Note: The exact value is \(\frac{64}{3} \approx 21.33\), so this is quite close to the actual value.)
• Trapezoidal formula: Average of left and right sums: \(T_n = \frac{L_n + R_n}{2}\)
• Endpoint weights: Endpoints get weight 1, interior points get weight 2
• Formula: \(T_n = \frac{\Delta x}{2}[f(x_0) + 2\sum_{i=1}^{n-1}f(x_i) + f(x_n)]\)
Exact value: \(\int_0^4 x^2 dx = \left[\frac{x^3}{3}\right]_0^4 = \frac{64}{3} \approx 21.33\)
Exact value: \(\frac{64}{3} \approx 21.33\)
Left sum error: \(|21.33 - 14| = 7.33\)
Right sum error: \(|21.33 - 30| = 8.67\)
Midpoint error: \(|21.33 - 21| = 0.33\)
Trapezoid error: \(|21.33 - 22| = 0.67\)
For the increasing function \(f(x) = x^2\):
• Left sum (14) underestimates (as expected)
• Right sum (30) overestimates (as expected)
• Midpoint rule (21) is very close to exact value
• Trapezoid rule (22) is also quite close
The midpoint rule has the smallest error (0.33), followed by the trapezoid rule (0.67).
Both are significantly more accurate than left or right sums.
For this function, the midpoint rule provides the most accurate approximation with the same number of function evaluations as the others.
The midpoint rule is most accurate among the four methods, with an error of only 0.33 compared to the exact value of 21.33.
• Order of accuracy: Midpoint ≈ Trapezoid > Left/Right (for smooth functions)
• Monotonicity property: For increasing functions, left < exact < right
• Error analysis: Compare approximations to known exact values
Riemann sum: An approximation of a definite integral using finite sums of rectangles
Partition norm: The length of the largest subinterval in a partition
Refinement: Adding more points to a partition, making subintervals smaller
- Problem setup: Identify the integral to approximate and desired number of subintervals
- Calculate parameters: Find \(\Delta x = \frac{b-a}{n}\) and subinterval endpoints
- Choose method: Select left, right, midpoint, or trapezoidal based on requirements
- Compute sum: Apply the appropriate formula systematically
- Analyze accuracy: Consider error bounds and convergence properties
• Left sum: \(L_n = \sum_{i=0}^{n-1} f(x_i) \Delta x\)
• Right sum: \(R_n = \sum_{i=1}^{n} f(x_i) \Delta x\)
• Midpoint: \(M_n = \sum_{i=1}^{n} f(\bar{x}_i) \Delta x\)
• Trapezoid: \(T_n = \frac{\Delta x}{2}[f(x_0) + 2\sum_{i=1}^{n-1}f(x_i) + f(x_n)]\)
• Relationship: \(T_n = \frac{L_n + R_n}{2}\)
\(f_1(x) = x^2\) (increasing, concave up)
\(f_2(x) = \sqrt{x}\) (increasing, concave down)
\(f_3(x) = x^3\) (increasing, changes concavity)
Analysis: The chart shows how different functions respond to various approximation methods.
- \(f_1(x) = x^2\): Left underestimates, right overestimates, midpoint most accurate
- \(f_2(x) = \sqrt{x}\): Concave down behavior affects error patterns differently
- \(f_3(x) = x^3\): Higher-order polynomial with changing curvature