Unit 5, lesson 63

Area Between Two Curves

How to find the area of a region bounded by curves, by locating where they meet, choosing vertical or horizontal slices, and splitting the integral wherever the top and bottom curves swap.

  • Theory part 125
  • Practice part 126
  • Applications of Integration

Theory, part 125

Practice, part 126

A definite integral measures signed area, so pieces below the axis count as negative. Often you want plain area instead, such as the amount of paint needed to cover a region on a plan, or the gap between two cost curves. The idea is to slice the region into thin strips, measure each strip as top minus bottom, and add. The care goes into finding the right limits and the right top and bottom.

Key terms

Geometric area versus signed integral

Definition Let ff be continuous on [a,b][a, b]. Its integral over [a,b][a, b] is the signed area, where regions below the xx-axis count negatively. The geometric area of the region between the graph of ff and the xx-axis, for a≤x≤ba \le x \le b, is

A=∫ab∣f(x)∣ dx.A = \int_a^b \lvert f(x) \rvert \, dx.

The two agree exactly when f≥0f \ge 0 on [a,b][a, b].

In plain words The integral keeps a running balance with plus and minus signs. Area never goes negative, so you take absolute values first.

Example On [0,2π][0, 2\pi],

∫02πsin⁡x dx=0,∫02π∣sin⁡x∣ dx=∫0πsin⁡x dx−∫π2πsin⁡x dx=2+2=4.\int_0^{2\pi} \sin x \, dx = 0, \qquad \int_0^{2\pi} \lvert \sin x \rvert \, dx = \int_0^\pi \sin x \, dx - \int_\pi^{2\pi} \sin x \, dx = 2 + 2 = 4.

The arches above and below the axis cancel in the integral, but together they cover an area of 44.

Vertical slices

Definition Let ff and gg be continuous on [a,b][a, b] with f(x)≥g(x)f(x) \ge g(x) for all x∈[a,b]x \in [a, b]. The area of the region {(x,y)∣a≤x≤b, g(x)≤y≤f(x)}\{(x, y) \mid a \le x \le b, \ g(x) \le y \le f(x)\} is

A=∫ab(f(x)−g(x))dx.A = \int_a^b \left(f(x) - g(x)\right) dx.

It is the limit, as the widths of the subintervals shrink to 00, of the Riemann sums

∑i=1n(f(xi∗)−g(xi∗))Δxi,\sum_{i=1}^n \left(f(x_i^*) - g(x_i^*)\right) \Delta x_i,

where each term is the area of a thin vertical rectangle of height top minus bottom.

In plain words Cut the region into thin vertical strips. Each has height top curve minus bottom curve and width dxdx. Integrate from the leftmost to the rightmost strip.

Example Between y=xy = x (top) and y=x2y = x^2 (bottom) on [0,1][0, 1], since x≥x2x \ge x^2 there,

A=∫01(x−x2) dx=12−13=16.A = \int_0^1 (x - x^2) \, dx = \frac{1}{2} - \frac{1}{3} = \frac{1}{6}.

Intersections

Definition The curves y=f(x)y = f(x) and y=g(x)y = g(x) intersect at the xx values that solve f(x)=g(x)f(x) = g(x). When a region is bounded only by the two curves, its left and right limits aa and bb are solutions of this equation. Between two consecutive solutions the continuous difference f−gf - g is never zero, so by the intermediate value theorem one function stays above the other there.

In plain words Set the two formulas equal and solve. The solutions are where the region starts and ends. Then test one point in between to see which curve is on top.

Example For y=x+2y = x + 2 and y=x2y = x^2, solve x2=x+2x^2 = x + 2, so (x−2)(x+1)=0(x - 2)(x + 1) = 0 and x=−1x = -1 or x=2x = 2. At x=0x = 0 the line gives 22 and the parabola gives 00, so the line is on top. The area is

A=∫−12(x+2−x2) dx=[x22+2x−x33]−12=103+76=92.A = \int_{-1}^2 (x + 2 - x^2) \, dx = \left[\frac{x^2}{2} + 2x - \frac{x^3}{3}\right]_{-1}^2 = \frac{10}{3} + \frac{7}{6} = \frac{9}{2}.

Horizontal slices

Definition Let uu and vv be continuous on [c,d][c, d] with u(y)≥v(y)u(y) \ge v(y) for all y∈[c,d]y \in [c, d]. The area of the region {(x,y)∣c≤y≤d, v(y)≤x≤u(y)}\{(x, y) \mid c \le y \le d, \ v(y) \le x \le u(y)\} is

A=∫cd(u(y)−v(y))dy.A = \int_c^d \left(u(y) - v(y)\right) dy.

In plain words Cut the region into thin horizontal strips instead. Each has length right curve minus left curve. This helps when the region’s top or bottom changes formula partway across but its left and right sides do not.

Example Take the region bounded by y=xy = \sqrt{x}, y=x−2y = x - 2 and the xx-axis. Vertically the bottom changes at x=2x = 2, so you would need two integrals. Horizontally, the left side is x=y2x = y^2 and the right side is x=y+2x = y + 2, which meet at y=2y = 2, so

A=∫02(y+2−y2) dy=2+4−83=103.A = \int_0^2 (y + 2 - y^2) \, dy = 2 + 4 - \frac{8}{3} = \frac{10}{3}.

The vertical way agrees, since

∫04x dx−∫24(x−2) dx=163−2=103.\int_0^4 \sqrt{x} \, dx - \int_2^4 (x - 2) \, dx = \frac{16}{3} - 2 = \frac{10}{3}.

Splitting at sign changes

Definition If ff and gg are continuous on [a,b][a, b], the area of the region between their graphs for a≤x≤ba \le x \le b is

A=∫ab∣f(x)−g(x)∣ dx.A = \int_a^b \lvert f(x) - g(x) \rvert \, dx.

To evaluate it when f−gf - g has only finitely many zeros in [a,b][a, b], list those zeros together with aa and bb as a=c0<c1<⋯<ck=ba = c_0 < c_1 < \dots < c_k = b. On each [ci−1,ci][c_{i-1}, c_i] the difference f−gf - g keeps one sign, by the intermediate value theorem, so integrate whichever of f−gf - g or g−fg - f is nonnegative there and add the results.

In plain words When the curves cross, top and bottom swap. Split at every crossing so that each piece is integrated as top minus bottom.

Example Between y=x3y = x^3 and y=xy = x on [−1,1][-1, 1], the difference x3−x=x(x−1)(x+1)x^3 - x = x(x - 1)(x + 1) changes sign at 00. On [−1,0][-1, 0] the cubic is on top and on [0,1][0, 1] the line is on top, so

A=∫−10(x3−x) dx+∫01(x−x3) dx=14+14=12.A = \int_{-1}^0 (x^3 - x) \, dx + \int_0^1 (x - x^3) \, dx = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}.

Without splitting you would get

∫−11(x−x3) dx=0,\int_{-1}^1 (x - x^3) \, dx = 0,

which is not an area.

Area between a curve and an axis

Definition For ff continuous on [a,b][a, b], the area between the graph of ff and the xx-axis over [a,b][a, b] is

A=∫ab∣f(x)∣ dx,A = \int_a^b \lvert f(x) \rvert \, dx,

the special case g=0g = 0 of the formula above. For hh continuous on [c,d][c, d], the area between the curve x=h(y)x = h(y) and the yy-axis over [c,d][c, d] is

A=∫cd∣h(y)∣ dy.A = \int_c^d \lvert h(y) \rvert \, dy.

In plain words An axis is just a curve with formula y=0y = 0 or x=0x = 0. Find where the graph crosses it and split there.

Example For f(x)=x2−4f(x) = x^2 - 4 on [0,3][0, 3] the graph crosses the axis at x=2x = 2. It lies below the axis before that and above it after, so

A=∫02(4−x2) dx+∫23(x2−4) dx=163+73=233.A = \int_0^2 (4 - x^2) \, dx + \int_2^3 (x^2 - 4) \, dx = \frac{16}{3} + \frac{7}{3} = \frac{23}{3}.

The signed integral is quite different.

∫03(x2−4) dx=−3\int_0^3 (x^2 - 4) \, dx = -3

Check yourself

  1. Find the area between y=sin⁡xy = \sin x and y=cos⁡xy = \cos x for 0≤x≤π20 \le x \le \frac{\pi}{2}.
Show the answer

The curves cross at x=π4x = \frac{\pi}{4}. Cosine is on top before that and sine after. Each piece gives 2−1\sqrt{2} - 1, so the area is 22−2≈0.8282\sqrt{2} - 2 \approx 0.828.

  1. Find the area enclosed by x=y2x = y^2 and x=y+2x = y + 2.
Show the answer

They meet where y2=y+2y^2 = y + 2, at y=−1y = -1 and y=2y = 2. The line is to the right, so

A=∫−12(y+2−y2) dy=92.A = \int_{-1}^2 (y + 2 - y^2) \, dy = \frac{9}{2}.
  1. What is the area between y=x3y = x^3 and the xx-axis on [−2,1][-2, 1]?
Show the answer

Split at 00, where the cube changes sign.

∫−20(−x3) dx+∫01x3 dx=4+14=174\int_{-2}^0 (-x^3) \, dx + \int_0^1 x^3 \, dx = 4 + \frac{1}{4} = \frac{17}{4}

So the area is 17/417/4. The signed integral would be −154-\frac{15}{4}.

How this lesson connects

It also uses intersections.