Two Different Quantities
A definite integral and the geometric area between a graph and the horizontal axis are closely related, but they are not always the same quantity. The distinction matters whenever the graph lies below the axis or crosses it.
For a graph above the axis, a thin vertical rectangle contributes a positive amount to both the integral and the geometric area. Below the axis, the rectangle still has positive geometric area, but its signed contribution to the integral is negative. Thus regions on opposite sides of the axis can cancel in the integral, even though their geometric areas add.
To keep the two quantities distinct, we will call the integral the signed integral and the sum of all the geometric regions the total geometric area.
Definitions
Let \(f\) be continuous on a closed interval \([a,b]\). Continuity ensures that both \(f\) and \(|f|\) are Riemann integrable there. The signed integral is \(\int_a^b f(x)\,dx\). To calculate total geometric area, use the nonnegative function \(|f|\), whose value is the vertical distance from the graph to the horizontal axis.
The absolute value is essential: \(|f(x)|\) is the height of the graph above or below the axis measured as a nonnegative distance. Integrating that height adds the areas rather than allowing them to cancel.
Positive and Negative Contributions
One way to organize the comparison is to separate the function into its positive and negative parts. Define \(f_+(x)\) to be the part of \(f(x)\) that is above zero, and \(f_-(x)\) to be the magnitude of the part that is below zero:
At each point, at most one of these values is nonzero. If \(f(x)>0\), then \(f_+(x)=f(x)\) and \(f_-(x)=0\). If \(f(x)<0\), then \(f_+(x)=0\) and \(f_-(x)=-f(x)\). If \(f(x)=0\), both are zero. Consequently, point by point,
Write \(A_+\) for the area above the axis and \(A_-\) for the area below it, with both areas taken as nonnegative. The integrals of \(f_+\) and \(f_-\) give those respective areas. Linearity of the Riemann integral then gives the relationship between the signed integral and total area.
These equations explain both the cancellation in the signed integral and the addition in the total area. In particular, the signed integral alone does not determine the total area: it records a difference, not a sum.
Why the Absolute-Value Formula Works
The formula for geometric area follows from how Riemann sums represent area. For a partition of \([a,b]\), use nonnegative rectangle heights sampled from \(|f|\). Each rectangle has area equal to its height multiplied by its width, so every rectangle contributes a nonnegative amount. As the partition is refined, these sums approach the Riemann integral of \(|f|\). Their limit is precisely the area between the graph and the axis.
The same idea also explains the signed integral. A rectangle whose sampled function value is negative has a negative signed height, so its signed contribution is negative. Rectangles above and below the axis can therefore offset one another.
Here is the algebraic version of the argument. Since \(f=f_+-f_-\), linearity gives \(\int_a^b f=\int_a^b f_+-\int_a^b f_-\). Since \(|f|=f_++f_-\), it also gives \(\int_a^b |f|=\int_a^b f_++\int_a^b f_-\). The integrals of \(f_+\) and \(f_-\) are nonnegative areas, which proves the stated relationships.
When there are only finitely many zeros inside the interval, it is often easiest to find those zeros and split the calculation there. On each resulting subinterval, the function has a consistent sign (or is identically zero), so its area can be found from its integral with the appropriate sign. Splitting at a point \(c\) uses the finite additivity property \(\int_a^b g=\int_a^c g+\int_c^b g\) for an integrable function \(g\); this follows by joining partitions of the two subintervals.
Worked Examples
Worked Example: A Graph Entirely Below the Axis
Find the signed integral and total geometric area for \(f(x)=-2x\) on \([0,2]\).
For \(0\leq x\leq2\), \(x\geq0\), so \(f(x)=-2x\leq0\). The graph lies on or below the axis. An antiderivative is \(F(x)=-x^2\), since \(F'(x)=-2x\).
The signed integral is
The total area uses the absolute value. Since \(|-2x|=2x\) on this interval,
Check: differentiating \(F(x)=-x^2\) gives \(F'(x)=-2x\), the original function. The negative signed integral agrees with the graph being below the axis, while the total area is positive. In this case, \(I=-4\) and \(A=4\).
Worked Example: A Line Crossing the Axis
For \(f(x)=x-1\) on \([0,3]\), find the signed integral and total geometric area.
First locate the crossing: \(x-1=0\) gives \(x=1\). For \(0\leq x<1\), the function is negative; for \(1<x\leq3\), it is positive. An antiderivative is \(F(x)=\frac{x^2}{2}-x\), since \(F'(x)=x-1\).
The signed integral over the whole interval is
To find geometric area, split at \(x=1\). On \([0,1]\), the function is nonpositive, so its area is the negative of its signed integral:
On \([1,3]\), the function is nonnegative, so its area is its signed integral:
Therefore the total geometric area is \(\frac{1}{2}+2=\frac{5}{2}\). Check: the two signed contributions are \(-\frac{1}{2}\) and \(2\), whose sum is \(\frac{3}{2}\), matching the direct integral. Also, \(F'(x)=x-1\), as required.
Worked Example: A Symmetric Graph with Two Crossings
For \(f(x)=x^2-1\) on \([-2,2]\), find the signed integral and total geometric area.
The zeros satisfy \(x^2-1=0\), so \(x=-1\) and \(x=1\). The function is positive on \([-2,-1]\) and \([1,2]\), and negative on \([-1,1]\). An antiderivative is \(F(x)=\frac{x^3}{3}-x\), since \(F'(x)=x^2-1\).
The signed integral over the full interval is
Now compute the geometric areas. The two outer regions have equal area because \(x^2-1\) is even. On the right outer interval,
Thus the two outer regions have total area \(\frac{4}{3}+\frac{4}{3}=\frac{8}{3}\). The middle region lies below the axis, so its area is
The total geometric area is therefore \(\frac{8}{3}+\frac{4}{3}=4\). Check: the signed contributions are \(\frac{4}{3}\) on each outer interval and \(-\frac{4}{3}\) in the middle. Their sum is \(\frac{4}{3}\), agreeing with the direct integral. Differentiating \(F(x)=\frac{x^3}{3}-x\) gives \(x^2-1\).
A Common Mistake
A frequent error is to treat every definite integral as a geometric area, and therefore assume it must be nonnegative. For example, on \([0,2]\), one might write
because the triangle has area \(4\). This is incorrect: it confuses geometric area with signed integral. The calculation using an antiderivative gives \(-4\), because the graph is below the axis. The corrected distinction is
A related mistake occurs when a graph crosses the axis: adding the absolute values of all region areas produces the total area, not the signed integral. For the line \(x-1\) on \([0,3]\), the signed result is \(-\frac12+2=\frac32\), whereas the total area is \(\frac12+2=\frac52\).
Choosing the Right Calculation
Before integrating, identify which quantity the question asks for. If it asks for the signed integral, preserve the signs of the function. If it asks for total geometric area, use \(|f|\), or split at the zeros and reverse the sign of the integral on intervals where \(f\) is negative.
Solve \(f(x)=0\) within the interval to locate possible sign changes.
Use the function's sign between consecutive zeros to decide which regions lie above or below the axis.
For a signed integral, retain negative contributions. For total area, make every contribution nonnegative.
The total area cannot be negative, and it cannot be smaller than the absolute value of the signed integral.
The last check follows from the definitions: \(A_++A_-\geq |A_+-A_-|\) whenever \(A_+\) and \(A_-\) are nonnegative. Hence \(\int_a^b |f(x)|\,dx\geq\left|\int_a^b f(x)\,dx\right|\). If a proposed area is negative, or is smaller than the magnitude of the signed integral, something has gone wrong.
Check Your Understanding
For each question, distinguish the signed integral from total geometric area and explain how the sign of the function affects the calculation.
- If a continuous function is nonpositive throughout an interval, how are its signed integral and total geometric area related?
- For \(f(x)=x-2\) on \([0,4]\), where should the interval be split when calculating geometric area?
- Why can regions above and below the axis cancel in the signed integral but not in total geometric area?
- State the relationship between total geometric area and the integral of the absolute value of the function.
- If a proposed total area is smaller than the absolute value of the signed integral, what does that tell you about the calculation?