Areas between curves
We know how to calculate the area between a curve and the horizontal () axis of a graph. We have learnt a number of very sophisticated techniques which allow us to get an analytic answer.
It is a fairly simple extension to study not the area between a curve and the horizontal axis, but between two curves. You can see here the link between the two:
We can see in the figure below how we can approximate the area by a sum of rectangles. In this case we have used the left point approximation. Each rectangle here has and the heights are where the are the left points of each rectangle, in this case . So , , etc.
We started off studying integration by taking the limit of a Riemann sum. We can do exactly the same thing here, taking the simplest possible Riemann sum, with rectangular regions which stretch between the two curves (see the diagrams on page 448 in Stewart) and then taking the limit to find an expression in terms of integrals. You will not be surprised by the final answer.
If we have two functions and where, in some region , we can write the area between them as the Riemann sum:
where are the positions in the rectangles that go into making up the area. This can be chosen as the left point, right point or mid-point, or any other carefully chosen point.
Taking the limit of this sum gives a difference in integrals, or alternatively, the integral of the difference in the values of the functions:
This is clearly the same as the area under minus the area under because
Sometimes you will be asked to find the enclosed area between two curves. This means that you need not just to find the integral, but also to find the upper and lower limits of the integral ( and in the notation ). The limits will be given by the intersection points of the curves. Here is a simple example:
Find the area between the curves and . First of all we need to find the intersection points. These two curves intersect when:
The solutions of this equation are , so what we have to calculate is the area shown in:
The intersection points of the two functions are given by
The area between the two curves is thus:
We can evaluate this and it gives . Note that if you are doing everything correctly, then the area between the curves should always be positive. A negative definite integral makes sense, but a negative area between two curves does not.
Here is an example where you have to find the area between two curves and you are given the region of integration. The curves and do not intersect, but we can still ask what the area between them in the region between, let’s say -4 and 3 is. This is shown here:
These two curves never intersect but we can ask for the area between them in the range -4 to 3. Think of this as having four curves. The two functions, and two lines which go vertically along the line and . There is an area enclosed between these four lines.
The area is simply:
Sometimes you won’t know exactly the intersection points, but you can calculate them using Newton’s method.
What is the area between the curves: and ? First we have to find the intersection points, and this is done using Newton’s method. The answer is that they intersect at and . This is shown here:
In order to use Newton’s method in this context we have to write down the equation for which we want to find the zeros. We know that the intersection points are at and thus . We can write this as: . We thus want to find the zeros of . First sketch this. In fact it looks like:
The intersection points of and are given by the zeros of this function. There are clearly two of them.
In order to use Newton’s method we have to start with an approximate value. In this case we can start with and we will zoom in to the left intersection point as we iterate the method. We can also use the point and we will zoom into the right point. The figure below shows the iteration procedure to get the right intersection point.
This shows three iterations of Newton’s method starting at (with the red line) to find the intersection point of the function with the x-axis. The same thing can be done for finding the left intersection point, but starting with the initial guess of for Newton’s method.
Thus the area between the curves is:
Integrating with horizontal strips
We are used to thinking always of some function being dependent on , but we can actually write it the other way around, i.e. . and are just labels and so, as long as the function is single valued, we can write a function however we want. For instance, the lines and (which would not be single valued if we wrote the curve as ) look like:
If we want to perform the integral in variables we would have to do:
Alternatively, we can perform the integral in variables as:
The two will give the same answer but the latter calculation is clearly easier.
Make sure that you understand the above calculation!
Let’s look at a slightly more complicated region. If we have the curves and and ask for the region between the two curves in the range we will find that there are actually two contributions to this:
You would have to be careful to do this in two parts, as you always want to do the greater function minus the lesser function, and these two swap at the left intersection point.
There are several situations that we have to consider:
- We are given two functions, and and are asked to find the area between them from to . If the functions do not intersect in this region then find which function is larger. If in the region from to calculate: . If in the region then calculate . Remember the area should always be positive, so this is a good check.
- We are given two functions and which intersect at two points and we are asked to integrate the area between them. First calculate the intersection points, either by solving the equations simultaneously or by using Newton’s method then perform the above integral, making sure that we come out with a positive answer.
- We are given two functions and where we don’t have one function greater than the other in the whole region. We have to find out which one is greater in each region and treat each region separately.
- We are given a function or functions which are multivalued in . See if they are single-valued in . If they are, then see if the problem will be easier to solve when we write the functions as and rather than as functions of .
Important point: If you are confused as to how best to perform the integral, think first of approximating the area between the curves as a Riemann sum then convert this to an integral, or integrals by taking the limit of the Riemann sum that the number of rectangles goes to .