Signed area and absolute values

A definite integral is not an area but a signed area. We confirm it by integrating y=x3y = x^3 from 1-1 to 11.

11x3dx=[x44]11=1414=0\int_{-1}^{1} x^3 \, dx = \left[ \frac{x^4}{4} \right]_{-1}^{1} = \frac{1}{4} - \frac{1}{4} = 0

The answer is 00. Yet the graph plainly encloses some area. On 0x10 \leq x \leq 1 the curve is above the xx-axis and on 1x0-1 \leq x \leq 0 below it, and the lower part was counted negative and cancelled the other.

When an area is what is wanted

Take the absolute value before integrating.

11x3dx=201x3dx=2×14=12\int_{-1}^{1} |x^3| \, dx = 2\int_0^1 x^3 \, dx = 2 \times \frac{1}{4} = \frac{1}{2}

Since x3|x|^3 is even, computing the right half and doubling is enough.

Intervalx3dx\int x^3 dxArea
1x0-1 \leq x \leq 014-\dfrac{1}{4}14\dfrac{1}{4}
0x10 \leq x \leq 114\dfrac{1}{4}14\dfrac{1}{4}
Total0012\dfrac{1}{2}

Using symmetry

Type of functionIntegral over a symmetric interval
Odd00
Eventwice one side

x3x^3 is odd and x3|x|^3 is even, so the two computations above are the typical cases. Knowing the symmetry shortens the work.

Why the sign is a virtue

Carrying a sign is not a defect. Integrating a velocity adds what was covered going forward and subtracts what was covered coming back, leaving the net displacement. Use the absolute value when an area is wanted, and integrate as it stands when a net change is wanted.

Seen from the antiderivative

The antiderivative x44\dfrac{x^4}{4} of x3x^3 is even, so it takes the same value at x=1x = -1 and x=1x = 1; the difference being 00 is only to be expected. The antiderivative of x3|x|^3, by contrast, is x44\dfrac{x^4}{4} for x0x \geq 0 and x44-\dfrac{x^4}{4} for x<0x < 0: the formula changes with the interval.

To find an area, first look for the xx with f=0f = 0 and split the interval there. For this function the dividing point is x=0x = 0.

The curve symmetric about the origin is y=x3y = x^3, the curve symmetric about the yy-axis is y=x3y = |x|^3, and the large dots are (1,1)(-1, -1), (0,0)(0, 0) and (1,1)(1, 1).