topic badge

4.05 Area under a graph

Lesson

Calculating the area under a curve has many important applications across a wide range of subjects. As well as finding the area of shapes with curved boundaries, the area under a rate of change graph will give us the net change. For example, the area under a graph displaying speed (rate of change of distance with respect to time) would give us the total distance travelled. This concept is applicable across diverse fields such as physics, economics and biology, leading integral calculus to be a fundamental branch of mathematics.

Let's first look at calculating the area under a curve using geometric reasoning, approximating areas under curves, and the notation for such areas before we look at finding areas using calculus in the next lesson.

 

Areas under curves using geometric reasoning

If the area formed under a curve is a common geometric shape, such as the area formed under a straight line or semi-circle, we can use known formulas to find the exact area.

Worked examples

Example 1

Find the area between the function $f\left(x\right)=2x$f(x)=2x and the $x$x axis between $x=1$x=1 and $x=4$x=4.

The image below shows the graph $y=f\left(x\right)$y=f(x) together with the area required:

Think: Recall that the area formula for a trapezium is $A=\frac{1}{2}\left(a+b\right)h$A=12(a+b)h, where $a$a and $b$b are the lengths of the parallel sides and $h$h is the perpendicular height. Here the parallel sides are of length $2$2 and $8$8, and the perpendicular height is the length of the shape on the $x$x-axis, which is $3$3.

Do:

Area $=$= $\frac{1}{2}\left(a+b\right)h$12(a+b)h
  $=$= $\frac{1}{2}\left(2+8\right)3$12(2+8)3
  $=$= $15$15 units2
Example 2

Find the area between the function $f\left(x\right)=\sqrt{4-x^2}$f(x)=4x2 and the $x$x-axis between $x=0$x=0 and $x=2$x=2.

The image below shows the graph $y=f\left(x\right)$y=f(x) together with the area required:

Think: Recall that the formula for the area of a circle is $A=\pi r^2$A=πr2; here we have one quarter of a circle of radius $2$2.

Do:

Area $=$= $\frac{1}{4}\times\pi r^2$14×πr2
  $=$= $\frac{1}{4}\times\pi\left(2\right)^2$14×π(2)2
  $=$= $\pi$π units2

 

Practice questions

Question 1

Consider the function drawn below:

Loading Graph...

  1. Calculate geometrically, the area bounded by the curve and the $x$x-axis over $0\le x\le4$0x4.

Question 2

The function $f\left(x\right)$f(x) is defined as:

    $2x$2x if $0\le x\le3$0x3
$f\left(x\right)$f(x) $=$= $6$6 if $33<x<6
    $18-2x$182x if $6\le x\le9$6x9
  1. Graph $f\left(x\right)$f(x) on the axis below.

    Loading Graph...

  2. Hence, calculate geometrically the area bounded by the curve and the $x$x-axis.

 

Approximating areas under curves

If the shape formed by the curve does not resemble a common geometric shape we can use one of several methods to estimate the area. A common approach is to slice the region into rectangles and find the sum of the areas of the rectangles. Let's explore this idea.

Exploration

Consider the function $f\left(x\right)=x^2+1$f(x)=x2+1 and the area bounded by this curve and the $x$x-axis between $x=1$x=1 and $x=5$x=5.

The image below shows the graph $y=f\left(x\right)$y=f(x) together with the area of interest:

To find an approximation for this area we could divide the area into $4$4 rectangles of equal width. These rectangles could be created such that their height reached the graph at the left endpoint of each interval, the right endpoint of each interval or the mid-point of each interval. Illustrated in the graphs below.

Left endpoint approximation Right endpoint approximation Midpoint approximation

Let's look at calculating the estimate in each case:

Case 1. Left endpoint approximation

The width of each rectangle is $1$1 and the height is the function evaluated at the left endpoint of each interval.

Area $\approx$ $1\times f(1)+1\times f(2)+1\times f(3)+1\times f(4)$1×f(1)+1×f(2)+1×f(3)+1×f(4)
  $=$= $2+5+10+17$2+5+10+17
  $=$= $34$34 units2

We have an approximation for the area of $34$34 units2, and we can see from the graph that in this case this would be an underestimation of the actual area.

Case 2. right endpoint approximation

The width of each rectangle is $1$1 and the height is the function evaluated at the right endpoint of each interval.

Area $\approx$ $1\times f(2)+1\times f(3)+1\times f(4)+1\times f(5)$1×f(2)+1×f(3)+1×f(4)+1×f(5)
  $=$= $5+10+17+26$5+10+17+26
  $=$= $58$58 units2

We have an approximation for the area of $58$58 units2, and we can see from the graph that in this case this would be an overestimation of the actual area.

Case 3. mid-point approximation

The width of each rectangle is $1$1 and the height is the function evaluated at the mid-point of each interval.

Area $\approx$ $1\times f(1.5)+1\times f(2.5)+1\times f(3.5)+1\times f(4.5)$1×f(1.5)+1×f(2.5)+1×f(3.5)+1×f(4.5)
  $=$= $3.25+7.25+13.25+21.25$3.25+7.25+13.25+21.25
  $=$= $45$45 units2

We have an approximation for the area of $45$45 units2. It is not obvious from the graph in this case whether this would be an under or overestimation of the actual area.

The actual area of the given region is $45\frac{1}{3}$4513 units2, so in fact the mid-point approximation was quite close.

To obtain more accurate estimations we can use more rectangles with a reduced width to estimate the area. In the diagram below we can see that as the number of rectangles increase the amount of area underestimated is decreasing and the approximation approaches the actual area.

$4$4 rectangles $8$8 rectangles $16$16 rectangles

Let's calculate the improved estimate for $8$8 rectangles using a left endpoint approximation:

The width of each rectangle is $0.5$0.5 and the height is the function evaluated at the left endpoint of each interval.

Area $\approx$ $0.5\times f(1)+0.5\times f(1.5)+0.5\times f(2)+0.5\times f(2.5)+0.5\times f(3)+0.5\times f(3.5)+0.5\times f(4)+0.5\times f(4.5)$0.5×f(1)+0.5×f(1.5)+0.5×f(2)+0.5×f(2.5)+0.5×f(3)+0.5×f(3.5)+0.5×f(4)+0.5×f(4.5)
  $=$= $0.5\left(f(1)+f(1.5)+f(2)+f(2.5)+f(3)+f(3.5)+f(4)+f(4.5)\right)$0.5(f(1)+f(1.5)+f(2)+f(2.5)+f(3)+f(3.5)+f(4)+f(4.5))
  $=$= $0.5\left(2+3.25+5+7.25+10+13.25+17+21.25\right)$0.5(2+3.25+5+7.25+10+13.25+17+21.25)
  $=$= $39.5$39.5 units2

We have an approximation for the area of $39.5$39.5 units2, we can see from the graph that in this case this would be an underestimation of the actual area but a closer approximation than the $34$34 units2 we calculated with only $4$4 rectangles.

Using the left endpoint approximation over an interval where a function is increasing will provide an underestimate of the area and it will provide an overestimate over an interval where a function is decreasing. This in illustrated below:

Left endpoint approximation where the function is increasing on the interval Left endpoint approximation where the function is decreasing on the interval

The opposite is true for the right endpoint approximation - it will provide an overestimate where the function is increasing on the interval and an underestimate where the function is decreasing on the interval.

These methods are not restricted to evaluating the area under a graph over an interval where the function is strictly increasing or decreasing. In our next lesson we will see how to calculate the area algebraically using integration, however, not all functions can be integrated and approximation methods such as those above are still required in such cases.

Formulas for these approximations can be useful when using many rectangles to subdivide an area. We can then evaluate these approximations using the calculator and observe the limit as the number of rectangles, $n$n, increases. The exact area can be found as the limit as $n\rightarrow\infty$n.

Scroll to the bottom of this lesson for instructions on how to approximate and evaluate the areas under curves using a CAS calculator.

Approximating areas under graphs

Given a continuous function on the interval $\left[a,b\right]$[a,b], where $f\left(x\right)\ge0$f(x)0 for all $x$x in the interval. The area under the graph of $y=f\left(x\right)$y=f(x) from $x=a$x=a to $x=b$x=b can be approximated by subdividing the interval into $n$n rectangles of width $w=\frac{b-a}{n}$w=ban and using one of the following methods:

Left endpoint approximation

$A_L$AL $=$= $wf(a)+wf(a+w)+wf(a+2w)+wf(a+3w)\dots+wf(a+(n-1)w)$wf(a)+wf(a+w)+wf(a+2w)+wf(a+3w)+wf(a+(n1)w)
  $=$= $\sum_{k=1}^nwf(a+(k-1)w)$nk=1wf(a+(k1)w)

Right endpoint approximation

$A_R$AR $=$= $wf(a+w)+wf(a+2w)+wf(a+3w)+wf(a+4w)\dots+wf(a+nw)$wf(a+w)+wf(a+2w)+wf(a+3w)+wf(a+4w)+wf(a+nw)
  $=$= $\sum_{k=1}^nwf(a+kw)$nk=1wf(a+kw)

Midpoint approximation

$A_M$AM $=$= $wf(a+\frac{1}{2}w)+wf(a+\frac{3}{2}w)+wf(a+\frac{5}{2}w)\dots+wf(a+(n-\frac{1}{2})w)$wf(a+12w)+wf(a+32w)+wf(a+52w)+wf(a+(n12)w)
  $=$= $\sum_{k=1}^nwf(a+(k-\frac{1}{2})w)$nk=1wf(a+(k12)w)

 

Practice questions

Question 3

The function $f\left(x\right)=5x$f(x)=5x is defined on the interval $\left[0,6\right]$[0,6].

  1. Graph $f\left(x\right)$f(x).

    Loading Graph...

  2. Find the area $A$A under $f\left(x\right)$f(x) by partitioning $\left[0,6\right]$[0,6] into three sub-intervals of equal length and using rectangles for each sub-interval whose heights are equal to the function values of the left side of the sub-intervals.

  3. Find the area $A$A under $f\left(x\right)$f(x) by partitioning $\left[0,6\right]$[0,6] into three subintervals of equal length and using rectangles whose widths are equal to the range of the intervals and whose heights are equal to the function values of the right corner of the rectangles

  4. Find the area $A$A under $f\left(x\right)$f(x) by partitioning $\left[0,6\right]$[0,6] into six sub-intervals of equal length and using rectangles for each sub-interval whose heights are equal to the function values of the left side of the sub-intervals.

  5. Find the area $A$A under $f\left(x\right)$f(x) by partitioning $\left[0,6\right]$[0,6] into six sub-intervals of equal length and using rectangles for each sub-interval whose heights are equal to the function values of the right side of the sub-intervals.

  6. What is the actual area $A$A?

Question 4

The interval $\left[0,8\right]$[0,8] is partitioned into four sub-intervals $\left[0,2\right]$[0,2], $\left[2,4\right]$[2,4], $\left[4,6\right]$[4,6], and $\left[6,8\right]$[6,8].

Loading Graph...

$x$x $0$0 $2$2 $4$4 $6$6 $8$8
$y$y $11$11 $5$5 $10$10 $5$5 $5$5
  1. Approximate the area $A$A using rectangles for each sub-interval whose heights are equal to the function values of the left side of the sub-intervals.

  2. Now approximate the area $A$A using rectangles for each sub-interval whose heights are equal to the function values of the right side of the sub-intervals.

Question 5

Consider the function $f\left(x\right)=10e^x$f(x)=10ex.

  1. Which approximation method will give an underestimate of the true area on any given interval?

    The right endpoint approximation because the function is always increasing.

    A

    The left endpoint approximation because the function is always increasing.

    B

    The right endpoint approximation because the function in always decreasing.

    C

    The left endpoint approximation because the function in always decreasing.

    D

 

Notation

Given a continuous function on the interval $\left[a,b\right]$[a,b], where $f\left(x\right)\ge0$f(x)0 for all $x$x in the interval. The value of the area under the graph of $y=f\left(x\right)$y=f(x) from $x=a$x=a to $x=b$x=b is called the definite integral and is written:

That is, for a function such as $f\left(x\right)$f(x) shown in the diagram above, where $f\left(x\right)\ge0$f(x)0 on the interval $a\le x\le b$axb, we have $\int_a^bf(x)dx=A$baf(x)dx=A.

We can see the notation includes the notation for anti-differentiation. In our next lesson, we will look at how to evaluate areas using integration and what the definite integral means for functions that lie all or partially below the $x$x-axis.

 

Practice questions

Question 6

Find the exact value of $\int_0^{12}f\left(x\right)dx$120f(x)dx geometrically, where $y=f\left(x\right)$y=f(x) is graphed below.

Loading Graph...

Question 7

Approximate $\int_0^88xdx$808xdx by using four rectangles of equal width whose heights are the values of the function at the midpoint of each rectangle.

 

Using a calculator to approximate and find areas under curves

Select the brand of calculator you use below to work through an example of using a calculator for calculations concerning areas under curves and evaluating definite integrals.

Casio ClassPad

How to use the CASIO Classpad to complete the following tasks involving areas under graphs.

Consider the area bounded by the function $f\left(x\right)=\sqrt{x}$f(x)=x and the $x$x-axis over the interval $1\le x\le4$1x4.

  1. Complete the following table using the left endpoint approximation $(A_L)$(AL) and $n$n rectangles to estimate the area described. Give answers to four decimal places.

    $n$n $A_L$AL
    $5$5  
    $10$10  
    $100$100  
    $1000$1000  
    $10000$10000  
  2. Complete the following table using the right endpoint approximation $(A_R)$(AR) and $n$n rectangles to estimate the area described. Give answers to four decimal places.

    $n$n $A_R$AR
    $5$5  
    $10$10  
    $100$100  
    $1000$1000  
    $10000$10000  
  3. As $n$n gets larger both $A_L$AL and $A_R$AR converge to a rational number which is the exact area. From the tables above, what does this appear to be?

  4. Use your calculator to evaluate $\int_1^4\sqrt{x}dx$41xdx and find the exact value of the area described.

TI Nspire

How to use the TI Nspire to complete the following tasks involving areas under graphs.

Consider the area bounded by the function $f\left(x\right)=\sqrt{x}$f(x)=x and the $x$x-axis over the interval $1\le x\le4$1x4.

  1. Complete the following table using the left endpoint approximation $(A_L)$(AL) and $n$n rectangles to estimate the area described. Give answers to four decimal places.

    $n$n $A_L$AL
    $5$5  
    $10$10  
    $100$100  
    $1000$1000  
    $10000$10000  
  2. Complete the following table using the right endpoint approximation $(A_R)$(AR) and $n$n rectangles to estimate the area described. Give answers to four decimal places.

    $n$n $A_R$AR
    $5$5  
    $10$10  
    $100$100  
    $1000$1000  
    $10000$10000  
  3. As $n$n gets larger both $A_L$AL and $A_R$AR converge to a rational number which is the exact area. From the tables above what does this appear to be?

  4. Use your calculator to evaluate $\int_1^4\sqrt{x}dx$41xdx and find the exact value of the area described.

 

Practice question

QUESTION 8

Consider the function $f\left(x\right)=\sin x$f(x)=sinx.

  1. Complete the table below to estimate the area between the function and the $x$x-axis for $0\le x\le\pi$0xπ using the left endpoint approximation.

    Round your answers to three decimal places.

    $n$n $A_L$AL units2
    $5$5 $\editable{}$
    $10$10 $\editable{}$
    $100$100 $\editable{}$
    $1000$1000 $\editable{}$
    $10000$10000 $\editable{}$
  2. Use technology to confirm that the exact area is the limit of $A_L$AL as $n$n gets larger.

Outcomes

3.2.10

examine the area problem, and use sums of the form ∑_i f(x_i) δx_i as area under the curve y=f(x)

3.2.11

identify the definite integral ∫ {from a to b} f(x)dx as a limit of sums of the form ∑_i f(x_i) δx_i

3.2.12

interpret the definite integral ∫ {from a to b} f(x)dx as area under the curve y=f(x) if f(x)>0

What is Mathspace

About Mathspace