Professional Documents
Culture Documents
Riemann Sum Trapezoidal Rule and Simpsons - Cameron Clary
Riemann Sum Trapezoidal Rule and Simpsons - Cameron Clary
ba
f ( x0 ) f ( x1 ) f ( x2 )... f ( xn )
n
The interval is [a,b] and n is the number
of rectangles used
ba
Is also called Δx and refers to the width of the rectangles
n
f ( x0 ) f ( x1 ) f ( x2 )... f ( xn )
Represents the height of the rectangles
There are three types of Riemann
Sums:
Left Riemann, Right Riemann, and
Midpoint Riemann
Left Riemann sums are an underestimation of the area under a curve due
to the empty space between the rectangles and the curve.
Right Riemann sums place the Right corner of the
rectangles on the curve.
1 1 1 9 7
0 units 2
4 16 4 16 32
1 1 1 3
f ( ) f ( ) f ( ) f (1)
4 4 2 4
11 1 9 15
1 units 2
4 16 4 16 32
1 1 3 5 7
f ( ) f ( ) f ( ) f ( )
4 8 8 8 8
Then, plug the ¼, ½, ¾, and 1 into f ( x) x 2 so you get…
1 1 9 25 49 25
f ( ) f ( ) f ( ) f ( ) units 2
4 64 64 64 64 64
If the area can be found by hand, you can compare your
answers from the Riemann Sums to the actual answer to
see how accurate your estimation was
In this problem, we can find the area by hand.
The area for this problem is:
1
1
0
2 2
[ x ]dx units
3
Comparing the answers, the area found using the Left Riemann was under
the amount of the actual area, the Right Riemann was over the amount of
the actual area, and the Midpoint Riemann was the closest to the actual
answer. None of the Riemann Sum types gave the exact answer, but that is
because they are estimations.
Calculate the Left and Right Riemann Sum for f ( x) sin x
on [0, π] using 4 rectangles.
x0 0
ba
x1
4
n 4
x2
2
3
x3
4
x4
3
LR f (0) f ( ) f ( ) f ( )
4 4 2 4
2 2 2
LR 0 1 1.8961units 2
4 2 2 4
3
RR f ( ) f ( ) f ( ) f ( )
4 4 2 4
2 2 2
RR 1 0 1.8961units 2
4 2 2 4
Trapezoidal Rule is very similar to the Riemann Sums,
but instead of using rectangles to approximate area, it uses
trapezoids. The trapezoidal rule is more accurate than the
Riemann sums.
When using the Trapezoidal Rule, use the formula:
ba
f ( x0 ) 2 f ( x1 ) 2 f ( x2 ) ... f ( xn )
2n
The reason all but the first and last functions are multiplied by
two is because their sides are shared by two trapezoids.
ba
Is still added to each xnumber
n like in the Riemann Sums
Use the Trapezoidal Rule to Calculate f ( x) x 2
n 4
4
1
information, all you
have to do is plug the
x2 2n 8 numbers into the
2 formula
3
x3
4
x4 1
f ( x) x 2
[0,1] n=4
ba
f ( x0 ) 2 f ( x1 ) 2 f ( x2 ) ... f ( xn )
2n
1 1 1 3
T f (0) 2 f ( ) 2 f ( ) 2 f ( ) f (1)
8 4 2 4
1 1 1 9 11
T 0 1 units 2
8 8 2 8 32
Just like in the Riemann Sums, if the area can be found by
hand, you can sue that answer to check to see how close
the estimate was to the exact answer. In this particular
problem, the exact answer is 1/3units squared or .3333
units squared. Using the Trapezoidal Rule, the estimate
comes out to be .34375 units squared. The estimated
answer is very close to the exact answer.
Calculate the Trapezoidal Rule for f ( x )
1
on the interval [1,2] when n=5 x
x0 1
6
x1
5
ba 1 ba 1
x2
7
n 5 2n 10 5
8
x3
5
9
x4
5
x5 2
1 5 5 5 5 1 1753
T 1 2( ) 2( ) 2( ) 2( ) .6956units 2
10 6 7 8 9 2 2520
Simpson’s Rule is more accurate than both the
Riemann Sums and the Trapezoidal Rule. The
Simpson’s Rule uses various figures to fill in the
area under a curve in order to estimate the area
The formula for the Simpson’s Rule is:
ba
f ( x0 ) 4 f ( x1 ) 2 f ( x2 ) 4 f ( x3 ).... f ( xn )
3n
*When using the Simpson’s Rule n can NOT be an odd
number
Is still added to
ba each xnumber just
like in the
Riemann Sum
n and in the
Trapezoidal Rule
Calculate the Simpson’s Rule for f ( x) x
on the interval [0,4] using n=4
x0 0
ba ba 1
1 x1 1 Now plug all the
n 3n 3 information
found into the
x2 2 formula
x3 3
x4 4
ba
f ( x0 ) 4 f ( x1 ) 2 f ( x2 ) 4 f ( x3 ).... f ( xn )
3n
1
S f (0) 4 f (1) 2 f (2) 4 f (3) f (4)
3
1
S [o 4 2 2 4 3 2] 5.2522units 2
3
Calculate the Simpson’s Rule for f ( x) 9 x 2
6 3
1. Find the Left Riemann of f ( x) x3 on [0,2] when
n=6
2. Find the Right Riemann of f ( x) x on [0,2]
3
when n=6
3. Find the Midpoint Riemann of f ( x) x3 on [0,2]
when n=6
4. Calculate the Trapezoidal rule for f ( x) sin x
3 27 27 27 27 27
1 1 8 64 125 49
2. RR 1 8 units 2
3 27 27 27 27 9
2 2
4. T 0 2 22 0 2.1063units 2
8 2 2
1 1 4 1 4 1
5. S 4( ) 4( ) .2187units 2
6 5 29 5 53 17
An Approximation of the integral of f(x)=x^2 on the interval [0, 100] Using a
Midpoint Riemann Sum. Riemann. Web. 6 Mar. 2011.
Anton, Howard. Calculus A New Horizon. Sixth ed. New York: John Wiley &
Sons, Inc., 1999. Print.
Bartkovich, Kevin, John Goebel, Julie Graves, and Daniel Teague.
Contemporary Calculus through applications. Chicago, Illinois: Everyday
Learning Corporation, 1999. Print.
Beeson, Michael. It is possible to make a Riemann Sum. Riemann Sums, San
Jose, California. MathXpert: Learning Mathematics in the 21st Century.
Web. 6 Mar. 2011.
Karl. Right Riemann Sum of a Parabola. Section 10: Integrals, Karl's Calc
Tutor. http://www.karlscalculus.org/calc10_0.html. Web. 6 Mar. 2011.
"ListenToYouTube.com: Youtube to MP3, get mp3 from youtube video, flv to
mp3, extract audio from youtube, youtube mp3." Convert YouTube to MP3,
Get MP3 from YouTube video, FLV to MP3, extract audio from YouTube,
YouTube MP3 - ListenToYouTube.com.. Web. 6 Mar. 2011.
<http://www.listentoyoutube.com/download.php?video=Et8Cjqy9
Trapezoidal Rule. Methods of Calculating Integrals. Spark Notes. Web. 6 Mar.
2011.
©Cameron Clary 2011