Tutorials › AP Calculus › Splitting Area Integrals when Curves Cross

Analytical and BC Free Responses · Tutorial 963 of 999

Splitting Area Integrals when Curves Cross

Use intersection points and sign checks to split area integrals correctly when curves cross.

Advanced 9 min read

What You'll Learn

  • Find intersection points that may divide an interval into regions with different curve order.
  • Test the sign of the difference between two functions on each subinterval.
  • Write geometric area as a sum of upper-minus-lower integrals.
  • Recognize when a curve intersection does not change which curve is higher.
  • Check area calculations for sign errors and cancellation.

Why a Crossing Changes the Integral

When two curves cross between the endpoints of an interval, neither curve is necessarily above the other throughout the interval. A single integral of one function minus the other can then count some regions as negative, even though geometric area is nonnegative. The remedy is to find where the curves meet, check their order between consecutive intersections, and split the integral wherever the upper curve changes.

This is a setup skill as much as an integration skill. The bounds and the order of subtraction must match the geometry on each piece. A correct antiderivative cannot repair an integral whose signs or intervals were chosen incorrectly.

Definition: If \(f\) and \(g\) are continuous on \([a,b]\), the geometric area between their graphs on that interval is $$ A=\int_a^b |f(x)-g(x)|\,dx. $$ To evaluate it as ordinary definite integrals, divide \([a,b]\) at the points where \(f(x)=g(x)\), determine which function is higher on each resulting interval, and integrate upper curve minus lower curve on each piece.

Intersections and Curve Order

An intersection occurs at an \(x\)-value where the functions have the same output: \(f(x)=g(x)\). To find possible division points, solve this equation and keep the solutions that lie within the interval of interest. Include the interval endpoints as bounds as well.

Knowing the intersection points alone is not enough. On each interval between consecutive division points, determine which function is larger. One reliable method is to choose a test value strictly inside that interval and compare the two function values. Equivalently, examine the sign of the difference \(f(x)-g(x)\): a positive value means \(f\) is above \(g\), and a negative value means \(g\) is above \(f\).

For continuous functions, if the difference changes from positive to negative, it must equal zero somewhere between those test values. Thus, once all equality points in the interval have been found, the sign cannot switch inside one of the subintervals without another intersection. This is why checking one test value per subinterval is sufficient.

1
Find the equality points.
Solve \(f(x)=g(x)\), and retain the solutions in the integration interval.
2
Order the division points.
Place the interval endpoints and interior intersections in increasing order.
3
Check each interval.
Use a test value to identify the upper and lower functions on that piece.
4
Build and evaluate the sum.
Integrate upper minus lower on each piece, then add the nonnegative areas.

Worked Example: Two Curves Switch Order Once

Worked Example: Two Curves Switch Order Once

Find the area between \(y=2x\) and \(y=x^2\) on \(0\le x\le 3\).

Step 1: Find the intersections. Set the functions equal:

$$ 2x=x^2 \quad\Longrightarrow\quad x(x-2)=0 \quad\Longrightarrow\quad x=0 \text{ or } x=2. $$

Both values are in the interval. The division points are \(0,2,3\).

Step 2: Check the curve order. On \((0,2)\), test \(x=1\): \(2(1)=2\) and \(1^2=1\), so \(2x\) is above \(x^2\). On \((2,3)\), test \(x=2.5\): \(2x=5\) and \(x^2=6.25\), so \(x^2\) is above \(2x\).

Step 3: Set up and evaluate the area.

$$ \begin{aligned} A &=\int_0^2(2x-x^2)\,dx+\int_2^3(x^2-2x)\,dx\\ &=\left[x^2-\frac{x^3}{3}\right]_0^2 +\left[\frac{x^3}{3}-x^2\right]_2^3\\ &=\left(4-\frac{8}{3}\right)-0 +\left(9-9\right)-\left(\frac{8}{3}-4\right)\\ &=\frac{4}{3}+\frac{4}{3} =\frac{8}{3}. \end{aligned} $$

The area is \(\frac{8}{3}\) square units. As a check, both integrands are nonnegative on their stated intervals: the first because \(2x\ge x^2\) on \([0,2]\), and the second because \(x^2\ge 2x\) on \([2,3]\). The sum therefore represents geometric area rather than cancellation.

Why Splitting Works

The area formula follows from adding the areas of separate regions. On any interval where \(f(x)\ge g(x)\), the vertical distance between the graphs at \(x\) is \(f(x)-g(x)\). Adding these distances over the interval by integration gives that region’s area. If \(g(x)\ge f(x)\), the vertical distance is instead \(g(x)-f(x)\). The absolute value in \(|f(x)-g(x)|\) expresses both cases at once.

Here is the justification for replacing the absolute-value integral by a sum. Suppose the equality points inside \([a,b]\), in order, are \(c_1,\ldots,c_n\), and set \(c_0=a\), \(c_{n+1}=b\). On each open interval \((c_i,c_{i+1})\), the difference \(f-g\) has a constant sign if all its zeros have been included. If \(f-g\ge 0\) there, then \(|f-g|=f-g\); if \(f-g\le 0\), then \(|f-g|=g-f\). Integrating these equalities over each piece and using additivity of definite integrals gives the area as a sum of upper-minus-lower integrals.

$$ \int_a^b |f(x)-g(x)|\,dx = \sum_{i=0}^{n}\int_{c_i}^{c_{i+1}} \bigl(\text{upper function}-\text{lower function}\bigr)\,dx. $$

This reasoning also explains an important detail: an intersection is a candidate division point, but it does not always mark a change in which function is higher. If the order remains the same on both sides, the integral does not need to be split there. Splitting there is still valid, provided the same upper-minus-lower expression is used on both pieces.

Worked Example: Several Intersections and a Sign Check

Worked Example: Several Intersections and a Sign Check

Find the area between \(y=x^3\) and \(y=x\) on \([-1,2]\).

Step 1: Find and order the intersections.

$$ x^3=x \quad\Longrightarrow\quad x^3-x=x(x-1)(x+1)=0. $$

The intersections are \(x=-1,0,1\). Together with the endpoints, they give the pieces \([-1,0]\), \([0,1]\), and \([1,2]\).

Step 2: Determine which curve is higher. At \(x=-\frac12\), \(x^3=-\frac18\) and \(x=-\frac12\), so \(x^3\) is higher on \((-1,0)\). At \(x=\frac12\), \(x=\frac12\) and \(x^3=\frac18\), so \(x\) is higher on \((0,1)\). At \(x=\frac32\), \(x^3=\frac{27}{8}\) and \(x=\frac32\), so \(x^3\) is higher on \((1,2)\).

Step 3: Integrate upper minus lower on each piece. An antiderivative of \(x^3-x\) is \(\frac{x^4}{4}-\frac{x^2}{2}\).

$$ \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[\frac{x^4}{4}-\frac{x^2}{2}\right]_{-1}^0 +\left[\frac{x^2}{2}-\frac{x^4}{4}\right]_0^1 +\left[\frac{x^4}{4}-\frac{x^2}{2}\right]_1^2\\ &=\left(0-\left(\frac14-\frac12\right)\right) +\left(\frac12-\frac14\right) +\left((4-2)-\left(\frac14-\frac12\right)\right)\\ &=\frac14+\frac14+\frac94 =\frac{11}{4}. \end{aligned} $$

The area is \(\frac{11}{4}\) square units. Each term in the sum is nonnegative, which checks that the curve order was used consistently on all three pieces.

A Crossing Is Not the Same as a Switch

Graphs can meet without exchanging which one is higher. For example, \(y=x^2\) and \(y=0\) meet at \(x=0\), but \(x^2\ge 0\) on both sides of zero. The point of contact is an intersection, but the upper curve remains \(x^2\) throughout. A test on either side confirms that there is no change in order.

For completeness, the area between these graphs on \([-1,1]\) is

$$ \int_{-1}^{1}(x^2-0)\,dx = \left[\frac{x^3}{3}\right]_{-1}^{1} = \frac13-\left(-\frac13\right) = \frac23. $$

One could split at zero and add the two integrals; that would give the same result. The practical rule is to split when the upper-minus-lower expression changes, not automatically at every point where the graphs meet.

Worked Example: Avoiding Cancellation Across a Crossing

Worked Example: Avoiding Cancellation Across a Crossing

Find the area between \(y=x^2-1\) and \(y=0\) on \([-2,2]\).

Step 1: Find the intersections. Solve \(x^2-1=0\), so \((x-1)(x+1)=0\), giving \(x=-1\) and \(x=1\).

Step 2: Identify the upper curve on each piece. For a test value \(x=-1.5\), \(x^2-1=1.25>0\), so the parabola is above the \(x\)-axis on \([-2,-1]\). At \(x=0\), \(x^2-1=-1<0\), so the \(x\)-axis is above the parabola on \([-1,1]\). At \(x=1.5\), \(x^2-1=1.25>0\), so the parabola is again above the axis on \([1,2]\).

Step 3: Add the three region areas.

$$ \begin{aligned} A &=\int_{-2}^{-1}(x^2-1)\,dx +\int_{-1}^{1}(1-x^2)\,dx +\int_{1}^{2}(x^2-1)\,dx\\ &=\left[\frac{x^3}{3}-x\right]_{-2}^{-1} +\left[x-\frac{x^3}{3}\right]_{-1}^{1} +\left[\frac{x^3}{3}-x\right]_{1}^{2}\\ &=\left(\frac23-\left(-\frac23\right)\right) +\left(\frac23-\left(-\frac23\right)\right) +\left(\frac23-\left(-\frac23\right)\right)\\ &=\frac43+\frac43+\frac43 =4. \end{aligned} $$

The area is \(4\) square units. A useful check is that the signed integral of \(x^2-1\) over the full interval is only \(\frac43\): the positive outer regions and negative middle region partly cancel. The geometric area is larger because all three region areas must be added positively.

Common Mistake: Integrating One Difference Across the Whole Interval

A frequent error is to find intersections, but then integrate \(f-g\) unchanged from the left endpoint to the right endpoint. For the last example, that incorrect calculation would be

$$ \int_{-2}^{2}(x^2-1)\,dx = \left[\frac{x^3}{3}-x\right]_{-2}^{2} = \frac23-\left(-\frac23\right) = \frac43. $$

This is a valid signed integral, but it is not the geometric area between the curves. The middle interval contributes negatively because \(x^2-1<0\) there. The correction is to reverse the subtraction on that piece:

$$ \int_{-2}^{-1}(x^2-1)\,dx +\int_{-1}^{1}(1-x^2)\,dx +\int_1^2(x^2-1)\,dx =4. $$

Before evaluating an area integral, check that each integrand is nonnegative over its stated interval. If one piece is negative, either the curves were subtracted in the wrong order or the interval needs further division.

Writing the Setup Clearly

In a free-response solution, make the reasoning visible. Show the equation used to find intersections, state the resulting division points, and identify the upper curve on each interval. Then write the complete sum before evaluating it. This makes it possible to distinguish an intersection error, an order error, and an integration error.

For a problem with division points \(a=c_0<c_1<\cdots<c_n=b\), a clear setup has the form

$$ A=\int_{c_0}^{c_1}(\text{upper}-\text{lower})\,dx +\int_{c_1}^{c_2}(\text{upper}-\text{lower})\,dx +\cdots +\int_{c_{n-1}}^{c_n}(\text{upper}-\text{lower})\,dx. $$

The upper and lower functions can differ from one interval to the next. The bounds must be in increasing order, and the result should be nonnegative. If the evaluated result is negative, revisit the curve order and the subtraction before assuming the antiderivative is at fault.

Check Your Understanding

For each question, identify how intersections and curve order determine the area setup.

  1. The curves are \(y=x^2\) and \(y=2x\) on \([0,3]\). At what \(x\)-values do they intersect, and which curve is above on each resulting interval?
  2. Why does \(\int_a^b(f(x)-g(x))\,dx\) fail to give geometric area when \(f-g\) is negative on part of \([a,b]\)?
  3. The graphs \(y=x^2\) and \(y=0\) meet at \(x=0\). Does their order switch there? Explain how you would check.
  4. Write, but do not evaluate, the geometric-area integral for \(y=x^3\) and \(y=x\) on \([-1,2]\).
  5. What should you check if one of the integrands in a proposed sum of area integrals is negative on its interval?

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon