Area Between Two Curves

Definite integrals, intersections, vertical boundaries and upper minus lower.

Topic 5 · Calculus
Learning goal Set up and evaluate definite integrals for the area enclosed between two graphs.
Syllabus link IB Mathematics AA SL/HL: SL 5.5, SL 5.11; IB Mathematics AI SL: SL 5.5; AI HL extension: HL 5.12.
Big idea First understand the sketch. Limits come from intersections or given vertical boundaries; the integrand is upper curve minus lower curve.
Key formula If \(U(x)\) is upper and \(L(x)\) is lower on \([a,b]\), then \(A=\int_a^b(U(x)-L(x))\,dx\).
IB focus. This page sits after definite integrals and signed area. The main skill is not just evaluating an integral: it is choosing the correct limits, deciding which curve is above, and interpreting the shaded region before doing the algebra.

1What area are we trying to find?

In this topic, we want the area enclosed between two curves. Visually, this is the region trapped between one graph above and another graph below over an interval from \(x=a\) to \(x=b\).

Two curves enclosing a shaded region, with a vertical slice showing upper minus lower as the height.
The area is built from vertical slices. The height of each slice is upper curve minus lower curve.
Key idea

The area is built from vertical slices. On each slice, the height is the upper curve minus the lower curve. This turns the picture into the integral

\[A=\int_a^b(\text{upper}-\text{lower})\,dx.\]

Before writing any integral, first decide: which region is being found, where the boundaries come from, and which curve is on top. Once those three ideas are clear, the algebra becomes much easier.

2Step 1: identify the scenario and the limits

The first decision is not the formula. The first decision is the scenario: are we finding the whole enclosed region, or only the area on a specified interval?

Scenario A showing a full enclosed region between two curves, bounded by intersection points.
Scenario A: the whole enclosed region. The limits usually come from intersection points.
Scenario B showing the area between two curves on a specified interval from x equals a to x equals b.
Scenario B: a specified interval. Use the two vertical boundaries given in the question.

Scenario A: whole enclosed region

Find where the two curves intersect. The \(x\)-coordinates of those intersections usually become the limits of integration.

What you should notice: the shaded region is bounded on the left and right by intersection points.

Scenario B: specified interval

Use the boundaries given in the question, such as \(x=a\) and \(x=b\). These do not have to be intersection points.

What you should notice: the shaded region is only the area between the curves on that interval.

Common trap

Do not automatically solve for intersections if the question already gives the interval. Intersections are needed when they define the enclosed region, or when you need to check whether the upper curve changes inside the interval.

3Step 2: write the formula using upper minus lower

If \(f(x)\) is above \(g(x)\) for every \(x\) in the interval \([a,b]\), then

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

A safer way to write the same idea is to name the two curves by position, not by letter:

\[A=\int_a^b\left(U(x)-L(x)\right)\,dx,\]

where \(U(x)\) is the upper curve and \(L(x)\) is the lower curve on the interval.

Why this notation helps

The upper curve is not always the one called \(f\). Always decide which graph is above before writing the integral.

4Step 3: understand why the formula works

The area between two curves can be understood as a subtraction of areas measured from the \(x\)-axis:

\[\text{area between curves}=\text{area under upper curve}-\text{area under lower curve}.\]
Three panels showing the integral under the upper curve, the integral under the lower curve, and the resulting area between the curves.
Subtracting the lower area from the upper area leaves the vertical distance between the curves.

Therefore,

\[\int_a^b U(x)\,dx-\int_a^b L(x)\,dx=\int_a^b\left(U(x)-L(x)\right)\,dx.\]
Interpretation

The integral is not measuring two separate areas and hoping for the best. It is accumulating the vertical distance between the upper and lower curve across the interval.

5Step 4: handle changes of upper curve

Another way to write the total area between two curves is

\[A=\int_a^b\left|f(x)-g(x)\right|\,dx.\]

The absolute value makes any negative difference positive. This is especially useful on a calculator or GDC, because the calculator can handle the change of upper curve automatically.

Exact handwritten working

For exact working, the absolute value form usually still needs to be interpreted. If \(f(x)-g(x)\) changes sign, split the interval at the crossing point and use upper minus lower on each part.

6Worked examples

Worked example 1: a parabola and a line

Find the area enclosed by \(y=4-x^2\) and \(y=x+2\).

The parabola y equals 4 minus x squared and the line y equals x plus 2 enclosing a shaded region from x equals negative 2 to x equals 1.
The limits come from the two intersections.

Step 1: find the intersection points.

\[ \begin{aligned} 4-x^2&=x+2\\ -x^2-x+2&=0\\ x^2+x-2&=0\\ (x+2)(x-1)&=0. \end{aligned} \]

So \(x=-2\) or \(x=1\). The corresponding intersection points are \((-2,0)\) and \((1,3)\).

Step 2: decide which curve is above. Between \(x=-2\) and \(x=1\), the parabola is above the line.

\[ \begin{aligned} A&=\int_{-2}^1\left((4-x^2)-(x+2)\right)\,dx\\ &=\int_{-2}^1(2-x-x^2)\,dx\\ &=\left[2x-\frac{x^2}{2}-\frac{x^3}{3}\right]_{-2}^1\\ &=\left(2-\frac12-\frac13\right)-\left(-4-2+\frac83\right)\\ &=\frac76+\frac{10}{3}=\frac92. \end{aligned} \]

Answer \(\frac92\) square units.

Worked example 2: specified vertical boundaries

Find the area between \(y=4-x^2\) and \(y=x+2\) from \(x=-1\) to \(x=\frac12\).

The parabola y equals 4 minus x squared and the line y equals x plus 2 with a shaded region between x equals negative 1 and x equals one half.
The limits are given by the question, not by the full intersections.

Here the limits are already given. We do not use the full intersection-to-intersection interval. On \(\left[-1,\frac12\right]\), the parabola \(4-x^2\) is above the line \(x+2\), so

\[ \begin{aligned} A&=\int_{-1}^{1/2}\left((4-x^2)-(x+2)\right)\,dx\\ &=\int_{-1}^{1/2}(2-x-x^2)\,dx\\ &=\left[2x-\frac{x^2}{2}-\frac{x^3}{3}\right]_{-1}^{1/2}\\ &=\left(1-\frac18-\frac1{24}\right)-\left(-2-\frac12+\frac13\right)\\ &=\frac56-\left(-\frac{13}{6}\right)=3. \end{aligned} \]

Answer \(3\) square units.

Worked example 3: the upper curve changes

Find the area between \(y=x\) and \(y=x^3\) from \(x=-1\) to \(x=1\).

The curves y equals x and y equals x cubed between negative 1 and 1, split at x equals 0 where the upper curve changes.
The upper curve changes at \(x=0\), so the integral must be split.

The curves intersect when

\[ x=x^3\quad\Rightarrow\quad x^3-x=0\quad\Rightarrow\quad x(x-1)(x+1)=0. \]

So they meet at \(x=-1\), \(x=0\), and \(x=1\). The upper curve changes at \(x=0\): on \([-1,0]\), \(x^3\) is above \(x\); on \([0,1]\), \(x\) is above \(x^3\).

\[ \begin{aligned} A&=\int_{-1}^0(x^3-x)\,dx+\int_0^1(x-x^3)\,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\\ &=\frac14+\frac14=\frac12. \end{aligned} \]

Answer \(\frac12\) square unit.

Equivalently, a calculator could evaluate \(\int_{-1}^1|x-x^3|\,dx\).

7Step-by-step method

  1. Sketch both curves, or use technology to understand their positions.
  2. Identify the vertical boundaries. They may be intersection points, or specified values such as \(x=a\) and \(x=b\).
  3. Find intersections only when needed to define the region or to check whether the upper curve changes.
  4. Decide which curve is above on each interval.
  5. Integrate upper minus lower on each interval.
  6. Use absolute value on a calculator when appropriate: \(A=\int_a^b|f(x)-g(x)|\,dx\).
  7. Check the answer is positive and matches the shaded region.
Check 1: Are the limits the right ones for the question?
Check 2: Is the integrand upper minus lower on the whole interval?
Check 3: Is the final area positive and given in square units?

8Practice

Try these without looking at the answer key. Draw a quick sketch before setting up each integral.

A. Setup practice

For each question, write the correct integral expression for the area. You do not need to evaluate it.

  1. The area between \(y=5-x^2\) and \(y=1\) between their intersections.
  2. The area between \(y=3x\) and \(y=x^2+2\) from \(x=0\) to \(x=1\).
  3. The area between \(y=x\) and \(y=x^3\) from \(x=-1\) to \(x=1\).

B. Calculate the area

  1. Find the area between \(y=2x\) and \(y=x^2\) from \(x=0\) to \(x=2\).
  2. Find the area enclosed by \(y=9\) and \(y=x^2\).
  3. Find the area enclosed by \(y=6-x^2\) and \(y=x\).
  4. Find the area between \(y=x\) and \(y=x^3\) from \(x=-1\) to \(x=1\).
  5. Find the area between \(y=4-x^2\) and \(y=x+2\) from \(x=-1\) to \(x=\frac12\).

C. Conceptual checks

  1. Explain why \(\int_{-1}^1(x-x^3)\,dx=0\) is not the area between \(y=x\) and \(y=x^3\).
  2. A student writes \(\int_a^b(f(x)-g(x))\,dx\) because the first function is called \(f\). What extra check must they make before this is correct?
Answer key

A. Setup practice

  1. Intersections: \(5-x^2=1\Rightarrow x=\pm2\). Since \(5-x^2\) is above \(1\), \[A=\int_{-2}^2\left((5-x^2)-1\right)\,dx.\]
  2. On \([0,1]\), \(x^2+2\) is above \(3x\), so \[A=\int_0^1\left((x^2+2)-3x\right)\,dx.\]
  3. Split at \(x=0\): \[A=\int_{-1}^0(x^3-x)\,dx+\int_0^1(x-x^3)\,dx.\]

B. Calculate the area

  1. \(A=\int_0^2(2x-x^2)\,dx=\left[x^2-\frac{x^3}{3}\right]_0^2=\frac43\).
  2. Intersections: \(x=\pm3\). \(A=\int_{-3}^3(9-x^2)\,dx=36\).
  3. Intersections: \(6-x^2=x\Rightarrow x=-3,2\). \[A=\int_{-3}^2\left((6-x^2)-x\right)\,dx=\frac{125}{6}.\]
  4. \[A=\int_{-1}^0(x^3-x)\,dx+\int_0^1(x-x^3)\,dx=\frac12.\]
  5. \[A=\int_{-1}^{1/2}(2-x-x^2)\,dx=3.\]

C. Conceptual checks

  1. The expression \(x-x^3\) changes sign at \(x=0\), so the signed areas cancel. Total area must be found using \(\int_{-1}^1|x-x^3|\,dx\), or by splitting at \(x=0\).
  2. They must check that \(f(x)\) is above \(g(x)\) for every \(x\) in the interval. If not, they must reverse the order or split the interval.
Where this fits in the sequence. This page follows definite integrals and signed area. It develops the next geometric application: finding total area trapped between two graphs, where every vertical distance is counted positively.