next up previous
Next: A Simple Example Up: Example on Teaching the Previous: The Approximating Sums

Defining The Approximating Sums

The left sum of a given function f over the partition defined above is the Riemann sum tex2html_wrap_inline380where, for each j, the number tj is the left endpoint of the interval that runs from tex2html_wrap_inline386 to tex2html_wrap_inline388 In other words, we define the left sum by pointing at t he equation tex2html_wrap_inline390 and clicking on Define and New Definition. Similarly, the right sum of f is tex2html_wrap_inline3
94 and we define it by pointing at the equation and clicking on Define and New Definition. The arithmetic mean of the left and right sums is the trapezoidal sum tex2html_wrap_inline396 which we define by pointing at the equation tex2html_wrap_inline398

Alternatively we could observe that

tex2html_wrap_inline400and use this equation for the definition of the trapezoidal sum. As we shall see from the examples that follow, the trapezoidal sum is frequently a much better approximation to the integral than either the left or the right sum. An even better approximation than the trapezoidal sum is the midpoint sum tex2html_wrap_inline402 which we define by pointing at the equation tex2html_wrap_inline404

In this sum the function f is evaluated for each j at the midpoint of the interval that runs from tex2html_wrap_inline386 to tex2html_wrap_inline388

Finally, the Simpson sum tex2html_wrap_inline414 of f over the given partition is defined by pointing at the equation tex2html_wrap_inline418

As you may know, the Simpson sum is used only when the number n is even.