Tutorials › Calculus I › Area Between a Curve and the x-Axis

Area Between Curves · Tutorial 1214 of 1495

Area Between a Curve and the x-Axis

Use zeros and sign intervals to turn a definite integral into the nonnegative geometric area between a curve and the x-axis.

Intermediate 10 min read

What You'll Learn

  • Distinguish signed definite integral from geometric area
  • Express the area between a graph and the x-axis as an integral of the function’s magnitude
  • Locate zeros and use them to partition an interval into sign-consistent pieces
  • Handle roots where the graph touches the axis without crossing it
  • Calculate and check geometric area across multiple sign intervals

From Signed Accumulation to Geometric Area

A definite integral records signed accumulation. Where a function is positive, its contribution is positive; where it is negative, its contribution is negative. Geometric area, by contrast, is never negative. If a graph crosses the x-axis, the signed contributions on opposite sides can cancel, even though the regions on both sides have positive area.

To find the geometric area between the graph of a continuous function and the x-axis on a closed interval, locate the function’s zeros, determine its sign between consecutive zeros, and add the areas of the resulting pieces. On each piece, the function has a consistent sign, so its area is either the integral of the function or the negative of that integral.

Definition: If \(f\) is continuous on \([a,b]\), the geometric area between its graph and the x-axis is $$ A=\int_a^b |f(x)|\,dx. $$ Here \(|f(x)|\) is the nonnegative vertical distance from the graph to the x-axis.

Why the Absolute Value Gives Area

Imagine dividing \([a,b]\) into narrow subintervals. Over a subinterval of width \(\Delta x\), the graph’s vertical distance from the x-axis is approximately \(|f(x)|\), so the corresponding thin strip has area approximately \(|f(x)|\Delta x\). Adding these nonnegative strip areas and taking the limit gives the integral of \(|f|\). Continuity ensures that this Riemann integral exists.

The sign of \(f\) determines how to calculate this integral. If \(f(x)\geq 0\) throughout an interval, then \(|f(x)|=f(x)\); if \(f(x)\leq 0\), then \(|f(x)|=-f(x)\). Thus, when the zeros divide \([a,b]\) into finitely many intervals on which the sign is constant, the total area is the sum of the appropriate signed integrals.

$$ A=\sum_{i=1}^{n}\left|\int_{x_{i-1}}^{x_i} f(x)\,dx\right|, $$

where \(a=x_0<x_1<\cdots<x_n=b\) and each interval \([x_{i-1},x_i]\) contains no sign change in its interior. In practice, choose the \(x_i\) to include every zero where the sign changes. Including other zeros is also valid, and can make the sign analysis clearer.

Worked Example: A Curve That Crosses the Axis Twice

Worked Example: A Curve That Crosses the Axis Twice

Find the area between \(f(x)=x^2-1\) and the x-axis on \([-2,2]\).

First locate the zeros:

$$ x^2-1=0 \quad\Longleftrightarrow\quad (x-1)(x+1)=0 \quad\Longleftrightarrow\quad x=-1,\;1. $$

These zeros divide the interval into \([-2,-1]\), \([-1,1]\), and \([1,2]\). On the first interval, testing \(x=-\frac32\) gives \(f(-\frac32)=\frac94-1=\frac54>0\). On the middle interval, \(f(0)=-1<0\). On the last interval, \(f(\frac32)=\frac54>0\). So the graph is above, below, and then above the axis.

An antiderivative is \(F(x)=\frac{x^3}{3}-x\), since \(F'(x)=x^2-1\). Calculate the area of each piece:

$$ \begin{aligned} A_1 &=\int_{-2}^{-1}(x^2-1)\,dx\\ &=F(-1)-F(-2)\\ &=\left(-\frac13+1\right) -\left(-\frac83+2\right)\\ &=\frac23-\left(-\frac23\right) =\frac43. \end{aligned} $$

The middle integral is negative, so reverse its sign to obtain the geometric area:

$$ \begin{aligned} A_2 &=-\int_{-1}^{1}(x^2-1)\,dx\\ &=-\bigl(F(1)-F(-1)\bigr)\\ &=-\left[\left(\frac13-1\right) -\left(-\frac13+1\right)\right]\\ &=-\left(-\frac23-\frac23\right) =\frac43. \end{aligned} $$

The last piece has the same positive sign as the first:

$$ \begin{aligned} A_3 &=\int_{1}^{2}(x^2-1)\,dx\\ &=F(2)-F(1)\\ &=\left(\frac83-2\right)-\left(\frac13-1\right)\\ &=\frac23-\left(-\frac23\right) =\frac43. \end{aligned} $$

Therefore, \(A=A_1+A_2+A_3=\frac43+\frac43+\frac43=4\) square units. As a check, the signed integral over the whole interval is \(\frac43-\frac43+\frac43=\frac43\), not \(4\), because its negative middle contribution cancels part of the positive area. Differentiating \(F\) gives \(F'(x)=x^2-1\), confirming the antiderivative used.

Zeros Tell You Where to Check the Sign

A continuous function cannot change from positive to negative, or from negative to positive, without taking the value zero in between. Therefore, between consecutive zeros it has a constant sign. To identify that sign, choose one test point in the interval and evaluate the function there. The test point tells you whether to integrate \(f\) or \(-f\) on the whole piece.

Not every zero is a crossing. For instance, a graph may touch the x-axis and turn back. Such a zero still divides the interval for sign-checking, but the sign can be the same on both sides. The next example illustrates why a repeated root must not automatically be treated as a sign change.

Worked Example: A Repeated Root Without a Sign Change

Worked Example: A Repeated Root Without a Sign Change

Find the area between \(f(x)=x(x-2)^2\) and the x-axis on \([0,3]\).

The zeros are \(x=0\) and \(x=2\), with \(x=2\) repeated. For \(0<x<3\), \(x>0\), and \((x-2)^2>0\) except at \(x=2\). Thus \(f(x)>0\) on both \((0,2)\) and \((2,3)\). The curve touches the axis at \(2\) but does not cross it. We may integrate across the whole interval, or split at \(2\); either way, the area is the integral of \(f\).

Expand the polynomial and find an antiderivative:

$$ \begin{aligned} f(x)&=x(x^2-4x+4)=x^3-4x^2+4x,\\ F(x)&=\frac{x^4}{4}-\frac{4x^3}{3}+2x^2. \end{aligned} $$

Since the function is nonnegative, calculate:

$$ \begin{aligned} A &=\int_0^3 \bigl(x^3-4x^2+4x\bigr)\,dx\\ &=F(3)-F(0)\\ &=\left(\frac{81}{4}-\frac{4(27)}{3}+2(9)\right)-0\\ &=\frac{81}{4}-36+18\\ &=\frac{81}{4}-18 =\frac{81}{4}-\frac{72}{4} =\frac94. \end{aligned} $$

The answer is \(\frac94\) square units. Check the antiderivative by differentiating: \(F'(x)=x^3-4x^2+4x=x(x-2)^2\). Also, the sign check confirms that the computed integral is geometric area, rather than a signed value with negative pieces.

Worked Example: Several Sign Intervals

Worked Example: Several Sign Intervals

Find the area between \(f(x)=x^3-3x\) and the x-axis on \([-2,2]\).

Factor the function to locate its zeros:

$$ x^3-3x=x(x^2-3)=x(x-\sqrt{3})(x+\sqrt{3}). $$

The zeros \(-\sqrt{3}\), \(0\), and \(\sqrt{3}\) divide the interval into four pieces. Test \(x=-2\): \(f(-2)=-8+6=-2<0\). Test \(x=-1\): \(f(-1)=-1+3=2>0\). Test \(x=1\): \(f(1)=1-3=-2<0\). Test \(x=2\): \(f(2)=8-6=2>0\). Thus the signs, in order, are negative, positive, negative, positive.

An antiderivative is \(F(x)=\frac{x^4}{4}-\frac{3x^2}{2}\), because \(F'(x)=x^3-3x\). Its values at the endpoints of the pieces are:

$$ F(-2)=-2,\qquad F(-\sqrt{3})=-\frac94,\qquad F(0)=0,\qquad F(\sqrt{3})=-\frac94,\qquad F(2)=-2. $$

For the negative first piece, take the negative of the signed integral:

$$ A_1=-\bigl(F(-\sqrt{3})-F(-2)\bigr) =-\left(-\frac94+2\right) =\frac14. $$

The second piece is positive:

$$ A_2=F(0)-F(-\sqrt{3}) =0-\left(-\frac94\right) =\frac94. $$

The third piece is negative:

$$ A_3=-\bigl(F(\sqrt{3})-F(0)\bigr) =-\left(-\frac94-0\right) =\frac94. $$

The fourth piece is positive:

$$ A_4=F(2)-F(\sqrt{3}) =-2-\left(-\frac94\right) =\frac14. $$

Adding the nonnegative areas gives \(A=\frac14+\frac94+\frac94+\frac14=5\) square units. Differentiating \(F\) confirms \(F'(x)=x^3-3x\); the sign checks show why the first and third signed integrals must be negated.

A Reliable Calculation Process

1
Find the zeros in the interval.
Solve \(f(x)=0\), keeping only roots in \([a,b]\). Include the interval endpoints when they are zeros.
2
Partition the interval.
List the endpoints and zeros in increasing order. These points divide the domain into intervals where the sign can be checked.
3
Determine the sign on each piece.
Test one interior point in each interval, or reason from the factors of \(f\). Do not assume every zero is a crossing.
4
Integrate the height.
Integrate \(f\) on positive pieces and \(-f\) on negative pieces; then add the resulting nonnegative areas.
5
Check the result.
Confirm that every piece contributes a nonnegative amount, the antiderivative differentiates to \(f\), and the final area is not confused with the signed integral.

Common Pitfall: Reporting the Signed Integral as Area

A frequent error is to integrate across the entire interval and report the result without accounting for portions below the x-axis. For \(f(x)=x^2-1\) on \([-2,2]\), the incorrect calculation is:

$$ \int_{-2}^{2}(x^2-1)\,dx =\left[\frac{x^3}{3}-x\right]_{-2}^{2} =\frac23-\left(-\frac23\right) =\frac43. $$

This is the signed integral, not the geometric area. It subtracts the region below the axis. The zeros at \(-1\) and \(1\) reveal the sign change, so the correction is to partition and add the magnitudes: \(\frac43+\frac43+\frac43=4\) square units. Equivalently, integrate \(|x^2-1|\) over the full interval.

Key takeaway: A definite integral can be negative or can include cancellation. Geometric area cannot. For area between a continuous graph and the x-axis, use \(\int_a^b |f(x)|\,dx\), or split at the zeros and add the nonnegative areas piece by piece.

Check Your Understanding

For each question, pay attention to the zeros and the sign of the function between them.

  1. Why can \(\int_a^b f(x)\,dx\) fail to equal the geometric area between the graph and the x-axis?
  2. Find the zeros of \(f(x)=x^2-4\) on \([-3,3]\), and state the sign of \(f\) on each interval they determine.
  3. Does \(f(x)=(x-1)^2\) change sign at \(x=1\)? Explain how you can tell.
  4. For a continuous function with no zeros in \((a,b)\), what sign test can determine whether its area on \([a,b]\) is \(\int_a^b f(x)\,dx\) or \(-\int_a^b f(x)\,dx\)?
  5. What is the geometric meaning of \(|f(x)|\) in the area formula?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon