Level 5 · Mathematics M5.5

Integration

Undo differentiation to find areas under curves and totals from rates.

Undo differentiation to integrate powers, and see why every answer needs a constant. Use definite integrals to find the exact area under a curve and between a line and a curve, including areas below the axis. Integrate eˣ, 1/x, sin x and cos x, use substitution and integration by parts, and estimate an area with the trapezium rule. Solve differential equations for growth and cooling, and find distance from velocity and a total from a rate of flow.

You are ready for this book if

You can differentiate 3x² − 4x + 1.

Written and drawn by attnom. Free to read, print and share.

M5.5.1 Chapter 1

Undoing differentiation

If you know how steep a curve is at every point, can you draw the curve?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

In the last book you started with a curve and found its gradient. That is differentiation. Now we turn it round. We are given the gradient, and we look for the curve it came from. The process is called integration, and a curve that has a given gradient is an integral of it. The sign ∫ means "integrate", and dx names the variable.

Draw it first

Differentiate, then undo it

  1. Two boxes. The left box is labelled x³ and the right box is labelled 3x². A top arrow from the left box to the right box is labelled differentiate. A lower arrow from the right box back to the left box is labelled integrate.x³3x²differentiate

    1 Differentiating x³ gives 3x².

  2. Two boxes. The left box is labelled x³ and the right box is labelled 3x². A top arrow from the left box to the right box is labelled differentiate. A lower arrow from the right box back to the left box is labelled integrate.x³3x²differentiateintegrate

    2 Integrating 3x² takes us back to x³. We have undone the step.

Look at how xⁿ is differentiated. You multiply by the power n, then lower the power by 1. To undo two steps you undo them in the opposite order. So we raise the power by 1 first, then divide by the new power.

The rule. For any n except −1, ∫ xⁿ dx = xⁿ⁺¹ ÷ (n + 1) + c. Here + c is the constant, which the next paragraphs explain. We cannot use the rule when n = −1, because n + 1 would be 0 and we cannot divide by 0. The integral of x⁻¹, which is 1/x, comes in chapter 4.

A table with the heads integrate and to get. The rows read 1 and x + c, x and x²/2 + c, x² and x³/3 + c, x³ and x⁴/4 + c, x⁻² and −x⁻¹ + c.integrateto get1x + cxx²/2 + cx²x³/3 + cx³x⁴/4 + cx⁻²−x⁻¹ + c
Each row raises the power by 1 and divides by the new power. The last row is x⁻² = 1/x².

Two facts make longer sums short. A number in front stays in front: ∫ 5x² dx = 5 ∫ x² dx. And a sum is integrated one term at a time. These are the same facts you used to differentiate.

Worked example

Find ∫(6x² + 4x − 3) dx.

  1. Integrate one term at a time. Raise each power by 1 and divide by the new power.
  2. 6x² becomes 6x³ ÷ 3. Since 6 ÷ 3 = 2, this is 2x³.
  3. 4x is 4x¹, and it becomes 4x² ÷ 2. Since 4 ÷ 2 = 2, this is 2x².
  4. −3 is −3x⁰, and it becomes −3x¹ ÷ 1, which is −3x.
  5. Add one constant, c, at the end.

Answer: 2x³ + 2x² − 3x + c

Check any answer by differentiating it. Differentiate 2x³ + 2x² − 3x + c. You get 6x² + 4x − 3 again, and the c disappears. If differentiating does not give back what you started with, there is a mistake.

Roots and fractions. Write them as powers first. 1/x² is x⁻². The square root of x is x^(1/2), which means x to the power 1/2. Then use the same rule, and write the answer back the way it was given.

Worked example

Find ∫(4x³ + 1/x²) dx.

  1. Write 1/x² as x⁻². We now have 4x³ + x⁻².
  2. 4x³ becomes 4x⁴ ÷ 4, which is x⁴.
  3. x⁻² becomes x⁻¹ ÷ (−1), because −2 + 1 = −1. This is −x⁻¹.
  4. Write −x⁻¹ as −1/x. The answer is x⁴ − 1/x + c.
  5. Check: differentiating −x⁻¹ gives −(−1)x⁻² = x⁻², which is 1/x². This agrees.

Answer: x⁴ − 1/x + c

Now the constant. Take y = x². Its gradient is 2x. Now take y = x² + 5. Its gradient is also 2x, because a number added on does not change how steep the curve is. The same is true for y = x² − 2 and every other curve of this kind. Moving a curve up or down does not change its gradient.

A graph with the x axis named x from 0 to 3 and a y axis from −4 to 12 named y. Three curves of the same shape stand one above another and are named c = −3, c = 0 and c = 3. A short straight piece touches each curve at x = 1. The three pieces are parallel.0123−404812xyc = −3c = 0c = 3
The curves y = x² + c for c = −3, 0 and 3. All have gradient 2x. At x = 1 each has gradient 2, so the three short pieces are parallel.

So when we integrate, a whole family of curves comes back, one for each possible constant. We write the constant as c and call it the constant of integration. An answer with no + c is not complete, because it names only one curve of the family.

A point fixes the constant. If we are told one point on the curve, we put its x and y into the answer and solve for c. The result is one curve. We write it as a particular function, with no c left.

Worked example

A curve has gradient dy/dx = 2x − 4 and passes through the point (3, 4). Find its equation.

  1. Integrate: y = x² − 4x + c.
  2. The point (3, 4) is on the curve. Put x = 3 and y = 4 into the equation.
  3. This gives 4 = 3² − 4 × 3 + c. Since 3² = 9 and 4 × 3 = 12, we get 4 = 9 − 12 + c.
  4. So 4 = −3 + c, and c = 7.
  5. The curve is y = x² − 4x + 7.

Answer: y = x² − 4x + 7

A graph with the x axis named x from 0 to 5 and a y axis from −4 to 16 named y. Three curves of the same shape stand one above another and are named c = 3, c = 7 and c = 11. A dot on the curve named c = 7 is named P (3, 4), with dashed lines to both axes.012345−40481216xyP (3, 4)c = 3c = 7c = 11
Every curve in the family has gradient 2x − 4. Only the curve with c = 7 passes through the point P.

See it three ways

With things

A staircase has a gradient at each step. Two staircases built at different heights can slope the same. Knowing only the slope, you cannot tell which height it starts at. You need one place where it stands.

As a picture

Two boxes. The left box is labelled x⁴ and the right box is labelled 4x³. A top arrow from the left box to the right box is labelled differentiate. A lower arrow from the right box back to the left box is labelled integrate.x⁴4x³differentiateintegrate

In words

To integrate a power, raise the power by 1, divide by the new power, and add a constant.

In symbols

∫ xⁿ dx = xⁿ⁺¹ ÷ (n + 1) + c, for n not equal to −1.

Try it

Slide a curve and keep its steepness

You need: squared paper, tracing paper, a pencil, a ruler.

  1. Draw y = x² for x from 0 to 2 on squared paper. Plot the points (0, 0), (0.5, 0.25), (1, 1), (1.5, 2.25) and (2, 4).
  2. Trace the curve on the tracing paper.
  3. Slide the tracing paper up by 2 squares, keeping it straight. This is the curve y = x² + 2.
  4. Lay the ruler against both curves at x = 1. Compare how steep each curve is there.

What you will see: The ruler touches both curves at the same slope. Moving a curve straight up does not change its steepness, so a gradient alone cannot tell you the height of the curve.

If you cannot try it, this is what happens.
A graph with the x axis named x from 0 to 2 and a y axis from 0 to 8 named y. Two curves of the same shape are named y = x² and y = x² + 2. A short straight piece touches each curve at x = 1. The two pieces are parallel.01202468xyy = x²y = x² + 2

A wrong idea many people have

The constant c does not matter, so I can leave it out.

Why it feels right: The c vanishes when we differentiate, so it seems like a number that does nothing.

The test that breaks it: Differentiate x² + 5, x² − 3 and x² + 100. Each gives 2x. If we integrate 2x and write only x², we have named one curve out of infinitely many.

What is true: Write + c on every integral that has no limits. It names the whole family. If a point on the curve is given, use it to find c.

A wrong idea many people have

To integrate x⁴ I raise the power to get x⁵ and stop.

Why it feels right: Raising the power is the part you notice. Differentiation used to lower it, so raising it feels like the whole undoing.

The test that breaks it: Differentiate x⁵. You get 5x⁴, not x⁴. The 5 must be divided out.

What is true: Divide by the new power. ∫ x⁴ dx = x⁵ ÷ 5 + c. Check by differentiating: x⁵ ÷ 5 gives 5x⁴ ÷ 5 = x⁴.

Key words

differentiation
finding the gradient function of a curve.
integration
the reverse of differentiation: finding a function from its gradient.
integral
a function that has a given gradient function. We write ∫ f(x) dx.
constant of integration
the number c added to an integral, because many curves have the same gradient.

Back to your guess

The answer is B: A curve with gradient 2x can be y = x², or y = x² + 5, or y = x² − 3, or y = x² plus any number.

Adding a number moves a curve up or down but does not change its steepness. So y = x² + 5 and y = x² − 3 both have gradient 2x, and so does y = x² plus any number. The gradient alone gives a whole family of curves.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. Find ∫ 8x³ dx.

    Tap your answer.
    1. Not this one. You differentiated. Integrating raises the power and divides by the new power. Read this page again. Try another.

    2. Not this one. You raised the power but did not divide by the new power, 4. Read this page again. Try another.

    3. Yes, that is right. 8x³ becomes 8x⁴ ÷ 4 = 2x⁴. Add c. Check: differentiating 2x⁴ gives 8x³.

    4. Not this one. The number is right, but the answer needs + c. Read this page again. Try another.

    See the answer

    2x⁴ + c

    8x³ becomes 8x⁴ ÷ 4 = 2x⁴. Add c. Check: differentiating 2x⁴ gives 8x³.

  2. Find ∫ x⁵ dx.

    Tap your answer.
    1. Not this one. That is the derivative of x⁵. We are going the other way. Read this page again. Try another.

    2. Not this one. You raised the power but did not divide by the new power, 6. Read this page again. Try another.

    3. Not this one. You divided by the old power. Divide by the new power, which is 6. Read this page again. Try another.

    4. Yes, that is right. Raise 5 to 6 and divide by 6: x⁶ ÷ 6 + c. Differentiating x⁶/6 gives 6x⁵/6 = x⁵.

    See the answer

    x⁶/6 + c

    Raise 5 to 6 and divide by 6: x⁶ ÷ 6 + c. Differentiating x⁶/6 gives 6x⁵/6 = x⁵.

  3. Ana integrates 2x and writes x². Kofi writes x² + 7. Who is right?

    Tap your answer.
    1. Yes, that is right. Both x² and x² + 7 have gradient 2x. The complete answer is x² + c, where c can be any number, and it covers both.

    2. Not this one. Kofi differentiated x² + 7 and got 2x. Any constant works. The integral is a whole family. Read this page again. Try another.

    3. Not this one. Ana names a curve with gradient 2x, so she is not wrong, but her answer is only one member of the family. The complete answer has + c. Read this page again. Try another.

    See the answer

    Both are right, and the complete answer has a constant c.

    Both x² and x² + 7 have gradient 2x. The complete answer is x² + c, where c can be any number, and it covers both.

    • If you chose B: Kofi differentiated x² + 7 and got 2x. Any constant works. The integral is a whole family. Read this page again.
    • If you chose C: Ana names a curve with gradient 2x, so she is not wrong, but her answer is only one member of the family. The complete answer has + c. Read this page again.
  4. The integral of xⁿ is xⁿ⁺¹ ÷ (n + 1) + c. Why can we not use it when n = −1?

    Tap your answer.
    1. Not this one. x⁻¹ can be differentiated: it gives −x⁻². The trouble is with going back. Read this page again. Try another.

    2. Yes, that is right. For n = −1 the rule asks us to divide by −1 + 1 = 0, which we cannot do. The integral of x⁻¹ needs another function, which chapter 4 introduces.

    3. Not this one. Every integral needs + c. The problem is the division by 0. Read this page again. Try another.

    See the answer

    It would divide by n + 1, which is 0.

    For n = −1 the rule asks us to divide by −1 + 1 = 0, which we cannot do. The integral of x⁻¹ needs another function, which chapter 4 introduces.

    • If you chose A: x⁻¹ can be differentiated: it gives −x⁻². The trouble is with going back. Read this page again.
    • If you chose C: Every integral needs + c. The problem is the division by 0. Read this page again.
  5. Find ∫ 12x³ dx.

    Tap your answer.
    1. Not this one. You differentiated. Integration raises the power. Read this page again. Try another.

    2. Not this one. You forgot to divide by the new power. Read this page again. Try another.

    3. Not this one. You divided by the old power. Divide by the new power. Read this page again. Try another.

    4. Yes, that is right. 12x³ becomes 12x⁴ ÷ 4 = 3x⁴.

    See the answer

    3x⁴ + c

    12x³ becomes 12x⁴ ÷ 4 = 3x⁴.

  6. Find ∫(9x² − 4x + 5) dx.

    See the answer

    3x³ − 2x² + 5x + c

    9x² becomes 9x³ ÷ 3 = 3x³. −4x becomes −4x² ÷ 2 = −2x². 5 becomes 5x. Add c.

  7. The integral of 9x² − 4x + 5 has the form px³ + qx² + rx + c. Find p, q and r, in that order.

    See the answer

    3, −2, 5

    Integrate each term. 9x² gives 3x³, −4x gives −2x² and 5 gives 5x. So p = 3, q = −2 and r = 5.

  8. A curve has gradient dy/dx = 4x − 1 and passes through (1, 10). Find its equation.

    See the answer

    y = 2x² − x + 9

    Integrate: y = 2x² − x + c. Put x = 1 and y = 10: 10 = 2 − 1 + c, so c = 9. The curve is y = 2x² − x + 9.

  9. A curve has gradient dy/dx = 6x² and passes through (1, 7). What is the value of c in y = 2x³ + c?

    See the answer

    5

    Put x = 1 and y = 7 into y = 2x³ + c. Then 7 = 2 + c, so c = 5.

  10. Find ∫ x(x + 3) dx. Expand the brackets first.

    See the answer

    x³/3 + 3x²/2 + c

    x(x + 3) = x² + 3x. Then x² becomes x³ ÷ 3 and 3x becomes 3x² ÷ 2. Add c.

  11. Find ∫ 6√x dx.

    See the answer

    4x^(3/2) + c

    √x is x^(1/2). Raise the power by 1 to get 3/2, and divide by 3/2. Since 6 ÷ (3/2) = 6 × 2/3 = 4, the answer is 4x^(3/2) + c.

Keep it

Copy this into your exercise book.

∫ xⁿ dx = xⁿ⁺¹ ÷ (n + 1) + c, for n ≠ −1. Raise the power, divide by the new power. Always add c. A point on the curve finds c. Check by differentiating.

Draw: Two boxes x³ and 3x² with a top arrow differentiate and a lower arrow integrate.

M5.5.2 Chapter 2

Definite integrals and area

How can I find the exact area under a curve?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

Here is a curve y = x², and the region under it from x = 0 to x = 3, down to the x axis. We want the exact area of that region. The method comes from integration, and it gives a number, not a family of curves.

Draw it first

The area under y = x² from x = 0 to x = 3

  1. A graph with the x axis named x from 0 to 4 and a y axis from 0 to 16 named y. A curve named y = x² rises from the origin. A dashed upright line named x = 3 stands at x = 3. The region under the curve from x = 0 to x = 3 is hatched and named A.012340481216xyy = x²

    1 Draw the curve y = x².

  2. A graph with the x axis named x from 0 to 4 and a y axis from 0 to 16 named y. A curve named y = x² rises from the origin. A dashed upright line named x = 3 stands at x = 3. The region under the curve from x = 0 to x = 3 is hatched and named A.012340481216xyx = 3y = x²

    2 Mark the right hand limit, x = 3. The left hand limit is x = 0, the y axis.

  3. A graph with the x axis named x from 0 to 4 and a y axis from 0 to 16 named y. A curve named y = x² rises from the origin. A dashed upright line named x = 3 stands at x = 3. The region under the curve from x = 0 to x = 3 is hatched and named A.012340481216xyx = 3y = x²A

    3 Shade the region between the curve, the x axis and the two limits. Its area is A.

Here is the idea. Let A(x) be the area under the curve from the left limit to a general point x. Now move x to the right by a very thin step δx. The area gains a thin strip about y high and δx wide. So the gain is about y × δx. Dividing by δx, the rate at which area grows is the height of the curve: dA/dx = y.

That says A(x) is an integral of y. For y = x², an integral is x³/3. The area from 0 to 0 is zero, so A(x) = x³/3 + c with c = 0. The table shows that the area up to x is x³/3. It grows as the curve gets higher.

A table with the heads x, y = x² and area to x. The rows read 1 and 1 and 1/3, 2 and 4 and 8/3, 3 and 9 and 9, 4 and 16 and 64/3.xy = x²area to x111/3248/339941664/3
The area to x means the area from 0 to x. It is x³/3. At x = 3 it is 9, the area we wanted.

We can now write the result. A definite integral has two numbers called limits, a and b. We write a small a below the integral sign and a small b above it. In ∫₀³ x² dx, a is 0 and b is 3. The definite integral of f from a to b is written ∫ f(x) dx from a to b. To work it out, find an integral F(x) of f(x), then calculate F(b) − F(a). We write the working as [F(x)] from a to b.

The constant c cancels. If we use F(x) + c, then F(b) + c − (F(a) + c) = F(b) − F(a). So we leave c out of a definite integral. When f(x) stays above the x axis from a to b, the result is the area between the curve and the axis. We measure it in square units.

Worked example

Find ∫₀³ x² dx, the area in the picture.

  1. An integral of x² is x³/3.
  2. Put in the upper limit: 3³/3 = 27/3 = 9.
  3. Put in the lower limit: 0³/3 = 0.
  4. Subtract: 9 − 0 = 9. The area is 9 square units.

Answer: 9 square units

A first check that the method works. The line y = 2x + 1 from x = 1 to x = 4 makes a trapezium with a straight top. We can find its area with geometry, and then with integration. The two must agree.

Worked example

Find the area under y = 2x + 1 from x = 1 to x = 4. Check it with geometry.

  1. The area is the integral of 2x + 1 from 1 to 4. An integral of 2x + 1 is x² + x.
  2. Upper limit: 4² + 4 = 16 + 4 = 20.
  3. Lower limit: 1² + 1 = 1 + 1 = 2.
  4. Subtract: 20 − 2 = 18 square units.
  5. Geometry check. At x = 1 the line is 3 high and at x = 4 it is 9 high. The trapezium is 3 wide.
  6. Its area is ½ × (3 + 9) × 3 = 18. The two methods agree.

Answer: 18 square units

A graph with the x axis named x from 0 to 5 and a y axis from 0 to 12 named y. A straight line named y = 2x + 1 rises from 1 on the y axis. The region under the line from x = 1 to x = 4 is hatched and named A.012345024681012xyy = 2x + 1A
The area A is a trapezium: 3 wide, with parallel sides 3 and 9 high.

Worked example

Find the area between y = 6x − x² and the x axis from x = 0 to x = 6.

  1. The curve is above the axis between 0 and 6, so the area is the integral of 6x − x² from 0 to 6.
  2. An integral of 6x − x² is 6x²/2 − x³/3 = 3x² − x³/3.
  3. Upper limit: 3 × 6² − 6³/3 = 3 × 36 − 216/3 = 108 − 72 = 36.
  4. Lower limit: x = 0 gives 0.
  5. The area is 36 − 0 = 36 square units.

Answer: 36 square units

A graph with the x axis named x from 0 to 6 and a y axis from 0 to 12 named y. A curve named y = 6x − x² rises from the origin to a peak at x = 3, then falls back to the x axis at x = 6. The region under the curve is hatched and named A.0123456024681012xyy = 6x − x²A
The curve meets the x axis at x = 0 and x = 6, and the area A lies between them.

Now a region below the axis. If f(x) is negative, F(b) − F(a) comes out negative. The definite integral is a signed area: area above the axis counts as positive, and area below it counts as negative. An area itself is never negative, so for a region below the axis we take the positive value.

Worked example

Find the area between y = x² − 4 and the x axis from x = 0 to x = 2.

  1. At x = 0 the curve is −4, and it meets the axis at x = 2. So the curve is below the axis from 0 to 2.
  2. An integral of x² − 4 is x³/3 − 4x.
  3. Upper limit: 2³/3 − 4 × 2 = 8/3 − 8 = −16/3.
  4. Lower limit: x = 0 gives 0.
  5. The integral is −16/3. The minus sign says the area lies below the axis.
  6. The area is 16/3 square units, which is 5.33 square units to 3 significant figures.

Answer: 16/3 square units

A graph with the x axis named x from 0 to 3 and a y axis from −6 to 6 named y. A curve named y = x² − 4 starts at −4 on the y axis, rises and crosses the x axis at x = 2. The region between the curve and the x axis from x = 0 to x = 2 lies below the axis. It is hatched and named A.0123−6−4−20246xyy = x² − 4A
The region A is below the axis, so the integral is negative. The area is its positive value.

What if the curve crosses the axis between the limits? Then part of the area is above and part is below. The integral over the whole range subtracts one from the other, so it is not the area. Find where the curve crosses the axis, split the range there, and take the positive value of each part.

Worked example

Find the integral and the area between y = x² − 4 and the x axis from x = 0 to x = 3.

  1. The curve crosses the axis where x² − 4 = 0, so at x = 2. Between 0 and 3 it is below the axis from 0 to 2 and above it from 2 to 3.
  2. An integral is x³/3 − 4x. Its value at 3 is 9 − 12 = −3, at 2 it is −16/3, and at 0 it is 0.
  3. The whole integral is −3 − 0 = −3. This is not an area, because the two parts cancel in part.
  4. From 0 to 2: −16/3 − 0 = −16/3. The area P is 16/3.
  5. From 2 to 3: −3 − (−16/3) = −3 + 16/3 = 7/3. The area Q is 7/3.
  6. The total area is 16/3 + 7/3 = 23/3 square units.

Answer: The integral is −3, and the area is 23/3 square units.

A graph with the x axis named x from 0 to 3 and a y axis from −6 to 6 named y. A curve named y = x² − 4 crosses the x axis at x = 2. The region below the axis from x = 0 to x = 2 is hatched and named P. The region above the axis from x = 2 to x = 3 is cross hatched and named Q.0123−6−4−20246xyy = x² − 4PQ
P lies below the axis and Q lies above it. The integral is Q − P in size, which is not the area. The area is P + Q.

Two more rules. If you swap the limits, the sign changes: the integral from b to a is minus the integral from a to b. You can also split a range at any point c. The integral from a to b is the integral from a to c plus the integral from c to b.

See it three ways

With things

A tank fills at a rate that changes with time. The amount of water that has flowed in is the area under the rate graph. Water flowing out counts as a negative amount, like area below the axis.

As a picture

A graph with the x axis named x from 0 to 4 and a y axis from 0 to 16 named y. A curve named y = x² rises from the origin. A dashed upright line named x = 3 stands at x = 3. The region under the curve from x = 0 to x = 3 is hatched and named A.012340481216xyx = 3y = x²A

In words

The definite integral from a to b is the area under the curve, found by putting b and then a into an integral and subtracting.

In symbols

∫ f(x) dx from a to b = F(b) − F(a), where F is an integral of f.

Try it

Count squares, then compare

You need: squared paper, a ruler, a pencil.

  1. Draw y = x² for x from 0 to 3. Use 2 cm for each unit on the x axis and 1 cm for each unit on the y axis.
  2. Draw the line x = 3 and shade the region under the curve.
  3. Count the squares under the curve. Count a square when more than half of it is shaded.
  4. Each 2 cm by 1 cm block is 1 unit of area. Divide your count of small squares by the number of small squares in one block.

What you will see: Your count should be near 9. A count of squares is an estimate. The definite integral gives 9 exactly. The picture shows six straight topped strips with an area of 9.125 square units, a little too big.

If you cannot try it, this is what happens.
A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Six equal strips with straight tops join points on the curve from x = 0 to x = 3. Each strip is hatched.01230246810xyy = x²

A wrong idea many people have

A definite integral is always an area, so it can never be negative.

Why it feels right: The first examples all gave positive areas, and areas are never negative.

The test that breaks it: Work out ∫ (x² − 4) dx from 0 to 2. You get −16/3. The curve there is below the axis, so the integral is negative.

What is true: The definite integral is a signed area. Area above the axis counts as positive and area below counts as negative. For an area, take the positive value, and split the range where the curve crosses the axis.

A wrong idea many people have

To find the area, I put the limits into the original function f, not into its integral.

Why it feels right: The limits are values of x, and f(x) is the thing we have, so it is tempting to use it directly.

The test that breaks it: For ∫ 2x dx from 0 to 3, f(3) − f(0) = 6 − 0 = 6. But the area is a triangle, ½ × 3 × 6 = 9.

What is true: Put the limits into F, the integral: F(x) = x², and F(3) − F(0) = 9.

Key words

definite integral
an integral with limits, which works out to a number.
limits
the two numbers a and b that say where the integral starts and stops.
signed area
area counted as positive above the x axis and negative below it.

Back to your guess

The answer is B: The area under y = x² from x = 0 to x = 3 is exactly 9, a third of that rectangle.

The curve lies well below the top of the rectangle, so the area is less than 27. Integration gives it exactly: the area is [x³/3] from 0 to 3, which is 9 − 0 = 9. That is one third of the rectangle. Integration finds areas exactly.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. Find ∫₀² 3x² dx.

    Tap your answer.
    1. Not this one. You put the limit 2 into the original 3x², not into the integral. Integrate first: the integral of 3x² is x³. Read this page again. Try another.

    2. Not this one. The integral of 3x² is x³. Put 2 into it, not 2 into x². Read this page again. Try another.

    3. Yes, that is right. The integral of 3x² is x³. At 2 it is 8, and at 0 it is 0. So 8 − 0 = 8.

    4. Not this one. You forgot to divide by the new power when integrating. The integral of 3x² is x³. Read this page again. Try another.

    See the answer

    8

    The integral of 3x² is x³. At 2 it is 8, and at 0 it is 0. So 8 − 0 = 8.

    • If you chose A: You put the limit 2 into the original 3x², not into the integral. Integrate first: the integral of 3x² is x³. Read this page again.
    • If you chose B: The integral of 3x² is x³. Put 2 into it, not 2 into x². Read this page again.
    • If you chose D: You forgot to divide by the new power when integrating. The integral of 3x² is x³. Read this page again.
  2. Work out ∫₀¹ (x² − 1) dx. Then say what the integral shows about the region.

    Tap your answer.
    1. Not this one. The integral came out negative. The curve is below the axis between 0 and 1, so the integral is the negative of the area. Read this page again. Try another.

    2. Yes, that is right. The integral is [x³/3 − x] from 0 to 1 = 1/3 − 1 = −2/3. The curve is below the axis from 0 to 1, since x² − 1 is negative there. The area is 2/3.

    3. Not this one. The curve is below the axis, so there is area. The integral is not 0. Read this page again. Try another.

    See the answer

    The integral is negative, so the region is below the axis. The area is 2/3.

    The integral is [x³/3 − x] from 0 to 1 = 1/3 − 1 = −2/3. The curve is below the axis from 0 to 1, since x² − 1 is negative there. The area is 2/3.

    • If you chose A: The integral came out negative. The curve is below the axis between 0 and 1, so the integral is the negative of the area. Read this page again.
    • If you chose C: The curve is below the axis, so there is area. The integral is not 0. Read this page again.
  3. ∫₁³ x dx = 4. What is ∫₃¹ x dx, with the limits swapped?

    Tap your answer.
    1. Not this one. Swapping the limits changes the sign. It does not leave the integral unchanged. Read this page again. Try another.

    2. Not this one. The two integrals are not the same range. Swapping the limits gives the negative. Read this page again. Try another.

    3. Yes, that is right. Swapping the limits gives the negative: F(1) − F(3) = −(F(3) − F(1)). So the value is −4.

    See the answer

    −4

    Swapping the limits gives the negative: F(1) − F(3) = −(F(3) − F(1)). So the value is −4.

    • If you chose A: Swapping the limits changes the sign. It does not leave the integral unchanged. Read this page again.
    • If you chose B: The two integrals are not the same range. Swapping the limits gives the negative. Read this page again.
  4. What is the integral of f(x) from 1 to 3, plus the integral of f(x) from 3 to 5, equal to?

    Tap your answer.
    1. Yes, that is right. The range from 1 to 3 and the range from 3 to 5 join to make the range from 1 to 5. So the two integrals add to the integral from 1 to 5.

    2. Not this one. That integral has the same limits and is 0. The two integrals are added, so the ranges are joined end to end. Read this page again. Try another.

    3. Not this one. Each integral counts once. The ranges 1 to 3 and 3 to 5 join to make 1 to 5. Read this page again. Try another.

    See the answer

    The integral of f(x) from 1 to 5. The range splits at 3.

    The range from 1 to 3 and the range from 3 to 5 join to make the range from 1 to 5. So the two integrals add to the integral from 1 to 5.

    • If you chose B: That integral has the same limits and is 0. The two integrals are added, so the ranges are joined end to end. Read this page again.
    • If you chose C: Each integral counts once. The ranges 1 to 3 and 3 to 5 join to make 1 to 5. Read this page again.
  5. The curve y = x² − 9 crosses the x axis at x = 3. A learner works out the integral of x² − 9 from x = 0 to x = 5 and calls the result the area. What should the learner do instead?

    Tap your answer.
    1. Yes, that is right. From 0 to 3 the curve is below the axis, and from 3 to 5 it is above. The integral subtracts one from the other. Work out each part, take the positive value of the first, and add them.

    2. Not this one. The part below the axis cancels part of the part above, so the whole integral is not the total area, even in size. Read this page again. Try another.

    3. Not this one. Doubling does not fix a part that cancelled. Find each part on its own and add the sizes. Read this page again. Try another.

    See the answer

    Split the range at x = 3, and add the sizes of the two parts.

    From 0 to 3 the curve is below the axis, and from 3 to 5 it is above. The integral subtracts one from the other. Work out each part, take the positive value of the first, and add them.

    • If you chose B: The part below the axis cancels part of the part above, so the whole integral is not the total area, even in size. Read this page again.
    • If you chose C: Doubling does not fix a part that cancelled. Find each part on its own and add the sizes. Read this page again.
  6. Find ∫₁³ (3x² + 2x) dx.

    See the answer

    34

    An integral is x³ + x². At 3 it is 27 + 9 = 36. At 1 it is 1 + 1 = 2. So 36 − 2 = 34.

  7. Find ∫₀² 12x² dx.

    See the answer

    32

    The integral of 12x² is 4x³. At 2 it is 4 × 8 = 32, and at 0 it is 0. In general the integral of kx² from 0 to n is kn³/3.

  8. Find the total area between y = x² − 1 and the x axis from x = 0 to x = 2. The curve crosses the axis at x = 1.

    See the answer

    2 square units

    An integral is x³/3 − x. From 0 to 1: (1/3 − 1) − 0 = −2/3, so that area is 2/3. From 1 to 2: (8/3 − 2) − (1/3 − 1) = 2/3 + 2/3 = 4/3. The total is 2/3 + 4/3 = 2.

  9. Find the area enclosed by y = 4 − x² and the x axis, from x = −2 to x = 2.

    A graph with the x axis named x from −3 to 3 and a y axis from −2 to 6 named y. A curve named y = 4 − x² has its peak at 4 on the y axis and meets the x axis at x = −2 and x = 2. The region between the curve and the x axis is hatched and named A.−3−2−10123−20246xyy = 4 − x²A
    See the answer

    32/3 square units

    An integral of 4 − x² is 4x − x³/3. At 2: 8 − 8/3 = 16/3. At −2: −8 + 8/3 = −16/3. The difference is 16/3 − (−16/3) = 32/3, which is 10.7 to 3 significant figures.

  10. From an earlier chapter

    Find ∫ 10x⁴ dx. This is from chapter 1.

    Tap your answer.
    1. Not this one. You differentiated. Integrating raises the power and divides by the new power. Go to M5.5.1. Try another.

    2. Not this one. You raised the power but did not divide by the new power, 5. Go to M5.5.1. Try another.

    3. Yes, that is right. 10x⁴ becomes 10x⁵ ÷ 5 = 2x⁵. Add c.

    4. Not this one. The number is right, but an integral with no limits needs + c. Go to M5.5.1. Try another.

    See the answer

    2x⁵ + c

    10x⁴ becomes 10x⁵ ÷ 5 = 2x⁵. Add c.

    • If you chose A: You differentiated. Integrating raises the power and divides by the new power. Go to M5.5.1.
    • If you chose B: You raised the power but did not divide by the new power, 5. Go to M5.5.1.
    • If you chose D: The number is right, but an integral with no limits needs + c. Go to M5.5.1.

Keep it

Copy this into your exercise book.

Definite integral: F(b) − F(a). The c cancels. Above the axis it is the area. Below the axis it is negative, so take the positive value. Split where the curve crosses the axis.

Draw: A curve that crosses the x axis, with the part below hatched and the part above cross hatched.

M5.5.3 Chapter 3

Area between curves

How do I find the area of a region that a line and a curve trap between them?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

A line and a curve can cross at two points. Between them they trap a region, the part of the plane that they enclose. We want its area. The picture shows the curve y = x² and the line y = 2x. We will find where they meet, decide which is on top, and then integrate.

Draw it first

The region between y = 2x and y = x²

  1. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 6 named y. A straight line named y = 2x and a curve named y = x² both start at the point named O at the origin. They meet again at the point named Q (2, 4). Between O and Q the line is above the curve. The region between them is hatched and named A.01230246xyy = 2xy = x²

    1 Draw the line and the curve.

  2. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 6 named y. A straight line named y = 2x and a curve named y = x² both start at the point named O at the origin. They meet again at the point named Q (2, 4). Between O and Q the line is above the curve. The region between them is hatched and named A.01230246xyOQ (2, 4)y = 2xy = x²

    2 Mark the two points where they meet. These give the limits, x = 0 and x = 2.

  3. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 6 named y. A straight line named y = 2x and a curve named y = x² both start at the point named O at the origin. They meet again at the point named Q (2, 4). Between O and Q the line is above the curve. The region between them is hatched and named A.01230246xyOQ (2, 4)y = 2xy = x²A

    3 Shade the region between them. Between the meeting points the line is above the curve.

Step one is the limits. At a meeting point the line and the curve have the same x and the same y. So we set the two equations equal and solve for x. For y = 2x and y = x², we solve x² = 2x. This is x² − 2x = 0, so x(x − 2) = 0, and x = 0 or x = 2.

Step two is the height of the region. At each x between the limits the region goes from the lower curve up to the upper curve. Its height there is upper − lower. For us it is 2x − x². The curve with the greater y is the upper curve. To be sure which one is on top, test a value between the limits. At x = 1 the line is 2 and the curve is 1, so the line is above.

Step three: integrate the height. The area is the integral from a to b of (upper − lower) dx. This is the same as the area under the upper curve minus the area under the lower curve. The two pictures show why.

A graph with the x axis named x from 0 to 3 and a y axis from 0 to 6 named y. A straight line named y = 2x rises from the origin. The region under the line from x = 0 to x = 2 is hatched and named B.01230246xyy = 2xB
The area under the line is B = 4. It is a triangle: ½ × 2 × 4 = 4.
A graph with the x axis named x from 0 to 3 and a y axis from 0 to 6 named y. A curve named y = x² rises from the origin. The region under the curve from x = 0 to x = 2 is hatched and named C.01230246xyy = x²C
The area under the curve is C = 8/3, from [x³/3] between 0 and 2. So A = B − C = 4 − 8/3 = 4/3.

Worked example

Find the area between y = 2x and y = x².

  1. Find the limits. Solve x² = 2x, so x² − 2x = 0 and x(x − 2) = 0. The limits are x = 0 and x = 2.
  2. Test x = 1: the line gives 2 and the curve gives 1. The line is the upper curve.
  3. The area is the integral of 2x − x² from 0 to 2.
  4. An integral of 2x − x² is x² − x³/3.
  5. At x = 2: 4 − 8/3 = 4/3. At x = 0 the value is 0.
  6. The area is 4/3 − 0 = 4/3 square units.
  7. Check: B − C = 4 − 8/3 = 4/3. This agrees.

Answer: 4/3 square units

The height upper − lower is a distance, so the method works even when part of the region is below the x axis. A curve below the axis has a negative height, and subtracting a negative gives a longer distance. You only need to know which curve is on top.

Worked example

Find the area enclosed by the line y = x + 2 and the curve y = x².

  1. Find the limits. Solve x² = x + 2, so x² − x − 2 = 0.
  2. Factorise: (x − 2)(x + 1) = 0. The limits are x = −1 and x = 2.
  3. Test x = 0: the line gives 2 and the curve gives 0. The line is the upper curve.
  4. The area is the integral of (x + 2) − x² from −1 to 2.
  5. An integral of x + 2 − x² is x²/2 + 2x − x³/3.
  6. At x = 2: 2 + 4 − 8/3 = 10/3. At x = −1: 1/2 − 2 + 1/3 = −7/6.
  7. Subtract: 10/3 − (−7/6) = 20/6 + 7/6 = 27/6 = 9/2.
  8. The area is 9/2 square units, which is 4.5.

Answer: 9/2 square units

A graph with the x axis named x from −2 to 3 and a y axis from −1 to 6 named y. A straight line named y = x + 2 and a curve named y = x² meet at x = −1, at a height of 1, and at x = 2, at a height of 4. Dashed lines from the two meeting points run to the axes. Between them the line is above the curve. The region between them is hatched and named A.−2−10123−10123456xyy = x + 2y = x²A
The curve and the line meet at x = −1 and x = 2. The area A lies between them, with the line on top.

Worked example

Find the area enclosed by the curves y = x² and y = 8 − x².

  1. Find the limits. Solve x² = 8 − x², so 2x² = 8 and x² = 4. The limits are x = −2 and x = 2.
  2. Test x = 0: the first curve gives 0 and the second gives 8. So y = 8 − x² is the upper curve.
  3. The height is (8 − x²) − x² = 8 − 2x².
  4. An integral of 8 − 2x² is 8x − 2x³/3.
  5. At x = 2: 16 − 16/3 = 32/3. At x = −2: −16 + 16/3 = −32/3.
  6. Subtract: 32/3 − (−32/3) = 64/3.
  7. The area is 64/3 square units, which is 21.3 to 3 significant figures.

Answer: 64/3 square units

A graph with the x axis named x from −3 to 3 and a y axis from −2 to 10 named y. An upside down curve named y = 8 − x² and an upright curve named y = x² meet at x = −2 and at x = 2, at a height of 4. Dashed lines from the two meeting points run to the axes. The region between them is hatched and named A.−3−2−10123−20246810xyy = 8 − x²y = x²A
The two curves meet at x = −2 and x = 2. The curve y = 8 − x² is above y = x² between them.

Take care when the curves cross more than twice. The upper curve may change between two limits. Then one integral of upper − lower would be wrong, because on the stretch where they swap, the height would come out negative. Find every meeting point, and split the range at each one.

Worked example

Find the total area enclosed by y = x and y = x³.

  1. Find the meeting points. Solve x³ = x, so x³ − x = 0 and x(x − 1)(x + 1) = 0. The meeting points are x = −1, 0 and 1.
  2. There are two regions. Between 0 and 1 test x = 0.5: the line gives 0.5 and the cubic gives 0.125. The line is above.
  3. Between −1 and 0 test x = −0.5: the line gives −0.5 and the cubic gives −0.125. The cubic is above.
  4. The picture is symmetrical about the origin, so the two regions have equal area.
  5. Right region: the integral of x − x³ from 0 to 1 is [x²/2 − x⁴/4] = 1/2 − 1/4 = 1/4.
  6. The total area is 2 × 1/4 = 1/2 square unit.

Answer: 1/2 square unit

A graph with the x axis named x from −1.5 to 1.5 and a y axis from −1.5 to 1.5 named y. A straight line named y = x and a curve named y = x³ cross at the points named (−1, −1), O at the origin and (1, 1). Two regions lie between them. The region from x = −1 to x = 0 is cross hatched and named P. The region from x = 0 to x = 1 is hatched and named Q.−101−101xy(−1, −1)O(1, 1)y = xy = x³PQ
In P the cubic is above the line. In Q the line is above the cubic. So we work out each region separately.

See it three ways

With things

Cut a long strip of paper along the line, and another along the curve, and lay them one over the other. The area between is a sandwich: a top slice minus a bottom slice, at every position.

As a picture

A graph with the x axis named x from 0 to 3 and a y axis from 0 to 6 named y. A straight line named y = 2x and a curve named y = x² both start at the origin and meet again at the point named (2, 4). The region between them is hatched and named A.01230246xy(2, 4)y = 2xy = x²A

In words

Find the meeting points for the limits. Decide which curve is on top. Integrate top minus bottom from the left limit to the right limit.

In symbols

Area = ∫ (upper − lower) dx, between the two limits.

Try it

Count the squares in a region between curves

You need: squared paper, a ruler, a pencil.

  1. Draw axes on squared paper with 2 cm for each unit on both axes. Draw the line y = 2x and the curve y = x² for x from 0 to 2.
  2. Mark the points (0, 0) and (2, 4), where they meet.
  3. Shade the region between them. Count the small squares inside it, counting a square when more than half of it is shaded.
  4. One unit of area is a block 2 cm by 2 cm, which holds 4 small squares of 1 cm. Divide your count of small squares by 4.

What you will see: You should get a number near 4/3, which is 1.33. Squares only estimate. The integral of 2x − x² from 0 to 2 gives 4/3 exactly.

If you cannot try it, this is what happens.
A graph with the x axis named x from 0 to 2 and a y axis from 0 to 4 named y, with grid lines every half unit. A straight line named y = 2x and a curve named y = x² meet at the origin and at the point (2, 4). The region between them is hatched and named A.01201234xyy = 2xy = x²A

A wrong idea many people have

The area between the curves is the integral of the lower curve minus the upper curve.

Why it feels right: We usually write the first curve first, and the order feels unimportant.

The test that breaks it: Work out the integral of x² − 2x from 0 to 2. You get −4/3, a negative number. The area of a region is never negative.

What is true: Take the upper curve minus the lower curve. Test one x value between the limits to see which curve is on top. If you subtract the wrong way you get the negative of the area, and you can fix the sign.

A wrong idea many people have

When the curves cross three times, one integral from the first meeting point to the last gives the area.

Why it feels right: The region is one connected piece of paper, so one integral should cover it.

The test that breaks it: For y = x and y = x³ from −1 to 1, one integral of x − x³ gives 0, because the two parts cancel. The true area is 1/2.

What is true: Split the range at every meeting point. On each part, find the upper curve, work out upper − lower, and add the areas.

Key words

region
the part of the plane that curves and lines enclose.
upper curve
the curve with the greater y value at a given x.
meeting point
a point where two curves have the same x and the same y. We find the x values by setting the equations equal.

Back to your guess

The answer is C: Take the area under the curve away from the area under the line, since the line is above.

The region is what is left when you remove the area under the lower curve from the area under the upper one. We do it in one step: integrate the height of the upper curve minus the height of the lower curve.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. Where do the curve y = x² and the line y = 3x meet? Give the x values.

    Tap your answer.
    1. Not this one. You divided both sides by x, which loses the solution x = 0. Move everything to one side and factorise instead. Read this page again. Try another.

    2. Not this one. x² = 3x is x(x − 3) = 0, not x² = 9. The solutions are 0 and 3. Read this page again. Try another.

    3. Not this one. That is a y value. At x = 3 the line gives y = 9, but the question asks for x. Read this page again. Try another.

    4. Yes, that is right. Set x² = 3x, so x² − 3x = 0 and x(x − 3) = 0. Then x = 0 or x = 3.

    See the answer

    x = 0 and x = 3

    Set x² = 3x, so x² − 3x = 0 and x(x − 3) = 0. Then x = 0 or x = 3.

    • If you chose A: You divided both sides by x, which loses the solution x = 0. Move everything to one side and factorise instead. Read this page again.
    • If you chose B: x² = 3x is x(x − 3) = 0, not x² = 9. The solutions are 0 and 3. Read this page again.
    • If you chose C: That is a y value. At x = 3 the line gives y = 9, but the question asks for x. Read this page again.
  2. The line y = x + 6 is above the curve y = x² between x = −2 and x = 3. Which expression is integrated to find the area between them?

    Tap your answer.
    1. Not this one. That is the curve minus the line, the wrong way round. It gives the negative of the area. Read this page again. Try another.

    2. Not this one. You added. The height of the region is the upper curve minus the lower curve. Read this page again. Try another.

    3. Yes, that is right. The height of the region is upper − lower, which is (x + 6) − x² = x + 6 − x².

    See the answer

    x + 6 − x²

    The height of the region is upper − lower, which is (x + 6) − x² = x + 6 − x².

    • If you chose A: That is the curve minus the line, the wrong way round. It gives the negative of the area. Read this page again.
    • If you chose B: You added. The height of the region is the upper curve minus the lower curve. Read this page again.
  3. Find the area enclosed by y = x and y = x².

    See the answer

    1/6 square unit

    Solve x² = x, so x(x − 1) = 0 and the limits are 0 and 1. At x = 0.5 the line is above. The integral of x − x² is x²/2 − x³/3. At 1 it is 1/2 − 1/3 = 1/6, and at 0 it is 0.

  4. Find the area enclosed by the curve y = x² and the line y = 4x.

    See the answer

    32/3 square units

    The limits are 0 and 4. The integral of 4x − x² is 2x² − x³/3. At 4 it is 32 − 64/3 = 32/3, and at 0 it is 0.

  5. Find the area enclosed by y = x + 6 and y = x².

    See the answer

    125/6 square units

    Solve x² = x + 6, so x² − x − 6 = 0 and (x − 3)(x + 2) = 0. The limits are −2 and 3. The line is above. An integral of x + 6 − x² is x²/2 + 6x − x³/3. At 3 it is 27/2, and at −2 it is −22/3. The difference is 27/2 + 22/3 = 125/6.

  6. A learner finds the area between y = 2x and y = x² from 0 to 2 as the integral of x² − 2x, and gets a negative answer. What does this tell the learner?

    Tap your answer.
    1. Yes, that is right. The integral of x² − 2x from 0 to 2 is negative. The line is above the curve, so upper − lower is 2x − x², and the area is 4/3. An area is positive.

    2. Not this one. The region lies above the axis. The sign is negative only because the subtraction is the wrong way round. Read this page again. Try another.

    3. Not this one. There is a region. The curves meet at x = 0 and x = 2 and enclose it. Read this page again. Try another.

    See the answer

    The integral has the curves the wrong way round, so the area is the positive value.

    The integral of x² − 2x from 0 to 2 is negative. The line is above the curve, so upper − lower is 2x − x², and the area is 4/3. An area is positive.

    • If you chose B: The region lies above the axis. The sign is negative only because the subtraction is the wrong way round. Read this page again.
    • If you chose C: There is a region. The curves meet at x = 0 and x = 2 and enclose it. Read this page again.
  7. Find the area enclosed by y = 18 − x² and y = x². The curves meet at x = -3 and x = 3.

    See the answer

    72 square units

    The height is (18 − x²) − x² = 18 − 2x². An integral is 18x − 2x³/3. At 3 it is 54 − 18 = 36. At −3 it is −54 + 18 = −36. The area is 36 − (−36) = 72.

  8. Between x = 0 and x = 1, which is the upper curve: y = x or y = x²?

    Tap your answer.
    1. Not this one. Squares of numbers between 0 and 1 are smaller. For example 0.5² is 0.25, which is less than 0.5. Read this page again. Try another.

    2. Yes, that is right. Test a value between the limits. At x = 0.5 the line gives 0.5 and the curve gives 0.25. The line is higher, so it is the upper curve on the whole stretch.

    3. Not this one. They are equal only at x = 0 and x = 1. Between those points the values differ. Read this page again. Try another.

    See the answer

    The line y = x, since at x = 0.5 it is 0.5 and the curve is 0.25.

    Test a value between the limits. At x = 0.5 the line gives 0.5 and the curve gives 0.25. The line is higher, so it is the upper curve on the whole stretch.

    • If you chose A: Squares of numbers between 0 and 1 are smaller. For example 0.5² is 0.25, which is less than 0.5. Read this page again.
    • If you chose C: They are equal only at x = 0 and x = 1. Between those points the values differ. Read this page again.
  9. The curves y = x and y = x³ meet at x = −1, 0 and 1. Why does a single integral from −1 to 1 not give the area?

    Tap your answer.
    1. Yes, that is right. For x between −1 and 0, x³ is greater than x, so x − x³ is negative there. Adding that to the positive part from 0 to 1 gives 0. Split the range at 0.

    2. Not this one. An integral can run between any two limits. The problem is the change of which curve is on top. Read this page again. Try another.

    3. Not this one. The line is below the axis for negative x, but the method uses heights between curves and does not care about the axis. The trouble is the swap of upper and lower. Read this page again. Try another.

    See the answer

    Between −1 and 0 the cubic is above the line, so that part would be negative and cancel.

    For x between −1 and 0, x³ is greater than x, so x − x³ is negative there. Adding that to the positive part from 0 to 1 gives 0. Split the range at 0.

    • If you chose B: An integral can run between any two limits. The problem is the change of which curve is on top. Read this page again.
    • If you chose C: The line is below the axis for negative x, but the method uses heights between curves and does not care about the axis. The trouble is the swap of upper and lower. Read this page again.
  10. From an earlier chapter

    The curve y = x² − 4 lies below the x axis from x = 0 to x = 2, and the integral of x² − 4 from 0 to 2 is −16/3. What is the area of the region between the curve and the x axis? This is from chapter 2.

    Tap your answer.
    1. Not this one. An area is never negative. The negative sign says the region is below the axis. Go to M5.5.2. Try another.

    2. Not this one. There is only one part here, below the axis, so nothing cancels. Go to M5.5.2. Try another.

    3. Yes, that is right. The integral is the signed area. For a region below the axis it is negative, and the area is its positive value, 16/3.

    See the answer

    16/3, the positive value.

    The integral is the signed area. For a region below the axis it is negative, and the area is its positive value, 16/3.

    • If you chose A: An area is never negative. The negative sign says the region is below the axis. Go to M5.5.2.
    • If you chose B: There is only one part here, below the axis, so nothing cancels. Go to M5.5.2.

Keep it

Copy this into your exercise book.

Meeting points: set the equations equal and solve. These are the limits. Area = ∫ (upper − lower) dx. Test a value to find the upper curve. Split where curves cross again.

Draw: A line above a curve with the region between them hatched, and the two meeting points marked.

M5.5.4 Chapter 4

More functions to integrate

What is the integral of eˣ, of 1/x, and of sin x and cos x?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

Chapter 1 showed how to integrate powers of x, and it left one gap, 1/x. In the book on differentiation you found the gradients of eˣ, the natural logarithm ln x, sin x and cos x. Every one of those facts, read backwards, is a fact about integration. Here are the four pairs.

A table with the heads function and gradient. The rows read eˣ and eˣ, ln x and 1/x, sin x and cos x, cos x and −sin x.functiongradienteˣeˣln x1/xsin xcos xcos x−sin x
The gradients you already know. Each row, read from right to left, is an integral.

Reading the table from right to left gives the integrals. First, eˣ has gradient eˣ, so ∫ eˣ dx = eˣ + c. Second, ln x has gradient 1/x, so ∫ 1/x dx = ln|x| + c, for x not equal to 0. Third, sin x has gradient cos x, so ∫ cos x dx = sin x + c. Last, cos x has gradient −sin x, so −cos x has gradient sin x. That gives ∫ sin x dx = −cos x + c, with a minus sign.

Two small points. The bars in ln|x| are the absolute value. They make the answer work for negative x as well, where ln x does not exist. And in sin x and cos x the angle x is in radians. The gradient of sin x is cos x only in radians. For a tiny angle, sin x is almost x, so the gradient at 0 is 1, which is cos 0. In degrees the gradient at 0 would be π/180, which would put a factor of π/180 in every gradient and a factor of 180/π in every integral.

A table with the heads integrate and to get. The rows read eˣ and eˣ + c, 1/x and ln|x| + c, cos x and sin x + c, sin x and −cos x + c, e³ˣ and e³ˣ/3 + c, cos 2x and sin 2x/2 + c, sin 2x and −cos 2x/2 + c.integrateto geteˣeˣ + c1/xln|x| + ccos xsin x + csin x−cos x + ce³ˣe³ˣ/3 + ccos 2xsin 2x/2 + csin 2x−cos 2x/2 + c
The four basic integrals, and three with a number before x. The last three come from the next rule.

Worked example

Find ∫(3eˣ + 2/x) dx.

  1. Integrate each term. A number in front stays in front.
  2. 3eˣ becomes 3eˣ, because eˣ integrates to eˣ.
  3. 2/x is 2 × 1/x, and it becomes 2 ln|x|.
  4. Add the constant. The answer is 3eˣ + 2 ln|x| + c.

Answer: 3eˣ + 2 ln|x| + c

Now e³ˣ, and others with a number in front of x. Differentiate e³ˣ with the chain rule: you get 3e³ˣ. That has an extra factor 3. So to get e³ˣ alone, divide by 3. The integral of e³ˣ is e³ˣ/3 + c. We can check by differentiating: 3e³ˣ ÷ 3 = e³ˣ.

The same idea works for every function with a linear inside. If ∫ f(x) dx = F(x) + c, then ∫ f(ax + b) dx = (1/a) F(ax + b) + c. The factor 1/a is there because the chain rule multiplies by a when F(ax + b) is differentiated. It works only when the inside is a straight line ax + b. Chapter 5 deals with other insides.

Worked example

Find ∫ e³ˣ dx.

  1. The inside is 3x, so a = 3.
  2. Integrate eˣ to get eˣ, then replace x by 3x: e³ˣ.
  3. Divide by a = 3. The integral is e³ˣ/3 + c.
  4. Check: differentiating e³ˣ/3 gives 3e³ˣ/3 = e³ˣ.

Answer: e³ˣ/3 + c

Worked example

Find ∫ cos 2x dx.

  1. The inside is 2x, so a = 2.
  2. Integrate cos x to get sin x, then replace x by 2x: sin 2x.
  3. Divide by a = 2. The integral is sin 2x/2 + c.
  4. Check: differentiating sin 2x gives 2 cos 2x. Dividing by 2 gives cos 2x.

Answer: sin 2x/2 + c

These integrals give exact areas. The area under y = 1/x from x = 1 to x = 4 is ln 4 − ln 1, which is ln 4. Here the calculator gives ln 4 = 1.386. And the area under y = e²ˣ comes with a factor 1/2. For trig functions the limits are in radians, so π/2 means 90°.

Worked example

Find the area under y = e²ˣ from x = 0 to x = 1, to 3 significant figures.

  1. The area is the integral of e²ˣ from 0 to 1.
  2. An integral of e²ˣ is e²ˣ/2.
  3. At x = 1: e²/2. At x = 0: e⁰/2 = 1/2.
  4. The area is (e² − 1)/2. With e² = 7.389, this is 6.389 ÷ 2 = 3.19.
  5. So the area is 3.19 square units, to 3 significant figures.

Answer: 3.19 square units

A graph with the x axis named x from 0 to 1 and a y axis from 0 to 8 named y. A curve named y = e²ˣ rises from 1 on the y axis to about 7.4 at x = 1. The region under the curve from x = 0 to x = 1 is hatched and named A.00.5102468xyy = e²ˣA
The area A is (e² − 1)/2, which is 3.19.

Worked example

Find the area under y = 1/x from x = 1 to x = 4, to 3 significant figures.

  1. The area is the integral of 1/x from 1 to 4. An integral is ln|x|.
  2. At x = 4: ln 4. At x = 1: ln 1 = 0.
  3. The area is ln 4 − 0 = ln 4.
  4. The calculator gives ln 4 = 1.386, which is 1.39 to 3 significant figures.

Answer: 1.39 square units

A graph with the x axis named x from 0 to 5 and a y axis from 0 to 2 named y. A curve named y = 1/x falls from the top left, passes through 1 at x = 1 and flattens towards the x axis. The region under the curve from x = 1 to x = 4 is hatched and named A.012345012xyy = 1/xA
The area A is ln 4, which is 1.39. The curve gets lower, but the area keeps growing.

Take care with sine and cosine, because they swing above and below the axis. The integral from 0 to π of cos x is sin π − sin 0 = 0. But the area is not 0. The curve is above the axis from 0 to π/2, and below it from π/2 to π. The two parts are equal in size and cancel in the integral. The area is the sum of their sizes.

Worked example

Find the integral of cos x from 0 to π, and the area between the curve and the x axis over the same range.

  1. An integral of cos x is sin x. At π it is sin π = 0, and at 0 it is 0. So the integral is 0.
  2. The curve crosses the axis at x = π/2. Split the range there.
  3. From 0 to π/2: sin(π/2) − sin 0 = 1 − 0 = 1. This part is above the axis, so its area is 1.
  4. From π/2 to π: sin π − sin(π/2) = 0 − 1 = −1. This part is below the axis, so its area is 1.
  5. The area is 1 + 1 = 2.

Answer: The integral is 0, and the area is 2.

A graph with the x axis named x (radians) from 0 to π, marked at π/2 and π, and a y axis from −1 to 1 named y. A curve named y = cos x falls from 1 at x = 0, crosses the x axis at π/2 and reaches −1 at π. The region above the axis from 0 to π/2 is hatched and named P. The region below the axis from π/2 to π is cross hatched and named Q.0π/2π−101x (radians)yy = cos xPQ
P and Q have equal area, 1 each. The integral from 0 to π is P − Q = 0, but the area is P + Q = 2.

Worked example

Find the area under y = cos 2x from x = 0 to x = π/4.

  1. An integral of cos 2x is sin 2x/2.
  2. At x = π/4: sin(π/2)/2 = 1/2. At x = 0: sin 0 ÷ 2 = 0.
  3. The area is 1/2 − 0 = 1/2 square unit.

Answer: 0.5 square unit

A graph with the x axis named x (radians) from 0 to π/2, marked at π/4 and π/2, and a y axis from −1 to 1 named y. A curve named y = cos 2x falls from 1 at x = 0, crosses the x axis at π/4 and reaches −1 at π/2. The region under the curve from x = 0 to x = π/4 is hatched and named A.0π/4π/2−101x (radians)yy = cos 2xA
The area A is 1/2. The wave repeats every π, so it is half as wide as cos x and crosses the axis at π/4.

See it three ways

With things

You run a stopwatch while a spring bounces up and down. The velocity of the spring follows a wave like cos x. The area under the velocity wave is how far the spring is from where it started. Area above the line counts one way. Area below the line counts the other way, and the two can cancel.

As a picture

A table with the heads integrate and to get. The rows read eˣ and eˣ + c, 1/x and ln|x| + c, cos x and sin x + c, sin x and −cos x + c.integrateto geteˣeˣ + c1/xln|x| + ccos xsin x + csin x−cos x + c

In words

Each result is a gradient fact read backwards. A number before x divides the answer by that number.

In symbols

∫ f(ax + b) dx = (1/a) F(ax + b) + c.

Try it

Count squares under y = eˣ

You need: squared paper, a ruler, a pencil, a calculator.

  1. Use the calculator to find eˣ for x = 0, 0.25, 0.5, 0.75 and 1. You get 1, 1.28, 1.65, 2.12 and 2.72.
  2. On squared paper let 10 small squares be 1 unit on both axes. Plot the five points and join them with a smooth curve.
  3. Shade the region under the curve between x = 0 and x = 1.
  4. Count the small squares, and divide your count by 100.

What you will see: Your answer should be close to 1.72, which is e − 1. The integral of eˣ from 0 to 1 is e¹ − e⁰ = 1.72.

If you cannot try it, this is what happens.
A graph with the x axis named x from 0 to 1 and a y axis from 0 to 3 named y. A curve named y = eˣ rises from 1 on the y axis to about 2.7 at x = 1. The region under the curve from x = 0 to x = 1 is hatched and named A.00.510123xyy = eˣA

A wrong idea many people have

The integral of 1/x is x⁰ ÷ 0, from the power rule, so 1/x cannot be integrated.

Why it feels right: The power rule works for every other power, and 1/x is x⁻¹. So it seems it should work here too.

The test that breaks it: Try the rule for x⁻¹: raise the power by 1 to get x⁰, then divide by the new power, 0. We cannot divide by 0. But the gradient of ln x is 1/x, so 1/x does have an integral.

What is true: The integral of 1/x is ln|x| + c. This is the one power of x that the power rule cannot do.

A wrong idea many people have

The integral of e³ˣ is e³ˣ, the same as for eˣ.

Why it feels right: The function eˣ is its own integral, so any e to a power seems to be its own integral too.

The test that breaks it: Differentiate e³ˣ. The chain rule gives 3e³ˣ, not e³ˣ. So e³ˣ is not an integral of e³ˣ.

What is true: Divide by the number in front of x. The integral of e³ˣ is e³ˣ/3 + c.

Key words

natural logarithm
ln x, the logarithm to base e. Its gradient is 1/x.
absolute value
the size of a number with its sign ignored. |−3| = 3.
radians
the unit for angles in which the gradient of sin x is cos x.

Back to your guess

The answer is B: The integral of 1/x is the natural logarithm of x, ln x.

The power rule fails for 1/x because it would divide by 0. But in the book on differentiation, the gradient of ln x was 1/x. Going backwards, the integral of 1/x is ln x, with absolute value signs so that it also works for negative x. The fraction −1/x² is what you get by differentiating 1/x.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. Find ∫ 4eˣ dx.

    Tap your answer.
    1. Yes, that is right. The integral of eˣ is eˣ. The number 4 stays in front. Add c.

    2. Not this one. You used the power rule on eˣ. The letter e is a number and x is the power, so the power rule does not apply. Read this page again. Try another.

    3. Not this one. You lost the 4. A number in front of an integral stays in front. Read this page again. Try another.

    4. Not this one. Do not divide by 4. The 4 is a multiplier outside, not a number before x. Read this page again. Try another.

    See the answer

    4eˣ + c

    The integral of eˣ is eˣ. The number 4 stays in front. Add c.

    • If you chose B: You used the power rule on eˣ. The letter e is a number and x is the power, so the power rule does not apply. Read this page again.
    • If you chose C: You lost the 4. A number in front of an integral stays in front. Read this page again.
    • If you chose D: Do not divide by 4. The 4 is a multiplier outside, not a number before x. Read this page again.
  2. Which of these is the integral of 1/x, for x above 0?

    Tap your answer.
    1. Yes, that is right. The gradient of ln x is 1/x. So the integral of 1/x is ln x + c. The absolute value bars make it work for negative x as well.

    2. Not this one. That is the gradient of 1/x. We are going the other way. Read this page again. Try another.

    3. Not this one. This divides by 0, so it is not a number. Read this page again. Try another.

    See the answer

    ln x + c

    The gradient of ln x is 1/x. So the integral of 1/x is ln x + c. The absolute value bars make it work for negative x as well.

  3. Which of these is the integral of sin x?

    Tap your answer.
    1. Not this one. The gradient of cos x is −sin x, not sin x. You have lost the minus sign. Read this page again. Try another.

    2. Not this one. The gradient of sin x is cos x, not sin x. Read this page again. Try another.

    3. Not this one. The gradient of −sin x is −cos x, not sin x. Read this page again. Try another.

    4. Yes, that is right. The gradient of cos x is −sin x, so the gradient of −cos x is sin x. The integral of sin x is −cos x + c.

    See the answer

    −cos x + c

    The gradient of cos x is −sin x, so the gradient of −cos x is sin x. The integral of sin x is −cos x + c.

  4. Find ∫ e⁴ˣ dx.

    Tap your answer.
    1. Not this one. Differentiating e⁴ˣ gives 4e⁴ˣ, so this has an extra factor 4. Read this page again. Try another.

    2. Not this one. You multiplied by 4 instead of dividing. Integration divides by the number before x. Read this page again. Try another.

    3. Yes, that is right. Differentiating e⁴ˣ gives 4e⁴ˣ. To remove the factor 4, divide by 4.

    See the answer

    e⁴ˣ/4 + c

    Differentiating e⁴ˣ gives 4e⁴ˣ. To remove the factor 4, divide by 4.

    • If you chose A: Differentiating e⁴ˣ gives 4e⁴ˣ, so this has an extra factor 4. Read this page again.
    • If you chose B: You multiplied by 4 instead of dividing. Integration divides by the number before x. Read this page again.
  5. Find the integral of sin x from x = 0 to x = π, the area under one hump of the sine wave.

    See the answer

    2

    An integral of sin x is −cos x. At π: −cos π = 1. At 0: −cos 0 = −1. The difference is 1 − (−1) = 2.

  6. Find the integral of e^(3x) from 0 to 1, to 3 significant figures.

    See the answer

    6.36

    An integral of e^(3x) is e^(3x)/3. From 0 to 1 this is (e³ − 1)/3 = 6.36. In general the integral of e^(ax) from 0 to b is (e^(ab) − 1) ÷ a.

  7. Find the area under y = 1/x from x = 1 to x = 5, to 3 significant figures.

    See the answer

    1.61

    The integral of 1/x is ln x. The area is ln 5 − ln 1 = ln 5 = 1.609, which is 1.61.

  8. A learner works out the integral of cos x from 0 to π and gets 0. What does this show?

    Tap your answer.
    1. Not this one. The curve has area above and below the axis. They are equal and cancel in the integral. Read this page again. Try another.

    2. Yes, that is right. The integral is the signed area. From 0 to π/2 the curve is above the axis and the signed area is 1. From π/2 to π it is below and the signed area is −1. The total is 0, but the area is 2.

    3. Not this one. An integral can be 0. The signed areas can cancel, as they do here. Read this page again. Try another.

    See the answer

    The part above the axis cancels the part below. The area is found by splitting the range.

    The integral is the signed area. From 0 to π/2 the curve is above the axis and the signed area is 1. From π/2 to π it is below and the signed area is −1. The total is 0, but the area is 2.

    • If you chose A: The curve has area above and below the axis. They are equal and cancel in the integral. Read this page again.
    • If you chose C: An integral can be 0. The signed areas can cancel, as they do here. Read this page again.
  9. Find the area under y = cos 3x from x = 0 to x = π/6. Give your answer as a fraction.

    See the answer

    1/3

    An integral of cos 3x is sin 3x/3. At x = π/6: sin(π/2)/3 = 1/3. At 0 it is 0. The area is 1/3.

  10. From an earlier chapter

    Find ∫₁³ 6x² dx. This is from chapter 2.

    Tap your answer.
    1. Not this one. You put in the upper limit and forgot to subtract the value at the lower limit. Go to M5.5.2. Try another.

    2. Yes, that is right. An integral of 6x² is 2x³. At 3 it is 54, and at 1 it is 2. So 54 − 2 = 52.

    3. Not this one. You put the limits into 6x², not into its integral 2x³. Go to M5.5.2. Try another.

    4. Not this one. You added the two values. The integral is F(b) − F(a), a subtraction. Go to M5.5.2. Try another.

    See the answer

    52

    An integral of 6x² is 2x³. At 3 it is 54, and at 1 it is 2. So 54 − 2 = 52.

    • If you chose A: You put in the upper limit and forgot to subtract the value at the lower limit. Go to M5.5.2.
    • If you chose C: You put the limits into 6x², not into its integral 2x³. Go to M5.5.2.
    • If you chose D: You added the two values. The integral is F(b) − F(a), a subtraction. Go to M5.5.2.
  11. What is ∫ 1/(3x) dx? The fraction 1/(3x) is (1/3) × (1/x).

    Tap your answer.
    1. Not this one. The gradient of ln|3x| is 1/x, not 1/(3x). The 3 cancels when you differentiate. Read this page again. Try another.

    2. Not this one. You multiplied by 3. The factor is 1/3, because 1/(3x) is a 3th of 1/x. Read this page again. Try another.

    3. Yes, that is right. A number in front stays in front. The integral is (1/3) ln|x| + c. Differentiating gives (1/3) × 1/x = 1/(3x).

    See the answer

    ln|x|/3 + c

    A number in front stays in front. The integral is (1/3) ln|x| + c. Differentiating gives (1/3) × 1/x = 1/(3x).

    • If you chose A: The gradient of ln|3x| is 1/x, not 1/(3x). The 3 cancels when you differentiate. Read this page again.
    • If you chose B: You multiplied by 3. The factor is 1/3, because 1/(3x) is a 3th of 1/x. Read this page again.

Keep it

Copy this into your exercise book.

∫eˣ = eˣ + c. ∫1/x = ln|x| + c. ∫cos x = sin x + c. ∫sin x = −cos x + c. For ax inside, divide by a. Angles in radians. Split a range where a wave crosses the axis.

Draw: A cosine wave from 0 to π with the part above the axis hatched and the part below cross hatched.

M5.5.5 Chapter 5

Substitution and integration by parts

How do I integrate a product, or a function with something more than x inside?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

Some integrals do not fit the rules so far. The function x(x² + 1)⁴ is a product, and it has x² + 1 inside a power. The function x eˣ is a product of two different kinds of function. Both can be done by reading a differentiation rule backwards. The chain rule gives substitution. The product rule gives integration by parts.

First, substitution. The chain rule says that the gradient of (x² + 1)⁵ is 5(x² + 1)⁴ × 2x. So the integrand, the function we integrate, x(x² + 1)⁴ is a fifth of a half of that, with a factor 2x that comes from the inside. Substitution makes this tidy. We replace the inside, x² + 1, by a single letter u.

Write u = x² + 1. Then du/dx = 2x, which we write as du = 2x dx. In the integral, the part x dx is half of 2x dx. So x dx = du/2. Everything in x is replaced by something in u, and the new integral is easier.

Worked example

Find ∫ x(x² + 1)⁴ dx.

  1. Let u = x² + 1. Then du/dx = 2x, so du = 2x dx and x dx = du/2.
  2. Replace x² + 1 by u, and x dx by du/2. The integral becomes ∫ u⁴ × du/2.
  3. Take the 1/2 out: (1/2) ∫ u⁴ du = (1/2) × u⁵/5 + c = u⁵/10 + c.
  4. Put back u = x² + 1. The answer is (x² + 1)⁵/10 + c.
  5. Check: differentiating gives 5(x² + 1)⁴ × 2x ÷ 10 = x(x² + 1)⁴. This agrees.

Answer: (x² + 1)⁵/10 + c

When does substitution work? When the integrand has an inside function g(x), and also its derivative g′(x), up to a number. Here g(x) = x² + 1 and g′(x) = 2x, and the integrand has x, which is half of 2x. If the derivative is not there, substitution does not help.

In a definite integral, change the limits too. The limits were values of x. After the substitution they must be values of u. Put each limit into u = g(x). Then you do not have to go back to x at the end.

A table with the heads in x and in u. The rows read x = 0 and u = 1, x = 2 and u = 5, x² + 1 and u, x dx and du/2.in xin ux = 0u = 1x = 2u = 5x² + 1ux dxdu/2
Everything in x on the left has a partner in u on the right. Use u = x² + 1.

Worked example

Find ∫ from 0 to 2 of x(x² + 1)³ dx.

  1. Let u = x² + 1, so x dx = du/2.
  2. The limits change. At x = 0, u = 0² + 1 = 1. At x = 2, u = 2² + 1 = 5.
  3. The integral becomes (1/2) ∫ u³ du, with u from 1 to 5.
  4. An integral of u³ is u⁴/4. So the value is (1/2) × [u⁴/4] from 1 to 5, which is [u⁴/8].
  5. At u = 5: 625/8. At u = 1: 1/8. The difference is 624/8 = 78.
  6. The integral, and the area under the curve, is 78.

Answer: 78

A graph with the x axis named x from 0 to 2 and a y axis from 0 to 250 named y. A curve named y = x(x² + 1)³ rises from the origin, slowly at first, to 250 at x = 2. The region under the curve from x = 0 to x = 2 is hatched and named A.00.511.520100200xyy = x(x² + 1)³A
The area A is 78. The rest of the rectangle, 2 wide and 250 high, is much larger.

Now integration by parts. The product rule says that the gradient of uv is u(dv/dx) + v(du/dx). Integrate both sides: uv = ∫ u (dv/dx) dx + ∫ v (du/dx) dx. Rearranging gives the formula, ∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx. It turns one integral into another, which we hope is easier.

To use it, split the integrand into two parts. Call one u and the other dv/dx. Choose u to be the part that gets simpler when you differentiate it. A power of x is a good u, because differentiating lowers the power. Choose dv/dx to be a part you can integrate. Then work out du/dx and v, and put all four into the formula.

Worked example

Find ∫ x eˣ dx.

  1. Choose u = x, because it becomes 1 when differentiated. Then dv/dx = eˣ.
  2. Differentiate u: du/dx = 1. Integrate dv/dx: v = eˣ. We leave out the constant here.
  3. The formula gives ∫ x eˣ dx = x eˣ − ∫ eˣ × 1 dx.
  4. The new integral is one we know: ∫ eˣ dx = eˣ.
  5. So the answer is x eˣ − eˣ + c, which is (x − 1)eˣ + c.
  6. Check: differentiating (x − 1)eˣ gives eˣ + (x − 1)eˣ = x eˣ. This agrees.

Answer: (x − 1)eˣ + c

A table with the heads u, dv/dx, du/dx and v. The first row reads x, eˣ, 1 and eˣ. The second row reads x, cos x, 1 and sin x.udv/dxdu/dxvxeˣ1eˣxcos x1sin x
Setting out the four parts for x eˣ (first row) and x cos x (second row).

Worked example

Find ∫ x cos x dx.

  1. Choose u = x and dv/dx = cos x. Then du/dx = 1 and v = sin x.
  2. The formula gives ∫ x cos x dx = x sin x − ∫ sin x dx.
  3. The integral of sin x is −cos x. So −∫ sin x dx = +cos x.
  4. The answer is x sin x + cos x + c.
  5. Check: differentiating x sin x gives sin x + x cos x, and differentiating cos x gives −sin x. The sum is x cos x.

Answer: x sin x + cos x + c

Worked example

Find ∫ from 0 to 1 of x eˣ dx.

  1. An integral of x eˣ is (x − 1)eˣ, from the example above.
  2. At x = 1: (1 − 1)e¹ = 0.
  3. At x = 0: (0 − 1)e⁰ = −1.
  4. Subtract: 0 − (−1) = 1.
  5. The area under y = x eˣ from 0 to 1 is exactly 1.

Answer: 1

A graph with the x axis named x from 0 to 1 and a y axis from 0 to 3 named y. A curve named y = x eˣ rises from the origin to about 2.7 at x = 1. The region under the curve is hatched and named A.00.510123xyy = x eˣA
The area A is exactly 1.

How do you choose? Look at the integrand. If it has a function of x inside another function, and the derivative of the inside is also there, use substitution. If it is a product of two parts that do not fit that pattern, such as x with eˣ, use parts. The table gives examples.

A table with the heads integral and method. The rows read x(x² + 1)⁴ and substitution, x eˣ and parts, x e^(x²) and substitution, x cos x and parts.integralmethodx(x² + 1)⁴substitutionx eˣpartsx e^(x²)substitutionx cos xparts
In x e^(x²) the derivative of x² is 2x, so substitution works. In x eˣ the inside is x, and its derivative is 1. The extra factor x is not the derivative of the inside, so nothing cancels. Use parts.

See it three ways

With things

Rebuilding a wall: first you take it down in one order, then you put it back in the reverse order. Differentiating e²ˣ with the chain rule gives a factor 2. Substitution reverses it, and divides by that factor. The product rule and parts are another pair.

As a picture

Two boxes. The left box is labelled e²ˣ and the right box is labelled 2e²ˣ. A top arrow from the left box to the right box is labelled differentiate. A lower arrow from the right box back to the left box is labelled integrate.e²ˣ2e²ˣdifferentiateintegrate

In words

Substitution undoes the chain rule. Parts undoes the product rule.

In symbols

∫ f(g(x)) g′(x) dx = ∫ f(u) du. ∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx.

Try it

Check an answer with a calculator

You need: a calculator.

  1. Let F(x) = (x² + 1)⁵ ÷ 10. Work out F(0.49), F(0.50) and F(0.51).
  2. Subtract F(0.49) from F(0.51), and divide by 0.02. This is the gradient of F at x = 0.5, near enough.
  3. Work out x(x² + 1)⁴ at x = 0.5.
  4. Compare the two numbers.

What you will see: The gradient of F at 0.5 comes to 1.221, and x(x² + 1)⁴ at 0.5 is 1.221. They agree, so F is an integral of x(x² + 1)⁴. A numerical check like this finds a wrong factor, such as a missing 2.

If you cannot try it, this is what happens.
A table with the heads x and F(x). The rows read 0.49 and 0.293281, 0.5 and 0.305176, 0.51 and 0.317706.xF(x)0.490.2932810.50.3051760.510.317706

A wrong idea many people have

To integrate x eˣ, I integrate each factor, to get x²/2 times eˣ.

Why it feels right: A sum is integrated term by term, so a product seems to work factor by factor.

The test that breaks it: Differentiate (x²/2) eˣ. The product rule gives x eˣ + (x²/2) eˣ, not x eˣ.

What is true: There is no rule for the integral of a product of two factors. Use parts, which gives (x − 1)eˣ + c.

A wrong idea many people have

In a definite integral with substitution, I change the integrand to u but keep the limits as x values.

Why it feels right: The limits belong to the question, so it seems they should stay the same.

The test that breaks it: In the example with x from 0 to 2, the limits for u are 1 and 5. Using 0 and 2 for u would give (2⁴ − 0⁴)/8 = 2, not the true 78.

What is true: The limits are values of the variable you are integrating with. After u = x² + 1 they are values of u: put each x limit into the substitution.

Key words

substitution
replacing an inside function by u, so the integral becomes simpler. It undoes the chain rule.
integration by parts
the formula ∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx. It undoes the product rule.

Back to your guess

The answer is B: The integral of x(x² + 1)⁴ is (x² + 1)⁵ ÷ 10, because the bracket has an inside that differentiates to 2x.

Differentiate (x² + 1)⁵ ÷ 10. The chain rule gives 5(x² + 1)⁴ × 2x ÷ 10, which is x(x² + 1)⁴. The first idea is missing the 2x from the inside, so it is out by a factor 2. Multiplying the integrals of two factors never works. This chapter gives two methods that do.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. To integrate x(x² + 1)⁴ by substitution, which substitution do you use?

    Tap your answer.
    1. Not this one. This does not simplify the bracket. The inside function, x² + 1, is what we replace. Read this page again. Try another.

    2. Not this one. Then du would be a complicated expression. Replace the inside, not the whole power. Read this page again. Try another.

    3. Not this one. 2x is the derivative of the inside, not the inside itself. Read this page again. Try another.

    4. Yes, that is right. Let u be the inside of the power, x² + 1. Its derivative is 2x, and x dx is half of 2x dx, so the substitution works.

    See the answer

    u = x² + 1

    Let u be the inside of the power, x² + 1. Its derivative is 2x, and x dx is half of 2x dx, so the substitution works.

    • If you chose A: This does not simplify the bracket. The inside function, x² + 1, is what we replace. Read this page again.
    • If you chose B: Then du would be a complicated expression. Replace the inside, not the whole power. Read this page again.
    • If you chose C: 2x is the derivative of the inside, not the inside itself. Read this page again.
  2. Which method suits ∫ x e^(x²) dx?

    Tap your answer.
    1. Not this one. We cannot write the integral of e^(x²) with the functions we know, so this fails. Substitution does the job. Read this page again. Try another.

    2. Not this one. There is no rule that integrates the factors one by one. Read this page again. Try another.

    3. Yes, that is right. The inside of the exponential is x². Its derivative is 2x, and the integrand has x. So u = x² gives x dx = du/2 and the integral is (1/2) ∫ e to the power u, du.

    See the answer

    Substitution, with u = x².

    The inside of the exponential is x². Its derivative is 2x, and the integrand has x. So u = x² gives x dx = du/2 and the integral is (1/2) ∫ e to the power u, du.

    • If you chose A: We cannot write the integral of e^(x²) with the functions we know, so this fails. Substitution does the job. Read this page again.
    • If you chose B: There is no rule that integrates the factors one by one. Read this page again.
  3. Which choice of u and dv/dx is best for ∫ x cos x dx?

    Tap your answer.
    1. Not this one. Then v = x²/2 and du/dx = −sin x. The new integral, of x² sin x, is harder than the one we started with. Read this page again. Try another.

    2. Yes, that is right. Choose u as the part that becomes simpler when differentiated: x becomes 1. Then dv/dx = cos x has integral sin x, and the new integral is ∫ sin x dx.

    3. Not this one. Then du/dx is a product again, so the new integral is not simpler. Read this page again. Try another.

    See the answer

    u = x and dv/dx = cos x

    Choose u as the part that becomes simpler when differentiated: x becomes 1. Then dv/dx = cos x has integral sin x, and the new integral is ∫ sin x dx.

    • If you chose A: Then v = x²/2 and du/dx = −sin x. The new integral, of x² sin x, is harder than the one we started with. Read this page again.
    • If you chose C: Then du/dx is a product again, so the new integral is not simpler. Read this page again.
  4. Find ∫ from 0 to 1 of 2x(x² + 1)³ dx. Give a fraction.

    See the answer

    15/4

    Let u = x² + 1, so 2x dx = du. The limits become 1 and 2. The integral is ∫ u³ du = [u⁴/4] from 1 to 2 = 16/4 − 1/4 = 15/4.

  5. Find ∫ from 0 to 1 of 2x(x² + 1)² dx. Give a fraction or a whole number.

    See the answer

    7/3

    Let u = x² + 1, so 2x dx = du, and the limits are 1 and b² + 1. The integral is [uⁿ⁺¹/(n + 1)] = ((b² + 1)ⁿ⁺¹ − 1)/(n + 1). For b = 1 and n = 2 this is (8 − 1)/3 = 7/3.

  6. Using parts for ∫ x eˣ dx, we get x eˣ − ∫ (something) dx. What goes in the brackets?

    Tap your answer.
    1. Yes, that is right. With u = x and dv/dx = eˣ we have du/dx = 1 and v = eˣ. The integral to subtract is ∫ v (du/dx) dx = ∫ eˣ dx.

    2. Not this one. That is the original integrand. The formula subtracts the integral of v × du/dx. Read this page again. Try another.

    3. Not this one. That is the integral of x, which is not part of the formula here. With u = x, the integral to subtract is of v × du/dx = eˣ × 1. Read this page again. Try another.

    See the answer

    eˣ

    With u = x and dv/dx = eˣ we have du/dx = 1 and v = eˣ. The integral to subtract is ∫ v (du/dx) dx = ∫ eˣ dx.

    • If you chose B: That is the original integrand. The formula subtracts the integral of v × du/dx. Read this page again.
    • If you chose C: That is the integral of x, which is not part of the formula here. With u = x, the integral to subtract is of v × du/dx = eˣ × 1. Read this page again.
  7. Find ∫ from 0 to 2 of x eˣ dx, to 3 significant figures.

    See the answer

    8.39

    An integral of x eˣ is (x − 1)eˣ. At 2 it is e² = 7.389, and at 0 it is −1. The difference is 7.389 − (−1) = 8.389, which is 8.39.

  8. Find ∫ x sin x dx.

    Tap your answer.
    1. Not this one. Differentiating gives cos x − x sin x − cos x = −x sin x. The whole answer has the wrong sign. Read this page again. Try another.

    2. Not this one. Differentiating gives −cos x + x sin x − cos x = x sin x − 2 cos x. The sin x term should be added, not taken away. Read this page again. Try another.

    3. Yes, that is right. With u = x and dv/dx = sin x we have du/dx = 1 and v = −cos x. The formula gives −x cos x − ∫ (−cos x) dx = −x cos x + sin x. Differentiating gives −cos x + x sin x + cos x = x sin x.

    4. Not this one. Differentiating needs the product rule and gives −x cos x + (x²/2) sin x, which is not x sin x. Read this page again. Try another.

    See the answer

    −x cos x + sin x + c

    With u = x and dv/dx = sin x we have du/dx = 1 and v = −cos x. The formula gives −x cos x − ∫ (−cos x) dx = −x cos x + sin x. Differentiating gives −cos x + x sin x + cos x = x sin x.

    • If you chose A: Differentiating gives cos x − x sin x − cos x = −x sin x. The whole answer has the wrong sign. Read this page again.
    • If you chose B: Differentiating gives −cos x + x sin x − cos x = x sin x − 2 cos x. The sin x term should be added, not taken away. Read this page again.
    • If you chose D: Differentiating needs the product rule and gives −x cos x + (x²/2) sin x, which is not x sin x. Read this page again.
  9. When we substitute u = x² + 1 in an integral from x = 0 to x = 2, what are the limits for u?

    Tap your answer.
    1. Yes, that is right. At x = 0, u = 0² + 1 = 1. At x = 2, u = 2² + 1 = 5.

    2. Not this one. These are the x limits. Put each into u = x² + 1 to get the u limits. Read this page again. Try another.

    3. Not this one. You forgot the +1 at the upper limit. At x = 2, u = 4 + 1 = 5. Read this page again. Try another.

    See the answer

    u = 1 and u = 5

    At x = 0, u = 0² + 1 = 1. At x = 2, u = 2² + 1 = 5.

    • If you chose B: These are the x limits. Put each into u = x² + 1 to get the u limits. Read this page again.
    • If you chose C: You forgot the +1 at the upper limit. At x = 2, u = 4 + 1 = 5. Read this page again.
  10. From an earlier chapter

    Find ∫ cos 5x dx. This is from chapter 4.

    Tap your answer.
    1. Not this one. Differentiating gives 5 cos 5x, so there is an extra factor 5. Divide by 5. Go to M5.5.4. Try another.

    2. Not this one. You multiplied by 5. The integral divides by the number before x. Go to M5.5.4. Try another.

    3. Yes, that is right. Differentiating sin 5x gives 5 cos 5x. To get cos 5x alone, divide by 5.

    See the answer

    sin 5x/5 + c

    Differentiating sin 5x gives 5 cos 5x. To get cos 5x alone, divide by 5.

    • If you chose A: Differentiating gives 5 cos 5x, so there is an extra factor 5. Divide by 5. Go to M5.5.4.
    • If you chose B: You multiplied by 5. The integral divides by the number before x. Go to M5.5.4.

Keep it

Copy this into your exercise book.

Substitution: let u be the inside, du = u′ dx, change the limits. Parts: ∫ u dv = uv − ∫ v du, with u the part that gets simpler. Check by differentiating.

Draw: Two boxes, e²ˣ and 2e²ˣ, with arrows differentiate and integrate.

M5.5.6 Chapter 6

Estimating areas

What can I do when a function is too hard to integrate, or I have only a table of measurements?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

Some functions have no integral that we can write down, and some data come only as a table. We can still estimate the area under the graph. The idea is to cut it into thin strips. If the top of each strip is a straight line, the strip is a trapezium, a shape with one pair of parallel sides. We add up the areas of the trapeziums.

Draw it first

Three strips under y = x²

  1. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3. The curve points at x = 0, 1, 2 and 3 are named y₀, y₁, y₂ and y₃.01230246810xyy = x²

    1 Draw the curve y = x².

  2. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3. The curve points at x = 0, 1, 2 and 3 are named y₀, y₁, y₂ and y₃.01230246810xyy = x²

    2 Cut the area from x = 0 to x = 3 into 3 equal strips. Join the tops of the strips with straight lines.

  3. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3. The curve points at x = 0, 1, 2 and 3 are named y₀, y₁, y₂ and y₃.01230246810xyy₀y₁y₂y₃y = x²

    3 Name the heights of the curve at the strip edges, y₀, y₁, y₂ and y₃. These are the ordinates.

Here are the pieces. The range from a to b is cut into n strips of equal width h, so h = (b − a) ÷ n. The heights at the edges are the ordinates, y₀, y₁, y₂ and so on up to the last one. There are n strips and n + 1 ordinates, one more than strips. In the picture n = 3 and h = 1.

The area of a trapezium is half the sum of the parallel sides, times the distance between them. The first strip has parallel sides y₀ and y₁, and width h. So its area is ½h(y₀ + y₁). The next is ½h(y₁ + y₂). Add them all. Each middle ordinate appears twice, once as the end of one strip and once as the start of the next. The first and last appear once.

The trapezium rule. The integral of y from a to b is about ½h × [first ordinate + last ordinate + 2 × (the sum of all the others)]. In words: add the first and last ordinates, add twice all the others, then multiply by half of h.

Worked example

Use the trapezium rule with 3 strips to estimate the integral of x² from 0 to 3.

  1. The width is h = (3 − 0) ÷ 3 = 1.
  2. The x values are 0, 1, 2 and 3. The ordinates y = x² are 0, 1, 4, 9.
  3. First plus last: 0 + 9 = 9.
  4. The middle ones are 1 and 4. Twice their sum is 2 × 5 = 10.
  5. The estimate is ½ × 1 × (9 + 10) = ½ × 19 = 9.5.
  6. The exact area is 9, from chapter 2. The estimate 9.5 is a little too big.

Answer: 9.5

Now a function we cannot integrate by the methods so far. The integral of the square root of (1 + x³) cannot be written with the functions we know. The trapezium rule needs only values of the function, which a calculator gives. Set out the values in a table first.

A table with the heads x and y = √(1 + x³). The rows read 0 and 1, 0.5 and 1.0607, 1 and 1.4142, 1.5 and 2.0917, 2 and 3.xy = √(1 + x³)010.51.060711.41421.52.091723
Five ordinates for four strips, h = 0.5. Keep at least four decimal places in the table.

Worked example

Use the trapezium rule with 4 strips to estimate the integral of √(1 + x³) from x = 0 to x = 2. Give 3 significant figures.

  1. The width is h = (2 − 0) ÷ 4 = 0.5. The ordinates are in the table.
  2. First plus last: 1 + 3 = 4.
  3. The middle ordinates add to 1.0607 + 1.4142 + 2.0917 = 4.5666. Twice this is 9.1332.
  4. The estimate is ½ × 0.5 × (4 + 9.1332) = 0.25 × 13.1332.
  5. This is 3.28 to 3 significant figures.

Answer: 3.28

The rule also works on measured data. Nothing in the rule needs a formula, only ordinates at equal gaps. Here is an example from a river. The depth of the water is measured every 2 m across it. The area of the cross section is the area under the depth graph.

Worked example

The depth of a river is measured at 2 m gaps across it. The depths in metres, from one bank to the other, are 0, 1.2, 2.1, 1.5 and 0. Estimate the area of the cross section.

  1. There are 5 depths, so there are 4 strips, each h = 2 m wide.
  2. First plus last: 0 + 0 = 0.
  3. The middle depths add to 1.2 + 2.1 + 1.5 = 4.8. Twice this is 9.6.
  4. The area is ½ × 2 × (0 + 9.6) = 9.6 m².

Answer: 9.6 m²

A graph with the x axis named distance (m) from 0 to 8 and a y axis from 0 to 3 named depth (m). A line made of four straight pieces rises from 0 at distance 0 to 1.2 at 2, 2.1 at 4, then falls to 1.5 at 6 and 0 at 8. Four strips under it are hatched.024680123distance (m)depth (m)
Each strip is 2 m wide. The straight tops join the measured depths, so the strips estimate the cross section.

Is the estimate too big or too small? Look at the picture of y = x² above. The curve bends upward. It dips below every straight top, so each strip sticks out above the curve. The strips are too big, and the estimate is too big. A curve like this is convex: its second derivative is positive.

A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Two wide strips with straight tops stand under it, one from x = 0 to x = 1.5 and one from x = 1.5 to x = 3. The straight tops lie above the curve between the ordinates, so the strips are too big. The slivers between each straight top and the curve are cross hatched.01230246810xyy = x²
Convex curve, drawn with only 2 strips so the gaps show. The chords lie above the curve, so the estimate is too big. The cross hatched slivers are the extra area. Here 10.125 is above the exact area 9.

If a curve bends downward, the opposite happens. The chords lie below the curve. Each strip leaves a sliver of area out, so the estimate is too small. This curve is concave: its second derivative is negative. A curve that changes from one to the other needs more care, because some errors cancel.

Worked example

Use the trapezium rule with 3 strips for the integral of 6x − x² from 0 to 6. Say if it is too big or too small. The exact value is 36.

  1. The width is h = 6 ÷ 3 = 2. The x values are 0, 2, 4 and 6.
  2. The ordinates are 0, 8, 8, 0.
  3. First plus last: 0 + 0 = 0. Middle: 8 + 8 = 16, and twice is 32.
  4. The estimate is ½ × 2 × 32 = 32.
  5. The curve y = 6x − x² bends downward, since its second derivative is −2. It is concave, so the estimate 32 is too small. The exact value is 35.99999999999995.

Answer: 32. It is too small.

A graph with the x axis named x from 0 to 6 and a y axis from 0 to 12 named y. A curve named y = 6x − x² rises to a peak of 9 at x = 3 and falls back to the x axis at x = 6. Three strips with straight tops stand under it. The straight tops lie below the curve between the ordinates, so the strips are too small. The thin slivers between each straight top and the curve are cross hatched.0123456024681012xyy = 6x − x²
Concave curve: the chords lie below it, so the estimate is too small. The cross hatched slivers are the missing area. Here 32 is below the exact area 35.99999999999995.

More strips make a better estimate. With more strips, the chords hug the curve more closely and the slivers shrink. For a smooth curve, doubling the number of strips cuts the error to about a quarter. The table shows this for y = x² from 0 to 3, where the exact area is 9.

A table with the heads strips, estimate and error. The rows read 1 and 13.5 and 4.5, 2 and 10.125 and 1.125, 3 and 9.5 and 0.5, 6 and 9.125 and 0.125, 12 and 9.03125 and 0.0313.stripsestimateerror113.54.5210.1251.12539.50.569.1250.125129.031250.0313
Each estimate is above 9, as the convex curve says. The error shrinks as the strips increase.

See it three ways

With things

To find the area of an odd shaped pond on a map, lay a ruler across it every 2 cm. Measure the width at each mark. Treat the shape as a row of slices with straight sides. This is the trapezium rule on a drawing.

As a picture

A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3.01230246810xyy = x²

In words

Add the first and last ordinates, add twice all the others, and multiply by half the strip width.

In symbols

∫ y dx ≈ ½h × [first + last + 2 × (the others)], where h = (b − a) ÷ n.

Try it

Use more and more strips

You need: a calculator, paper, a pencil.

  1. Work out the estimate for the integral of x² from 0 to 3 with 1 strip. The width is 3, and the ordinates are 0 and 9.
  2. Work out the estimate with 2 strips. The width is 1.5, and the ordinates are 0, 2.25 and 9.
  3. Work out the estimate with 3 strips. Compare with the table in the chapter.
  4. Each time, subtract the exact area 9 to find the error.

What you will see: The estimates are 13.5, 10.125, 9.5. The errors shrink as the strips increase, and they are never negative, because the curve is convex.

If you cannot try it, this is what happens.
A table with the heads strips and estimate. The rows read 1 and 13.5, 2 and 10.125, 3 and 9.5.stripsestimate113.5210.12539.5

A wrong idea many people have

The trapezium rule always gives an estimate that is too big.

Why it feels right: The first example, with y = x², came out too big, so it seems that straight tops always stand above the curve.

The test that breaks it: Use 3 strips on y = 6x − x² from 0 to 6. The estimate is 32, which is below the exact 35.99999999999995.

What is true: It depends on the shape. A convex curve gives an estimate that is too big, and a concave curve gives one that is too small. Look at which way the curve bends.

A wrong idea many people have

With 4 strips there are 4 ordinates, and the rule uses all four.

Why it feels right: We count the strips, and it seems natural to count one height for each.

The test that breaks it: Draw 1 strip. It has two sides, so it needs 2 heights. Draw 2 strips side by side. They need 3 heights.

What is true: The number of ordinates is one more than the number of strips. With n strips there are n + 1 ordinates, from y₀ to the last one.

Key words

trapezium
a shape with one pair of parallel sides. Its area is half the sum of the parallel sides, times the distance between them.
ordinates
the heights of the curve at the edges of the strips.
convex
bending upward, with a positive second derivative.
concave
bending downward, with a negative second derivative.

Back to your guess

The answer is A: Cut the area into strips with straight tops, find the area of each strip and add them.

Strips with straight tops are trapeziums, and the area of a trapezium is quick to find. Adding them gives an estimate that gets better with more strips. This is the trapezium rule. It also works on a table of measured values, where there is no function to integrate at all.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. The trapezium rule is used with 5 strips. How many ordinates are there?

    Tap your answer.
    1. Not this one. There is one more ordinate than there are strips. 5 strips have 6 edges. Read this page again. Try another.

    2. Not this one. That would be the number of middle ordinates, which are counted twice. The total is more. Read this page again. Try another.

    3. Not this one. The ordinates are the edges of the strips. 5 strips have 6 edges, not 7. Read this page again. Try another.

    4. Yes, that is right. Each strip has two edges, and neighbouring strips share an edge. So n strips have n + 1 edges and n + 1 ordinates.

    See the answer

    6

    Each strip has two edges, and neighbouring strips share an edge. So n strips have n + 1 edges and n + 1 ordinates.

    • If you chose A: There is one more ordinate than there are strips. 5 strips have 6 edges. Read this page again.
    • If you chose B: That would be the number of middle ordinates, which are counted twice. The total is more. Read this page again.
    • If you chose C: The ordinates are the edges of the strips. 5 strips have 6 edges, not 7. Read this page again.
  2. Find the strip width h for the integral from x = 2 to x = 8 with 3 strips.

    See the answer

    2

    h = (b − a) ÷ n = (8 − 2) ÷ 3 = 2.

  3. Use the trapezium rule with 4 strips to estimate the integral of eˣ from 0 to 1. Give 3 significant figures.

    See the answer

    1.73

    The width is 0.25. The ordinates are 1, 1.284, 1.6487, 2.117, 2.7183. The estimate is ½ × 0.25 × (3.7183 + 2 × 5.0497) = 1.7272, which is 1.73.

  4. For ∫ eˣ dx from 0 to 1, the trapezium estimate with 4 strips is 1.73. The exact value is 1.72. Why is the estimate too big?

    Tap your answer.
    1. Yes, that is right. The second derivative of eˣ is eˣ, which is always positive. So the curve is convex, the chords lie above it, and the estimate is too big.

    2. Not this one. If the curve bent downward, the straight tops would lie below it. The curve eˣ bends upward, since its second derivative eˣ is positive. Read this page again. Try another.

    3. Not this one. More strips make the estimate better, not worse. The error is from the shape of the curve. Read this page again. Try another.

    See the answer

    The curve eˣ bends upward, so the straight tops lie above it.

    The second derivative of eˣ is eˣ, which is always positive. So the curve is convex, the chords lie above it, and the estimate is too big.

    • If you chose B: If the curve bent downward, the straight tops would lie below it. The curve eˣ bends upward, since its second derivative eˣ is positive. Read this page again.
    • If you chose C: More strips make the estimate better, not worse. The error is from the shape of the curve. Read this page again.
  5. Use the trapezium rule with 2 strips to estimate the integral of x² from 0 to 2.

    See the answer

    3

    For b = 2 and 2 strips, h = 1 and the ordinates are 0, 1 and 4. The estimate is ½ × 1 × (0 + 4 + 2 × 1) = 3.

  6. The estimate for the integral of 6x − x² from 0 to 6 with 3 strips is 32, and the exact value is 35.99999999999995. Why is the estimate too small?

    Tap your answer.
    1. Not this one. The curve y = 6x − x² bends downward. Its second derivative is −2. Read this page again. Try another.

    2. Yes, that is right. The second derivative of 6x − x² is −2, so the curve is concave. The chords lie below the curve, so the strips miss a sliver of area.

    3. Not this one. They are zero, so they add nothing, but that is correct. The rule is exact for the straight parts. The error comes from the bend in the curve. Read this page again. Try another.

    See the answer

    The curve bends downward, so the straight tops lie below it.

    The second derivative of 6x − x² is −2, so the curve is concave. The chords lie below the curve, so the strips miss a sliver of area.

    • If you chose A: The curve y = 6x − x² bends downward. Its second derivative is −2. Read this page again.
    • If you chose C: They are zero, so they add nothing, but that is correct. The rule is exact for the straight parts. The error comes from the bend in the curve. Read this page again.
  7. The depths of a river, at 1.5 m gaps across it, are 0, 0.8, 1.6, 1.9, 1.1 and 0 metres. Find the cross section area in m² with the trapezium rule.

    A graph with the x axis named distance (m) from 0 to 7.5 and a y axis from 0 to 3 named depth (m). A line made of five straight pieces rises from 0 at distance 0 to 0.8 at 1.5, 1.6 at 3 and 1.9 at 4.5, then falls to 1.1 at 6 and 0 at 7.5. Five strips under it are hatched.01.534.567.50123distance (m)depth (m)
    See the answer

    8.1

    There are 6 depths and so 5 strips, each h = 1.5 m wide. The area is ½ × 1.5 × (0 + 0 + 2 × (0.8 + 1.6 + 1.9 + 1.1)) = 0.75 × 10.8 = 8.1 m².

  8. A learner doubles the number of strips from 4 to 8 for a smooth curve. What happens to the error?

    Tap your answer.
    1. Not this one. More strips follow the curve more closely, so the error shrinks. Read this page again. Try another.

    2. Not this one. It drops by more than half. For a smooth curve, the error falls to about a quarter when the strips are doubled. Read this page again. Try another.

    3. Yes, that is right. For a smooth curve the error is proportional to h², and doubling the strips halves h. So the error falls to a quarter. In the table for y = x², 1 strip to 2 strips takes the error from 4.5 to 1.125. Then 3 strips to 6 strips takes it from 0.5 to 0.125.

    See the answer

    It drops to about a quarter.

    For a smooth curve the error is proportional to h², and doubling the strips halves h. So the error falls to a quarter. In the table for y = x², 1 strip to 2 strips takes the error from 4.5 to 1.125. Then 3 strips to 6 strips takes it from 0.5 to 0.125.

    • If you chose A: More strips follow the curve more closely, so the error shrinks. Read this page again.
    • If you chose B: It drops by more than half. For a smooth curve, the error falls to about a quarter when the strips are doubled. Read this page again.
  9. From an earlier chapter

    Find the exact value of ∫ 1/x dx from 1 to e. This is from chapter 4.

    Tap your answer.
    1. Not this one. That would be the area for the integral of 1, not of 1/x. The integral of 1/x is ln|x|. Go to M5.5.4. Try another.

    2. Yes, that is right. An integral of 1/x is ln x. At e it is ln e = 1, and at 1 it is ln 1 = 0. So the value is 1 − 0 = 1.

    3. Not this one. You may have put the limit e into 1/x, which gives 1/e. Put e into the integral, ln x, which gives ln e = 1. Go to M5.5.4. Try another.

    See the answer

    1

    An integral of 1/x is ln x. At e it is ln e = 1, and at 1 it is ln 1 = 0. So the value is 1 − 0 = 1.

    • If you chose A: That would be the area for the integral of 1, not of 1/x. The integral of 1/x is ln|x|. Go to M5.5.4.
    • If you chose C: You may have put the limit e into 1/x, which gives 1/e. Put e into the integral, ln x, which gives ln e = 1. Go to M5.5.4.
  10. In the trapezium rule, which ordinates are multiplied by 2?

    Tap your answer.
    1. Not this one. The first and last ordinates are each used once. They are the ends of only one strip. Read this page again. Try another.

    2. Yes, that is right. Each middle ordinate is the end of one strip and the start of the next, so it is used twice. The first and last are used once.

    3. Not this one. Then each strip would count twice over. The first and last are used once. Read this page again. Try another.

    See the answer

    All the ordinates except the first and last.

    Each middle ordinate is the end of one strip and the start of the next, so it is used twice. The first and last are used once.

    • If you chose A: The first and last ordinates are each used once. They are the ends of only one strip. Read this page again.
    • If you chose C: Then each strip would count twice over. The first and last are used once. Read this page again.

Keep it

Copy this into your exercise book.

h = (b − a) ÷ n. Estimate = ½h[first + last + 2(the rest)]. n strips, n + 1 ordinates. Curve bends up: too big. Curve bends down: too small. More strips are better.

Draw: Three trapezium strips under a curve, with the ordinates y₀ to y₃ marked.

M5.5.7 Chapter 7

Differential equations

How do I find a formula when I know only how fast something changes?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

A population of bacteria grows faster when there are more of them. A cup of tea cools faster when it is much hotter than the room. In each case we know a rule about the rate of change, not the formula. A rule like this is a differential equation: an equation with a derivative in it. To solve it is to find the formula that obeys the rule.

Take the simplest rule: the rate of change of y is proportional to y. We write dy/dx = ky, where k is a constant. The picture shows what that means. At each point the gradient is k times the height of the curve, so the curve is steep where it is high, and flat where it is low.

A graph with the x axis named time (hours) from 0 to 5 and a y axis from 0 to 2400 named N. A curve named N rises from 200 at time 0, passes through 800 at time 3 and reaches about 2000 at time 5. Two straight pieces touch the curve at times 1 and 4. The piece at time 4 is much steeper than the piece at time 1.01234504008001 2001 6002 0002 400time (hours)N200800N
The two straight pieces touch the curve at times 1 and 4. At time 4 the curve is four times as high as at time 1, and four times as steep.

To solve dy/dx = ky, use separation of variables. Put everything with y on one side, and everything with x on the other. Here that means (1/y) dy = k dx. Then integrate both sides. Each side now has its own variable, so we can integrate with what we know.

A table with the heads y side and x side. The rows read (1/y) dy and k dx, then ∫ (1/y) dy and ∫ k dx, then ln|y| and kx + c.y sidex side(1/y) dyk dx∫ (1/y) dy∫ k dxln|y|kx + c
Separate, then integrate each side. Only one constant is needed, and we put it on the x side.

Now solve for y. We have ln|y| = kx + c. Take e to the power of each side: |y| = e^(kx + c) = e^c × e^(kx). The number e^c is another constant, so we call it A. The solution is y = A e^(kx). The A stands for the value of y at x = 0, because e⁰ = 1.

There is a different curve for each A. A rule on its own gives a family of solutions. To pick one, we need one known pair of values, such as the starting value of y. This is the initial condition. We put it into the solution and find A.

A graph with the x axis named x from −1 to 1 and a y axis from 0 to 9 named y. Three curves of the same shape rise from left to right. They meet the y axis at heights 1, 2 and 3. A dot on the middle curve is named (0, 2). That curve is drawn solid and the other two are dashed.−1010369xy(0, 2)
The curves y = A eˣ all obey dy/dx = y. The curve through (0, A) has the constant A. The starting point (0, 2) picks the curve with A = 2.

Worked example

Solve dy/dx = 3y, given that y = 5 when x = 0. Then find y when x = 1, to 3 significant figures.

  1. Separate the variables: (1/y) dy = 3 dx.
  2. Integrate both sides: ln|y| = 3x + c.
  3. Take e to the power of each side: y = A e³ˣ.
  4. Use the starting value. When x = 0, y = 5. Then 5 = A e⁰ = A, so A = 5.
  5. The solution is y = 5e³ˣ.
  6. When x = 1, y = 5e³. To 3 significant figures this is 100.

Answer: y = 5e³ˣ, and y = 100 when x = 1.

Separation of variables works for any rule that can be split into a y part and an x part. For dy/dx = 2xy, we separate to get (1/y) dy = 2x dx. Integrating gives ln|y| = x² + c, so y = A e^(x²).

Worked example

Solve dy/dx = 2xy, given that y = 1 when x = 0. Find y when x = 2, to 3 significant figures.

  1. Separate: (1/y) dy = 2x dx.
  2. Integrate: ln|y| = x² + c.
  3. So y = A e^(x²).
  4. When x = 0, y = 1. Then 1 = A e⁰ = A, so A = 1.
  5. The solution is y = e^(x²).
  6. When x = 2: y = e⁴ = 54.6, to 3 significant figures.

Answer: 54.6

Now to a model. A population grows in proportion to its size, so dN/dt = kN, and N = N₀ e^(kt), where N₀ is the starting size. The number k is the growth rate. We find k from one more reading.

Worked example

A culture of bacteria has 200 cells at time 0, and 800 cells after 3 hours. Assume the growth rate is proportional to the number of cells. Find the number of cells after 5 hours, to 3 significant figures.

  1. The model is dN/dt = kN, so N = 200e^(kt).
  2. At t = 3, N = 800. So 800 = 200e^(3k), and e^(3k) = 4.
  3. Take natural logarithms: 3k = ln 4, so k = ln 4 ÷ 3 = 0.4621 per hour.
  4. At t = 5: N = 200e^(5k) = 200 × e^(2.3105) = 2015.9.
  5. After 5 hours there are about 2020 cells, to 3 significant figures.

Answer: 2020

Now cooling. A hot cup loses heat to the room. Newton found that the rate of cooling is about proportional to how much hotter the cup is than the room. The model is dT/dt = −k(T − R), where T is the temperature of the cup, R is the temperature of the room, and k is a positive constant. The minus sign makes T fall when T is above R.

The model assumes the room stays at one temperature and that the cup loses heat in proportion to the difference. It is good for ordinary cups, and not for boiling water in a very cold room. Put θ = T − R, the excess over the room. Then dθ/dt = −kθ, which is the equation we have solved, with k replaced by −k. So θ = θ₀ e^(−kt), and T = R + θ₀ e^(−kt).

Worked example

A cup of tea starts at 90 °C in a room at 20 °C. After 10 minutes it is 60 °C. Find its temperature after 25 minutes, to 3 significant figures.

  1. Let θ = T − 20 be the excess over the room. At the start, θ = 90 − 20 = 70. So θ = 70e^(−kt).
  2. After 10 minutes, θ = 60 − 20 = 40. So 40 = 70e^(−10k), and e^(−10k) = 4/7.
  3. Take natural logarithms: −10k = ln(4/7), so k = ln(7/4) ÷ 10 = 0.056 per minute.
  4. After 25 minutes, θ = 70e^(−25k) = 17.28.
  5. The temperature is T = 20 + 17.28 = 37.28 °C, which is 37.3 °C to 3 significant figures.

Answer: 37.3 °C

A graph with the x axis named time (min) from 0 to 40 and a y axis from 0 to 100 named T (°C). A dashed level line named room stands at 20. A curve named tea starts at 90, passes through 60 at time 10 and levels out towards the line at 20. Two dots mark the points (0, 90) and (10, 60).010203040020406080100time (min)T (°C)9060roomtea
The tea cools quickly at first. The curve flattens as it nears the room temperature of 20 °C, which it never goes below.

See it three ways

With things

A cup of hot water, a clock and a thermometer show it: the temperature falls fast in the first minutes and slowly later. The gap to room temperature shrinks by the same fraction every few minutes.

As a picture

A table with the heads y side and x side. The rows read (1/y) dy and k dx, then ∫ (1/y) dy and ∫ k dx, then ln|y| and kx + c.y sidex side(1/y) dyk dx∫ (1/y) dy∫ k dxln|y|kx + c

In words

A rate proportional to the amount means exponential growth or decay. Separate, integrate, then use a known value to find the constant.

In symbols

dy/dx = ky gives y = A e^(kx).

Try it

Watch the gap to room temperature shrink

You need: a cup of hot tap water, a thermometer, a clock.

Be safe: Use hot tap water, not boiling water, and keep the cup where it cannot be knocked over.

  1. Pour hot tap water into a cup. Do not use boiling water. Note the room temperature.
  2. Read the temperature of the water every 5 minutes for 20 minutes, and write the readings in a table.
  3. For each reading, subtract the room temperature to get the gap, which is T − 20 when the room is at 20 °C.
  4. Divide each gap by the one before it.

What you will see: The ratios are nearly the same each time. The table shows model readings for water at 55 °C in a room at 20 °C, with gaps 35, 26.5, 20, 15.1, 11.4 °C. Each gap is 0.756 times the one before. A constant ratio is the sign of exponential decay.

If you cannot try it, this is what happens.
A table with the heads t (min), T (°C) and gap (°C). The rows read 0 and 55 and 35, 5 and 46.5 and 26.5, 10 and 40 and 20, 15 and 35.1 and 15.1, 20 and 31.4 and 11.4.t (min)T (°C)gap (°C)05535546.526.51040201535.115.12031.411.4

A wrong idea many people have

To solve dy/dx = ky, integrate both sides with respect to x. That gives y = kxy.

Why it feels right: Integrating both sides is the usual way to undo a derivative.

The test that breaks it: Differentiate y = kxy with respect to x. The product rule gives y + x(dy/dx) multiplied by k, which is not ky. The right side has y in it, and we cannot treat y as a constant.

What is true: First separate the variables, so that y and dy are on one side, and x and dx are on the other. Then integrate each side with its own variable.

A wrong idea many people have

After integrating, y = e^(kx) + c.

Why it feels right: Integrating always adds a + c, so it seems natural to put it at the end.

The test that breaks it: Take ln|y| = kx + c and raise e to both sides. The result is y = e^(kx + c) = e^c × e^(kx). The c is in the power, so it becomes a multiplier.

What is true: The constant becomes a factor: y = A e^(kx). A is the starting value, and we find it from the initial condition.

Key words

differential equation
an equation with a derivative in it. It describes a rate of change.
separation of variables
putting all the y terms on one side and all the x terms on the other, so each side can be integrated.
initial condition
a known value of y at a known x, used to find the constant in the solution.

Back to your guess

The answer is B: If the rate of growth is 3 times the size, the size follows e³ˣ, a curve that grows faster and faster.

When the growth rate is proportional to the size, bigger means faster, and faster growth makes it bigger still. The size is an exponential, such as A e³ˣ. A straight line, like 3x, has a constant rate. Growth by the same amount each hour is also a constant rate, not growth in proportion to the size.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. Which equation says that the rate of growth of a population N is proportional to N?

    Tap your answer.
    1. Not this one. This says the growth rate is a constant. It does not depend on N, so the growth is the same amount in each hour. Read this page again. Try another.

    2. Not this one. This says the rate depends on time, not on the size of the population. Read this page again. Try another.

    3. Yes, that is right. Proportional to N means the rate equals a constant times N. That is dN/dt = kN.

    4. Not this one. This adds N to a constant. Proportional means the rate is a multiple of N: k times N. Read this page again. Try another.

    See the answer

    dN/dt = kN

    Proportional to N means the rate equals a constant times N. That is dN/dt = kN.

    • If you chose A: This says the growth rate is a constant. It does not depend on N, so the growth is the same amount in each hour. Read this page again.
    • If you chose B: This says the rate depends on time, not on the size of the population. Read this page again.
    • If you chose D: This adds N to a constant. Proportional means the rate is a multiple of N: k times N. Read this page again.
  2. What is the first step in solving dy/dx = ky by separating the variables?

    Tap your answer.
    1. Not this one. The right side still has y in it, so the integral on the right is not yet something we can do. Read this page again. Try another.

    2. Yes, that is right. Separating gives (1/y) dy = k dx. Each side then has one variable, and each can be integrated.

    3. Not this one. We are trying to find y from its derivative, so we integrate and do not differentiate. Read this page again. Try another.

    See the answer

    Put the y terms with dy on one side and the x terms with dx on the other.

    Separating gives (1/y) dy = k dx. Each side then has one variable, and each can be integrated.

    • If you chose A: The right side still has y in it, so the integral on the right is not yet something we can do. Read this page again.
    • If you chose C: We are trying to find y from its derivative, so we integrate and do not differentiate. Read this page again.
  3. dy/dx = 2y and y = 2 when x = 0. Find y when x = 1, to 3 significant figures.

    See the answer

    14.8

    The solution is y = A e^(2x). Since y = 2 when x = 0, A = 2. So y = 2e^(2x), and at x = 1 it is 2e² = 14.8.

  4. A culture has 500 cells at time 0 and 1500 cells after 4 hours, and N = 500e^(kt). Find k to 3 significant figures, in per hour.

    See the answer

    0.275

    1500 = 500e^(4k), so e^(4k) = 3, and 4k = ln 3 = 1.099. Then k = 1.099 ÷ 4 = 0.275 per hour.

  5. In the cooling model dT/dt = −k(T − 20), why is the rate proportional to T − 20 and not to T?

    Tap your answer.
    1. Yes, that is right. Heat flows because of a difference in temperature. When the tea reaches 20 °C the difference is 0, and the cooling stops.

    2. Not this one. The tea cannot go below the room temperature, so it levels off near 20 °C, not 0 °C. Read this page again. Try another.

    3. Not this one. The number k is the cooling constant. The 20 is the room temperature. Read this page again. Try another.

    See the answer

    The rate of cooling depends on how much hotter the tea is than the room, 20 °C.

    Heat flows because of a difference in temperature. When the tea reaches 20 °C the difference is 0, and the cooling stops.

    • If you chose B: The tea cannot go below the room temperature, so it levels off near 20 °C, not 0 °C. Read this page again.
    • If you chose C: The number k is the cooling constant. The 20 is the room temperature. Read this page again.
  6. A cup of tea starts at 80 °C in a room at 18 °C, and is 50 °C after 8 minutes. What is its temperature after 20 minutes, to 3 significant figures?

    See the answer

    29.9

    θ = 62e^(−kt), and 32 = 62e^(−8k) gives k = ln(62/32) ÷ 8 = 0.08267. At 20 minutes, θ = 62e^(−1.653) = 11.87. So T = 18 + 11.87 = 29.9 °C.

  7. A solution of a differential equation has a constant A. How do we find its value?

    Tap your answer.
    1. Yes, that is right. The equation gives a family of curves. One known point picks the curve out by fixing A.

    2. Not this one. A second integral would add another constant, and not remove this one. Read this page again. Try another.

    3. Not this one. The constant depends on the starting value. For y = 5 at x = 0, A is 5. Read this page again. Try another.

    See the answer

    Use a known value of y at a known x, called an initial condition.

    The equation gives a family of curves. One known point picks the curve out by fixing A.

    • If you chose B: A second integral would add another constant, and not remove this one. Read this page again.
    • If you chose C: The constant depends on the starting value. For y = 5 at x = 0, A is 5. Read this page again.
  8. From an earlier chapter

    What is ∫ 1/y dy? This is from chapter 4.

    Tap your answer.
    1. Not this one. That is the derivative of 1/y. We are going the other way. Go to M5.5.4. Try another.

    2. Yes, that is right. The gradient of ln y is 1/y, so the integral of 1/y is ln|y| + c.

    3. Not this one. The power rule would divide by 0, so it does not work for 1/y. Go to M5.5.4. Try another.

    See the answer

    ln|y| + c

    The gradient of ln y is 1/y, so the integral of 1/y is ln|y| + c.

    • If you chose A: That is the derivative of 1/y. We are going the other way. Go to M5.5.4.
    • If you chose C: The power rule would divide by 0, so it does not work for 1/y. Go to M5.5.4.
  9. Solve dy/dx = 2xy with y = 1 when x = 0. Find y when x = 1, to 3 significant figures.

    See the answer

    2.72

    Separate: (1/y) dy = 2x dx. Then ln|y| = x² + c, so y = A e^(x²). With y = 1 at x = 0, A = 1. At x = 1, y = e¹ = 2.72.

  10. A quantity obeys dy/dx = −2y, and starts at a positive value. What happens as x gets large?

    Tap your answer.
    1. Yes, that is right. The solution is y = A e^(−2x) with A above 0. As x grows, e^(−2x) shrinks towards 0 but is never 0 or negative. At x = 3 it is e^(−6) = 0.0025, which is under 1% of A.

    2. Not this one. The solution is y = A e^(−2x), and an exponential with a positive A is always positive. Read this page again. Try another.

    3. Not this one. The rate is negative when y is positive, so y falls, and does not grow. Read this page again. Try another.

    See the answer

    y falls towards 0 and stays positive.

    The solution is y = A e^(−2x) with A above 0. As x grows, e^(−2x) shrinks towards 0 but is never 0 or negative. At x = 3 it is e^(−6) = 0.0025, which is under 1% of A.

    • If you chose B: The solution is y = A e^(−2x), and an exponential with a positive A is always positive. Read this page again.
    • If you chose C: The rate is negative when y is positive, so y falls, and does not grow. Read this page again.

Keep it

Copy this into your exercise book.

dy/dx = ky. Separate: (1/y) dy = k dx. Integrate: ln|y| = kx + c. So y = A e^(kx), and a starting value gives A. Cooling: T = R + (T₀ − R)e^(−kt).

Draw: A curve falling from the starting temperature towards a dashed level line for the room temperature.

M5.5.8 Chapter 8

Motion and totals

If I know how fast something moves, or how fast water flows, can I find how far it went or how much flowed?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

If you travel at 5 m/s for 10 s, you go 5 × 10 = 50 m. That is the area of a rectangle on a graph of speed against time: 5 high and 10 wide. When the speed changes, the same idea holds. Split the time into tiny moments, find speed times time for each, and add. The total is the area under the velocity time graph, which is an integral.

In symbols. Velocity v is the rate of change of position s, so v = ds/dt. Going backwards, s is an integral of v. The change in position between t = a and t = b is the integral of v dt from a to b. When v is never negative, that is the distance travelled.

Two boxes. The left box is labelled s and the right box is labelled v. A top arrow from the left box to the right box is labelled differentiate. A lower arrow from the right box back to the left box is labelled integrate.svdifferentiateintegrate
Position s, differentiated, gives velocity v. Velocity, integrated, gives the change in position. The same link joins v and acceleration a.

Worked example

The velocity of a cyclist is v = 12t − 3t² metres per second, for t from 0 to 4 seconds. How far does the cyclist go?

  1. The velocity is never negative between 0 and 4, because 12t − 3t² = 3t(4 − t). So the distance is the integral of v from 0 to 4.
  2. An integral of 12t − 3t² is 6t² − t³.
  3. At t = 4: 6 × 16 − 64 = 96 − 64 = 32.
  4. At t = 0 the value is 0.
  5. The distance is 32 − 0 = 32 m.

Answer: 32 m

A graph with the x axis named t (s) from 0 to 4 and a y axis from 0 to 16 named v (m/s). A curve named v = 12t − 3t² rises from the origin to 12 at t = 2 and falls back to 0 at t = 4. The region under the curve is hatched and named A.012340481216t (s)v (m/s)v = 12t − 3t²A
The area A is the distance, 32 m. Metres per second times seconds gives metres.

What if the velocity goes negative? Then the object moves backwards, and the integral counts that part as negative. The integral from a to b is the displacement: the final position minus the starting position. The distance travelled is the total of the sizes of the parts, forwards and backwards. To find it, split the time where v crosses 0.

Worked example

A particle has velocity v = t² − 4t + 3 metres per second, for t from 0 to 4 seconds. Find its displacement and the distance it travels.

  1. Factorise: t² − 4t + 3 = (t − 1)(t − 3). The velocity is 0 at t = 1 and t = 3. It is negative between them.
  2. An integral of v is t³/3 − 2t² + 3t.
  3. Values: at 0 it is 0. At 1: 1/3 − 2 + 3 = 4/3. At 3: 9 − 18 + 9 = 0. At 4: 64/3 − 32 + 12 = 4/3.
  4. The displacement is the whole integral: 4/3 − 0 = 4/3 m.
  5. From 0 to 1: 4/3 − 0 = 4/3. From 1 to 3: 0 − 4/3 = −4/3. From 3 to 4: 4/3 − 0 = 4/3.
  6. The distance adds the sizes: 4/3 + 4/3 + 4/3 = 4 m.

Answer: The displacement is 4/3 m, and the distance is 4 m.

A graph with the x axis named t (s) from 0 to 4 and a y axis from −2 to 4 named v (m/s). A curve named v = t² − 4t + 3 starts at 3, crosses the t axis at t = 1, dips to −1 at t = 2, crosses again at t = 3 and rises to 3 at t = 4. The region above the axis from 0 to 1 is hatched and named P. The region below the axis from 1 to 3 is cross hatched and named Q. The region above the axis from 3 to 4 is hatched and named R.01234−2024t (s)v (m/s)v = t² − 4t + 3PQR
P and R are each 4/3. Q is 4/3 below the axis, where the particle moves backwards. The displacement is P − Q + R, and the distance is P + Q + R.

Acceleration works the same way one step up. Acceleration a is the rate of change of velocity, a = dv/dt. So velocity is an integral of acceleration. And position is an integral of velocity. Each integration adds a constant, and we find it from a known value, such as the starting velocity or position.

Worked example

A cart starts from rest at the origin with acceleration a = 6t metres per second squared. Find its velocity and position when t = 4 s.

  1. Integrate acceleration: v = 3t² + c. At t = 0 the cart is at rest, so v = 0 and c = 0. So v = 3t².
  2. Integrate velocity: s = t³ + d. At t = 0 the cart is at the origin, so s = 0 and d = 0. So s = t³.
  3. At t = 4: v = 3 × 16 = 48 m/s.
  4. At t = 4: s = 4³ = 64 m.

Answer: v = 48 m/s and s = 64 m.

Now totals of flow. A tap fills a tank. The rate of flow Q is the volume that flows each minute, in litres per minute. If Q changes with time, the total volume that flows in is the integral of Q dt, the area under the graph of Q against t. The units multiply: litres per minute times minutes gives litres. When water also flows out, use the net rate, the rate in minus the rate out. The amount in the tank stops rising when the net rate falls to 0.

Worked example

A tank holds 120 litres. For 10 minutes, water flows in at the rate Q = 30t − 3t² litres per minute, where t is in minutes. How much water is in the tank at the end?

  1. The water added is the integral of Q from 0 to 10.
  2. An integral of 30t − 3t² is 15t² − t³.
  3. At t = 10: 15 × 100 − 1000 = 1500 − 1000 = 500.
  4. At t = 0 the value is 0. So 500 litres flow in.
  5. The tank held 120 litres at the start. The total is 120 + 500 = 620 litres.

Answer: 620 litres

A graph with the x axis named t (min) from 0 to 10 and a y axis from 0 to 100 named Q (L/min). A curve named Q = 30t − 3t² rises from the origin to 75 at t = 5 and falls back to 0 at t = 10. The region under the curve is hatched and named V.0246810020406080100t (min)Q (L/min)Q = 30t − 3t²V
The area V is the volume that flows in, 500 litres. The tank holds 120 litres more, so it ends with 620 litres.

Often we have only readings, not a formula. If the rate of flow is measured every 2 minutes, use the trapezium rule from chapter 6. The readings are the ordinates, and the estimate of the integral is the total volume.

See it three ways

With things

In a car, the speedometer shows how fast you go. The trip meter adds up speed times time for you. The distance is the total of all the small pieces of speed times time. That is the area under the speed graph.

As a picture

A graph with the x axis named t (s) from 0 to 4 and a y axis from 0 to 16 named v (m/s). A curve named v = 12t − 3t² rises from the origin to 12 at t = 2 and falls back to 0 at t = 4. The region under the curve is hatched and named A.012340481216t (s)v (m/s)v = 12t − 3t²A

In words

The area under a velocity graph is the distance. The area under a flow rate graph is the total volume. The unit of the area is the unit of the rate times the unit of time.

In symbols

s = ∫ v dt. V = ∫ Q dt. v = ∫ a dt.

Try it

Add up your steps

You need: a clock or watch with a seconds hand, paper, a pencil.

  1. Walk across a room and back at a changing pace for 40 seconds. Ask a friend to keep time, or use a clock.
  2. Count your steps in each 10 second window, and write the four counts down.
  3. Divide each count by 10 to get the rate in steps per second.
  4. Add the four counts to get the total number of steps.

What you will see: A rate times a time is an amount. Each window gives rate × 10 s, a count of steps, and the total is the area under the rate graph. The table shows example counts 15, 20, 18, 12, which total 65 steps.

If you cannot try it, this is what happens.
A table with the heads seconds, steps and steps/s. The rows read 0 to 10 and 15 and 1.5, 10 to 20 and 20 and 2, 20 to 30 and 18 and 1.8, 30 to 40 and 12 and 1.2.secondsstepssteps/s0 to 10151.510 to 2020220 to 30181.830 to 40121.2

A wrong idea many people have

The integral of velocity from a to b is always the distance travelled.

Why it feels right: We began with a rectangle of speed times time, which was always the distance.

The test that breaks it: For v = t² − 4t + 3 from 0 to 4, the integral is 4/3. But the particle moved 4 m in all, because it went backwards between 1 and 3.

What is true: The integral of v is the displacement, which counts backwards motion as negative. For the distance, split at the times when v is 0, and add the sizes of the parts.

A wrong idea many people have

To get the speed from the position, integrate. To get the position from the speed, differentiate.

Why it feels right: The two words are quick to swap, because both rules change one quantity into the other.

The test that breaks it: Take s = t². The speed is 2t, and 2t is the derivative of t², not its integral. Going from 2t back to t² is an integral.

What is true: Differentiate position to get velocity, and differentiate velocity to get acceleration. Integrate the other way: acceleration to velocity to position.

Key words

velocity
the rate of change of position, with a direction. It can be negative.
displacement
the change in position, the final position minus the starting position.
rate of flow
the volume that passes each unit of time, such as litres per minute.

Back to your guess

The answer is B: Take the area under the graph of the speed against time.

The highest speed over the whole time would be too much, and the starting speed over the whole time would be too little if the speed grows. Each small moment contributes speed times a tiny time, and adding these up is the area under the graph, which is an integral.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. The distance a body travels is found from the area under which graph?

    Tap your answer.
    1. Yes, that is right. Velocity times time is distance, so the area under the velocity time graph is the distance. The area under an acceleration graph is a change in velocity.

    2. Not this one. The gradient of the distance time graph is the speed. The distance is already read off the height of that graph. Read this page again. Try another.

    3. Not this one. The area under the acceleration time graph is the change in velocity, not the distance. Read this page again. Try another.

    See the answer

    The velocity time graph.

    Velocity times time is distance, so the area under the velocity time graph is the distance. The area under an acceleration graph is a change in velocity.

    • If you chose B: The gradient of the distance time graph is the speed. The distance is already read off the height of that graph. Read this page again.
    • If you chose C: The area under the acceleration time graph is the change in velocity, not the distance. Read this page again.
  2. A body has velocity v = 6t² m/s. Find the distance travelled from t = 0 to t = 3 s, in metres.

    See the answer

    54

    An integral of 6t² is 2t³. At 3 it is 2 × 27 = 54, and at 0 it is 0. The distance is 54 m. In general the integral of 3kt² from 0 to T is kT³.

  3. A body has velocity v = 8t − 2t² m/s from t = 0 to t = 4 s. The velocity is never negative in this time. Find the distance as a fraction.

    See the answer

    64/3 m

    An integral of 8t − 2t² is 4t² − 2t³/3. At 4: 64 − 128/3 = 64/3. At 0: 0. The distance is 64/3 m, about 21.3 m.

  4. For v = t² − 4t + 3 from t = 0 to t = 4, the displacement is 4/3 m but the distance is 4 m. Why are they different?

    Tap your answer.
    1. Not this one. There is no fixed ratio. They are different here because the particle turns round, not because of a factor. Read this page again. Try another.

    2. Not this one. The integral from 0 to 4 is 4/3, which is correct. It is a signed total, so the backwards part cancels some of the forward part. Read this page again. Try another.

    3. Yes, that is right. The velocity is negative from t = 1 to t = 3. The integral subtracts that part, and the distance adds its size.

    See the answer

    The particle moves backwards between t = 1 and t = 3, and the distance counts that part as positive.

    The velocity is negative from t = 1 to t = 3. The integral subtracts that part, and the distance adds its size.

    • If you chose A: There is no fixed ratio. They are different here because the particle turns round, not because of a factor. Read this page again.
    • If you chose B: The integral from 0 to 4 is 4/3, which is correct. It is a signed total, so the backwards part cancels some of the forward part. Read this page again.
  5. A body starts from rest at the origin with acceleration a = 12t m/s². Find its position when t = 2 s, in metres.

    See the answer

    16

    Integrate: v = 6t². Integrate again: s = 2t³. At t = 2, s = 2 × 8 = 16 m.

  6. Water flows into a tank at Q litres per minute, and Q changes with the time t in minutes. What are the units of the integral of Q dt?

    Tap your answer.
    1. Not this one. That is the unit of Q itself. Integrating multiplies by minutes. Read this page again. Try another.

    2. Not this one. The minutes cancel with the minutes in litres per minute. What is left is litres. Read this page again. Try another.

    3. Not this one. That would be the inverse of the rate. We multiply by time, not divide. Read this page again. Try another.

    4. Yes, that is right. Litres per minute times minutes gives litres. The integral of a rate over time is a total amount.

    See the answer

    Litres.

    Litres per minute times minutes gives litres. The integral of a rate over time is a total amount.

    • If you chose A: That is the unit of Q itself. Integrating multiplies by minutes. Read this page again.
    • If you chose B: The minutes cancel with the minutes in litres per minute. What is left is litres. Read this page again.
    • If you chose C: That would be the inverse of the rate. We multiply by time, not divide. Read this page again.
  7. A tank holds 80 litres. Water flows in at Q = 24t − 2t² litres per minute for 12 minutes. How many litres are in the tank at the end?

    See the answer

    656

    The added water is the integral of 24t − 2t² from 0 to 12. An integral is 12t² − 2t³/3, which is 1728 − 1152 = 576 at 12. Add the 80 litres at the start: 656 litres.

  8. The rate of flow of water in a pipe, in litres per minute, is measured every 2 minutes as 0, 8, 14, 12, 6. Use the trapezium rule to estimate the volume in the 8 minutes, in litres.

    See the answer

    74

    There are 4 strips, each 2 minutes wide. The estimate is ½ × 2 × (0 + 6 + 2 × (8 + 14 + 12)) = 6 + 68 = 74 litres.

  9. Water flows into a tank at 12 litres per minute and out at 2t litres per minute, where t is the time in minutes after the start. The net rate in is 12 − 2t. When is the tank fullest?

    Tap your answer.
    1. Not this one. At t = 12 the net rate is −12, so the tank is emptying fast by then. The tank is fullest earlier. Read this page again. Try another.

    2. Yes, that is right. The tank gains water while 12 − 2t is positive, and loses it when it is negative. The change happens where 12 − 2t = 0, so at t = 6 minutes.

    3. Not this one. At the start the net rate is 12, so the tank is filling. It carries on filling until the net rate falls to 0. Read this page again. Try another.

    See the answer

    When the net rate is zero, which is at t = 6 minutes.

    The tank gains water while 12 − 2t is positive, and loses it when it is negative. The change happens where 12 − 2t = 0, so at t = 6 minutes.

    • If you chose A: At t = 12 the net rate is −12, so the tank is emptying fast by then. The tank is fullest earlier. Read this page again.
    • If you chose C: At the start the net rate is 12, so the tank is filling. It carries on filling until the net rate falls to 0. Read this page again.
  10. From an earlier chapter

    A trapezium rule estimate of an integral comes out too big. What does this say about the curve? This is from chapter 6.

    Tap your answer.
    1. Not this one. A concave curve lies above its chords, so the strips are too small and the estimate is too small. Go to M5.5.6. Try another.

    2. Not this one. For a straight line the trapezium rule is exact, so there is no error. Go to M5.5.6. Try another.

    3. Yes, that is right. A convex curve, bending upward, lies below its chords. The straight tops lie above it and make the estimate too big.

    See the answer

    The curve bends upward, so it lies below its chords.

    A convex curve, bending upward, lies below its chords. The straight tops lie above it and make the estimate too big.

    • If you chose A: A concave curve lies above its chords, so the strips are too small and the estimate is too small. Go to M5.5.6.
    • If you chose B: For a straight line the trapezium rule is exact, so there is no error. Go to M5.5.6.
  11. A body starts with velocity u. Its acceleration is a, and we integrate it to get v = (an expression) + c. What fixes the constant c?

    Tap your answer.
    1. Yes, that is right. The integral of acceleration is velocity plus a constant. Putting in the known starting velocity at t = 0 gives that constant.

    2. Not this one. The acceleration is already in the integrand. The constant is a value of the velocity, which we know at one time. Read this page again. Try another.

    3. Not this one. The distance comes from a second integral. The constant in the velocity is fixed by a known velocity. Read this page again. Try another.

    See the answer

    The velocity at the start, when t = 0.

    The integral of acceleration is velocity plus a constant. Putting in the known starting velocity at t = 0 gives that constant.

    • If you chose B: The acceleration is already in the integrand. The constant is a value of the velocity, which we know at one time. Read this page again.
    • If you chose C: The distance comes from a second integral. The constant in the velocity is fixed by a known velocity. Read this page again.

Keep it

Copy this into your exercise book.

Area under v against t: displacement. Split where v crosses 0 for distance. a to v to s: integrate, and fix each constant. Area under a flow rate graph: the total amount. Unit: rate times time.

Draw: A velocity time graph with the area under it hatched, labelled distance.

Key words, A to Z

Every key word in this book, what it means, and the chapter that teaches it.

absolute value
the size of a number with its sign ignored. |−3| = 3. M5.5.4
concave
bending downward, with a negative second derivative. M5.5.6
constant of integration
the number c added to an integral, because many curves have the same gradient. M5.5.1
convex
bending upward, with a positive second derivative. M5.5.6
definite integral
an integral with limits, which works out to a number. M5.5.2
differential equation
an equation with a derivative in it. It describes a rate of change. M5.5.7
differentiation
finding the gradient function of a curve. M5.5.1
displacement
the change in position, the final position minus the starting position. M5.5.8
initial condition
a known value of y at a known x, used to find the constant in the solution. M5.5.7
integral
a function that has a given gradient function. We write ∫ f(x) dx. M5.5.1
integration
the reverse of differentiation: finding a function from its gradient. M5.5.1
integration by parts
the formula ∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx. It undoes the product rule. M5.5.5
limits
the two numbers a and b that say where the integral starts and stops. M5.5.2
meeting point
a point where two curves have the same x and the same y. We find the x values by setting the equations equal. M5.5.3
natural logarithm
ln x, the logarithm to base e. Its gradient is 1/x. M5.5.4
ordinates
the heights of the curve at the edges of the strips. M5.5.6
radians
the unit for angles in which the gradient of sin x is cos x. M5.5.4
rate of flow
the volume that passes each unit of time, such as litres per minute. M5.5.8
region
the part of the plane that curves and lines enclose. M5.5.3
separation of variables
putting all the y terms on one side and all the x terms on the other, so each side can be integrated. M5.5.7
signed area
area counted as positive above the x axis and negative below it. M5.5.2
substitution
replacing an inside function by u, so the integral becomes simpler. It undoes the chain rule. M5.5.5
trapezium
a shape with one pair of parallel sides. Its area is half the sum of the parallel sides, times the distance between them. M5.5.6
upper curve
the curve with the greater y value at a given x. M5.5.3
velocity
the rate of change of position, with a direction. It can be negative. M5.5.8