Area Between Curves

Introduction

Remember the basics of definite integrals: a definite integral measures the area under a curve. In this section, we're going to take this one step further and find the area enclosed by two curves. First, though, let's recap what we know about the area under a single curve.

Definite Integral

We set up the Riemann sum Ai=1nf(xi) ΔxA \approx \sum_{i=1}^n f(x_i) \ \Delta x and as Δx0\Delta x \to 0, this sum -- an approximation -- approaches the definite integral -- the exact value of the area: A=abf(x) dxA = \int_a^b f(x)\ dx

This process, hopefully somewhat familiar by now, will be helpful with the other applications of integration that we'll see. We'll use the following three steps each time:

  1. Slice
  2. Approximate
  3. Integrate

You can see how we used these steps above. First, we sliced the area up into simple rectangular areas. Notice how when we sliced it up, we made the approximation constant (the flat top of each rectangle) -- you'll see this trend in the other applications as well. We then set up the approximate area as the sum of these slices. Then finally, the approximate Riemann sum becomes an integral as the width of the slices goes to zero.

Area Between Two Curves

Let's apply this same process to finding the area between two curves.

Approximate area between curves

The key point here is that the height of each rectangle is the difference between the two functions: the upper function minus the lower function.

Thus the Riemann sum looks like Ai=1n(f(xi)g(xi)) ΔxA \approx \sum_{i=1}^n (f(x_i) - g(x_i))\ \Delta x and the exact area between the curves is A=abf(x)g(x) dx\ans{A = \int_a^b f(x) - g(x) \ dx}

Find the area between y=xy=x and y=x2y=x^2. Area between x and x^2

Solution

Since no bounds were given, the only interpretation is that we're looking for the area enclosed within the two curves between the two points where they intersect.

Notice that between these intersection points, the upper function is f(x)=xf(x)=x and the lower function is g(x)=x2g(x)=x^2, so to calculate the area, we'll find the difference f(x)g(x)=xx2.f(x)-g(x) = x-x^2.

We need to find where the two functions intersect; to do so, set them equal to each other and solve: x=x20=x2x0=x(x1)x=0,1\begin{aligned} x &= x^2\ 0 &= x^2-x\ 0 &= x(x-1)\ x &= 0, 1 \end{aligned}

Notice how we solved this like any other quadratic equation, by moving all the terms to one side and factoring. Many students will look at the first line and instinctively want to divide both sides by x.x. This gives one of the answers (x=1x=1), but it misses the second (x=0x=0). Why is this? Remember that division by zero is meaningless, so when you divide both sides of an equation by xx, you're assuming that x0x \neq 0. Thus, doing so will give you all the answers where xx is not 00, but you may miss the fact that x=0x=0 is also a solution.

Approximate area between x and x^2

Thus the area between the two curves is A=01xx2 dx=12x213x301=1213=16\begin{aligned} A &= \int_0^1 x-x^2\ dx\ &= \dfrac{1}{2}x^2 - \dfrac{1}{3}x^3 \bigg|_0^1\ &= \dfrac{1}{2}-\dfrac{1}{3}\ &= \ans{\dfrac{1}{6}} \end{aligned}

Using Horizontal Slices

Find the area between y=xy=x and y=x2y=x^2 using horizontal slices.

Horizontal slices with x and x^2

Solution

Notice what changes: since the slices are horizontal, the thickness of each rectangle will be Δy\Delta y instead of Δx\Delta x. Thus in the final integral, we'll have dydy as the differential instead of dxdx.

That means that we need the functions written in terms of yy instead of xx. The first function is easy; we don't actually have to do any work, since y=xy=x is the same as x=yx=y. For the second function, solve for xx: y=x2x=±yy=x^2 \longrightarrow x = \pm \sqrt{y} Since we only need the positive part, we can drop the plus/minus.

This leaves two questions:

In what order do we subtract the two functions?

Instead of upper and lower functions, we have right and left functions, but the principle is the same: take the larger (in this case the right) and subtract the smaller (the left): yy\sqrt{y} - y

What are the limits of integration?

The limits of integration, like the functions and differential, will be in terms of yy: the lowest yy value is 00, and the highest yy value is 11. Thus the area is A=01yy dy=23y3/212y201=2312=16\begin{aligned} A &= \int_0^1 \sqrt{y}-y \ dy\ &= \dfrac{2}{3}y^{3/2} - \dfrac{1}{2}y^2 \bigg|_0^1\ &= \dfrac{2}{3} - \dfrac{1}{2}\ &= \ans{\dfrac{1}{6}} \end{aligned}

Take a good look at those two examples: there are many examples that can be done in terms of xx or in terms of yy, but often one or the other is significantly easier.

Find the area between x=2yy2x=2y-y^2 and x=y24yx=y^2-4y.

Area between 2y-y^2 and y^2-4y

Solution

In all of these problems, we have the same two questions: what's the order of subtraction, and what are the limits of integration?

By looking at the picture above, the "upper" (rightmost) function is x=2yy2x=2y-y^2, so the integral will involve 2yy2(y24y)=2y2+6y2y-y^2 - (y^2-4y) = -2y^2 + 6y

To find the limits of integration, set the two functions equal to each other and solve: 2yy2=y24y2y2+6y=02y(y+3)=0y=0,3\begin{aligned} 2y-y^2 &= y^2-4y\ -2y^2+6y &= 0\ 2y(-y+3) &= 0\ y &= 0, 3 \end{aligned}

Thus, the area is A=032y2+6y dy=23y3+3y203=18+27=9\begin{aligned} A &= \int_0^3 -2y^2 + 6y \ dy\ &= -\dfrac{2}{3}y^3 + 3y^2 \bigg|_0^3\ &= -18+27\ &= \ans{9} \end{aligned}

So far, we've used the intersection points as the limits of integration, but these can also be specified in the problem.

Find the area between y=x3y=x^3 and y=xy=x on the interval [1,2][-1,2].

Area between x^3 and x

Solution

There are a couple of new things in this example: we're given explicit limits, and also, the curves intersect several times.

Whenever the curves intersect, the upper and lower functions swap. This means that we need to split this area into several integrals (three in this case -- from 1-1 to 00, from 00 to 11, and from 11 to 22).

The total area is the sum of these three integrals: A=10x3x dx+01xx3 dx+12x3x dx=[14x412x2]10+[12x214x4]01+[14x412x2]12=[0(1412)]+[1214]+[(16442)(1412)]=14+14+2+14=114\begin{aligned} A &= \int_{-1}^0 x^3-x \ dx + \int_0^1 x-x^3\ dx + \int_1^2 x^3-x\ dx\ &= \left[\dfrac{1}{4}x^4-\dfrac{1}{2}x^2\right]_{-1}^0 + \left[\dfrac{1}{2}x^2-\dfrac{1}{4}x^4\right]_0^1 + \left[\dfrac{1}{4}x^4-\dfrac{1}{2}x^2\right]_1^2\ &= \left[0-\left(\dfrac{1}{4} - \dfrac{1}{2}\right)\right] + \left[\dfrac{1}{2}-\dfrac{1}{4}\right] + \left[\left(\dfrac{16}{4}-\dfrac{4}{2}\right) - \left(\dfrac{1}{4}-\dfrac{1}{2}\right)\right]\ &= \dfrac{1}{4} + \dfrac{1}{4} + 2 + \dfrac{1}{4}\ &= \ans{\dfrac{11}{4}} \end{aligned}

  1. Find the area between y=2x+6y=2x+6 and y=x29y=x^2-9.

  2. A=35(2x+6)(x29) dx=13x3+x2+15x35=2563\begin{aligned} A &= \int_{-3}^5 (2x+6)-(x^2-9)\ dx\ &= -\dfrac{1}{3}x^3+x^2+15x \bigg|_{-3}^5\ &= \ans{\dfrac{256}{3}} \end{aligned}

  3. Find the area between y=x+4y=x+4 and y=2x2y=-2x-2 on the interval [4,0][-4,0].

  4. A=42(2x2)(x+4) dx+20(x+4)(2x2) dx=[32x26x]42+[32x2+6x]20=12\begin{aligned} A &= \int_{-4}^{-2} (-2x-2) - (x+4)\ dx + \int_{-2}^0 (x+4) - (-2x-2)\ dx\ &= \left[-\dfrac{3}{2}x^2-6x\right]{-4}^{-2} + \left[\dfrac{3}{2}x^2+6x\right]{-2}^{0}\ &= \ans{12} \end{aligned}