girgit.org

Application of Integrals

When the curve dips below the x-axis

The big ideaWhere a curve goes below the x-axis its integral comes out negative, but area is never negative: split the interval where the curve crosses the axis, take the absolute value of each negative piece, and add.

In simple words

Imagine a road that goes over a bridge and then down into a tunnel. Under the bridge there is a patch of space, and above the tunnel floor there is another. The adding machine counts the space under the bridge as plus and the space in the tunnel as minus, so the two can cancel out to nothing. But if you are painting both patches, you need paint for each one. So count every patch as plus.

Guess first: how much area under a sine wave?

Here is the graph of \( y = \sin x \) from \( x = -\pi \) to \( x = \pi \): one hump below the axis, then one hump above. First work out the integral:

\[ \int_{-\pi}^{\pi} \sin x\,dx = \left[-\cos x\right]_{-\pi}^{\pi} = -\cos\pi + \cos(-\pi) = 1 - 1 = 0. \]

Guess: so is the area between the curve and the x-axis zero?

See what happens

No: the area is 4. Each hump has area 2:

\[ \int_{-\pi}^{0} \sin x\,dx = \left[-\cos x\right]_{-\pi}^{0} = -1 - 1 = -2, \qquad \int_{0}^{\pi} \sin x\,dx = \left[-\cos x\right]_{0}^{\pi} = 1 + 1 = 2. \]

The integral adds −2 and +2 and gets 0. The area adds |−2| and 2 and gets 4. Two real patches of plane cannot have zero total area; the integral just counted the lower one as a debt.

Try it: drag the limits across the axis crossings and compare the integral with the area.

A curve wholly below the axis

If \( f(x) < 0 \) all the way from x = a to x = b, every strip has a negative "height" y, so every \( y\,dx \) is negative and \( \int_a^b f(x)\,dx \) comes out negative. Only the size of the area matters, so take its absolute value (its size, with the minus sign thrown away):

\[ A = \left| \int_a^b f(x)\,dx \right| \]

For example, \( y = x^2 - 4 \) lies below the x-axis between x = 0 and x = 2. \( \int_0^2 (x^2 - 4)\,dx = \frac{8}{3} - 8 = -\frac{16}{3} \), so the area is \( \frac{16}{3} \) square units.

Part above, part below

When the curve crosses the axis, the negative and positive parts must be handled separately. Suppose between a and b the curve is below the axis up to x = c and above it after. Call the two integrals \( A_1 \) (from a to c, negative) and \( A_2 \) (from c to b, positive). Then

\[ A = |A_1| + A_2. \]

The steps are:

  1. Find where the curve meets the x-axis between a and b: solve f(x) = 0.
  2. Split the interval at those points.
  3. Integrate over each piece separately.
  4. Make every piece positive and add.

All in one line: area \( = \int_a^b |f(x)|\,dx \), which you work out by splitting where f changes sign.

Worked example: a line that crosses

Find the area between \( y = 2x - 2 \), the x-axis and the ordinates x = 0 and x = 3.

  1. The line meets the x-axis where 2x − 2 = 0, at x = 1. It is below the axis for 0 ≤ x < 1 and above for 1 < x ≤ 3.
  2. \( A_1 = \int_0^1 (2x - 2)\,dx = \left[x^2 - 2x\right]_0^1 = -1 \).
  3. \( A_2 = \int_1^3 (2x - 2)\,dx = \left[x^2 - 2x\right]_1^3 = 3 - (-1) = 4 \).
  4. Area \( = |-1| + 4 = 5 \) square units.

Had you integrated straight from 0 to 3 you would get 3, which is wrong. Check with geometry: two triangles, \( \frac{1}{2}(1)(2) = 1 \) below and \( \frac{1}{2}(2)(4) = 4 \) above.

Worked example: a cosine curve

Find the area between \( y = \cos x \) and the x-axis from x = 0 to x = π.

cos x is positive up to \( \frac{\pi}{2} \) and negative after. \( \int_0^{\pi/2} \cos x\,dx = \left[\sin x\right]_0^{\pi/2} = 1 \) and \( \int_{\pi/2}^{\pi} \cos x\,dx = 0 - 1 = -1 \). Area \( = 1 + |-1| = 2 \) square units, though \( \int_0^\pi \cos x\,dx = 0 \).

Don't mix these up

  • \( \left|\int_a^b f(x)\,dx\right| \) is not the area when f changes sign. For sin x on [−π, π] it gives 0; the area is \( \int_{-\pi}^{\pi} |\sin x|\,dx = 4 \).
  • Always find where the curve crosses the axis before you integrate. A quick sketch shows it at once.
  • An integral can be negative or zero. An area is always positive.

Try it. Find the area between \( y = x^3 - x \) and the x-axis from x = −1 to x = 1.

Answer
\( x^3 - x = x(x - 1)(x + 1) \) is zero at −1, 0, 1: above the axis on (−1, 0), below on (0, 1). \( \int_{-1}^{0} (x^3 - x)\,dx = \frac{1}{4} \) and \( \int_0^1 (x^3 - x)\,dx = -\frac{1}{4} \). Area \( = \frac{1}{4} + \frac{1}{4} = \frac{1}{2} \) square unit; the plain integral is 0.

Words to know

Absolute value
The size of a number without its sign: |−3| = 3.
Signed area
What the integral measures: parts above the x-axis count plus, parts below count minus.
Root (zero) of f
A value of x where f(x) = 0, where the curve meets the x-axis.
Split the interval
Break [a, b] at the roots so each piece is all above or all below the axis.

What is the area between \( y = \sin x \) and the x-axis from x = 0 to x = 2π?

  1. 0
  2. 2
  3. 4

\( \int_0^2 (x^2 - 1)\,dx = \frac{2}{3} \). What is the area between \( y = x^2 - 1 \) and the x-axis from 0 to 2?

  1. \( \frac{2}{3} \)
  2. 2
  3. \( \frac{4}{3} \)

A curve lies wholly below the x-axis from x = 1 to x = 4, and \( \int_1^4 f(x)\,dx = -7 \). The area between it and the axis is

  1. −7
  2. 7
  3. It cannot be found without splitting