|
|
Riemann Sum

Finding the area below a curve is not straightforward. You can take a look at our Approximating Areas article and see the different ways of using rectangles to approximate the area below a curve. 

Mockup Schule

Explore our app and discover over 50 million learning materials for free.

Riemann Sum

Illustration

Lerne mit deinen Freunden und bleibe auf dem richtigen Kurs mit deinen persönlichen Lernstatistiken

Jetzt kostenlos anmelden

Nie wieder prokastinieren mit unseren Lernerinnerungen.

Jetzt kostenlos anmelden
Illustration

Finding the area below a curve is not straightforward. You can take a look at our Approximating Areas article and see the different ways of using rectangles to approximate the area below a curve.

Forming Riemann sums area parabola rectangles StudySmarterApproximation of the area below a curve using rectangles - StudySmarter Originals

The first step is to divide the interval of integration into as many subintervals as we want. Remember that the more subintervals we use, the better approximation we get. Right-endpoint and left-endpoint approximations use the very points we obtain when making a partition to find the height of each rectangle. However, we are not limited to these points!

Sigma notation formulas

Before proceeding, we will introduce some formulas in Sigma Notation that will make our lives easier when working with sums.

The following expressions give the sum of consecutive integers, square of integers, and cube of integers, respectively:

i=1ni=n(n+1)2

i=1ni2=n(n+1)(2n+1)6

i=1ni3=n(n+1)22

The above formulas, along with basic properties of summations, are very useful when approximating areas using sigma notation. Let's see an example using them!

Evaluate the following sum: S=i=110(i2+2i-1)

Let's use the properties of summation and the above formulas to evaluate the given sum!

Use the properties of summation to rewrite the sum.

S=i=110i2-2ii=110-1i=110

Use i=1ni2=n(n+1)(2n+1)6 with n=10 to evaluate the first sum.

S=10(10+1)(2(10)+1)6-2i=110i-1i=110

Simplify.

S=385-2i=110i-i=1101

Use i=110i=n(n+1)2with n=10 to evaluate the second sum.

S=385-10(10+1)2-i=1101

Simplify.

S=385-55-i=1101

The last sum is just adding 1 together 10 times, which is the same as 10 times 1.

S=385-55-10

Simplify.

S=320

Forming Riemann Sums

One way to approximate the area below a curve is to divide the area into rectangles. We get this done in the following way:

  • Begin by dividing the interval of the area into subintervals. The more, the better!
  • Associate a rectangle to each subinterval.
  • The width of each rectangle is equal to the length of its corresponding subinterval.
  • The height of each rectangle can be found by evaluating the function at some point within the subinterval.
    • The left-endpoint approximation uses the leftmost value of the subinterval.
    • The right-endpoint approximation uses the rightmost value of the subinterval.

But what limits our choice to just the leftmost value or the rightmost value? Nothing! As long as we take any point within the interval, we are good to go!

Of course our approximations will differ, but we should focus on increasing the number of intervals rather than worrying about which point to use for the height of the rectangles.

Riemann sum definition

After dividing the area below a curve into rectangles, we add them up, and we get an approximation for the area. This is known as a Riemann Sum, named after the mathematician Bernhard Riemann, who worked on the idea in the 19th century.

We need to set up some background before defining a Riemann Sum. Let f(x)be a function defined on a closed interval axband let P={xi}for i=0, 1, 2, ..., nbe a regular partition of axb. We have a set of n subintervals of the form xi-1xxi, all with a length of Δx=b-an.

Forming Riemann sums regualar partition StudySmarterA regular partition of the interval - StudySmarter Originals

Up to this point, we have the same set-up for the right-endpoint and left-endpoint approximations using equally-spaced subintervals. The difference comes from which point we use to find the height of the rectangles.

A Riemann Sum for the function f(x)for the partition P is defined as:

i=1nf(xi*)Δx

Where xi*is any value inside the interval xi-1xxi, with \(x_i \in P\).

The right-endpoint and left-endpoint approximations are particular cases of Riemann Sums.

Riemann sums and midpoint approximation

As we can use any value inside each subinterval when finding Riemann sums, why not use the midpoint? This is known as the midpoint approximation.

The midpoint approximation Mn of the area below a curve is a particular case of a Riemann sum obtained by choosing the midpoint of each subinterval. That is:

Mn=i=1nfxi-1+xi2Δx

As usual, this is better understood with an example. Let's take a look at a midpoint approximation!

Use a midpoint approximation to approximate the area below f(x)=x2+1in the interval 0x2by dividing the interval into 10subintervals of the same size.

Find the length of each subinterval.

Δx=b-an=2-010=0.2

Since the length of each subinterval is 0.2, our partition will be made of the points 0, 0.2, 0.4, ..., 1.6, 1.8, and 2. This can be summarized as follows:

xi=0.2i

We are using the midpoint approximation, so the midpoint between each two values of the partition will be used to find the height of the rectangles.

Use the formula for the midpoint approximation with n=10 and Δx=0.2.

M10=i=110fxi-1+xi2(0.2)

Rather than writing xi-1+xi2we can use the expression for xiand simplify.

xi-1+xi2=0.2(i-1)+0.2i2=0.2i-0.1

We can substitute back this expression into our formula and use the properties of summation to find our approximation.

M10=i=110f(0.2i-0.1)(0.2)

Factor out 0.2 from the summation.

M10=0.2i=110f(0.2i-0.1)

Evaluate the function at 0.2i-0.1

M10=0.2i=110(0.2i-0.1)2+1

Expand the binomial and simplify.

M10=0.2i=1100.04i2-0.04i+1.01

Use the properties of summation to rewrite the sum.

M10=0.008i=110i2-0.008i=110i+0.202i=1101

Use i=1ni2=n(n+1)(2n+1)6 to evaluate the first sum.

M10=0.00810(11)(21)6-0.008i=110i+0.202i=1101

Use i=1ni=n(n+1)2to evaluate the second sum.

M10=0.00810(11)(21)6-0.00810(11)2+0.202i=1101

Evaluate the last sum.

M10=0.00810(11)(21)6-0.00810(11)2+2.02

Evaluate using a calculator.

M10=4.66

Remember that we get better approximations as we divide the interval into more subintervals!

Until now, we have been approximating areas without knowing which approximation is better. Is there a way of telling which Riemann sum is better? Sadly, if we do not know the real value of the area below the curve, there is no telling which approximation is better. Besides, it would be pointless to do an approximation while knowing the actual value!

However, there is a way of squeezing the value of the area between two values.

Upper Riemann sum

We are allowed to take any value inside each subinterval to form our Riemann sum. What if we take the maximum value of f

in each subinterval? The Riemann sum obtained through this process is called an upper Riemann sum.

A Riemann sum for the function f(x) for the partition P={xi} is called an upper Riemann sum if the values xi*are taken as the maximum value from each subinterval.

In this case, we can guarantee that our approximation will be greater than or equal to the actual value of the area since we are taking bigger pieces of the area! If we let A be the area below the curve and SUbe an upper Riemann sum, then we can write the following inequality:

SUA

Let's now find an upper Riemann sum of the function of our previous example, f(x)=x2+1, in the same interval 0x2 by dividing the interval into 10 subintervals as well. We will begin by taking a look at its graph.

Forming Riemann sums parabola StudySmarterGraph of the parabola f(x) divided with a left-endpoint approximation - StudySmarter Originals

We can notice how this function is an increasing function, hence, the greatest value from each subinterval is the rightmost value. Therefore, doing a right-endpoint approximation will give us an upper Riemann sum.

Use the formula for the right-endpoint approximation.

R10=i=110f(xi)Δx

Substitute xi=iΔx and Δx=2-010=0.2into the formula.

R10=i=110f(0.2i)0.2

Factor out 0.2 and evaluate the function.

R10=0.2i=110((0.2i)2+1)

Use the properties of summation to rewrite the sum.

R10=0.008i=110i2+0.2i=1101

Use i=1ni2=n(n+1)(2n+1)6to evaluate the first sum.

R10=0.00810(11)(21)6+0.2i=1101

Evaluate the last sum.

R10=0.00810(11)(21)6+0.2(10)

Evaluate using a calculator.

R10=5.08

We can see that the value of our approximation is greater than the midpoint approximation. We also know that this value is greater than the actual area below the curve!

Lower Riemann sum

And what if we take the minimum value of f in

each subinterval? We get a lower Riemann sum!

A Riemann sum for the function f(x) for the partition P={xi} is called a lower Riemann sum if the values xi*are taken as the minimum value from each subinterval.

This time, we can guarantee that our approximation will be less than or equal to the actual value of the area since we are taking smaller pieces of the area! If we let A be the area below the curve and SLbe a lower Riemann sum, then we can write the following inequality:

SLA

It's time to find a lower Riemann sum of our previous examples. In this case, the least value from each subinterval is the leftmost value, so a left-endpoint approximation will give us a lower Riemann sum.

Use the formula for the left-endpoint approximation.

L10=i=09f(xi)Δx

Substitute xi=iΔxand Δx=2-010=0.2into the formula.

L10=i=09f(0.2i)0.2

Factor out 0.2 and evaluate the function.

L10=0.2i=09((0.2i)2+1)

Use the properties of summation to rewrite the sum.

L10=0.008i=09i2+0.2i=091

Note that the summations start at 0. The last sum still consists of 10 terms, so it can be evaluated as adding 1 ten times together.

Evaluate the last sum.

L10=0.008i=09i2+0.2(10)

For the first sum note that the term containing i=0 does not contribute to the sum because 02=0, so this sum can be evaluated as if it was from i=1 to 9.

Use i=1ni2=n(n+1)(2n+1)6 to evaluate the sum.

L10=0.0089(10)(19)6+0.2(10)

Evaluate using a calculator.

L10=4.28

We got an approximation of 4.28. This means that the actual value of the area below the curve lies between 4.28 and 5.08!

Riemann sums and area below a curve

We have seen how lower and upper Riemann sums give us a bound on the area below a curve. This also depends on how many subintervals we divide the area below the curve. What if we use an infinite amount of subintervals?

Let f(x)be a continuous function on an interval axb. Then, the area below the curve is obtained as the limit as n goes to infinity of a Riemann sum:

A=limn i=1nf(xi*)Δx

Where xi*is any value inside the interval xi-1xxiand Δx=b-an.

Let's think of the above expression: as we increase n, we get thinner rectangles, which will then perfectly fit below the curve. By adding up all these rectangles we get the area below the curve! Let's take a look at an illustration using 70 rectangles.

Forming Riemann sums parabola thin rectangles StudySmarterApproximation of the area below the curve using 70 rectangles - StudySmarter Originals

This seems to fit very well the area below the curve, right? Now imagine what would happen if we used even more rectangles!

Summary

Forming Riemann Sums - Key takeaways

  • A Riemann sum consists of dividing the area below a curve into rectangles and adding them up.
    • Riemann sums are closely related to the left-endpoint and right-endpoint approximations. Both are particular cases of a Riemann sum.
  • A lower Riemann sum is a Riemann sum obtained by using the least value of each subinterval to calculate the height of each rectangle.
    • The value of a lower Riemann sum is always less than or equal to the area below the curve.
  • An upper Riemann sum is a Riemann sum obtained by using the greatest value of each subinterval to calculate the height of each rectangle.
    • The value of an upper Riemann sum is always greater than or equal to the area below the curve.
  • The area below a curve is bounded between a lower Riemann sum and an upper Riemann sum.
  • If we take the limit of a Riemann sum as the number of subintervals tends to infinity we get the area below the curve.

Frequently Asked Questions about Riemann Sum

A Riemann sum consists of dividing the area below a curve into rectangles and adding them up.

  • Begin by dividing the interval of the area into subintervals. The more, the better!
  • Associate a rectangle to each subinterval.
  • The width of each rectangle is equal to the length of its corresponding subinterval.
  • The height of each rectangle can be found by evaluating the function at some point within the subinterval.

Usually, the interval is divided regularly. This means that every subinterval will have the same length.

Test your knowledge with multiple choice flashcards

The ______ trapezoids you use, the integral approximation gets more accurate.

While the pattern of the Trapezoidal Rule coefficients is 1, 2, 2, ..., 2, 1, the pattern of Simpson's Rule coefficients is

Simpson's Rule requires a(n)  ____ number of n subregions

Next

Join over 22 million students in learning with our StudySmarter App

The first learning app that truly has everything you need to ace your exams in one place

  • Flashcards & Quizzes
  • AI Study Assistant
  • Study Planner
  • Mock-Exams
  • Smart Note-Taking
Join over 22 million students in learning with our StudySmarter App Join over 22 million students in learning with our StudySmarter App

Sign up to highlight and take notes. It’s 100% free.

Entdecke Lernmaterial in der StudySmarter-App

Google Popup

Join over 22 million students in learning with our StudySmarter App

Join over 22 million students in learning with our StudySmarter App

The first learning app that truly has everything you need to ace your exams in one place

  • Flashcards & Quizzes
  • AI Study Assistant
  • Study Planner
  • Mock-Exams
  • Smart Note-Taking
Join over 22 million students in learning with our StudySmarter App