## Practical examples

Often we want to calculate the area between two curves in the plane. We might, for example, want to calculate the total increase over time of one function compared to another. Or we might want to calculate the cross-sectional area of a complicated machine part. A couple of other examples are shown in the plots below.

On the left is a Lorenz curve. It's a way of keeping track of income or wealth distribution in a country. The blue area below the curve illustrates the ability of people who already have a certain amount of income (low on the left, high on the right) to earn more money. It shows that people with the least wealth have the lowest capacity to generate more income, and those with the most income, the highest capacity to generate more. In a "perfect" world, everyone would have the capacity to earn more in proportion to what they have, but in fact, in most countries, the more you have, the easier it is to accumulate more. The difference between the line of perfect equality and the curve is a measure of inequality called the Gini coefficient. It's the area A divided by the total area under the line of perfect equality, A = A/(A + B).

On the right is a supply and demand curve from economics. Markets for goods and services tend to reach an equilibrium point where supply meets demand at a stable price, the market price. The area between the demand curve and the market price is the consumer surplus – a count of "excess" consumers for whom there aren't enough goods. The area between the supply curve and the market price is the producer surplus – the number of excess "widgets" waiting for customers, or excess inventory.

## Calculating the area between curves

Calculating the area between two curves is pretty straightforward. The three panels below illustrate the process. The integrals on the right show the area between two curves, let's call them f(x) and g(x), and the areas A and B, respectively. If we want to know the area between f(x) and g(x) between the same two limits, x=a and x=b, we just subtract the lower area from the higher. That's it.

There are two issues you will have to contend with that will complicate things. They are

1. You will need to decide which curve is higher. That isn't often even a big deal. If you get it backward, you'll just get a negative area, and you can just change the sign.
1. Sometimes the curves will intersect. You might only want to calculate the area enclosed by the intersections of two curves, for example, or your situation could look like the one below, with one limit of integration at an intersection point. You may have to find those points of intersection, and that will call for solid pre-calculus skills.
1. Finally, the curves may cross in the interval in which you're interested, so you'll have to do more than one integral. All of these situations will be illustrated in examples below.

## Example 1 – Simple area, non-overlapping functions

Find the area between the two curves

between x = 1 and x = 3.

We don't really need to sketch a graph of these functions to know that they don't intersect. They're both parabolas with the same positive leading coefficient, and the y-intercept of the first is 2 units higher than the second. So we set up the integral

where

to give an easy integral:

Now we evaluate that integral

... and evaluate the limits to get the area:

Just for completeness, here's a graph of the functions of this problem and the calculated area. This is the most straightforward kind of area-between-curves problem.

## Example 2 – Area enclosed between two curves

Calculate the area enclosed by the functions

The graph looks like this ...

In order to calculate those overlaps, we set the functions equal to each other and solve for x, which involves completing the square. (Don't forget completing the square!) Here's the whole thing:

That number, though nicely exact, will be a pain in the butt to plug into our integral result, so I'll calculate some decimal approximations and use them in the rest of the problem. Now the integral is

... and the solution is

which reduces to the area,

## Example 3 – When the curves cross in the interval of integration

Sometimes the curves cross in the interval of interest, yet we still want to calculate the area between the curves. This problem requires us to find all of the points of intersection and perform separate integrals for each region. Here's one such region, the region between

The graph of these curves looks like this.

Now the two curves, f(x) and g(x) intersect in three places, enclosing two regions. Notice the symmetry of this problem. The areas of the right and left enclose regions are the same, so we can (and always should) use that to our advantage. There's no need to calculate both areas. Just calculate one and multiply by 2.

The integral is set up like this:

The upper and lower curves are arranged so as to give positive areas, but we take advantage of the symmetry in this case to write

Here's the whole integral:

Now solve it to get

Evaluate the result at the limits:

And the area is

Now if this integral had not been symmetric about x = 0, we'd have to have done two integrals shown in the first integral equation. By the way, this is a great candidate for numerical integration on a calculator – lots of chances for mistakes doing it by hand!

## Practice problems

xaktly.com by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.