topic badge
AustraliaVIC
VCE 12 Methods 2023

7.07 Approximate areas under curves

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=3$x=3.

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 $4$4.

Do:

Area $=$= $\frac{1}{2}\left(a+b\right)h$12(a+b)h
  $=$= $\frac{1}{2}\left(2+8\right)4$12(2+8)4
  $=$= $20$20 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
  $=$= $48$48 units2

We have an approximation for the area of $48$48 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 is 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.

Approximating areas using the trapezium rule

A trapezium usually gives a closer approximation for the area under a curve than a rectangle as it reduces the space between the curve and the quadrilateral.

The trapezium rule is a formula that uses a trapezium to approximate the area under a curve. We can divide the curve into more than one trapezium (which we call a subinterval). For example, if we divide the area under the curve into three trapezia of equal widths, we are dividing the curve into $3$3 subintervals and we will use $3$3 applications of the trapezium rule.

Recall that the area of a trapezium is:

$\text{Area}=\frac{h}{2}(a+b)$Area=h2(a+b)

Remember $h$h is perpendicular to the parallel sides $a$a and $b$b.

For the area under a curve $f(x)$f(x) between $x=a$x=a and $x=b$x=b:

$A=\frac{1}{2}h\left[f(a)+f(b)\right]$A=12h[f(a)+f(b)] where $h=b-a$h=ba.

Rewriting this, gives us the following:

$A=\frac{b-a}{2}\left[f(a)+f(b)\right]$A=ba2[f(a)+f(b)]

Using the trapezium rule for one subinterval

For a function $f(x)$f(x), we can approximate the area under the curve in the interval bound by $[a,b]$[a,b] by drawing a chord to join $\left(a,f(a)\right)$(a,f(a)) and $\left(b,f(b)\right)$(b,f(b)) to form a trapezium resulting in:

$\int_a^b\ f(x)\ dx\ \approx\ \frac{b-a}{2}\ \left[f(a)+f(b)\right]$ba f(x) dx  ba2 [f(a)+f(b)]

Worked example

Example 1

Use the trapezium rule to find an approximate for $\int_1^5\frac{2dx}{x}$512dxx using:

(a) one subinterval

Think: We can write $\int_1^5\frac{2dx}{x}$512dxx as $\int_1^5\frac{2}{x}dx$512xdx

$f(x)=\frac{2}{x}$f(x)=2x, $a=1$a=1 and $b=5$b=5

$\int_a^b\ f(x)\ dx\ \approx\ \frac{b-a}{2}\ \left[f(a)+f(b)\right]$ba f(x) dx  ba2 [f(a)+f(b)]

Do: Substituting in our values:

$\int_1^5\ f(x)\ dx\approx$51 f(x) dx $\approx$ $\frac{5-1}{2}\left[f(1)+f(5)\right]$512[f(1)+f(5)]
  $=$= $2\times(2+\frac{2}{5})$2×(2+25)
  $=$= $\frac{4}{5}$45

 

(b) four subintervals

Think: Four subintervals mean four applications of the trapezium rule. We need to divide the area into $4$4 subintervals of equal width. In this case, the width is $1$1.

$f(x)=\frac{2}{x}$f(x)=2x and $h=5$h=5

Do:

$\int_1^5\frac{2}{x}dx$512xdx $=$= $\int_1^2\frac{2}{x}dx+\int_2^3\frac{2}{x}dx+\int_3^4\frac{2}{x}dx+\int_4^5\frac{2}{x}dx$212xdx+322xdx+432xdx+542xdx
  $\approx$ $\frac{1}{2}(2+1)+\frac{1}{2}(1+\frac{2}{3})+\frac{1}{2}(\frac{2}{3}+\frac{1}{2})+\frac{1}{2}(\frac{1}{2}+\frac{2}{5})$12(2+1)+12(1+23)+12(23+12)+12(12+25)
  $\approx$ $3\frac{11}{30}$31130

Trapezium rule for $n$n subintervals

We can see in the previous example that each bracketed term was multiplied by $\frac{1}{2}$12. This is equivalent to $\frac{h}{2}$h2. Also, we can notice that the $f(b)$f(b) term in the bracket is also the $f(a)$f(a) term in the next bracket. Noticing this pattern leads us to a quicker way to calculate multiple applications of the trapezium rule.

Trapezium rule using $n$n subintervals

Given $n$n subintervals under a function $f(x)$f(x) in the interval $[a,b]$[a,b]:

$\int_a^b\ f(x)\ dx\ \approx\ \frac{h}{2}\left[f(a)+f(b)+2\left(f(x_1)+f(x_2)+\dots+f(x_{n-1})\right)\right]$ba f(x) dx  h2[f(a)+f(b)+2(f(x1)+f(x2)++f(xn1))]

where $a=x_0$a=x0, $b=x_n$b=xn and the values of $x_1$x1, $x_2$x2, $\dots$, $x_{n-1}$xn1 are found by dividing the interval $[a,b]$[a,b] into $n$n equal subinterval of width $h=\frac{b-a}{n}$h=ban.

The formula could also be rewritten as:

$\int_a^b\ f(x)\ dx\ \approx\ \frac{b-a}{2n}\left[f(a)+f(b)+2\left(f(x_1)+f(x_2)+\dots+f(x_{n-1})\right)\right]$ba f(x) dx  ba2n[f(a)+f(b)+2(f(x1)+f(x2)++f(xn1))]

Note: the formula looks complicated but it is quite straightforward as long as:

  • the subintervals are all the same width, $h$h.
  • we use a table of values, or similar, to work from.

Worked example

Example 2

Use the trapezium rule with $5$5 subintervals to find an approximation for $\int_2^7\frac{3}{x-1}dx$723x1dx.

Think: $a=2$a=2 and $b=7$b=7. The width of each subinterval is $h=\frac{b-a}{n}=\frac{7-2}{5}=1$h=ban=725=1

Do:

Using a table of values to find the function values:

$x$x $2$2 $3$3 $4$4 $5$5 $6$6 $7$7
$f(x)$f(x) $3$3 $\frac{3}{2}$32 $1$1 $\frac{3}{4}$34 $\frac{3}{5}$35 $\frac{1}{2}$12

Substituting the values into the formula:

$\int_2^7\ \frac{3}{x-1}\ dx$72 3x1 dx $\approx$ $\frac{1}{2}\left[f(2)+f(7)+2\lbrace f(3)+f(4)+f(5)+f(6)\rbrace\right]$12[f(2)+f(7)+2{f(3)+f(4)+f(5)+f(6)}]
  $\approx$ $\frac{1}{2}\left[3+\frac{1}{2}+2(\frac{3}{2}+1+\frac{3}{4}+\frac{3}{5})\right]$12[3+12+2(32+1+34+35)]
  $\approx$ $5\frac{3}{5}$535

Practice questions

Question 3

The function $y=3\ln x$y=3lnx has been graphed.

Loading Graph...

  1. Solve for the $x$x-intercept of the curve.

  2. Use two applications of the trapezoidal rule to approximate the area bound by the curve, the $x$x-axis and and $x=6$x=6.

    Give your answer to one decimal place.

Question 4

Use three applications of the trapezoidal rule to approximate $\int_0^9e^{-x^2}dx$90ex2dx to one decimal place.

Using the trapezium rule to find irregular areas

The trapezium rule can also be used to find the area of irregular shapes. This is particularly useful when we need to find the area of a block of land as they are often irregular in shape.

Worked example

Example 3

Use the trapezium rule to approximate the area of the block of land shown below:

Think: We can see that there are $3$3 subintervals and $f(a)=410$f(a)=410 and $f(b)=360$f(b)=360.

The width of each subinterval is $h=\frac{1020}{3}=340$h=10203=340.

Do: Substituting these into the formula:

Area $\approx$ $\frac{340}{2}\left[410+360+2(310+450)\right]$3402[410+360+2(310+450)]
  $\approx$ $389300$389300 m2

Practice question

Question 5

A surveyor provided the following diagram with measurements for a property she was mapping out.

  1. Find the approximate total area of the property by using three applications of the trapezoidal rule.

    Give your answer in square metres.

  2. The average weekly rainfall is $34$34 mm. Calculate the total volume of water that falls on the land in cubic metres.

    Round your answer to two decimal places.

Outcomes

U34.AoS3.10

application of integration to problems involving finding a function from a known rate of change given a boundary condition, calculation of the area of a region under a curve and simple cases of areas between curves, average value of a function and other situations.

U34.AoS3.14

the concept of approximation to the area under a curve using the trapezium rule, the ideas underlying the fundamental theorem of calculus and the relationship between the definite integral and area

U34.AoS3.20

evaluate approximations to the area under a curve using the trapezium rule, find and verify antiderivatives of specified functions and evaluate definite integrals

What is Mathspace

About Mathspace