Why Boundary Switches Require a Partition
When two curves cross, the curve that is higher before the crossing may be lower afterward. A vertical slice through the region still has a nonnegative height, but the expression for that height changes at the crossing. The area calculation must change with it.
The practical method is to find each point where the boundary order switches, divide the interval at those points, and integrate upper minus lower on each resulting subinterval. Because each gap is nonnegative, every integral represents an area contribution, and the contributions can be added.
Switch Points and the Area Formula
To locate possible switches, solve \(f(x)=g(x)\), or equivalently \(f(x)-g(x)=0\), in the interval. Then determine the sign of \(f(x)-g(x)\) between consecutive solutions. A positive sign means \(f\) is higher; a negative sign means \(g\) is higher. Any intersection that is an endpoint is already a partition boundary. A point where the curves meet but do not change order does not require a switch in the height formula, although it may be used as an additional cut if convenient.
Suppose the interior switch points, in increasing order, are \(c_1,\ldots,c_n\). Set \(c_0=a\) and \(c_{n+1}=b\). On each interval \([c_i,c_{i+1}]\), identify the upper and lower curves. The area is the sum of the integrals of their nonnegative gaps.
The boundaries of the subintervals can be shared, but those individual points have zero width and contribute no area. The key requirement is that the upper-minus-lower expression be chosen separately on each interval where the order is fixed.
Why Splitting Gives the Area
For continuous curves, the vertical-slice description of area says that the area over an interval is the integral of the slice height, provided that height is nonnegative. At a boundary switch, the height expression changes: on one side it is \(f-g\), and on the other side it is \(g-f\). Additivity of definite integrals lets us calculate the area on each piece and then add the pieces.
Solve \(f(x)=g(x)\) within the interval, and order the relevant solutions from left to right.
Use a test point in each open subinterval to check the sign of \(f-g\). Continuity ensures that the sign cannot change within an interval without another point where \(f=g\).
Write upper minus lower on that subinterval, evaluate the definite integral, and add the results.
The sign claim in Step 2 follows from the Intermediate Value Theorem. If the continuous function \(f-g\) had opposite signs at two points in one subinterval, it would equal zero somewhere between them. Once all order-changing points have been included as partition boundaries, the order is therefore fixed on each open piece.
Worked Examples
Worked Example: One Interior Switch
Find the area between \(f(x)=x^2\) and \(g(x)=2x\) on \([0,3]\).
First find intersections:
The point \(x=0\) is an endpoint. The order changes at the interior point \(x=2\), so use the subintervals \([0,2]\) and \([2,3]\). On \((0,2)\), \(x^2-2x=x(x-2)<0\), so \(g\) is higher. On \((2,3)\), \(x(x-2)>0\), so \(f\) is higher.
The area on the first subinterval is:
The area on the second subinterval is:
Adding the nonnegative pieces gives \(A=\frac{4}{3}+\frac{4}{3}=\frac{8}{3}\) square units. To check the antiderivatives, \(\frac{d}{dx}(x^2-\frac{x^3}{3})=2x-x^2\), and \(\frac{d}{dx}(\frac{x^3}{3}-x^2)=x^2-2x\). Both evaluated integrals are positive, as required for areas.
Worked Example: Two Interior Switches
Find the area between \(f(x)=x^2-2x+2\) and \(g(x)=x\) on \([0,3]\).
The difference factors as:
The curves meet at \(x=1\) and \(x=2\). Test points \(x=\frac12,\frac32,\frac52\) lie in the three open subintervals. The corresponding differences are:
Thus \(f\) is upper on \([0,1]\), \(g\) is upper on \([1,2]\), and \(f\) is upper on \([2,3]\). An antiderivative of the difference is \(F(x)=\frac{x^3}{3}-\frac{3x^2}{2}+2x\), since \(F'(x)=x^2-3x+2\). Its needed values are:
Now calculate each piece using the correct order:
Each contribution is positive: the middle one is \(-(\frac23-\frac56)=\frac16\). The derivative check \(F'(x)=x^2-3x+2\) confirms the antiderivative, and the sign tests confirm which gap to integrate on each piece. The total area is \(\frac{11}{6}\) square units.
Worked Example: Trigonometric Curves with a Switch
Find the area between \(f(x)=\sin x\) and \(g(x)=\cos x\) on \([0,\frac{\pi}{2}]\).
The curves are equal when \(\sin x=\cos x\), which in this interval gives \(x=\frac{\pi}{4}\). For \(0<x<\frac{\pi}{4}\), \(\sin x<\cos x\); for \(\frac{\pi}{4}<x<\frac{\pi}{2}\), \(\sin x>\cos x\). The area is therefore:
The antiderivatives check directly: \(\frac{d}{dx}(\sin x+\cos x)=\cos x-\sin x\) and \(\frac{d}{dx}(-\cos x-\sin x)=\sin x-\cos x\). The two positive pieces add to \(2\sqrt{2}-2\) square units.
A Common Mistake: Using One Signed Integral
In the two-switch example, integrating \(f-g\) over the entire interval would give:
This is not the geometric area, which is \(\frac{11}{6}\). On the middle interval, \(f-g<0\), so its signed integral subtracts that region instead of adding its positive area. The incorrect calculation has counted the first and third pieces positively but the middle piece negatively.
The correction is to reverse the gap on the middle interval: use \(g-f\) there, while using \(f-g\) on the other two intervals. This produces \(\frac56+\frac16+\frac56=\frac{11}{6}\). A useful check is that every integral in the area sum must be nonnegative; a negative contribution signals that the upper and lower curves have been reversed on that piece.
A Reliable Checklist
Before evaluating the integrals, write down the partition and the boundary order on each part. This makes it easier to catch a missed switch or a reversed gap before it affects the result.
- Solve \(f(x)=g(x)\) and keep the relevant solutions in the interval.
- Place the order-changing points in increasing order and use them to partition the interval.
- Choose an interior test point on each subinterval and determine the sign of \(f-g\).
- Write upper minus lower on every piece, so each integrand is nonnegative.
- Evaluate each definite integral and add the resulting areas.
- Check that the antiderivatives differentiate to the integrands and that no piece contributes a negative area.
Check Your Understanding
For each question, identify the boundary order before setting up any area integral.
- What equation locates possible points where two curves meet?
- If \(f(x)-g(x)<0\) on a subinterval, which curve is upper there, and what gap should be integrated?
- Why can integrating \(f-g\) across an entire interval fail to give geometric area when the curves switch order?
- For \(f(x)=x^2\) and \(g(x)=2x\) on \([0,3]\), what point divides the interval into pieces with fixed boundary order?
- What does a negative value for one proposed area contribution indicate about the setup?