Post 2: Riemann Sums and Approximations
Riemann sums are a method used in calculus to approximate the area under a curve. This method involves dividing the region under the curve into smaller rectangles and summing their individual areas to get an approximation of the total area.
There are several types of Riemann sums, including left, right, and midpoint sums. The choice of which type to use depends on how the rectangles are positioned relative to the curve.
- Left Riemann Sum:
In a left Riemann sum, the left endpoints of the rectangles touch the curve. The width of each rectangle is determined by the division of the total interval into equal subdivisions, called partitions. The formula for the left Riemann sum is:
Ln=f(x0)Δx+f(x1)Δx+f(x2)Δx+...+f(xn−1)ΔxWhere:
- Ln represents the left Riemann sum.
- f(xi) represents the value of the function at the left endpoint of each subdivision.
- Δx represents the width of each rectangle, which is equal to nb−a, where a and b are the lower and upper limits of the interval, respectively, and n is the number of subdivisions.
- Right Riemann Sum:
In a right Riemann sum, the right endpoints of the rectangles touch the curve. The formula for the right Riemann sum is similar to that of the left Riemann sum, but the function values are evaluated at the right endpoints instead.
Rn=f(x1)Δx+f(x2)Δx+f(x3)Δx+...+f(xn)ΔxWhere:
- Rn represents the right Riemann sum.
- f(xi) represents the value of the function at the right endpoint of each subdivision.
- Midpoint Riemann Sum:
In a midpoint Riemann sum, the midpoints of the rectangles touch the curve. The formula for the midpoint Riemann sum is:
Mn=f(xˉ1)Δx+f(xˉ2)Δx+f(xˉ3)Δx+...+f(xˉn)ΔxWhere:
- Mn represents the midpoint Riemann sum.
- f(xˉi) represents the value of the function at the midpoint of each subdivision.
Now, let's look at an example using the left Riemann sum. Consider the function f(x)=x2 on the interval [0,4] and we want to approximate the area under the curve using 4 subdivisions.
-
Determine the width of each rectangle:
Δx=44−0=1
-
Evaluate the left endpoint function values:
f(x0)=f(0)=02=0
f(x1)=f(1)=12=1
f(x2)=f(2)=22=4
f(x3)=f(3)=32=9
f(x4)=f(4)=42=16
-
Calculate the left Riemann sum:
L4=0⋅1+1⋅1+4⋅1+9⋅1+16⋅1=30
Thus, the left Riemann sum of f(x)=x2 on the interval [0,4] with 4 subdivisions is equal to 30, approximating the area under the curve. Similarly, the right and midpoint Riemann sums can be calculated using the respective formulas.