Area between a curve and a line, or two curves

AS · P1 · 15 min

Many Paper 1 area questions are not about the region under a single curve, but about the region trapped between a curve and a straight line, or between two curves. The idea is one subtraction: the area between two graphs is the area under the top one minus the area under the bottom one. The work is in finding where the graphs meet, deciding which is on top, and handling regions whose boundary changes part-way across. The syllabus asks you to find the area of a region bounded by a curve and a line, or by two curves.

Top minus bottom

Take the line y=x+2y = x + 2 and the curve y=x2y = x^2. They meet where x2=x+2x^2 = x + 2, that is at x=−1x = -1 and x=2x = 2. Between these values the line lies above the curve.

y = x + 2 y = x^2 (-1, 1) (2, 4)

The area under the line from −1-1 to 22 includes the region you want plus the region under the curve. Subtracting the area under the curve leaves exactly the region between them:

area=∫−12(x+2) dx−∫−12x2 dx=∫−12[(x+2)−x2] dx\text{area} = \int_{-1}^{2} (x + 2)\, dx - \int_{-1}^{2} x^2\, dx = \int_{-1}^{2} \big[(x + 2) - x^2\big]\, dx

Combining into one integral is quicker and less error-prone. Another way to see it: the area between two curves is the area under the single curve y=(top)−(bottom)y = (\text{top}) - (\text{bottom}). Here that curve is y=x+2−x2y = x + 2 - x^2, and the shaded area under it is the same size as the region between the line and the parabola.

y = x + 2 - x^2 fill -1 2 y = x + 2 - x^2
Key result

If y=f(x)y = f(x) is above y=g(x)y = g(x) for a≤x≤ba \le x \le b, the area between them is

∫ab[f(x)−g(x)] dx(top minus bottom)\int_a^b \big[f(x) - g(x)\big]\, dx \qquad \text{(top minus bottom)}

This holds wherever the region sits: above the xx-axis, below it, or crossing it.

The last line is worth dwelling on. With a single curve, a region below the xx-axis gives a negative integral and has to be handled separately (see definite integrals and areas). With two graphs, f(x)−g(x)f(x) - g(x) is the vertical gap between them, which is positive whenever ff is on top, regardless of where the axis is. So top minus bottom never needs splitting at the xx-axis. Example 3 shows this.

Finding the limits and the top curve

The limits are almost always the xx-coordinates of the intersection points. Find them by solving the equations simultaneously, as in simultaneous equations.

To decide which graph is on top, substitute any xx between the limits into both equations. The larger value is the top graph. Your sketch should agree.

Area between two graphs
  1. Sketch both graphs and shade the region.
  2. Solve the equations simultaneously to find the xx-coordinates of the intersection points.
  3. Check which graph is on top by substituting a value between the limits.
  4. Write a single integral of (top) −- (bottom), simplify the integrand, then integrate.
  5. Substitute the limits, showing both F(b)F(b) and F(a)F(a).
  6. If the answer is negative, you have the order the wrong way round; the area is positive.
A useful check for a parabola and a line

If a curve y=±x2+…y = \pm x^2 + \ldots (coefficient of x2x^2 equal to ±1\pm 1) meets a line at x=αx = \alpha and x=βx = \beta, the area between them is always (β−α)36\dfrac{(\beta - \alpha)^3}{6}. For y=x2y = x^2 and y=x+2y = x + 2, 336=92\dfrac{3^3}{6} = \dfrac{9}{2}. Use it to check, not as your working: examiners need to see the integration.

Regions whose boundary changes

Some regions are bounded by three graphs, for example a curve, a line and the xx-axis. The top boundary or the bottom boundary changes part-way across, so a single "top minus bottom" does not cover the whole region.

There are two ways through:

  • Split the region at the xx-value where the boundary changes, and add the areas of the pieces.
  • Use a shape you already know. Straight-line boundaries make triangles and trapezia whose areas need no integration. Find the area of the simple shape, then add or subtract the area under the curve.

Example 4 does the second, using a trapezium under a tangent. Example 5 does the first, splitting at an intersection point and using a triangle for the straight part.

Watch out

Squaring or reversing. The integrand is (top) −- (bottom), not (bottom) −- (top) and certainly not f(x)2−g(x)2f(x)^2 - g(x)^2 (that is for volumes).

Sign errors in the subtraction. (x−4)−(x2−4x)=−x2+5x−4(x - 4) - (x^2 - 4x) = -x^2 + 5x - 4. Bracket the bottom function before subtracting, so every term changes sign.

Splitting at the xx-axis when you do not need to. Between two graphs, top minus bottom already measures the gap. Splitting at the axis is only for a single curve against the axis.

Using the wrong limits. The limits are where the graphs meet, not where either graph crosses the xx-axis, unless the axis is one of the boundaries.

Assuming the line is on top. Check with a value. For y=9−x2y = 9 - x^2 and its normal, the curve is on top.

Worked examples

A parabola and a line

Find the area of the region enclosed by the curve y=x2y = x^2 and the line y=x+2y = x + 2.

Solution

Intersections: x2=x+2x^2 = x + 2, so x2−x−2=0x^2 - x - 2 = 0, (x−2)(x+1)=0(x - 2)(x + 1) = 0, x=−1x = -1 or x=2x = 2.

At x=0x = 0 the line gives 22 and the curve gives 00, so the line is on top.

Area=∫−12(x+2−x2) dx=[x22+2x−x33]−12=(2+4−83)−(12−2+13)=103−(−76)=276=92\begin{aligned} \text{Area} &= \int_{-1}^{2} \big(x + 2 - x^2\big)\, dx = \left[\frac{x^2}{2} + 2x - \frac{x^3}{3}\right]_{-1}^{2} \\ &= \left(2 + 4 - \frac{8}{3}\right) - \left(\frac{1}{2} - 2 + \frac{1}{3}\right) \\ &= \frac{10}{3} - \left(-\frac{7}{6}\right) = \frac{27}{6} = \frac{9}{2} \end{aligned}
Two parabolas

Find the area of the region enclosed by the curves y=x2y = x^2 and y=8−x2y = 8 - x^2.

Solution

Intersections: x2=8−x2x^2 = 8 - x^2, so x2=4x^2 = 4, x=±2x = \pm 2.

At x=0x = 0: 8−x2=88 - x^2 = 8 and x2=0x^2 = 0, so y=8−x2y = 8 - x^2 is on top.

Area=∫−22(8−x2−x2) dx=∫−22(8−2x2) dx=[8x−2x33]−22\text{Area} = \int_{-2}^{2} \big(8 - x^2 - x^2\big)\, dx = \int_{-2}^{2} \big(8 - 2x^2\big)\, dx = \left[8x - \frac{2x^3}{3}\right]_{-2}^{2}=(16−163)−(−16+163)=32−323=643= \left(16 - \frac{16}{3}\right) - \left(-16 + \frac{16}{3}\right) = 32 - \frac{32}{3} = \frac{64}{3}
y = x^2 y = 8 - x^2 (-2, 4) (2, 4)
A region below the x-axis

Find the area of the region enclosed by the curve y=x2−4xy = x^2 - 4x and the line y=2x−8y = 2x - 8.

Solution

Intersections: x2−4x=2x−8x^2 - 4x = 2x - 8, so x2−6x+8=0x^2 - 6x + 8 = 0, (x−2)(x−4)=0(x - 2)(x - 4) = 0, x=2x = 2 or x=4x = 4.

At x=3x = 3: the line gives −2-2 and the curve gives −3-3. The line is on top (less negative).

Area=∫24[(2x−8)−(x2−4x)] dx=∫24(−x2+6x−8) dx=[−x33+3x2−8x]24=(−643+48−32)−(−83+12−16)=−163−(−203)=43\begin{aligned} \text{Area} &= \int_2^4 \big[(2x - 8) - (x^2 - 4x)\big]\, dx = \int_2^4 \big(-x^2 + 6x - 8\big)\, dx \\ &= \left[-\frac{x^3}{3} + 3x^2 - 8x\right]_2^4 \\ &= \left(-\frac{64}{3} + 48 - 32\right) - \left(-\frac{8}{3} + 12 - 16\right) \\ &= -\frac{16}{3} - \left(-\frac{20}{3}\right) = \frac{4}{3} \end{aligned}

The whole region lies below the xx-axis, yet top minus bottom gives a positive area directly. No splitting is needed.

y = x^2 - 4x y = 2x - 8 (2, -4) (4, 0)
A curve, its tangent and the y-axis

The curve y=2xy = 2\sqrt{x} has a tangent at the point P(4,4)P(4, 4).

(a) Find the equation of the tangent at PP.

(b) Find the area of the region bounded by the curve, the tangent and the yy-axis.

Solution

(a) y=2x12y = 2x^{\frac{1}{2}}, so dydx=x−12=1x\dfrac{dy}{dx} = x^{-\frac{1}{2}} = \dfrac{1}{\sqrt{x}}, which is 12\tfrac{1}{2} at x=4x = 4. The tangent is y−4=12(x−4)y - 4 = \tfrac{1}{2}(x - 4), that is y=12x+2y = \tfrac{1}{2}x + 2.

(b) The region runs from x=0x = 0 (the yy-axis) to x=4x = 4, with the tangent above the curve. (A tangent to this curve lies above it: at x=1x = 1 the tangent gives 2.52.5, the curve 22.)

Method 1, one integral.

∫04(12x+2−2x12)dx=[x24+2x−43x32]04=4+8−43(8)−0=12−323=43\begin{aligned} \int_0^4 \left(\tfrac{1}{2}x + 2 - 2x^{\frac{1}{2}}\right) dx &= \left[\frac{x^2}{4} + 2x - \frac{4}{3}x^{\frac{3}{2}}\right]_0^4 \\ &= 4 + 8 - \frac{4}{3}(8) - 0 = 12 - \frac{32}{3} = \frac{4}{3} \end{aligned}

Method 2, trapezium minus curve. Under the tangent from x=0x = 0 to x=4x = 4 is a trapezium with parallel sides 22 and 44 and width 44: area 12(2+4)(4)=12\tfrac{1}{2}(2 + 4)(4) = 12. Under the curve: ∫042x12 dx=[43x32]04=323\displaystyle\int_0^4 2x^{\frac{1}{2}}\, dx = \left[\tfrac{4}{3}x^{\frac{3}{2}}\right]_0^4 = \tfrac{32}{3}. The area is 12−323=4312 - \tfrac{32}{3} = \tfrac{4}{3}.

y = 2 sqrt(x) y = x/2 + 2 (4, 4) (0, 2)
Curve, line and x-axis

The curve y=(x−3)2y = (x - 3)^2 and the line y=9−2xy = 9 - 2x meet at two points.

(a) Find the area of the region enclosed between the curve and the line.

(b) Find the area of the region bounded by the curve, the line and the xx-axis, which lies to the right of x=3x = 3.

Solution

(a) (x−3)2=9−2x(x - 3)^2 = 9 - 2x gives x2−6x+9=9−2xx^2 - 6x + 9 = 9 - 2x, so x2−4x=0x^2 - 4x = 0, x=0x = 0 or x=4x = 4. The intersection points are (0,9)(0, 9) and (4,1)(4, 1). At x=2x = 2 the line gives 55 and the curve 11, so the line is on top.

∫04[9−2x−(x−3)2] dx=∫04(4x−x2) dx=[2x2−x33]04=32−643=323\int_0^4 \big[9 - 2x - (x - 3)^2\big]\, dx = \int_0^4 \big(4x - x^2\big)\, dx = \left[2x^2 - \frac{x^3}{3}\right]_0^4 = 32 - \frac{64}{3} = \frac{32}{3}

(b) The curve touches the xx-axis at (3,0)(3, 0), meets the line at (4,1)(4, 1), and the line meets the xx-axis at (92,0)\left(\tfrac{9}{2}, 0\right). The region has the curve as its upper boundary from x=3x = 3 to x=4x = 4, then the line from x=4x = 4 to x=92x = \tfrac{9}{2}. Split at x=4x = 4.

Under the curve:

∫34(x−3)2 dx=[(x−3)33]34=13\int_3^4 (x - 3)^2\, dx = \left[\frac{(x - 3)^3}{3}\right]_3^4 = \frac{1}{3}

Under the line: a triangle with base 92−4=12\tfrac{9}{2} - 4 = \tfrac{1}{2} and height 11, area 12×12×1=14\tfrac{1}{2} \times \tfrac{1}{2} \times 1 = \tfrac{1}{4}.

Total area: 13+14=712\tfrac{1}{3} + \tfrac{1}{4} = \tfrac{7}{12}.

y = (x - 3)^2 y = 9 - 2x fill 3 4 y = (x - 3)^2 fill 4 4.5 y = 9 - 2x (4, 1) (0, 9)

The shaded region in part (b) is the curved piece from x=3x = 3 to 44 plus the small triangle from x=4x = 4 to 4.54.5.

Exam tip
  • Show the intersections. Solving for the limits usually earns its own marks. Give them as exact values.
  • Write the integrand before integrating. "∫04(4x−x2) dx\int_0^4 (4x - x^2)\,dx" shows the subtraction and simplification. An examiner can then award the method mark even if you slip later.
  • Show the substitution of both limits. Writing (32−643)−0\left(32 - \tfrac{64}{3}\right) - 0 is safer than jumping to 323\tfrac{32}{3}.
  • Triangles and trapezia from straight boundaries can be found by geometry. That is quicker and is fully accepted, as long as you state the shape and its dimensions.
  • "Find the area of the shaded region" questions often need two or three parts added or subtracted. Say in words what you are doing: "area = trapezium −- area under curve".
  • Exact answers. Leave 712\tfrac{7}{12}, not 0.5830.583, unless told otherwise.
Summary
  • Area between two graphs =∫ab(top−bottom) dx=\displaystyle\int_a^b (\text{top} - \text{bottom})\, dx.
  • The limits are the xx-coordinates of the intersection points; find them by solving simultaneously.
  • Decide which graph is on top by substituting a value between the limits.
  • Top minus bottom is positive even if the region is below or across the xx-axis: no splitting at the axis.
  • Regions bounded by three graphs (e.g. curve, line, xx-axis) are split where the boundary changes.
  • Use triangles and trapezia for straight-line pieces, then add or subtract the area under the curve.
  • For a parabola with x2x^2 coefficient ±1\pm 1 and a line meeting at α\alpha, β\beta, the area is (β−α)36\tfrac{(\beta - \alpha)^3}{6}: a quick check.

Practice questions

Question
  1. Find the area of the region enclosed by the curve y=x2y = x^2 and the line y=3xy = 3x.
  2. Find the area of the region enclosed by the curve y=6−x2y = 6 - x^2 and the line y=xy = x.
  3. Find the area of the region enclosed by the curves y=x2y = x^2 and y=xy = \sqrt{x}.
  4. Find the area of the region enclosed by the curves y=x2−2xy = x^2 - 2x and y=2x−x2y = 2x - x^2.
  5. Find the area of the region in the first quadrant enclosed by the curve y=x3y = x^3 and the line y=4xy = 4x.
  6. Find the equation of the tangent to the curve y=x2+1y = x^2 + 1 at the point (1,2)(1, 2), and find the area of the region bounded by the curve, the tangent and the yy-axis.
  7. The normal to the curve y=9−x2y = 9 - x^2 at the point (1,8)(1, 8) meets the curve again at QQ. Find the xx-coordinate of QQ and the area of the region enclosed between the curve and the normal.
  8. The curve y=(x−1)2y = (x - 1)^2 and the line y=x+1y = x + 1 meet at (0,1)(0, 1) and at one other point. Find the other point, and find the area of the region bounded by the curve, the line and the xx-axis.
Answers
  1. x2=3xx^2 = 3x gives x=0,3x = 0, 3. Line on top. ∫03(3x−x2) dx=[3x22−x33]03=272−9=92\displaystyle\int_0^3 (3x - x^2)\, dx = \left[\tfrac{3x^2}{2} - \tfrac{x^3}{3}\right]_0^3 = \tfrac{27}{2} - 9 = \tfrac{9}{2}.

  2. 6−x2=x6 - x^2 = x gives x2+x−6=0x^2 + x - 6 = 0, x=−3x = -3 or 22. Curve on top (at x=0x = 0: 6>06 > 0). ∫−32(6−x−x2) dx=[6x−x22−x33]−32=(12−2−83)−(−18−92+9)=223+272=1256\displaystyle\int_{-3}^{2} (6 - x - x^2)\, dx = \left[6x - \tfrac{x^2}{2} - \tfrac{x^3}{3}\right]_{-3}^{2} = \left(12 - 2 - \tfrac{8}{3}\right) - \left(-18 - \tfrac{9}{2} + 9\right) = \tfrac{22}{3} + \tfrac{27}{2} = \tfrac{125}{6}.

  3. x2=xx^2 = \sqrt{x} gives x4=xx^4 = x, x=0x = 0 or 11. At x=14x = \tfrac{1}{4}, x=12>116\sqrt{x} = \tfrac{1}{2} > \tfrac{1}{16}, so x\sqrt{x} is on top. ∫01(x12−x2)dx=[23x32−x33]01=23−13=13\displaystyle\int_0^1 \left(x^{\frac{1}{2}} - x^2\right) dx = \left[\tfrac{2}{3}x^{\frac{3}{2}} - \tfrac{x^3}{3}\right]_0^1 = \tfrac{2}{3} - \tfrac{1}{3} = \tfrac{1}{3}.

  4. x2−2x=2x−x2x^2 - 2x = 2x - x^2 gives 2x2−4x=02x^2 - 4x = 0, x=0x = 0 or 22. At x=1x = 1: 2x−x2=12x - x^2 = 1, x2−2x=−1x^2 - 2x = -1, so y=2x−x2y = 2x - x^2 is on top. ∫02(4x−2x2) dx=[2x2−2x33]02=8−163=83\displaystyle\int_0^2 (4x - 2x^2)\, dx = \left[2x^2 - \tfrac{2x^3}{3}\right]_0^2 = 8 - \tfrac{16}{3} = \tfrac{8}{3}.

  5. x3=4xx^3 = 4x gives x(x2−4)=0x(x^2 - 4) = 0; in the first quadrant x=0x = 0 to x=2x = 2. At x=1x = 1, 4x=4>14x = 4 > 1, line on top. ∫02(4x−x3) dx=[2x2−x44]02=8−4=4\displaystyle\int_0^2 (4x - x^3)\, dx = \left[2x^2 - \tfrac{x^4}{4}\right]_0^2 = 8 - 4 = 4.

  6. dydx=2x=2\dfrac{dy}{dx} = 2x = 2 at x=1x = 1, so the tangent is y−2=2(x−1)y - 2 = 2(x - 1), y=2xy = 2x. The curve is above the tangent. Area =∫01(x2+1−2x) dx=∫01(x−1)2 dx=[(x−1)33]01=0−(−13)=13= \displaystyle\int_0^1 (x^2 + 1 - 2x)\, dx = \int_0^1 (x - 1)^2\, dx = \left[\tfrac{(x - 1)^3}{3}\right]_0^1 = 0 - \left(-\tfrac{1}{3}\right) = \tfrac{1}{3}.

  7. dydx=−2x=−2\dfrac{dy}{dx} = -2x = -2 at x=1x = 1, so the normal gradient is 12\tfrac{1}{2} and the normal is y−8=12(x−1)y - 8 = \tfrac{1}{2}(x - 1), y=12x+152y = \tfrac{1}{2}x + \tfrac{15}{2}. Meeting the curve: 9−x2=12x+1529 - x^2 = \tfrac{1}{2}x + \tfrac{15}{2}, so 2x2+x−3=02x^2 + x - 3 = 0, (2x+3)(x−1)=0(2x + 3)(x - 1) = 0, and QQ has x=−32x = -\tfrac{3}{2}. The curve is on top (at x=0x = 0: 9>7.59 > 7.5). ∫−3/21(32−12x−x2)dx=[3x2−x24−x33]−3/21=(32−14−13)−(−94−916+98)=1112+2716=12548\int_{-3/2}^{1} \left(\tfrac{3}{2} - \tfrac{1}{2}x - x^2\right) dx = \left[\tfrac{3x}{2} - \tfrac{x^2}{4} - \tfrac{x^3}{3}\right]_{-3/2}^{1} = \left(\tfrac{3}{2} - \tfrac{1}{4} - \tfrac{1}{3}\right) - \left(-\tfrac{9}{4} - \tfrac{9}{16} + \tfrac{9}{8}\right) = \tfrac{11}{12} + \tfrac{27}{16} = \tfrac{125}{48}

  8. (x−1)2=x+1(x - 1)^2 = x + 1 gives x2−3x=0x^2 - 3x = 0, so the other point is (3,4)(3, 4). The region bounded by the curve, the line and the xx-axis has corners at (−1,0)(-1, 0) (line meets axis), (0,1)(0, 1) (intersection) and (1,0)(1, 0) (curve touches axis). From x=−1x = -1 to 00 the top is the line: a triangle of area 12×1×1=12\tfrac{1}{2} \times 1 \times 1 = \tfrac{1}{2}. From x=0x = 0 to 11 the top is the curve: ∫01(x−1)2 dx=13\displaystyle\int_0^1 (x - 1)^2\, dx = \tfrac{1}{3}. Total 12+13=56\tfrac{1}{2} + \tfrac{1}{3} = \tfrac{5}{6}.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action