Unit 8 · Topic 8.6 Beta

Area Between Curves That Cross More Than Twice

4 min read · freeNot practiced

When top and bottom trade places

So far the region between two curves had one curve on top the whole way. Now look at f(x)=x3−3xf(x) = x^3 - 3x and g(x)=xg(x) = x in the figure. They cross three times, at x=−2x = -2, 00 and 22. Between −2-2 and 00 the cubic is on top. Between 00 and 22 the line is on top. Every crossing swaps the roles.

The cubic f(x) = x³ − 3x and the line g(x) = x cross at (−2, −2), (0, 0) and (2, 2). From −2 to 0 the cubic is on top (pink piece, rectangle height f − g); from 0 to 2 the line is on top (blue piece, rectangle height g − f). The side panel adds the pieces, 4 + 4 = 8, and warns that one integral of f − g from −2 to 2 is 0 because the pieces cancel.
Figure 1. The cubic and the line enclose two pieces. Each has area 4, but a single integral of f−gf - g over [−2,2][-2, 2] is 0. LevlPrep original diagram.

Try one integral anyway:

∫−22(f(x)−g(x))dx=∫−22(x3−4x)dx=[x44−2x2]−22=(4−8)−(4−8)=0.\int_{-2}^{2} \left(f(x) - g(x)\right)\,dx = \int_{-2}^{2} \left(x^3 - 4x\right)\,dx = \left[\frac{x^4}{4} - 2x^2\right]_{-2}^{2} = (4 - 8) - (4 - 8) = 0.

Zero, for a region you can clearly see. On the right piece, f−gf - g is negative, so its rectangles have negative heights and cancel the left piece. A definite integral of f−gf - g is a net amount: area where ff is on top minus area where gg is on top. Area itself is never negative, so you have to stop the cancelling.

Splitting the integral

The fix uses a property you already know: integrals over touching intervals add, ∫ac\int_a^c=∫ab= \int_a^b+∫bc+ \int_b^c. Cut the interval at every crossing. On each piece one curve stays on top, so top minus bottom is positive there.

  1. Find every crossing in the interval: solve f(x)=g(x)f(x) = g(x). Keep only the solutions inside the interval.
  2. Test each piece with one xx to see which curve is on top.
  3. Integrate top minus bottom on each piece and add the results.

Doing this by hand is the same as integrating the absolute value of the difference:

Area=∫ab|f(x)−g(x)|dx.\text{Area} = \int_a^b \left|f(x) - g(x)\right|\,dx.

On a calculator, that single setup is the quickest route, because the calculator handles the swaps for you.

Worked example. Find the area between f(x)=x3−3xf(x) = x^3 - 3x and g(x)=xg(x) = x.

Crossings. x3−3x=xx^3 - 3x = x gives x3−4xx^3 - 4x=x(x−2)(x+2)= x(x - 2)(x + 2)=0= 0, so x=−2,0,2x = -2, 0, 2.

Tests. At x=−1x = -1: f=2f = 2 and g=−1g = -1, so ff is on top. At x=1x = 1: f=−2f = -2 and g=1g = 1, so gg is on top.

Pieces.

∫−20(x3−4x)dx=[x44−2x2]−20=0−(4−8)=4,\int_{-2}^{0} \left(x^3 - 4x\right)\,dx = \left[\frac{x^4}{4} - 2x^2\right]_{-2}^{0} = 0 - (4 - 8) = 4, ∫02(4x−x3)dx=[2x2−x44]02=8−4=4.\int_{0}^{2} \left(4x - x^3\right)\,dx = \left[2x^2 - \frac{x^4}{4}\right]_{0}^{2} = 8 - 4 = 4.

Area =4+4=8= 4 + 4 = 8.

Net amount or area?

ExpressionWhat it measuresFor the example
∫−22(f−g)dx\int_{-2}^{2} (f - g)\,dxnet: ff-on-top area minus gg-on-top area00
|∫−22(f−g)dx|\left|\int_{-2}^{2} (f - g)\,dx\right|size of the net amount (pieces already canceled)00
∫−22|f−g|dx\int_{-2}^{2} |f - g|\,dxarea88
∫−20(f−g)dx\int_{-2}^{0} (f - g)\,dx+∫02(g−f)dx+ \int_{0}^{2} (g - f)\,dxarea, split by hand88

The absolute value must go inside the integral. Outside, it comes too late.

Worked example. Find the area between f(x)=x2−2f(x) = x^2 - 2 and g(x)=xg(x) = x for 0≤x≤30 \le x \le 3.

Crossings. x2−2=xx^2 - 2 = x gives (x−2)(x+1)=0(x - 2)(x + 1) = 0. Only x=2x = 2 is inside [0,3][0, 3]; the ends 00 and 33 are given by the problem.

Tests. At x=1x = 1: g=1>f=−1g = 1 > f = -1. At x=2.5x = 2.5: f=4.25>g=2.5f = 4.25 > g = 2.5.

Pieces. ∫02(x−x2+2)dx\int_0^2 \left(x - x^2 + 2\right)\,dx=2−83= 2 - \frac{8}{3}+4+ 4=103= \frac{10}{3} and ∫23(x2−2−x)dx\int_2^3 \left(x^2 - 2 - x\right)\,dx=116= \frac{11}{6}.

Area =103+116=316= \frac{10}{3} + \frac{11}{6} = \frac{31}{6}. One integral of g−fg - f over [0,3][0, 3] would give the net value 32\frac{3}{2} instead.

Traps to avoid

  • A crossing outside the interval does not make a piece. The interval's ends are limits, not crossings.
  • Do not assume the crossings are whole numbers. Factor, or use a calculator's solver and store the values.
  • The same idea works for horizontal strips: split where the right edge and the left edge trade places.
  • In context, the difference between net and total matters. Between two velocity graphs, ∫(v1−v2)dt\int (v_1 - v_2)\,dt is how far ahead runner 1 ends up; ∫|v1−v2|dt\int |v_1 - v_2|\,dt is the total of the gaps.

Spot a mistake on this page?