Skip to content

Approximating the accumulation with rectangles

Approximating the accumulation with rectangles

A rate that is not constant

When the rate is not constant, no single rectangle has the accumulation as its area. So split the interval into equal pieces, and in each piece choose a constant value close to the function’s values there. The function is replaced by a step function, and the sum of the rectangles is an approximation of the accumulation.

The example below approximates the area under the graph of f(x)=x2\displaystyle {f(x)}={x^2} for 1≤x≤2\displaystyle 1\le x\le2, with one rectangle:

  • The height of the rectangle – the value at the left end: f(1)=1\displaystyle {f(1)}={1}. The area: 1⋅1=1\displaystyle {1\cdot1}={1} – too small.
  • The value at the right end: f(2)=4\displaystyle {f(2)}={4}. The area: 4⋅1=4\displaystyle {4\cdot1}={4} – too big.
  • The mean of the two values: 1+42=2.5\displaystyle {\frac{1+4}{2}}={2.5}. The area: 2.5\displaystyle 2.5.
  • The exact area, 73≈2.33\displaystyle \frac{7}{3}\approx2.33, lies between 1 and 4. (How to calculate it – in the next lessons.)
Four rectangles

The example below splits the same interval, 1≤x≤2\displaystyle 1\le x\le2, into four pieces, each 0.25\displaystyle 0.25 wide, and the height of each rectangle is the value at the left end of its piece:

  • The heights: f(1)=1\displaystyle {f(1)}={1}, f(1.25)=1.5625\displaystyle {f(1.25)}={1.5625}, f(1.5)=2.25\displaystyle {f(1.5)}={2.25}, f(1.75)=3.0625\displaystyle {f(1.75)}={3.0625}.
  • The sum of the rectangles: 0.25⋅(1+1.5625+2.25+3.0625)=1.96875\displaystyle {0.25\cdot(1+1.5625+2.25+3.0625)}={1.96875}.
f(x)=x2\displaystyle f(x)=x^{2}
g(x)\displaystyle g(x)
  • With the right end: 0.25⋅(1.5625+2.25+3.0625+4)=2.71875\displaystyle {0.25\cdot(1.5625+2.25+3.0625+4)}={2.71875}.
  • These approximations are closer to the exact area, 2.33\displaystyle 2.33, than those of the single rectangle.
  • The shorter the pieces, the smaller the gap between the two approximations, and both approach the exact area. With 100 pieces: 2.31835\displaystyle 2.31835 and 2.34835\displaystyle 2.34835.
A linear function

When the function is linear, the mean of the values at the two ends gives the exact area: the area under the line is a trapezium, and the area of a trapezium is the mean of its parallel sides times its height. In the example below f(x)=x+1\displaystyle {f(x)}={x+1} for 0≤x≤2\displaystyle 0\le x\le2:

  • The values at the ends: f(0)=1\displaystyle {f(0)}={1} and f(2)=3\displaystyle {f(2)}={3}.
  • The area: 1+32⋅2=4\displaystyle {\frac{1+3}{2}\cdot2}={4} – exactly.
  • The triangle the rectangle adds above the line equals the triangle it leaves out below it.
f(x)=x+1\displaystyle f(x)=x+1
g(x)\displaystyle g(x)
Exercise 1

The function f(x)=x2\displaystyle {f(x)}={x^2} is given for 0≤x≤2\displaystyle 0\le x\le2.
The interval is split into four pieces, each 0.5\displaystyle 0.5 wide.

f(x)=x2\displaystyle f(x)=x^{2}
a

Calculate the sum of the rectangles when the height of each is the value at the left end of its piece.

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    Calculate the sum of the rectangles when the height of each is the value at the right end of its piece.

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      c

      The exact area is 83\displaystyle \frac{8}{3}. Which of the two approximations is closer to it?

      Exercise 2

      A runner starts running from rest.
      Her speed was measured every 10 seconds:

      Time (seconds)010203040
      Speed (metres a second)06899.5
      a

      Suppose that in each 10 seconds she ran at the speed at their start. How many metres did she run in the 40 seconds?

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        b

        Suppose that in each 10 seconds she ran at the speed at their end. How many metres did she run?

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          c

          Her speed rose all the time. What can you say about the real distance?

          Exercise 3

          The function f(x)=2x+1\displaystyle {f(x)}={2x+1} is given.
          Calculate the exact area under its graph for 1≤x≤3\displaystyle 1\le x\le3, using the mean of the values at the ends.

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power