Finding the Area Between Curves© 2005 by Karl Hahn |
Your instructor will, at some point, ask you to find the area between two curves. Most of these problems are not that difficult, and once you understand the attack, you should be able to do them fairly easily. So let's just dive into a typical example. The problem is, find the area enclosed by the two curves,
1 y = |
(x^{3} - 9x^{2} + 11x + 2) |
and
1 y = |
(-2x^{2} + 7) |
A plot of these two functions appears on the right. The first curve is shown in blue, the second in green. The area to which the problem refers is pretty clear because there is only one enclosed area -- that narrow strip that runs diagonally down for a ways. Making even a crude plot of the functions in question is always a good preliminary step because it gets you visually in touch with what the problem is asking for.
So how do we establish the boundaries of the problem? Well, the area in question is bounded on the right and left by the intersections of the two curves. So a useful step would be to find where these two curves intersect. And that is the same as finding where their difference is zero (note that for the purpose of finding the intersections, we do not need to carry the 1/5 factor into the calculations below. BTW I put in 1/5 factor only so that the graphs of these functions would be manageable).
x^{3} - 9x^{2} + 11x + 2 - (-2x^{2} + 0x + 7)This is a cubic, but don't go rushing to look up the cubic formula. It can be factored easily. If you have forgotten the methods for factoring polynomials, then take a moment to review them now. You should see that if there are easy factors to this, the only choices for those factors are (x ± 1) and (x ± 5). From the plot you can see that the intersection points are to the right of the y axis, so the candidates are narrowed down to (x - 1) and (x - 5). And when you try polynomial long division with either of the candidates, you find that they both divide x^{3} - 7x^{2} + 11x - 5 evenly. When you work it all out you find thatx^{3} - 7x^{2} + 11x - 5
1 |
(x^{3} - 7x^{2} + 11x - 5) = |
1 |
(x - 1)(x - 1)(x - 5) |
So the difference between the two polynomials is zero at x = 1 and x = 5. This means the two polynomials, y = (1/5)(x^{3} - 9x^{2} + 11x + 2) and y = (1/5)(-2x^{2} + 7) are equal to each other at those same two values of x.
In the diagram on the right we have shown a vertical slice (in red) between the
two polynomials. Although the slice in not quite rectangular -- its top and bottom
edges are not horizontal straight lines -- as the width, dx, of the slice is made smaller
and smaller, the area of the slice becomes closer and closer to dx times the
difference between the two functions. Make sure you see why this is. If you add up all
the areas of all the slices that constitute the area between the two curves, you will
have the total area between the two polynomials. And with rectangular slices, you have
a Riemann sum. Hence the area between the curves is the definite integral of the difference
between the two polynomials taken from the left-hand point where they intersect
to the right-hand point where they intersect.
A = |
5 1 |
1 |
-2x^{2} + 7 |
- |
1 |
x^{3} - 9x^{2} + 11x + 2 |
dx |
Combining terms the above becomes
A = |
1 |
5 1 |
-x^{3} + 7x^{2} - 11x + 5 dx = |
1 |
- |
1 |
x^{4} + |
7 |
x^{3} - |
11 |
x^{2} + 5x |
5 1 |
= |
275 |
19 |
64 |
From the above example you should see that problems like this one, where you are to find the area enclosed between f(x) and g(x), are solved in just two steps:
Step 1: Find the values of x where f(x) - g(x) = 0.
Step 2: If the solutions to step 1 are x_{1} and x_{2}, then find the definite integral of the difference between f(x) and g(x) from x_{1} to x_{2}.
Exercise: Find the area between y = x^{2} - 3x + 3 and y = x.
Here's a variation on this type of problem that you might also encounter. Find the area bounded by the following:
a) The x axis, b) the line, | y = |
3 |
1 |
and c) the curve, | y = -x^{2} + |
17 |
21 |
A plot of this problem is shown to the right. You can see that the area in question has two straight-line sides on the top and bottom and two curved sides on the right and left. There are two ways you can work this. One is to do three separate integrals and add the resulting areas. Starting from the left, you would integrate the curve from its left-hand intersection with the x axis to its left-hand intersection with the sloped line. Next you would integrate the sloped line from its left-hand intersection with the curve to its right-hand intersection with the curve. Finally you would integrate the curve from its right-hand intersection with the sloped line to its right-hand intersection with the x axis. The other way of doing it is to use the method we've already discussed to establish the area enclosed by the sloped line and the curve and subtract that area from the area enclosed by the curve and the x axis. Either of the two ways you do it, you must know both points of intersection between the sloped line and the curve and both points where the curve intersects the x axis.
You find the points where the curve intersects the x axis simply by applying the quadratic formula to the quadratic equation given for the curve. You find that these points are at x = 3/2 and at x = 7. To find the points where the curve intersects the sloped line, take the equation of the curve minus the equation of the line, which is -x^{2} + 7x - 10. When you apply the quadratic formula to that you get x = 2 and x = 5.
Using the second method outlined above:
A = |
7 3/2 |
-x^{2} + |
17 |
x - |
21 |
dx - |
5 2 |
-x^{2} + 7x - 10 dx |
A = |
- |
x^{3} |
17x^{2} |
- |
21x |
7 3/2 | - |
- |
x^{3} |
7x^{2} |
- 10x |
5 2 |
= |
1331 |
- |
9 |
= |
1115 |
I leave it as an exercise to you to use the first method outlined for this problem and come up with the same answer.
Recall that Newton-Raphson finds the solution to f(x) = 0 by iterating x_{n+1} = x_{n} - f(x_{n})/f'(x_{n}). In this case f(x) = sin(2x) - x and f'(x) = 2cos(2x) - 1. So we iterate
x_{n+1} = x_{n} - |
sin(2x_{n}) - x_{n} |
The only question is what do we use for our first guess, x_{0}?
Since this equation does have two solutions, we don't want the iteration to converge on the
solution we already know, that is we don't want it converging to x = 0.
So let's start with
x_{0} past the "hump" in sin(2x). Since the
hump happens at x = π/4 ≈ 0.785, let's start with
x_{0} = 1. Using a 15-digit calculator, I find:
x_{0} = 1.000000000000000 x_{1} = 0.950497797101954 x_{2} = 0.947755822689797 x_{3} = 0.947747133604357 x_{4} = 0.947747133516990 x_{5} = 0.947747133516990So you would find
A = |
0.947747133516990 0 |
sin(2x) - x dx |
= |
- |
1 |
cos(2x) - |
1 |
x^{2} |
0.947747133516990 0 |
The evaluation of the above is left as an exercise.
Exercises
1) Find the area between the curve y = x^{4} - 3x^{3} + 3x^{2} - 2x + 2 and the line, y = x. (Note that the difference between the line and the fourth degree polynomial is easily factored).
2) Find the area bounded by the y-axis, the curve, y = e^{x}, and the curve, y = 2e^{-x}. (Note that you do not need to use Newton-Raphson to find where the two curves intersect. Just set the function for one of the curves equal to the function for the other, take the natural log of both sides -- remembering the log identity, ln(ab) = ln(a) + ln(b), and solve for x).
3) Find the area bounded by the y-axis, the curve, y = cos(x), and the line, y = x. (Note that you will have to use Newton-Raphson to find the intersection point for this).
4) Find the total area enclosed between the curves,
y = |
9 |
and | y = |
13^{ } |
x^{2} |
Note that two curves can enclose more than one area.