Integration

Differentiation run backwards.

Running the derivative backwards

Differentiating x³ gives 3x². Integration asks the reverse question: which function has the derivative 3x²? One answer is x³. A function whose derivative is f(x) is called an integral, or antiderivative, of f(x).

It is written with the integral sign: ∫ 3x² dx = x³ + c. The dx says that x is the variable, and the + c is explained further down. Every integral can be checked the same way: differentiate the answer and see whether the original comes back. Here the derivative of x³ + c is 3x², so it does.

x3
the power comes down, then drops by one

Differentiating x³: the power 3 comes down in front, then the power drops to 2, giving 3x². Integration undoes these two moves.

Add one, then divide

Differentiating does two things in order: multiply by the power, then take one off the power. To undo them, undo the second move first. Add one to the power, then divide by the new power. In symbols, ∫ xⁿ dx = xⁿ⁺¹/(n + 1) + c.

For 3x², the power 2 goes up to 3, and dividing by 3 gives 3x³/3 = x³. For x⁴, the power goes up to 5, and dividing by 5 gives x⁵/5 + c. Check by differentiating: x⁵/5 gives 5x⁴/5 = x⁴.

Check x⁵/5 with a chord as well. At x = 1 its gradient should be 1⁴ = 1. From x = 1 to x = 1.001 the function rises from 0.2 to 1.001⁵ / 5 = 0.2010020…, so the chord gradient is about 0.0010020 ÷ 0.001 = 1.002.

x54
put one back on the power, then divide by it

Integrating x⁴: the power goes up from 4 to 5, then the whole term is divided by the new power 5, giving x⁵/5 + c.

Numbers in front, constants and sums

A number in front stays in front, as it does when differentiating. So ∫ 6x² dx = 6 × x³/3 + c = 2x³ + c. Check: 2x³ differentiates to 6x².

A constant such as 6 can be written 6x⁰, because x⁰ = 1. So it integrates to 6 × x¹/1 = 6x, and the derivative of 6x is 6.

A sum is integrated one term at a time. For 4x + 6, the 4x gives 4 × x²/2 = 2x², and the 6 gives 6x, so ∫ (4x + 6) dx = 2x² + 6x + c. Differentiating 2x² + 6x + c gives 4x + 6 back.

The rule cannot work for x⁻¹. Adding one to the power gives x⁰, and the new power is 0, which cannot be divided by. The integral of 1/x is a different function, the natural logarithm, met in a later lesson.

The constant of integration

The functions x³, x³ + 5 and x³ − 2 all differentiate to 3x², because a constant differentiates to 0. So when 3x² is integrated, there is no way to tell which constant was there. The answer is written x³ + c, where c stands for any constant.

On a graph, adding c moves the whole curve up or down by c, and moving a curve straight up does not change how steep it is at any x. Take y = x² and y = x² + 3, both antiderivatives of 2x. At x = 1 the first has height 1 and the second has height 4, but both have gradient 2. Their tangents there, y = 2x − 1 and y = 2x + 2, are parallel.

xy

The curves y = x² and y = x² + 3, one 3 units above the other. At x = 1 their tangents, y = 2x − 1 through (1, 1) and y = 2x + 2 through (1, 4), are parallel, with gradient 2.

xyC = 2F′(1) = 2x = 2−2−112−2246

the tangent at x = 1 has gradient 2x = 2 for every C: shifting F up or down changes F, never F′, so ∫ 2x dx is the whole family x² + C

Slide the curve up and down and watch the tangent's gradient

The family y = x² + C, with the curve for C = 2 picked out. Drag C to move the curve up or down, and drag x along it: the gradient at x stays 2x, whatever C is.

One point fixes c

If one point on the curve is known, c can be found. Suppose dy/dx = 2x and the curve passes through (1, 3). Integrating gives y = x² + c. Put in x = 1 and y = 3: 3 = 1 + c, so c = 2 and the curve is y = x² + 2. Check: its derivative is 2x, and at x = 1 its height is 3.

The usual mistakes

Differentiating instead of integrating. The integral of x⁴ is not 4x³: integration makes the power go up, to x⁵/5.

Raising the power but not dividing. x⁵ is not the integral of x⁴, because its derivative is 5x⁴, five times too big. Divide by the new power: x⁵/5.

Dividing by the old power. x⁵/4 differentiates to 5x⁴/4, not x⁴. The divisor is the new power, 5.

Leaving out the + c. Without it, the answer names one curve of the family and leaves out all the others.

Water into a tank

In the application below, water flows into a tank at a rate of 4x + 6 liters per minute. Integrating the rate gives the volume, and the water already in the tank fixes the constant.

Worked example: Water Running into a Tank at a Rising Rate: The Volume in the Tank from the Rate

Question A tank holds 50 liters of water when a valve is opened. Water then flows in at a rate of dVdx = 4x + 6 liters per minute, where x is the time in minutes since the valve was opened. (a) Find the volume V in the tank after x minutes, and the volume after 5 minutes. (b) How long after the valve is opened does the tank hold 310 liters?

  1. 1.Integrate the rate: V = ∫ (4x + 6) dx = 2x2 + 6x + c. Check by differentiating: the derivative of 2x2 + 6x + c is 4x + 6.

    010203040500246810minutes since the valve opened, xrate (liters a minute)rate = 4x + 6V = 2x2+ 6x + ccheck: the derivative is 4x + 6
    010203040500246810minutes since the valve opened, xrate (liters a minute)rate = 4x + 6V = 2x2+ 6x + ccheck: the derivative is 4x + 6
    Integrate the rate: V = ∫ (4x + 6) dx = 2x2 + 6x + c.
  2. 2.At x = 0 the tank holds 50 liters, so 0 + 0 + c = 50 and c = 50. The volume is V = 2x2 + 6x + 50.

    010203040500246810minutes since the valve opened, xrate (liters a minute)rate = 4x + 6x = 0: V = 50, so c = 50V = 2x2+ 6x + 50
    010203040500246810minutes since the valve opened, xrate (liters a minute)rate = 4x + 6x = 0: V = 50, so c = 50V = 2x2+ 6x + 50
    At x = 0 the tank holds 50 liters, so c = 50 and V = 2x2 + 6x + 50.
  3. 3.(a) After 5 minutes, V = 2 × 25 + 30 + 50 = 130 liters. The 80 liters added is the area under the rate graph from x = 0 to x = 5: ∫05 (4x + 6) dx = 50 + 30 = 80.

    010203040500246810minutes since the valve opened, xrate (liters a minute)80 Lx = 5: V = 50 + 30 + 50 = 130 litersadded: the area from 0 to 5, 80 liters
    010203040500246810minutes since the valve opened, xrate (liters a minute)80 Lx = 5: V = 50 + 30 + 50 = 130 litersadded: the area from 0 to 5, 80 liters
    (a) After 5 minutes V = 130 liters. The 80 liters added is the shaded area, ∫05 (4x + 6) dx = 80.
  4. 4.For 310 liters, 2x2 + 6x + 50 = 310, so 2x2 + 6x − 260 = 0. Divide both sides by 2: x2 + 3x − 130 = 0, and so (x − 10)(x + 13) = 0.

    010203040500246810minutes since the valve opened, xrate (liters a minute)80 L2x2+ 6x + 50 = 310x2+ 3x − 130 = 0, so (x − 10)(x + 13) = 0
    010203040500246810minutes since the valve opened, xrate (liters a minute)80 L2x2+ 6x + 50 = 310x2+ 3x − 130 = 0, so (x − 10)(x + 13) = 0
    For 310 liters, 2x2 + 6x + 50 = 310, which simplifies to x2 + 3x − 130 = 0, so (x − 10)(x + 13) = 0.
  5. 5.(b) x = 10 or x = −13. A time after the valve is opened cannot be negative, so reject x = −13: the tank holds 310 liters after 10 minutes. Check: 2 × 100 + 60 + 50 = 310.

    010203040500246810minutes since the valve opened, xrate (liters a minute)80 L180 Lx = 10: a time cannot be −13check: 50 + 80 + 180 = 310 liters
    010203040500246810minutes since the valve opened, xrate (liters a minute)80 L180 Lx = 10: a time cannot be −13check: 50 + 80 + 180 = 310 liters
    (b) The tank holds 310 liters after 10 minutes. The area from 0 to 10 is 80 + 180 = 260 liters, and 50 + 260 = 310.

Answer: (a) V = 2x2 + 6x + 50 liters, and 130 liters after 5 minutes; (b) after 10 minutes

Common mistakes

  • Leaving out the constant and writing V = 2x2 + 6x, which says that the tank starts empty. Integrating always leaves a constant, and here it is the 50 liters already in the tank.
  • Multiplying the starting rate by the time, 6 × 5 = 30 liters added. The rate rises minute by minute, so the water added is the area under the rate graph, 80 liters.

More introduction to calculus problems, worked step by step →

Practice Integration in the app