Euler Hall — free maths guides

The area between two curves

Write the area between two curves as the integral of upper minus lower. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

One subtraction per strip

The area between two curves is the first place where the integral is not "the area under a graph" but the area of a region — a shape with a top boundary and a bottom boundary.

Slice it vertically. At positionxx the strip runs from the lower curve to the upper one, so its height isf(x)−g(x)f(x)-g(x) and its width isdxdx. Adding the strips:

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

whereff is the upper curve throughout[a,b][a,b].

The one thing that must hold.f≥gf\ge g on the whole interval. If the curves cross, the upper one changes and the integral must be split — which is the next skill. Applying the formula without checking gives a signed quantity that is neither piece.

Why this is not just "subtract two areas". It is, in the special case where neither curve crosses the axis — but the difference form survives translations. Move both curves up by 100 and the region between them is unchanged, and so is∫(f−g)\int(f-g); the two areas10410^4 apart each change. That is the real argument for the difference form: it depends on the gap, not on the heights.

A worked sanity check. Betweeny=xy=x andy=x2y=x^2 on[0,1][0,1]: the line is above, so A=∫01(x−x2) dx=12−13=16.A = \int_0^1(x-x^2)\,dx = \frac12-\frac13 = \frac16. That is smaller than either area alone 12\frac12 and13\frac13), which it must be — the region fits inside both.

The formula in words, for the exercise. Upper minus lower, integrated across the region's horizontal extent. Everything else in this module is that sentence with a different slice.

Why the difference is the right integrand

The area is defined as a limit of Riemann sums, exactly as before — but with a different rectangle. Divide[a,b][a,b] intonn pieces of widthΔx\Delta x; on pieceii take a samplexi∗x_i^* and build the rectangle of heightf(xi∗)−g(xi∗)f(x_i^*)-g(x_i^*) and widthΔx\Delta x.

Its area is the area of the region abovegg and belowff within that strip, up to the curvature of the two curves inside the strip — which shrinks withΔx\Delta x. So ∑i=1n[f(xi∗)−g(xi∗)]Δx→∫ab[f(x)−g(x)]dx.\sum_{i=1}^n\left[f(x_i^*)-g(x_i^*)\right]\Delta x \to \int_a^b\left[f(x)-g(x)\right]dx.

The hypothesisf≥gf\ge g is what makes the height non-negative. Without it the rectangle's "height" is negative and the sum computes a signed quantity, which is why the crossing case must be split.

A subtlety worth stating. The two curves need not be graphs of functions ofxx for the region to have an area — but the formula inxx needs each boundary to be a single function ofxx over the interval. When it is not, either split or change variables; that is the third skill of this module.

Worked example: a line and a parabola

Find the area betweeny=2xy=2x andy=x2y=x^2 on[0,2][0,2].

Which is on top? Atx=1x=1:22 against11. The line is above, and they only meet atx=0x=0 andx=2x=2 (where2x=x22x=x^2 givesx=0x=0 orx=2x=2), so within(0,2)(0,2) the line is above throughout.

Integrate. A=∫02(2x−x2) dx=[x2−x33]02=4−83=43.A = \int_0^2(2x-x^2)\,dx = \left[x^2-\frac{x^3}{3}\right]_0^2 = 4-\frac83 = \frac43.

Checks. Positive ✓. Smaller than the line's own area∫022x dx=4\int_0^2 2x\,dx=4 ✓. Smaller than the parabola's83\frac83 ✓.

A second route, to check the arithmetic. Shift the line down: the region betweeny=2x−x2y=2x-x^2 and the axis on[0,2][0,2] has the same area, and∫02(2x−x2)=43\int_0^2(2x-x^2)=\frac43 ✓. Shifting one boundary to the axis is a legitimate simplification whenever the region's shape is preserved — here it is, because the other boundary was already the axis.

The exact form matters.43\frac43 is the answer;1.3331.333 is a decimal approximation of it, and in an exact-grading system only the fraction is accepted.

By the end you can
  • Write the area between two curves as the integral of upper minus lower
  • Check which curve is above before integrating
  • Explain why the difference form is unaffected by shifting both curves
Check yourself
  1. 1. Area betweeny=xy=x andy=x2y=x^2 on[0,1][0,1].
  2. 2. Area betweeny=4y=4 andy=x2y=x^2 on[−2,2][-2,2].
  3. 3. Area betweeny=x3y=x^3 and the axis on[0,2][0,2], and why a single integral suffices.
Answers

1.∫01(x−x2)=12−13=16\int_0^1(x-x^2)=\frac12-\frac13=\frac16. 2.∫−22(4−x2) dx=16−163=323\int_{-2}^{2}(4-x^2)\,dx=16-\frac{16}{3}=\frac{32}{3}. 3.∫02x3 dx=4\int_0^2x^3\,dx=4. A single integral suffices becausex3≥0x^3\ge0 on[0,2][0,2], so the axis is below the curve throughout and no crossing occurs.

Work out where to start — free, no accountAnswer six real questions — free, no account