Mathematics/Lessons/Integration/Area Under a Curve
Pure · Integration · Year 1

Area Under a Curve

A definite integral measures the area between a curve and the x-axis. Below the axis it comes out negative, so sketch first and split at the roots.

11 min read 4 worked examples

A definite integral measures area

The definite integral has a geometric meaning: $\displaystyle\int_a^b f(x)\,\mathrm{d}x$ gives the area between the curve $y = f(x)$ and the $x$-axis, from $x = a$ to $x = b$. That is the region you saw shaded at the start of the last lesson. It is what the topic has been building towards, because it lets you find areas of shapes with curved edges, which no formula from earlier work can do.

Why integration gives an area

Think of the region cut into very thin vertical strips. Each strip is nearly a rectangle: its height is $f(x)$ and its width is a tiny $\mathrm{d}x$, so its area is about $f(x)\,\mathrm{d}x$. Adding up infinitely many infinitely thin strips is what the integral sign does — it is a continuous sum. The limits $a$ and $b$ say where the strips start and stop.

Animated diagram of the curve y=f(x) with the region beneath it, between x=a and x=b. A handful of wide rectangular strips refine into many thin strips that hug the curve ever more closely, converging on the smooth shaded area, before the label Area equals the integral from a to b of f(x) dx fades in; the animation then coarsens back and loops.
The region under $y=f(x)$ between $x=a$ and $x=b$, cut into thin vertical strips of width $\mathrm{d}x$ and height $f(x)$. As the strips get thinner and more numerous, the Riemann sum converges to the exact area $\int_a^b f(x)\,\mathrm{d}x$.

Below the axis, the integral goes negative

There is one thing to watch. Where the curve dips below the $x$-axis, $f(x)$ is negative, so those strips contribute negative amounts and the integral comes out negative. A definite integral therefore gives a signed area: positive above the axis, negative below.

For a real geometric area you want the positive size of the region. So if part of the curve is below the axis, integrate that part separately and take the magnitude, then add the pieces. Integrating straight across a root lets the positive and negative parts cancel, which gives an answer that is too small, or sometimes zero.

Sketch first, then split at the roots

Always sketch the curve over the interval before integrating. If it stays above the axis throughout, one integral gives the area. If it crosses, find the roots, integrate between consecutive roots separately, take the modulus of anything negative, and add. The sketch is the thing that tells you whether to split and where.

Worked example 1

A region entirely above the axis
Find the area of the region bounded by the curve $y = x^2 + 1$, the $x$-axis, and the lines $x = 0$ and $x = 2$.
MethodThe curve stays above the axis, so integrate directly
1
$y = x^2 + 1$ is positive for every $x$, so the whole region sits above the axis and one integral will do.
No splitting needed.
2
Area $= \displaystyle\int_0^2 (x^2 + 1)\,\mathrm{d}x = \Big[\tfrac13 x^3 + x\Big]_0^2$.
Integrate.
3
Upper $x = 2$: $\tfrac83 + 2 = \tfrac{14}{3}$. Lower $x = 0$: $0$.
Substitute both limits.
4
Area $= \tfrac{14}{3}$ square units.
About $4.67$.
▪ solved
Leave it exact, and give units

Since $x^2 + 1$ never dips below the axis, no splitting was needed and the integral is the area directly. Keep the answer as the fraction $\tfrac{14}{3}$ unless a decimal is asked for, and say "square units" — it is an area, not a length.

Worked example 2

A region below the axis
Find the total area enclosed between the curve $y = x^2 - 4$ and the $x$-axis.

Start by finding where the curve meets the axis. Setting $x^2 - 4 = 0$ gives $x = \pm2$, and between those the parabola sits below the axis, so expect a negative integral.

MethodFind the roots, integrate across, take the magnitude
1
Roots: $x^2 - 4 = 0$ gives $x = -2$ and $x = 2$. Between them the curve is below the axis.
The region runs from $-2$ to $2$.
2
$\displaystyle\int_{-2}^{2}(x^2 - 4)\,\mathrm{d}x = \Big[\tfrac13 x^3 - 4x\Big]_{-2}^{2}$.
Integrate.
3
Upper $x = 2$: $\tfrac83 - 8 = -\tfrac{16}{3}$. Lower $x = -2$: $-\tfrac83 + 8 = \tfrac{16}{3}$.
Substitute both limits.
4
Integral $= -\tfrac{16}{3} - \tfrac{16}{3} = -\tfrac{32}{3}$, so the area is $\tfrac{32}{3}$ square units.
Take the magnitude for an area.
▪ solved
A negative answer is information, not an error

The integral came out as $-\tfrac{32}{3}$ precisely because the whole region lies below the axis. That minus sign is the integral telling you where the curve is. The geometric area is its magnitude, $\tfrac{32}{3}$. Whenever an area integral turns out negative, the region was below the axis and you report the positive size.

Worked example 3

A region that crosses the axis · split it
The curve $y = x^3$ runs from $x = -1$ to $x = 2$. Find the total area between the curve and the $x$-axis over this interval.

$y = x^3$ is below the axis for $-1 < x < 0$ and above it for $0 < x < 2$. Integrating straight across would let the two parts partly cancel, so split at the crossing point $x = 0$.

MethodSplit at x = 0, take magnitudes, then add
1
Below the axis, from $-1$ to $0$: $\displaystyle\int_{-1}^{0} x^3\,\mathrm{d}x = \Big[\tfrac14 x^4\Big]_{-1}^{0} = 0 - \tfrac14 = -\tfrac14$, so that piece has area $\tfrac14$.
Negative, so take the size.
2
Above the axis, from $0$ to $2$: $\displaystyle\int_{0}^{2} x^3\,\mathrm{d}x = \Big[\tfrac14 x^4\Big]_{0}^{2} = 4 - 0 = 4$.
Positive, use as is.
3
Add the two: $\tfrac14 + 4 = \tfrac{17}{4}$.
Total area.
4
Total area $= \tfrac{17}{4} = 4.25$ square units.
Sum of the pieces.
▪ solved
What splitting saved you

Integrating straight from $-1$ to $2$ would give $\big[\tfrac14x^4\big]_{-1}^{2} = 4 - \tfrac14 = \tfrac{15}{4}$, which is smaller than the true area of $\tfrac{17}{4}$. The below-axis part, $-\tfrac14$, cancelled some of the above-axis part instead of adding to it. Splitting at every root and taking magnitudes is the only way to get the real total, and the sketch is what tells you a root is there.

Area between a curve and a line

The same idea extends to the region trapped between a curve and a straight line, not just a curve and the $x$-axis. If the line sits above the curve throughout the interval, the area between them is

$\displaystyle\text{Area} = \int_a^b \big(\,y_{\text{line}} - y_{\text{curve}}\,\big)\,\mathrm{d}x,$

where $a$ and $b$ are the $x$-coordinates where the line and curve intersect. Subtracting the lower function from the upper one before integrating means each thin strip's height is already the gap between the two graphs — so a single integral gives the enclosed area directly, without needing to split or take magnitudes, provided one graph stays above the other across the whole interval.

Finding a and b — solve them simultaneously

The limits aren't given directly; they come from finding where the curve and line cross, by setting the two expressions for $y$ equal and solving. This turns "area between a curve and a line" into two separate skills chained together: solve a simultaneous equation to find the limits, then integrate the difference between them.

Worked example 4

Area between a curve and a line
Find the area of the region enclosed between the curve $y = x^2 - 6x$ and the line $y = 2x$.
MethodFind the intersections, check which graph is on top, then integrate the difference
1
Set the expressions equal: $x^2 - 6x = 2x \Rightarrow x^2 - 8x = 0 \Rightarrow x(x-8)=0$.
Find where they cross.
2
So $x=0$ or $x=8$ — the region runs from $x=0$ to $x=8$.
These are the limits a and b.
3
Test $x=4$: line gives $y=8$; curve gives $y=16-24=-8$. The line is above the curve throughout the interval.
Confirms which function to subtract.
4
Area $= \displaystyle\int_0^8 \big[\,2x - (x^2-6x)\,\big]\,\mathrm{d}x = \int_0^8 (8x - x^2)\,\mathrm{d}x = \Big[4x^2 - \tfrac13 x^3\Big]_0^8$.
Line minus curve, then integrate.
5
Upper $x=8$: $4(64) - \tfrac{512}{3} = 256 - \tfrac{512}{3} = \tfrac{256}{3}$. Lower $x=0$: $0$.
Substitute both limits.
6
Area $= \dfrac{256}{3}$ square units.
About $85.3$.
▪ solved
Common mistake

Integrating $y_{\text{curve}} - y_{\text{line}}$ instead of $y_{\text{line}} - y_{\text{curve}}$ (or vice versa) flips the sign of the answer. Always test a value strictly between the two intersection points — as in step 3 — to check which graph is genuinely on top before setting up the subtraction, rather than guessing from the equations alone.

Common mistake

Integrating across a root without splitting is the error this topic is built around: the parts cancel and the answer comes out too small, or zero. Sketch, find the roots, handle each region separately, and take the modulus of any negative piece. The reverse also applies — if the curve stays on one side of the axis throughout, one integral is enough and there is no need to split.

Check yourself

Find the area of the region bounded by the curve $y = 4 - x^2$ and the $x$-axis.
(Hint: find the roots first, and check which side of the axis the curve is on between them.)

Method
1
Roots: $4 - x^2 = 0$ gives $x = \pm2$. At $x = 0$, $y = 4 > 0$, so the curve is above the axis between them.
Region from $-2$ to $2$, above the axis.
2
Area $= \displaystyle\int_{-2}^{2}(4 - x^2)\,\mathrm{d}x = \Big[4x - \tfrac13 x^3\Big]_{-2}^{2}$.
Integrate.
3
Upper $x = 2$: $8 - \tfrac83 = \tfrac{16}{3}$. Lower $x = -2$: $-8 + \tfrac83 = -\tfrac{16}{3}$.
Substitute both limits.
4
Area $= \tfrac{16}{3} - \left(-\tfrac{16}{3}\right) = \tfrac{32}{3}$ square units.
About $10.67$.
▪ solved

The curve stays above the axis on $-2 < x < 2$, so one integral gives the area with no splitting or magnitudes. Subtracting the negative lower value is what turns it into an addition.