Calculus II Lesson 8: Areas between curves

  1. Problem Presentations
  2. Overview
  3. Example
    1. Exercises
  4. Steps
    1. Example
    2. Exercises
    3. Aside: Trig Substitution
  5. Compound Regions
  6. Using the y-axis
  7. Volumes Preview
  8. Volumes
    1. Slicing a Sphere
    2. Slicing a Cone
  9. Homework

Problem Presentations

All presentations have been moved back by one class. So those who were scheduled to present on 2/23 will present on 2/26, and those who were scheduled for 2/26 will present on 3/2. We will need to schedule for 3/5 and 3/9.

Overview

Previously, we have seen how calculus can help us generalize ideas from geometry. In geometry, we know how to find the area of “flat” shapes, like rectangles. But in calculus, we know how to find areas of regions where the top side is curved:

Region where the top side is curved, but the other sides are straight

Now we will learn about how to find areas of regions where the top and bottom sides are both curved:

Region where both the top and bottom sides are curved

The idea is to split the region into rectangles, the same way we do with areas under curves. When we split the region into rectangles, we approximate the area of the region as:

Approximating the area of the region with rectangles

\[\sum_{i = 1}^n (f(x_i) - g(x_i)) \Delta x\]

As $n \rightarrow \infty$, the limit of these approximations becomes the actual area, and we get the definite integral $\int_a^b (f(x) - g(x)) dx$.

Example

Find the area of the region between the curves $y = x$ and $y = x^2$ from $x = 0$ to $x = 1$.

Region bounded by x and x squared from 0 to 1

Since $x > x^2$ in this region, we set up the integral $\int_0^1 (x - x^2) dx$. Computing the integral, we get $\left. \frac{x^2}{2} - \frac{x^3}{3} \right|_0^1$, which is $\frac{1}{2} - \frac{1}{3}$, or $\frac{1}{6}$.

As another example, let’s find the area between $y = \sin(x)$ and $y = \cos(x)$ from $x = \frac{\pi}{4}$ to $x = \frac{5\pi}{4}$:

Region bounded by sin(x) and cos(x) from pi / 4 to 5pi / 4

Since $\sin(x) > \cos(x)$ here, we compute the integral $\int_{\pi/4}^{5\pi/4} (\sin(x) - \cos(x)) dx$. This is $-\cos(x) - \sin(x)$, from $\pi / 4$ to $5\pi/4$. Plugging in the endpoints:

\[\begin{align} (&-\cos(5\pi/4) - \sin(5\pi/4))\\ &- (-\cos(\pi/4) - \sin(\pi/4)) \\ &=(\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2}) - (-\frac{\sqrt{2}}{2} - \frac{\sqrt{2}}{2}) \\ &= \sqrt{2} + \sqrt{2} \\ &= 2\sqrt{2} \end{align}\]

Exercises

  1. Find the area between the curves $y = x$ and $y = 2 - x$ from $x = 0$ to $x = 1$.
  2. Find the area between $y = x$ and $y = x^3$ from $x = 0$ to $x = 1$.

Steps

What do we do if we have a region enclosed by curves, but we do not know the boundary points ahead of time? In that case, we first need to find the points where the curves intersect using algebra.

That is, in general, the steps to problems where we find the area of a region enclosed by two curves are as follows:

  1. Find the points where the curves intersect. Call these points $x = a$ and $x = b$.
  2. Determine which curve is above the other between $x = a$ and $x = b$. Call that one $f(x)$, and the other one $g(x)$.
  3. Set up the integral and integrate: $\int_a^b (f(x) - g(x)) dx$.

Example

As an example, find the area of the region enclosed by $y = x^2$ and $y = x + 2$.

The first step is to find where the curves intersect. We do this with algebra: $x^2 = x + 2$ means that $x^2 - x - 2 = 0$. Solve this by factoring: $(x - 2)(x + 1) = 0$, so $x = 2$ or $x = -1$.

Then graph and see which curve is above the other between $x = -1$ and $x = 2$.

We can see that $x + 2 \geq x^2$ here. So we set up the integral $\int_{-1}^2 (x+2 - x^2) dx$. We integrate, we get $\frac{x^2}{2} + 2x - \frac{x^3}{3}$. Plugging in the endpoints:

\[\begin{align} &(\frac{4}{2} + 4 - \frac{8}{3}) - (\frac{1}{2} - 2 + \frac{1}{3}) \\ &=(6 - \frac{8}{3}) - (\frac{3}{6} - \frac{12}{6} + \frac{2}{6}) \\ &=(\frac{10}{3}) - (-\frac{7}{6}) \\ &=\frac{27}{6} = \frac{9}{2} = 4.5 \end{align}\]

Exercises

  1. Find the area of the region bounded by $y = 4$ and $y = x^2$.
  2. Find the area of the region bounded by $y = x^2$ and $y = x^3$.

Please look at problems 1 and 2 in section 2.1 of the textbook.

Aside: Trig Substitution

Consider the region above $y = 4$ and below $y = \sqrt{25 - x^2}$. How might we find this area?

Finding the points of intersectino, we see that the curves intersect when $x = 3$ and $x = -3$. Therefore, we set up the integral $\int_{-3}^3 (\sqrt{25 - x^2} - 4) dx$.

How do we integrate this? None of the techniques we’ve learned previously will help us. It turns out that there is yet another special technique to deal with integrals of this form: Trigonometric Substitution. This is optional reading, but if you are interested, you can look into that section to learn how to work through problems of this type. We went over this briefly last week but we will not be asking questions on trig substitution on exams this semester.

Compound Regions

Some problems require us to split the region up into smaller regions, and set up integrals for each. For example: find the area between $y = \sin(x)$ and $y = \cos(x)$ from $x = 0$ to $x = \pi$.

Region between sin(x) and cos(x) from 0 to pi requires two integrals

We can see that from $x = 0$ to $x = \pi/4$, $\sin(x) \leq \cos(x)$, and from $x = \pi/4$ to $x = \pi$, $\sin(x) \geq \cos(x)$. So we set up two integrals:

\[\begin{align} \int_0^{\pi/4} (\cos(x) - \sin(x)) dx \\ + \int_{\pi/4}^{\pi} (\sin(x) - \cos(x)) dx \end{align}\]

Integrating:

\[\begin{align} &\left.[\sin(x) + \cos(x)]\right|_0^{\pi/4} + \left.[-\cos(x) - \sin(x)]\right|_{\pi/4}^\pi \\ &= [(\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2}) - (0 + 1)] \\ &+ [ (-(-1) - 0) - (-\frac{\sqrt{2}}{2} - \frac{\sqrt{2}}{2})] \\ &= (\sqrt{2} - 1) + (1 + \sqrt{2}) \\ &= 2\sqrt{2} \end{align}\]

As another example, consider the region bounded by the $x$-axis, $y = x^2$ and $y = 2 - x$.

Region that requires two integrals to set up

Notice that from $x = 0$ to $x = 1$, the region is bounded above by $y = x^2$, while from $x = 1$ to $x = 2$, it’s bounded by $y = 2 - x$. So we set up the sum as $\int_0^1 x^2 dx + \int_1^2 (2 - x) dx$. This ends up being:

\[\begin{align} &\left. \frac{x^3}{3} \right|_0^1 + \left.(2x - \frac{x^2}{2})\right|_1^2 \\ &=\frac{1}{3} + [(4 - 2) - (2 - \frac{1}{2})] \\ &=\frac{1}{3} + (2 - \frac{3}{2}) \\ &= \frac{1}{3} + \frac{1}{2} \\ &= \frac{5}{6} \end{align}\]

Using the y-axis

We can compute the area of that region in another way: using the $y$-axis instead of the $x$-axis. That is, we solve for $x$ in terms of $y$ for each of these curves, and then look at the area between these curves on the $y$-axis.

Same region as above, but using the y-axis

First we need to express each curve in terms of $y$. For $y = 2 - x$, if we solve for $x$ we get $x = 2 -y$. For $y = x^2$, if we solve for $x$, we either get $x = \sqrt{y}$ or $x = -\sqrt{y}$. Since $x \geq 0$ in this region, we know we use $x = \sqrt{y}$. Then we set up the integral: $\int_0^1 (2 - y - \sqrt{y}) dy$. Taking the antiderivative, this is $2y - \frac{y^2}{2} - \frac{2}{3} y^{3/2}$ from $y = 0$ to $y = 1$. Plugging in, we get $2 - \frac{1}{2} - \frac{2}{3}$, which is again $\frac{5}{6}$.

We can see that looking at this problem from a different perspective turns this from a “compound” region, with two parts to integrate, to a single integral.

Volumes Preview

Our next geometric application of integration will be to find volumes of three-dimensional figures. Recall how we computed areas using integrals: first we approximate the area of the region with rectangles, then take more and more rectangles and, in the limit, we end up with an integral.

Similarly, we can approximate the volume of a three dimensional figure with thin slices of the figure, each of whose volume is $A \cdot \Delta x$, where $A$ is the area of one side of the thin slice, and $\Delta x$ is the thickness of that slice.

Volume of one slice is area times thickness

Adding up the volumes, you get a Riemann sum:

\[V \approx \sum_{i=1}^{n} A(x_i) \Delta x\]

As $n \rightarrow \infty$, this becomes an integral: $V = \int_a^b A(x) dx$, where $A(x)$ is the area of the “slice” at $x$. Take a look at Example 2.6 in the textbook which goes through the example of using this method to find the formula for the volume of a prism. I also cover this example in my video below:

Volumes

General strategy:

Slicing a Sphere

Problem: Derive the formula for the volume of a sphere of radius $R$. ($R$ is a fixed constant.)

One slice of a sphere has a volume of pi(R^2 - x^2) dx

The formula we get is $V = \int_0^R \pi (R^2 - x^2) dx$. Evaluate this integral?

Slicing a Cone

Problem: Derive the formula for the volume of a (right-circular) cone whose base has a radius $R$ and whose height is $h$.

Notice the similar triangles: Side view of a cone: similar triangles

Solution: First we see that $r = \frac{Rx}{h}$, so the area of that slice is $\pi (\frac{Rx}{h})^2$. Set up the volume integral:

\[\begin{align} V &= \int_0^h \pi (\frac{Rx}{h})^2 dx \\ &= \pi \frac{R^2}{h^2} \int_0^h x^2 dx \\ &= \left. \pi \frac{R^2}{h^2} \frac{x^3}{3} \right|_0^3 \\ &= \pi \frac{R^2}{h^2} \frac{h^3}{3} \\ &= \frac{1}{3} \pi R^2 h \end{align}\]

Homework

Written Homework 2, due in class on Thursday:

Section 2.1 #2, 30, 49