Finding the Area Between Two Curves
We have used integration to find the area under a single curve, but sometimes it more interesting or important to calculate the area between two curves.
Depending on the context, there are two different areas we can measure:
- The signed area, where we want to assign the area a positive value if f(x) is the 'top' curve, and a negative value when g(x) is the 'top' curve.
- The absolute area, where we want the area to be positive regardless of which function is the 'top' curve.
Calculating the signed area is the simpler of the two calculations. To calculate the signed area using the definition above, we calculate
∫abf(x)−g(x)dx
Notice that the term inside the integration is positive when f(x)>g(x) and negative when f(x)<g(x). The order of f(x) and g(x) in this equation is important, and if we switch these terms around we will instead be assigning a positive value when g(x) is the 'top' curve and a negative one when f(x) is.
In the absolute area calculation, the formula we use is
∫ab∣f(x)−g(x)∣dx
In this calculation we need to be more careful to make sure the term inside the integral is always positive. To do this, we will need to identify any intersections between the two curves, and identify which curve is on top for all values of x∈[a,b]
A simple example where f(x) is always greater than g(x)
Let's start with a straightforward example where one function is always greater than the other within the interval we're interested in. Suppose we want to find the area between the curves f(x)=x2+2 and g(x)=x from x=0 to x=2.

We can sketch the graphs of f(x) and g(x) to see which function is greater on the given interval. In this case, we see that f(x) is above g(x) for all x in [0,2].
If we want to calculate the signed area, we can set up the integral as
AsignedAsignedAsignedAsignedAsignedAsignedAsigned=∫02f(x)−g(x)dx=∫02(x2+2)−(x)dx=∫02x2−x+2dx=[31x3−21x2+2x]x=0x=2=(3123−2122+2(2))−(3103−2102+2(0))=(38−24+4)−(0)=314
And if we want to calculate the absolute area, we would set up the integral as
Aabsolute=∫02∣f(x)−g(x)∣dx
Since f(x)≥g(x) for all x∈[0,2], we can assert that
∣f(x)−g(x)∣=f(x)−g(x)
and so we find that
AabsoluteAabsoluteAabsoluteAabsolute=∫02∣f(x)−g(x)∣dx=∫02f(x)−g(x)dx=Asigned=314
An example where the "Top" and "Bottom" curves switch
Now, let's consider a scenario where the curves intersect, and the "top" and "bottom" functions switch within the interval. Suppose we want to find the area between f(x)=x3 and g(x)=x from x=−2 to x=2.
Again, we should sketch the curves over the interval [−2,2] to understand which curve is the 'top' and 'bottom' curve at any point. Sketching the graphs reveals that the curves intersect at x=−1, x=0, and x=1.

We can see that g(x)≥f(x) on the intervals [−2,−1] and [0,1], while f(x)≥g(x) on the intervals [−1,0] and [1,2]. The changes between which curve is on top means we need to take more care when setting up our integral for the absolute area calculation.
We will start with calculating the signed area, where we set up our integral as:
AsignedAsignedAsignedAsignedAsignedAsignedAsigned=∫−22f(x)−g(x)dx=∫−22x3−xdx=[41x4−21x2]x=−2x=2=(41(2)4−21(2)2)−(41(−2)4−21(−2)2)=(416−24)−(416−24)=2−2=0
In this case, we find that the signed area is zero. If we recall our sketch, this should not be a surprise, as the region we are integrating over is symmetrical and so we can imagine the areas 'cancelling out' as they get added up.

Now we will calculate the absolute area, and when we set up our integral we will need to break it up across each interval
AabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsolute=∫−22∣f(x)−g(x)∣dx=∫−2−1(g(x)−f(x))dx+∫−10(f(x)−g(x))dx+∫01(g(x)−f(x))dx+∫12(f(x)−g(x))dx=∫−2−1(x−x3)dx+∫−10(x3−x)dx+∫01(x−x3)dx+∫12(x3−x)dx=[21x2−41x4]x=−2x=−1+[41x4−21x2]x=−1x=0+[21x2−41x4]x=0x=1+[41x4−21x2]x=1x=2=((21(−1)2−41(−1)4)−(21(−2)2−41(−2)4))+((41(0)4−21(0)2)−(41(−1)4−21(−1)2))+((21(1)2−41(1)4)−(21(0)2−41(0)4))+((41(2)4−21(2)2)−(41(1)4−21(1)2))=((21−41)−(24−416))+((0−0)−(41−21))+((21−41)−(0−0))+((416−24)−(41−21))=(41−(−2))+(0−(−41))+(41−0)+(2−(−41))=49+41+41+49=420=5
There was a lot of arithmetic that we had to do to compute the absolute area. We need to be careful when setting up the integral, to make sure we are performing the correct calculations and don't need to redo anything. Fortunately, we can do a sanity check to make sure that we haven't made any catastrophic errors when we get to the line
Aabsolute=49+41+41+49
The four terms in this sum are the areas for each region in our interval. We expect that all of these values should be positive (since we were taking the absolute value), so if we see any negative signs in here that should prompt us to check our working out.
The other thing we can see is that the 1st and 4th terms are equal in area, as are the 2nd and 3rd terms. If we recall our sketch, we did see that the areas are symmetric, so this is another indication that we have not made any errors.
Using symmetry to reduce the amount of arithmetic needed
As you can see in the example above, these problems sometimes cause us to do a lot of working out. If we were being very clever when we were working on the previous example, we would have used the symmetry we noticed in our sketch to halve the amount of work needed.
For example, when we got to the line
Aabsolute=∫−2−1(x−x3)dx+∫−10(x3−x)dx+∫01(x−x3)dx+∫12(x3−x)dx
We could have made the observation that
∫−2−1(x−x3)dx=∫12(x3−x)dx
and
∫−10(x3−x)dx=∫01(x−x3)dx
Then we would have been able to write
AabsoluteAabsoluteAabsolute=∫−2−1(x−x3)dx+∫−10(x3−x)dx+∫01(x−x3)dx+∫12(x3−x)dx=∫12(x3−x)dx+∫01(x−x3)dx+∫01(x−x3)dx+∫12(x3−x)dx=2(∫01(x−x3)dx+∫12(x3−x)dx)
Then we could continue as we did previously:
AabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsoluteAabsolute=2(∫01(x−x3)dx+∫12(x3−x)dx)=2([21x2−41x4]x=0x=1+[41x4−21x2]x=1x=2)=2(((21(1)2−41(1)4)−(21(0)2−41(0)4))+((41(2)4−21(2)2)−(41(1)4−21(1)2)))=2(((21−41)−(0−0))+((416−24)−(41−21)))=2((41−0)+(2−(−41)))=2(41+49)=420=5
That was still a lot of arithmetic, but it does make our workload a bit more manageable.
...
Log in or sign up to see more