Riemann Sums (College Board AP® Calculus AB)

Revision Note

Roger B

Author

Roger B

Expertise

Maths

What is a Riemann sum?

  • A Riemann sum is a method for approximating the exact value of an accumulation of change

    • Equivalently, it is a method for approximating the exact value of a definite integral

    • Or the exact area between a curve and the x-axis

  • The approximation is made by adding up the areas of a number of rectangles

  • There are three types of Riemann sum you should know and be able to use:

    • Left Riemann sum

    • Right Riemann sum

    • Midpoint Riemann sum

Left Riemann sum

How do I calculate a left Riemann sum?

  • To calculate the left Riemann sum of a function f between x equals a and x equals b (where a less than b):

    • Divide the interval into n subintervals by choosing values x subscript 0 comma space x subscript 1 comma space... comma space x subscript n such that a equals x subscript 0 less than x subscript 1 less than midline horizontal ellipsis less than x subscript n equals b

      • The intervals do not need to be the same size

    • Let this define n rectangles

      • The ith rectangle has a width of open parentheses x subscript i minus x subscript i minus 1 end subscript close parentheses

        • This is the distance from the left-hand side of the rectangle to the right-hand side

      • The ith rectangle has a height of f open parentheses x subscript i minus 1 end subscript close parentheses

        • This is the value of the function at the left-hand side of the rectangle

    • The left Riemann sum is the sum of the areas of these n rectangles

      • open parentheses x subscript 1 minus x subscript 0 close parentheses times f open parentheses x subscript 0 close parentheses plus open parentheses x subscript 2 minus x subscript 1 close parentheses times f open parentheses x subscript 1 close parentheses plus horizontal ellipsis plus open parentheses x subscript n minus x subscript n minus 1 end subscript close parentheses times f open parentheses x subscript n minus 1 end subscript close parentheses

An example of the graph of a curve, showing the rectangles used to calculate a left Riemann sum
An example of the graph of a curve, showing the rectangles used to calculate a left Riemann sum
  • In general, increasing the number of rectangles, n, gives a more accurate approximation

  • On the exam you may just be given values of the function in a table, rather than being given the function explicitly

    • See the Worked Example

How can I tell if a left Riemann sum is an underestimate or an overestimate?

  • If a function is increasing over the interval for which a left Riemann sum is being calculated

    • then the left Riemann sum will be an underestimate

  • If a function is decreasing over the interval for which a left Riemann sum is being calculated

    • then the left Riemann sum will be an overestimate

Two graphs with the rectangles used to calculate a left Riemann sum, showing that a left Riemann sum will give an underestimate for an increasing function and an overestimate for a decreasing function
  • If a function has both increasing and decreasing portions, then it is not immediately obvious whether a Riemann sum will be an underestimate or an overestimate

Worked Example

A social sciences researcher is using a function m to model the total mass of all the garden gnomes appearing on lawns in a particular neighborhood at time t. The function m is twice-differentiable, with m open parentheses t close parentheses measured in kilograms and t measured in days.

The table below gives selected values of m to the power of apostrophe open parentheses t close parentheses, the rate of change of the mass, over the time interval 0 less or equal than t less or equal than 12. At time t equals 0, m open parentheses 0 close parentheses equals 24.9 kilograms.

t

(days)

0

3

7

10

12

m to the power of apostrophe open parentheses t close parentheses

(kilograms per day)

2.6

4.8

12.2

0.7

-1.3

(a) Use a left Riemann sum with the four subintervals indicated in the table to estimate the change in the total mass of garden gnomes between t equals 0 and t equals 12.

Answer:

The Riemann sum will be based on four rectangles

The first rectangle will have a width of (3-0) and a height equal to m open parentheses 0 close parentheses
The second rectangle will have a width of (7-3) and a height equal to m open parentheses 3 close parentheses
The third rectangle will have a width of (10-7) and a height equal to m open parentheses 7 close parentheses
The fourth rectangle will have a width of (12-10) and a height equal to m open parentheses 10 close parentheses

open parentheses 3 minus 0 close parentheses times 2.6 plus open parentheses 7 minus 3 close parentheses times 4.8 plus open parentheses 10 minus 7 close parentheses times 12.2 plus open parentheses 12 minus 10 close parentheses times 0.7 equals 65.0

This has units of kilograms, because each term is the product of a 'kg/day' quantity and a 'days' quantity

The mass of garden gnomes increases by approximately 65.0 kg between t equals 0 and t equals 12

(b) Hence find an estimate for the total mass of the garden gnomes at t equals 12.

Answer:

The answer to part (a) only shows the change in mass

To find the estimate for the total final mass, add the initial mass of 24.9 kilograms

65.0 plus 24.9 equals 89.9

89.9 kg

Right Riemann sum

How do I calculate a right Riemann sum?

  • To calculate the right Riemann sum of a function f between x equals a and x equals b (where a less than b):

    • Divide the interval into n subintervals by choosing values x subscript 0 comma space x subscript 1 comma space... comma space x subscript n such that a equals x subscript 0 less than x subscript 1 less than midline horizontal ellipsis less than x subscript n equals b

      • The intervals do not need to be the same size

    • Let this define n rectangles

      • The ith rectangle has a width of open parentheses x subscript i minus x subscript i minus 1 end subscript close parentheses

        • This is the distance from the left-hand side of the rectangle to the right-hand side

      • The ith rectangle has a height of f open parentheses x subscript i close parentheses

        • This is the value of the function at the right-hand side of the rectangle

    • The right Riemann sum is the sum of the areas of these n rectangles

      • open parentheses x subscript 1 minus x subscript 0 close parentheses times f open parentheses x subscript 1 close parentheses plus open parentheses x subscript 2 minus x subscript 1 close parentheses times f open parentheses x subscript 2 close parentheses plus horizontal ellipsis plus open parentheses x subscript n minus x subscript n minus 1 end subscript close parentheses times f open parentheses x subscript n close parentheses

An example of the graph of a curve, showing the rectangles used to calculate a right Riemann sum with n=5
An example of a right Riemann sum with n=5
  • In general, increasing the number of rectangles, n, gives a more accurate approximation

  • On the exam you may just be given values of the function in a table, rather than being given the function explicitly

    • See the Worked Example

How can I tell if a right Riemann sum is an underestimate or an overestimate?

  • If a function is increasing over the interval for which a right Riemann sum is being calculated

    • then the right Riemann sum will be an overestimate

  • If a function is decreasing over the interval for which a right Riemann sum is being calculated

    • then the right Riemann sum will be an underestimate

Two graphs with the rectangles used to calculate a right Riemann sum, showing that a right Riemann sum will give an overestimate for an increasing function and an underestimate for a decreasing function
  • If a function has both increasing and decreasing portions, then it is not immediately obvious whether a Riemann sum will be an underestimate or an overestimate

Worked Example

A social sciences researcher is using a function m to model the total mass of all the garden gnomes appearing on lawns in a particular neighborhood at time t. The function m is twice-differentiable, with m open parentheses t close parentheses measured in kilograms and t measured in days.

The table below gives selected values of m to the power of apostrophe open parentheses t close parentheses, the rate of change of the mass, over the time interval 0 less or equal than t less or equal than 12. At time t equals 0, m open parentheses 0 close parentheses equals 24.9 kilograms.

t

(days)

0

3

7

10

12

m to the power of apostrophe open parentheses t close parentheses

(kilograms per day)

2.6

4.8

12.2

0.7

-1.3

Use a right Riemann sum with the four subintervals indicated in the table to find an estimate for the total mass of the garden gnomes at t equals 12.

Answer:

The Riemann sum will be based on four rectangles

The first rectangle will have a width of (3-0) and a height equal to m open parentheses 3 close parentheses
The second rectangle will have a width of (7-3) and a height equal to m open parentheses 7 close parentheses
The third rectangle will have a width of (10-7) and a height equal to m open parentheses 10 close parentheses
The fourth rectangle will have a width of (12-10) and a height equal to m open parentheses 12 close parentheses

open parentheses 3 minus 0 close parentheses times 4.8 plus open parentheses 7 minus 3 close parentheses times 12.2 plus open parentheses 10 minus 7 close parentheses times 0.7 plus open parentheses 12 minus 10 close parentheses times open parentheses negative 1.3 close parentheses equals 62.7

This has units of kilograms, because each term is the product of a 'kg/day' quantity and a 'days' quantity

However that answer only approximates the change in mass

To find the estimate for the total final mass, add the initial mass of 24.9 kilograms

62.7 plus 24.9 equals 87.6

The total mass of garden gnomes at t equals 12 is approximately 87.6 kg

Midpoint Riemann sum

How do I calculate a midpoint Riemann sum?

  • To calculate the midpoint Riemann sum of a function f between x equals a and x equals b (where a less than b):

    • Divide the interval into n subintervals by choosing values x subscript 0 comma space x subscript 1 comma space... comma space x subscript n such that a equals x subscript 0 less than x subscript 1 less than midline horizontal ellipsis less than x subscript n equals b

      • The intervals do not need to be the same size

    • Let this define n rectangles

      • The ith rectangle has a width of open parentheses x subscript i minus x subscript i minus 1 end subscript close parentheses

        • This is the distance from the left-hand side of the rectangle to the right-hand side

      • The ith rectangle has a height of f open parentheses fraction numerator x subscript i minus 1 end subscript plus x subscript i over denominator 2 end fraction close parentheses

        • This is the value of the function at the midpoint of the rectangle

    • The right Riemann sum is the sum of the areas of these n rectangles

      • open parentheses x subscript 1 minus x subscript 0 close parentheses times f open parentheses fraction numerator x subscript 0 plus x subscript 1 over denominator 2 end fraction close parentheses plus open parentheses x subscript 2 minus x subscript 1 close parentheses times f open parentheses fraction numerator x subscript 1 plus x subscript 2 over denominator 2 end fraction close parentheses plus horizontal ellipsis plus open parentheses x subscript n minus x subscript n minus 1 end subscript close parentheses times f open parentheses fraction numerator x subscript n minus 1 end subscript plus x subscript n over denominator 2 end fraction close parentheses

An example of the graph of a curve, showing the rectangles used to calculate a midpoint Riemann sum with n=5
An example of a midpoint Riemann sum with n=5
  • It is not immediately obvious whether a midpoint Riemann sum will give an underestimate or an overestimate

    • The rectangles often combine an underestimate on one side of their midpoint line, and an overestimate on the other side

  • In general, increasing the number of rectangles, n, gives a more accurate approximation

  • On the exam you may just be given values of the function in a table, rather than being given the function explicitly

    • See the Worked Example

Worked Example

A social sciences researcher is using a function m to model the total mass of all the garden gnomes appearing on lawns in a particular neighborhood at time t. The function m is twice-differentiable, with m open parentheses t close parentheses measured in kilograms and t measured in days.

The table below gives selected values of m to the power of apostrophe open parentheses t close parentheses, the rate of change of the mass, over the time interval 0 less or equal than t less or equal than 12. At time t equals 0, m open parentheses 0 close parentheses equals 24.9 kilograms.

t

(days)

0

1.5

3

5

7

8.5

10

11

12

m to the power of apostrophe open parentheses t close parentheses

(kg/ day)

2.6

3.5

4.8

9.1

12.2

5.2

0.7

-0.1

-1.3

Use a midpoint Riemann sum to find an estimate for the total mass of the garden gnomes at t equals 12. Use four subintervals to calculate the sum, for subintervals of t between 0 and 3, 3 and 7, 7 and 10, and 10 and 12.

Answer:

Note that 1.5, 5, 8.5 and 11 are the midpoints of the intervals 0-3, 3-7, 7-10 and 10-12, respectively

The Riemann sum will be based on four rectangles

The first rectangle will have a width of (3-0) and a height equal to m open parentheses 1.5 close parentheses
The second rectangle will have a width of (7-3) and a height equal to m open parentheses 5 close parentheses
The third rectangle will have a width of (10-7) and a height equal to m open parentheses 8.5 close parentheses
The fourth rectangle will have a width of (12-10) and a height equal to m open parentheses 11 close parentheses

open parentheses 3 minus 0 close parentheses times 3.5 plus open parentheses 7 minus 3 close parentheses times 9.1 plus open parentheses 10 minus 7 close parentheses times 5.2 plus open parentheses 12 minus 10 close parentheses times open parentheses negative 0.1 close parentheses equals 62.3

This has units of kilograms, because each term is the product of a 'kg/day' quantity and a 'days' quantity

However that answer only approximates the change in mass

To find the estimate for the total final mass, add the initial mass of 24.9 kilograms

62.3 plus 24.9 equals 87.2

The total mass of garden gnomes at t equals 12 is approximately 87.2 kg

You've read 0 of your 10 free revision notes

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Roger B

Author: Roger B

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.