The area under a curve

The geometric area of a region

To get the true geometric area of a surface — the one you would shade in, always positive — you must correct the sign where the function goes below the axis.

The method is systematic:

  1. Find where ff changes sign, by solving f(x)=0f(x) = 0.
  2. Split the interval into pieces on which ff keeps a constant sign.
  3. On each piece, take the absolute value of the integral.
  4. Add up these positive areas.

In other words, the geometric area between the curve and the axis is written:

A=∫ab∣f(x)∣ dx\mathcal{A} = \int_a^b \bigl|f(x)\bigr|\,\mathrm{d}x

In practice, you don't compute an antiderivative of ∣f∣|f|, which would be difficult: you split according to the sign. Take ff on [a,b][a, b], positive on [a,c][a, c] then negative on [c,b][c, b]:

A=∫acf(x) dx−∫cbf(x) dx\mathcal{A} = \int_a^c f(x)\,\mathrm{d}x - \int_c^b f(x)\,\mathrm{d}x

The first piece is already positive. The second, where ff is negative, has a negative integral: by subtracting it, you make it positive. The two contributions then add up like real areas.

Notion Formula Sign
signed area ∫abf\displaystyle\int_a^b f can be negative or zero
geometric area ∫ab∣f∣\displaystyle\int_a^b \lvert f \rvert, by splitting always positive

The reflex to keep: before computing an area, study the sign of ff. If it changes, split. That is what separates a correct area from a wrong result.