Area Under a Curve
A textbook-style lesson on definite integrals, signed area, total area, and the absolute value method.
On this page
- The central idea
- What the definite integral is adding
- When the curve stays above the x-axis
- Signed area and cancellation
- Total area using absolute value
- Step-by-step method
- Worked examples
- Summary
- Video
- Practice
Integration pathway
This page sits between the basic idea of a definite integral and later area applications.
1. The central idea
The phrase area under a curve is used a lot in calculus, but it needs to be interpreted carefully. A definite integral gives a signed area: area above the x-axis counts positively, while area below the x-axis counts negatively.
Above the x-axis
If \(f(x)\geq0\) on \([a,b]\), then the definite integral is exactly the geometric area between the graph and the x-axis.
Below the x-axis
If \(f(x)\leq0\), then the definite integral is negative. The geometric area is the negative of that integral.
Crossing the x-axis
If the curve crosses the x-axis, the negative part can cancel the positive part in the signed integral.
IB AI SL note: in AI SL questions on area under a curve, the curve is usually non-negative on the interval being considered. In that case, students can normally interpret the definite integral directly as area. The extra care below is needed when the graph passes below the x-axis, which is more common in AA and in fuller calculus treatments.
2. What the definite integral is adding
The integral symbol \(\int\) can be thought of as an elongated letter “S”, standing for a sum. In the expression \(\int_a^b f(x)\,dx\), we are adding up many tiny strips from \(x=a\) to \(x=b\).
\(f(x)\)
The height of the curve at the current value of \(x\).
\(dx\)
An extremely small width along the x-axis.
\(f(x)\,dx\)
The approximate area of one very thin rectangle.
The rectangles are deliberately drawn with visible width. In the limit, their widths become infinitesimally small and the sum becomes a definite integral.
3. When the curve stays above the x-axis
When \(f(x)\geq0\), there is no sign issue. The definite integral accumulates positive area only.
If the entire region is above the x-axis, the definite integral equals the area enclosed by the curve, the x-axis, \(x=a\), and \(x=b\).
4. Signed area and cancellation
The issue begins when part of the graph is below the x-axis. The definite integral still has a clear meaning, but it is now signed area, not total geometric area.
The blue regions contribute positively. The red region is below the x-axis and contributes negatively to the signed integral.
Key warning: a signed integral can be zero even when there is visible area. This happens when positive and negative contributions cancel.
5. Total area using absolute value
If the question asks for the total area enclosed by the graph and the x-axis, then all regions must be counted positively. One clean way to show this is to graph \(y=|f(x)|\). The original function is shown dashed, and the absolute value graph is shown as a solid curve.
The dashed curve is the original function, shown in full so students can compare it directly with the solid graph \(y=|f(x)|\). The solid curve reflects the negative part upward.
This is equivalent to splitting the interval at the roots and changing the sign of any part below the x-axis.
6. Step-by-step method for total area
- Sketch or analyse the function on the interval.
- Find the roots of \(f(x)\) inside the interval.
- Use the roots to split the interval into sub-intervals.
- Decide whether \(f(x)\) is positive or negative on each sub-interval.
- Integrate each region as a positive area.
Shortcut once the picture is understood: write the total area as \(\int_a^b |f(x)|\,dx\). The sketch explains why the absolute value is needed.
7. Worked examples
Worked example 1: a curve that crosses the x-axis
Find the total area between \(y=x^2-4\) and the x-axis from \(x=-3\) to \(x=3\).
This annotated graph makes the sign issue clear: the curve crosses the x-axis at \(x=-2\) and \(x=2\), so the middle region lies below the axis and would count as negative area in the signed integral.
Why absolute value is needed: if we used \(\int_{-3}^{3}(x^2-4)\,dx\) directly, the negative middle region would cancel part of the positive area on the left and right.
Because the question asks for total area, we must make every contribution positive. That is why we use \(\int_{-3}^{3}|x^2-4|\,dx\).
Because the question asks for total area, we begin with an absolute value integral:
First find where the graph meets the x-axis:
These two roots split the interval into three parts. Now decide the sign of \(x^2-4\) on each interval:
- on \([-3,-2]\), \(x^2-4\geq0\), so area here is positive
- on \([-2,2]\), \(x^2-4<0\), so this region lies below the x-axis and would be negative in the signed integral
- on \([2,3]\), \(x^2-4\geq0\), so area here is positive
So the absolute value function can be written explicitly as
Therefore we split the total area into three positive parts:
Now evaluate each integral carefully.
Finally, add the three positive areas:
Worked example 2: a curve entirely below the x-axis
Find the area between \(y=-x^2-1\) and the x-axis from \(x=0\) to \(x=2\).
A quick sketch first: on the whole interval from \(x=0\) to \(x=2\), the graph is below the x-axis, so the signed integral is negative and we need absolute value for total area.
Graph observation: this curve does not cross the x-axis on the interval \(0\leq x\leq2\). It stays below the axis throughout, so the whole signed integral would be negative.
That is why we replace \(f(x)\) by \(|f(x)|\) when calculating the total area.
The graph lies completely below the x-axis, so its definite integral would be negative. Since the question asks for area, we use absolute value:
For every \(x\) in \([0,2]\), we have \(-x^2-1<0\). Therefore
So the area becomes
Now integrate and substitute the limits:
The dashed graph is the original curve below the axis. The solid graph is the absolute value curve used to measure positive area.
Worked example 3: cancellation over a full sine wave
Find the total area between \(y=\sin x\) and the x-axis from \(x=0\) to \(x=2\pi\).
First look at the ordinary sine graph. From \(x=0\) to \(x=\pi\), the curve is above the x-axis, so that part contributes positively. From \(x=\pi\) to \(x=2\pi\), the curve is below the x-axis, so that part contributes negatively to the signed integral.
The ordinary sine graph: the blue region is positive and the red region is negative, so they cancel in the signed integral.
However, the question asks for total area, not signed area. Because the graph crosses the x-axis at \(x=0\), \(x=\pi\), and \(x=2\pi\), part of the region lies below the axis. So we must turn that negative part into a positive contribution.
Since \(\sin x\geq0\) on \([0,\pi]\) and \(\sin x<0\) on \([\pi,2\pi]\), we can write
Therefore
Now evaluate each part:
So the total area is
The dashed curve is \(y=\sin x\). The solid curve is \(y=|\sin x|\), so both half-waves contribute positive area.
8. Summary of the two approaches
Signed integral
Use this when the question asks for the value of a definite integral.
Total area
Use this when the question asks for area enclosed by the curve and the x-axis.
Common mistake: do not assume \(\int_a^b f(x)\,dx\) is the total area if the graph goes below the x-axis. Negative area can cancel positive area.
10. Practice with solutions
- Find the area between \(y=x^2+1\), the x-axis, \(x=0\), and \(x=2\).
Show solution
The curve is above the x-axis, so the area is the definite integral.
\[A=\int_0^2(x^2+1)\,dx=\left[\frac{x^3}{3}+x\right]_0^2=\frac{14}{3}\] - Find the total area between \(y=x^2-1\) and the x-axis from \(x=-2\) to \(x=2\).
Show solution
The roots are \(-1\) and \(1\). Split at these roots.
\[A=\int_{-2}^{-1}(x^2-1)\,dx+\int_{-1}^{1}(1-x^2)\,dx+\int_{1}^{2}(x^2-1)\,dx=4\] - Why is \(\int_{-2}^{2}(x^2-4)\,dx\) not the total area?
Show solution
Because \(x^2-4\) is below the x-axis between \(-2\) and \(2\), so the definite integral includes a negative contribution. Total area requires \(\int_{-2}^{2}|x^2-4|\,dx\), or splitting the interval.
- Find the total area between \(y=-2x\) and the x-axis from \(x=0\) to \(x=3\).
Show solution
The function is below the x-axis, so use \(|-2x|=2x\).
\[A=\int_0^3 2x\,dx=9\] - Find the total area between \(y=\cos x\) and the x-axis from \(x=0\) to \(x=\pi\).
Show solution
The function changes sign at \(x=\frac{\pi}{2}\).
\[A=\int_0^{\pi/2}\cos x\,dx+\int_{\pi/2}^{\pi}(-\cos x)\,dx=1+1=2\]