Level 5 · Mathematics M5.4

Differentiation

Find how fast things change, and use it to find the highest and lowest points of curves.

Find the gradient of a curve by letting chords shrink to a tangent, and prove from first principles that x² has gradient 2x. Differentiate powers, sums, roots and reciprocals. Write the equation of a tangent and a normal. Find and classify turning points, and use them to find the largest open box and the shortest fence. Differentiate eˣ, ln x, sin x and cos x, use the chain, product and quotient rules, and find connected rates and implicit gradients.

You are ready for this book if

You can find the gradient of the line through (1, 3) and (4, 9).

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

M5.4.1 Chapter 1

The gradient of a curve

A curve keeps changing its steepness. How steep is it at one single point?

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

On a straight line the gradient is the same everywhere. You find it from any two points: the rise divided by the run. A curve is different. It is steep in one place and flat in another, so its gradient changes from point to point. Differentiation is the tool that finds the gradient of a curve at any point, and it is the start of calculus.

Look at the curve y = x². At the bottom, near x = 0, it is flat. Further along it climbs faster and faster. To measure its steepness at one point P, we cannot use two points, because we only have one. The idea is to borrow a second point Q on the curve, close to P, and let Q slide towards P.

A graph of the curve y = x² with the x axis x and the y axis y. The curve is named y = x². The point P (1, 1) and the point Q (3, 9) are both on the curve. A straight chord joins P and Q.P (1, 1)Q (3, 9)y = x²12344812160xy
A chord is a straight line joining two points on a curve. The chord PQ rises 8 over a run of 2, so its gradient is 8 ÷ 2 = 4. At P the curve itself is less steep than that.

Now slide Q along the curve towards P. The chord swings round, and its gradient changes. When Q is very close to P, the chord and the curve are almost the same line near P. The line that the chords settle on is the tangent at P. It touches the curve at P and does not cut across it there. The gradient of the curve at P is defined as the gradient of this tangent.

Draw it first

Chords shrink to the tangent

  1. A graph of y = x² with the x axis x and the y axis y, and the point P on the curve at (1, 1). Step 1 adds the point Q₁ at (3, 9) and the chord PQ₁. Step 2 adds Q₂ at (1.5, 2.25) and its chord, which is much less steep. Step 3 adds the dashed tangent at P, which has gradient 2.PQ₁y = x²12344812160xy

    1 Q₁ is at x = 3. The chord PQ₁ has gradient 4.

  2. A graph of y = x² with the x axis x and the y axis y, and the point P on the curve at (1, 1). Step 1 adds the point Q₁ at (3, 9) and the chord PQ₁. Step 2 adds Q₂ at (1.5, 2.25) and its chord, which is much less steep. Step 3 adds the dashed tangent at P, which has gradient 2.PQ₁Q₂y = x²12344812160xy

    2 Q₂ is at x = 1.5. The chord PQ₂ has gradient 2.5, much less steep.

  3. A graph of y = x² with the x axis x and the y axis y, and the point P on the curve at (1, 1). Step 1 adds the point Q₁ at (3, 9) and the chord PQ₁. Step 2 adds Q₂ at (1.5, 2.25) and its chord, which is much less steep. Step 3 adds the dashed tangent at P, which has gradient 2.PQ₁Q₂tangenty = x²12344812160xy

    3 The chords settle on the tangent at P. Its gradient is 2.

We can put numbers on this. Keep P = (1, 1) fixed on y = x², and move Q along the curve to x = 3, 2, 1.5, 1.1 and 1.01. Each chord gradient is the rise divided by the run. The table works them out.

A table with the heads x at Q and gradient of PQ. The rows read 3 and 4, 2 and 3, 1.5 and 2.5, 1.1 and 2.1, 1.01 and 2.01.x at Qgradient of PQ34231.52.51.12.11.012.01
Each chord starts at P (1, 1) on y = x². The gradient of PQ is the rise ÷ run. As Q gets closer to P, it gets closer to 2.

The numbers 4, 3, 2.5, 2.1 and 2.01 close in on 2. We say that the gradient of the curve at P is the limit of the chord gradients as Q gets closer to P. The limit is the number the chord gradients get as near to as you wish, without being told to stop at a certain size. Here the limit is 2.

Worked example

Estimate the gradient of y = x² at the point (2, 4) using chords to the points with x = 3, 2.5, 2.1 and 2.01.

  1. Call P the point (2, 4). For each chord, gradient = (y at Q − 4) ÷ (x at Q − 2).
  2. Q at x = 3 is (3, 9). The gradient is (9 − 4) ÷ (3 − 2) = 5.
  3. Q at x = 2.5 is (2.5, 6.25). The gradient is (6.25 − 4) ÷ 0.5 = 4.5.
  4. Q at x = 2.1 is (2.1, 4.41). The gradient is (4.41 − 4) ÷ 0.1 = 4.1.
  5. Q at x = 2.01 is (2.01, 4.0401). The gradient is (4.0401 − 4) ÷ 0.01 = 4.01.
  6. The gradients 5, 4.5, 4.1 and 4.01 are closing in on 4. The gradient at (2, 4) is 4.

Answer: The gradient at (2, 4) is 4.

The same idea works for a speed. A stone falls from rest. After t seconds it has fallen d = 5t² metres, a good model for the first few seconds with little air. The speed at one moment is the gradient of the distance graph at that moment. The average speed between t = 2 and t = 3 is the chord gradient (45 − 20) ÷ 1 = 25 m/s. Between t = 2 and t = 2.5 it is (31.25 − 20) ÷ 0.5 = 22.5 m/s. Closer chords give 20.5, 20.05 and so on. The speed at t = 2 is 20 m/s.

A graph of distance fallen against time, with the x axis time (s) and the y axis distance (m). The curve is named d = 5t². The point P is at t = 2 and d = 20. Two chords run from P to Q₁ at t = 3 and Q₂ at t = 2.5. A dashed tangent at P has gradient 20 and is named speed.PQ₁Q₂speedd = 5t²1234204060800time (s)distance (m)
The gradient of a distance graph is a speed. The tangent at P has gradient 20, so the stone is moving at 20 m/s after 2 s.

Estimating with a few chords is slow, and the answer is only as good as your guess of the limit. Algebra does better. Take the point P = (x, x²) on y = x², and a second point Q a small step h to the right, at x + h. Then Q = (x + h, (x + h)²). This method, which uses a small step h that we then shrink, is called differentiation from first principles.

Worked example

Find the gradient of y = x² where x = 3. Use the chord from x = 3 to x = 3 + h and let h get smaller.

  1. P is (3, 9). Q is (3 + h, (3 + h)²).
  2. Expand: (3 + h)² = 9 + 6h + h². The rise is (9 + 6h + h²) − 9 = 6h + h².
  3. The run is (3 + h) − 3 = h. So the gradient of PQ is (6h + h²) ÷ h = 6 + h.
  4. For h = 0.1 the gradient of PQ is 6.1.
  5. For h = 0.01 the gradient of PQ is 6.01.
  6. As h gets smaller, 6 + h gets closer to 6. The gradient of y = x² at x = 3 is 6.

Answer: The gradient at x = 3 is 6.

Now do it for any x. The chord from P = (x, x²) to Q = (x + h, (x + h)²) has rise (x + h)² − x² and run h. Expanding, (x + h)² = x² + 2xh + h², so the rise is 2xh + h². Divide by the run h, and the gradient of the chord is 2x + h. The h on the bottom cancels one h on the top. This step is the reason to simplify before you shrink h.

Worked example

Show from first principles that the gradient of y = x² at the point with x-coordinate x is 2x. Then use it to find the gradient at x = 4.

  1. P = (x, x²) and Q = (x + h, (x + h)²).
  2. Rise = (x + h)² − x² = x² + 2xh + h² − x² = 2xh + h².
  3. Run = (x + h) − x = h.
  4. Gradient of PQ = (2xh + h²) ÷ h = 2x + h.
  5. As h shrinks towards 0, the term h shrinks away, and 2x + h approaches 2x.
  6. So the gradient of y = x² at any point is 2x. We write dy/dx = 2x.
  7. At x = 4 the gradient is 2 × 4 = 8.

Answer: dy/dx = 2x, so the gradient at x = 4 is 8.

Two graphs one above the other, with the same x axis x. The upper graph has the y axis y and the curve y = x². The lower graph has the y axis gradient and the straight line y = 2x. Dotted lines join a dot at x = −2, x = 1 and x = 2 on the curve to the dot straight below on the line.y = x²−3−2−11233690xyy = 2x−3−2123−6−3360xgradient
The lower graph is the gradient function, dy/dx = 2x. Its height at each x is the gradient of the curve above. At x = −2 the curve falls with gradient −4. At x = 0 the gradient is 0. At x = 2 it is 4.

The rule dy/dx = 2x is a gradient function. It gives the gradient at any x. Another word for it is the derivative, and finding it is differentiation. If the curve is y = f(x), the derivative is written f′(x) or dy/dx. The symbol dy/dx is one symbol, not a fraction to cancel. It is the limit of δy/δx, the rise over the run of a tiny chord. In the next chapter you will find the rule for every power of x.

See it three ways

With things

Walk along a hill path. At each step you feel how steep the ground is under your feet. That feeling is the gradient at that point. The distance to the next step is tiny, and you still feel a slope.

As a picture

A table with the heads h and chord gradient. The rows read 1 and 3, 0.5 and 2.5, 0.1 and 2.1, 0.01 and 2.01.hchord gradient130.52.50.12.10.012.01

In words

The gradient of a curve at P is the number the gradients of shorter and shorter chords from P get closer to.

In symbols

Chord gradient = (f(x + h) − f(x)) ÷ h. For f(x) = x² this is 2x + h, so the gradient at x is 2x.

Try it

Chords on a drawn curve

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

  1. Draw axes from 0 to 4 across and 0 to 16 up, with 4 squares for each unit across and 1 square for each unit up. Plot y = x² at x = 0, 1, 2, 3 and 4, and join the dots with a smooth curve.
  2. Mark P at (1, 1). Mark Q at (3, 9) and draw the chord PQ. Read its rise and its run from the squares.
  3. Do the same for Q at (2, 4). Then put Q at x = 1.5, which is (1.5, 2.25), and draw the chord again.
  4. Lay the ruler so that it just touches the curve at P and does not cut across it. Draw this tangent and read its rise over its run.

What you will see: The chord gradients go down as Q comes closer to P. The ruler tangent, which is the end of that journey, has a gradient close to 2.

If you cannot try it, this is what happens.
A table with the heads Q and gradient. The rows read (3, 9) and 4, (2, 4) and 3, (1.5, 2.25) and 2.5, tangent at P and about 2.Qgradient(3, 9)4(2, 4)3(1.5, 2.25)2.5tangent at Pabout 2

A wrong idea many people have

The gradient of y = x² at (3, 9) is 9 ÷ 3 = 3, found by rise over run from the origin.

Why it feels right: For a straight line through the origin, the gradient is y ÷ x. The point (3, 9) has y ÷ x = 3, so it feels natural to use the same rule for a curve.

The test that breaks it: Draw the line from (0, 0) to (3, 9) and the tangent at (3, 9). The line has gradient 3. The curve at (3, 9) is much steeper, with chords to x = 3.5 and x = 3.1 having gradients 6.5 and 6.1.

What is true: The gradient of a curve at a point is the gradient of the tangent there, found with chords that start at that point. The line from the origin is only a chord of the curve, and a chord that is long is a poor guide. The true gradient at (3, 9) is 6.

A graph of the curve y = x² with the x axis x and the y axis y. The point P at (3, 9) is on the curve. A dashed line from the origin through P is named y = 3x. A tangent at P is named tangent and is steeper than the dashed line.Py = 3xtangenty = x²123455101520250xy
The line from the origin to P has gradient 3. The tangent at P has gradient 6.

A wrong idea many people have

When h reaches 0, the chord has rise 0 and run 0, so its gradient is 0 ÷ 0 and a curve has no gradient at a point.

Why it feels right: If Q lands on P, the chord has no length. A rise of 0 over a run of 0 cannot be worked out, so it seems the idea fails.

The test that breaks it: Simplify first. The chord gradient is 2x + h for every h that is not 0. This is a perfectly good number for h = 0.1, 0.01 and 0.0001. It gets as close to 2x as you wish.

What is true: We never let h equal 0. We ask what number the chord gradient 2x + h approaches as h gets smaller, and that number is the gradient. Simplify the fraction while h is still a small number that is not 0, and only then see where it is heading.

Key words

chord
a straight line joining two points on a curve.
tangent
the straight line that touches a curve at a point and has the same steepness as the curve there.
limit
the number that the chord gradients get as close to as you wish when h gets smaller.
first principles
finding a gradient from the chord gradient with a small step h, and then letting h shrink.
gradient function
a rule that gives the gradient of a curve at every x. For y = x² it is 2x.
derivative
the gradient function. It is written dy/dx or f′(x).
differentiation
the process of finding the derivative.

Back to your guess

The answer is B: The curve y = x² has gradient exactly 2 at the point (1, 1).

The gradient at (1, 1) is exactly 2. The line from (1, 1) to (3, 9) has gradient 4, but it cuts across the curve and is steeper than the curve at (1, 1). Joining (1, 1) to points that are closer and closer gives 3, 2.5, 2.1 and 2.01. These close in on 2.

Check yourself

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

  1. P (1, 1) and Q (4, 16) are on the curve y = x². What is the gradient of the chord PQ?

    Tap your answer.
    1. Not this one. You found the rise, 16 − 1 = 15, but did not divide by the run. The gradient is the rise divided by the run. Read this page again. Try another.

    2. Yes, that is right. Rise = 16 − 1 = 15. Run = 4 − 1 = 3. The gradient is 15 ÷ 3 = 5.

    3. Not this one. The number 3 is the run, 4 − 1. Divide the rise, 16 − 1 = 15, by the run, 3. Read this page again. Try another.

    4. Not this one. That is 16 ÷ 4, the height of Q divided by its x. The chord starts at P, not at the origin. Use the rise from P to Q over the run from P to Q. Read this page again. Try another.

    See the answer

    5

    Rise = 16 − 1 = 15. Run = 4 − 1 = 3. The gradient is 15 ÷ 3 = 5.

    • If you chose A: You found the rise, 16 − 1 = 15, but did not divide by the run. The gradient is the rise divided by the run. Read this page again.
    • If you chose C: The number 3 is the run, 4 − 1. Divide the rise, 16 − 1 = 15, by the run, 3. Read this page again.
    • If you chose D: That is 16 ÷ 4, the height of Q divided by its x. The chord starts at P, not at the origin. Use the rise from P to Q over the run from P to Q. Read this page again.
  2. The chords from P (1, 1) on y = x² to Q at x = 2, 1.5 and 1.1 have gradients 3, 2.5 and 2.1. What do these gradients close in on, as Q moves towards P?

    Tap your answer.
    1. Not this one. The number 1 is the height of P, not the gradient. The gradients 3, 2.5 and 2.1 are heading for 2, not 1. Read this page again. Try another.

    2. Not this one. The first chord has gradient 3, but the gradients keep falling after it. The limit is where they are heading. Read this page again. Try another.

    3. Yes, that is right. The gradients 3, 2.5, 2.1 get closer and closer to 2. For Q at x = 1.01 the chord gradient is 2.01. The limit is 2, which is the gradient of the curve at P.

    See the answer

    2

    The gradients 3, 2.5, 2.1 get closer and closer to 2. For Q at x = 1.01 the chord gradient is 2.01. The limit is 2, which is the gradient of the curve at P.

    • If you chose A: The number 1 is the height of P, not the gradient. The gradients 3, 2.5 and 2.1 are heading for 2, not 1. Read this page again.
    • If you chose B: The first chord has gradient 3, but the gradients keep falling after it. The limit is where they are heading. Read this page again.
  3. What is the gradient of y = x² at x = 0, the lowest point of the curve?

    Tap your answer.
    1. Yes, that is right. dy/dx = 2x, so at x = 0 the gradient is 2 × 0 = 0. The tangent at the lowest point is flat.

    2. Not this one. The gradient 2x at x = 0 is 2 × 0 = 0, not 1. At the bottom of the curve the tangent is flat. Read this page again. Try another.

    3. Not this one. You used the gradient at x = 1. The gradient function is 2x, so at x = 0 it is 0. Read this page again. Try another.

    4. Not this one. The tangent at the bottom of the curve is a flat line, which has gradient 0. A gradient of 0 is a gradient. Read this page again. Try another.

    See the answer

    0

    dy/dx = 2x, so at x = 0 the gradient is 2 × 0 = 0. The tangent at the lowest point is flat.

    • If you chose B: The gradient 2x at x = 0 is 2 × 0 = 0, not 1. At the bottom of the curve the tangent is flat. Read this page again.
    • If you chose C: You used the gradient at x = 1. The gradient function is 2x, so at x = 0 it is 0. Read this page again.
    • If you chose D: The tangent at the bottom of the curve is a flat line, which has gradient 0. A gradient of 0 is a gradient. Read this page again.
  4. Ana says the gradient of y = x² at (3, 9) is 3, because 9 ÷ 3 = 3. What is the gradient there?

    Tap your answer.
    1. Not this one. That is the gradient of the line from the origin to (3, 9). It is a chord, and a long one. The tangent at (3, 9) is steeper. Read this page again. Try another.

    2. Not this one. The number 9 is the height of the point. The gradient function is 2x, which at x = 3 gives 6. Read this page again. Try another.

    3. Not this one. You may have doubled the height. The gradient function is 2x, with x = 3, not 2 × 9. Read this page again. Try another.

    4. Yes, that is right. dy/dx = 2x. At x = 3 the gradient is 2 × 3 = 6.

    See the answer

    6

    dy/dx = 2x. At x = 3 the gradient is 2 × 3 = 6.

    • If you chose A: That is the gradient of the line from the origin to (3, 9). It is a chord, and a long one. The tangent at (3, 9) is steeper. Read this page again.
    • If you chose B: The number 9 is the height of the point. The gradient function is 2x, which at x = 3 gives 6. Read this page again.
    • If you chose C: You may have doubled the height. The gradient function is 2x, with x = 3, not 2 × 9. Read this page again.
  5. In first principles for y = x², the chord from x to x + h has gradient 2x + h. What does this become as h gets closer and closer to 0?

    Tap your answer.
    1. Yes, that is right. The term h shrinks away, so 2x + h gets as close to 2x as you wish. The gradient function of y = x² is 2x.

    2. Not this one. It is the h that goes to 0, not the whole gradient. The 2x stays. Read this page again. Try another.

    3. Not this one. We simplified before shrinking h, so the 0 ÷ 0 never appears. The result 2x + h is fine for every h that is not 0. Read this page again. Try another.

    See the answer

    2x

    The term h shrinks away, so 2x + h gets as close to 2x as you wish. The gradient function of y = x² is 2x.

    • If you chose B: It is the h that goes to 0, not the whole gradient. The 2x stays. Read this page again.
    • If you chose C: We simplified before shrinking h, so the 0 ÷ 0 never appears. The result 2x + h is fine for every h that is not 0. Read this page again.
  6. Use dy/dx = 2x to find the gradient of y = x² at x = −2.

    See the answer

    −4

    dy/dx = 2x, so at x = −2 the gradient is 2 × (−2) = −4. The curve is falling there.

  7. Estimate the gradient of y = x² at x = 5 using the chord from x = 5 to x = 5.01.

    See the answer

    10.01

    At x = 5, y = 25. At x = 5.01, y = 25.1001. The rise is 0.1001 and the run is 0.01, so the gradient is 0.1001 ÷ 0.01 = 10.01. This is close to the true gradient, 10.

  8. A stone has fallen d = 5t² metres after t seconds. What is its average speed from t = 2 to t = 2.1, in m/s?

    See the answer

    20.5

    At t = 2, d = 20. At t = 2.1, d = 5 × 4.41 = 22.05. The distance is 2.05 m in 0.1 s, so the average speed is 2.05 ÷ 0.1 = 20.5 m/s. The speed at t = 2 is 20 m/s.

Keep it

Copy this into your exercise book.

Chord gradient = rise ÷ run. Let Q slide to P. The limit is the gradient. y = x² gives 2x + h, then dy/dx = 2x. Never put h = 0 before simplifying.

Draw: A curve with P and three chords getting closer to the tangent, with the chord gradients 4, 3, 2.5 beside them.

M5.4.2 Chapter 2

Differentiating powers

Is there a quick rule, so that I do not have to shrink a chord every time?

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 chapter you found that y = x² has gradient function 2x, by letting a chord shrink. Doing this for every curve would be slow. Mathematicians looked for a pattern, and found one rule that works for every power of x. This chapter builds the rule and then uses it.

Start with y = x³. Take P = (x, x³) and Q = (x + h, (x + h)³). By the binomial expansion, (x + h)³ = x³ + 3x²h + 3xh² + h³. So the rise is 3x²h + 3xh² + h³, and the run is h. Dividing by h, the chord gradient is 3x² + 3xh + h².

Worked example

Find dy/dx for y = x³ from first principles, and then the gradient at x = 2.

  1. P = (x, x³) and Q = (x + h, (x + h)³).
  2. Expand: (x + h)³ = x³ + 3x²h + 3xh² + h³.
  3. The rise is (x + h)³ − x³ = 3x²h + 3xh² + h³. The run is h.
  4. The gradient of PQ is 3x² + 3xh + h².
  5. As h shrinks towards 0, the terms 3xh and h² shrink away, and only 3x² is left. So dy/dx = 3x².
  6. At x = 2 the gradient is 3 × 2² = 12.

Answer: dy/dx = 3x², and the gradient at x = 2 is 12.

Check this with numbers. At x = 2, the chord gradient for a step h is 12 + 6h + h², which you can see by putting x = 2 in 3x² + 3xh + h². For h = 1 it is 19. For h = 0.1 it is 12.61. Smaller steps give 12.0601 and 12.006. They close in on 12.

A table with the heads h and chord gradient. The rows read 1 and 19, 0.1 and 12.61, 0.01 and 12.0601, 0.001 and 12.006.hchord gradient1190.112.610.0112.06010.00112.006
Chords of y = x³ from x = 2 to x = 2 + h. The gradients close in on 12 = 3 × 2².

Now put the results side by side. The gradient function of x is 1, of x² is 2x, and of x³ is 3x². Each time, the power comes down in front as a multiplier, and the new power is one less. The next two follow the same pattern.

A table with the heads y and dy/dx. The rows read x and 1, x² and 2x, x³ and 3x², x⁴ and 4x³, x⁵ and 5x⁴.ydy/dxx1x²2xx³3x²x⁴4x³x⁵5x⁴
The power comes down as a multiplier and the power goes down by 1. For y = x the result is 1, because x = x¹ and x⁰ = 1.

The power rule. If y = xⁿ then dy/dx = nxⁿ⁻¹. This is true for every n. For a whole number n, you can prove it with the binomial expansion from the first book: (x + h)ⁿ = xⁿ + nxⁿ⁻¹h + terms with h² and higher powers. Subtract xⁿ, divide by h, and the first term is nxⁿ⁻¹ plus terms that carry a factor h. They vanish as h shrinks. Later in this chapter the same rule is used for negative and fractional powers.

See it three ways

With things

Think of the power as a ladder rung. To differentiate, step down one rung, and carry the old rung number out in front as a multiplier.

As a picture

Two boxes joined by an arrow. The first box reads xⁿ and the second box reads nxⁿ⁻¹. The arrow is named differentiate and the text under it reads × n, power − 1.xⁿdifferentiatenxⁿ⁻¹× n, power − 1

In words

Multiply by the power, then lower the power by one.

In symbols

d/dx (xⁿ) = nxⁿ⁻¹. For x⁵ the result is 5x⁴.

Three more facts let you differentiate whole expressions. First, a constant multiplier stays: d/dx (a xⁿ) = a × nxⁿ⁻¹. Second, a sum is differentiated term by term: the derivative of u + v is the derivative of u plus the derivative of v. Third, a constant, which is a plain number such as 7, has derivative 0, because the graph y = 7 is a flat line. In the same way y = mx + c has derivative m, the gradient you already know.

Worked example

Differentiate y = 3x⁴ − 2x + 7, and find the gradient at x = 2.

  1. Differentiate each term. For 3x⁴, multiply 3 by the power 4: 3 × 4 = 12, and lower the power to 3. This gives 12x³.
  2. For −2x, the power is 1. Multiply: −2 × 1 = −2, and the new power is 0, so x⁰ = 1. This gives −2.
  3. For the number 7, the derivative is 0.
  4. So dy/dx = 12x³ − 2.
  5. At x = 2 the gradient is 12 × 2³ − 2 = 12 × 8 − 2 = 96 − 2 = 94.

Answer: dy/dx = 12x³ − 2, and the gradient at x = 2 is 94.

Now the powers that are not whole numbers. The rule dy/dx = nxⁿ⁻¹ keeps working when n is negative or a fraction, as long as you first write the function as a power of x. A reciprocal 1/x^a is x^(−a). A square root √x is x^(1/2). A cube root is x^(1/3). The table lists the ones you will meet most.

A table with the heads y and as a power. The rows read 1/x and x⁻¹, 1/x² and x⁻², 1/x³ and x⁻³, √x and x^(1/2), 1/√x and x^(−1/2), cube root of x and x^(1/3).yas a power1/xx⁻¹1/x²x⁻²1/x³x⁻³√xx^(1/2)1/√xx^(−1/2)cube root of xx^(1/3)
Write the function as a power of x first. Then multiply by the power and lower the power by 1.

Worked example

Differentiate y = 4/x³ + 6√x.

  1. Write each term as a power of x. 4/x³ = 4x⁻³ and 6√x = 6x^(1/2).
  2. For 4x⁻³, multiply by the power −3: 4 × (−3) = −12.
  3. Lower the power by 1: −3 − 1 = −4. The term is −12x⁻⁴.
  4. For 6x^(1/2), multiply by the power 1/2: 6 × 1/2 = 3.
  5. Lower the power by 1: 1/2 − 1 = −1/2. The term is 3x^(−1/2), which is 3/√x.
  6. So dy/dx = −12x⁻⁴ + 3/√x.

Answer: dy/dx = −12x⁻⁴ + 3/√x.

A graph of the curve y = 1/x² for x from 0.5 to 3, with the x axis x and the y axis y. The curve is named y = 1/x². The point P at (1, 1) is on the curve and a tangent at P slopes down steeply and is named tangent.Ptangenty = 1/x²12312340xy
The curve y = 1/x² falls as x grows. At P (1, 1) the gradient is −2 × 1⁻³ = −2.

Worked example

Differentiate y = (2x + 1)(x − 3).

  1. The rules so far cannot differentiate a product directly. Expand the brackets first.
  2. (2x + 1)(x − 3) = 2x² − 6x + x − 3 = 2x² − 5x − 3.
  3. Differentiate: 2x² gives 4x, −5x gives −5, and −3 gives 0.
  4. So dy/dx = 4x − 5.

Answer: dy/dx = 4x − 5.

Try it

Test the rule with a calculator

You need: a calculator, paper and a pencil.

  1. Pick y = x³ and the point x = 2. Work out y at 2 and at 2.1. The cube of 2.1 is 9.261.
  2. The chord gradient is (9.261 − 8) ÷ 0.1. Write it down.
  3. Do the same with 2.01, then with 2.001.
  4. Compare each result with 3x² at x = 2.

What you will see: The chord gradients 12.61, 12.0601 and 12.006 move towards 12. The last row, limit, is 12, the value of 3x² at x = 2. The rule 3x² is the limit of these chords.

If you cannot try it, this is what happens.
A table with the heads h and chord gradient. The rows read 0.1 and 12.61, 0.01 and 12.0601, 0.001 and 12.006, limit and 12.hchord gradient0.112.610.0112.06010.00112.006limit12
Two graphs one above the other, with the same x axis x. The upper graph has the y axis y and the curve y = x³. The lower graph has the y axis gradient and the curve y = 3x². Dotted lines join a dot at x = −1, x = 1 and x = 2 on the cubic to the dot straight below on the lower curve.y = x³−212−8−4480xyy = 3x²−2−11248120xgradient
The gradient function 3x² is never negative, so the cubic never falls. It has gradient 3 at x = −1 and x = 1, and gradient 12 at x = 2. At x = 0 the gradient is 0.

A wrong idea many people have

The derivative of 1/x² is 1/(2x), found by differentiating the bottom.

Why it feels right: The bottom is x², and its derivative is 2x. So putting it under the 1 looks like a natural rule.

The test that breaks it: The curve y = 1/x² is falling at x = 1. Its chords from x = 1 to x = 1.1 and x = 1.01 have gradients about −1.74 and −1.97. But 1/(2x) at x = 1 is +0.5, a positive number.

What is true: Write 1/x² as x⁻² first. Then d/dx (x⁻²) = −2x⁻³, which is −2 at x = 1. The chord gradients are closing in on −2. There is no rule that differentiates the bottom of a fraction by itself.

A wrong idea many people have

The derivative of the number 7 is 7, or 1.

Why it feels right: In 7x the 7 stays, and in the rule "power in front" it feels as if a plain 7 should leave something behind.

The test that breaks it: Draw the graph y = 7. It is a flat horizontal line, and a flat line has gradient 0 everywhere. Using the rule, 7 = 7x⁰, so the derivative is 7 × 0 × x⁻¹ = 0.

What is true: The derivative of any constant is 0. It does not change, so its rate of change is zero. In y = 3x⁴ − 2x + 7, the 7 disappears.

A wrong idea many people have

The derivative of (x + 2)² is 2x, because the derivative of x² is 2x.

Why it feels right: The bracket looks like a shifted x, and the power 2 comes down. The shifted copy of 2x seems the same.

The test that breaks it: At x = 1, y = (x + 2)² = 9. At x = 1.01, y = 3.01² = 9.0601. The chord gradient is (9.0601 − 9) ÷ 0.01 = 6.01, but 2x gives 2.

What is true: Expand first: (x + 2)² = x² + 4x + 4, which differentiates to 2x + 4. At x = 1 that is 6. A power of a bracket needs expanding for now. In chapter 7 the chain rule handles it in one step.

Key words

derivative
the gradient function of a curve. If y = xⁿ it is nxⁿ⁻¹.
power rule
multiply by the power, then lower the power by 1.
constant
a plain number such as 7. Its derivative is 0.
reciprocal
the form 1/x^a, written as x^(−a) before you differentiate.

Back to your guess

The answer is A: The gradient function of y = x³ is dy/dx = 3x².

The gradient function of y = x³ is 3x². Chords show it: at x = 2 the chord gradients 19, 12.61, 12.06 and 12.006 close in on 12, which is 3 × 2². The rule is to multiply by the power and then lower the power by 1.

Check yourself

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

  1. What is the derivative of y = x⁵?

    Tap your answer.
    1. Yes, that is right. Multiply by the power 5, and lower the power to 4. This gives 5x⁴.

    2. Not this one. You brought the 5 down, but you did not lower the power. The power goes down by 1. Read this page again. Try another.

    3. Not this one. You lowered the power, but you forgot to bring the old power down in front as a multiplier. Read this page again. Try another.

    4. Not this one. The two numbers are the wrong way round. The old power 5 comes in front, and the new power 4 is the index. Read this page again. Try another.

    See the answer

    5x⁴

    Multiply by the power 5, and lower the power to 4. This gives 5x⁴.

    • If you chose B: You brought the 5 down, but you did not lower the power. The power goes down by 1. Read this page again.
    • If you chose C: You lowered the power, but you forgot to bring the old power down in front as a multiplier. Read this page again.
    • If you chose D: The two numbers are the wrong way round. The old power 5 comes in front, and the new power 4 is the index. Read this page again.
  2. What is the derivative of y = 6x²?

    Tap your answer.
    1. Not this one. You lowered the power but ignored the multiplier 2. Multiply 6 by the power 2 first: 6 × 2 = 12. Read this page again. Try another.

    2. Not this one. You halved the 6. The power 2 comes down and multiplies the 6. Read this page again. Try another.

    3. Yes, that is right. 6 × 2 = 12, and the power 2 becomes 1. The derivative of 6x² is 12x.

    4. Not this one. You multiplied by the power, but did not lower it. The new power is 2 − 1 = 1. Read this page again. Try another.

    See the answer

    12x

    6 × 2 = 12, and the power 2 becomes 1. The derivative of 6x² is 12x.

    • If you chose A: You lowered the power but ignored the multiplier 2. Multiply 6 by the power 2 first: 6 × 2 = 12. Read this page again.
    • If you chose B: You halved the 6. The power 2 comes down and multiplies the 6. Read this page again.
    • If you chose D: You multiplied by the power, but did not lower it. The new power is 2 − 1 = 1. Read this page again.
  3. What is the derivative of y = 7?

    Tap your answer.
    1. Not this one. A constant does not carry over. The graph y = 7 is flat, so its gradient is 0. Read this page again. Try another.

    2. Not this one. The gradient 1 belongs to y = x. A flat line has gradient 0. Read this page again. Try another.

    3. Not this one. You may have put a power of x back in. The derivative of a number is 0. Read this page again. Try another.

    4. Yes, that is right. The graph y = 7 is a flat line, so its gradient is 0 everywhere.

    See the answer

    0

    The graph y = 7 is a flat line, so its gradient is 0 everywhere.

    • If you chose A: A constant does not carry over. The graph y = 7 is flat, so its gradient is 0. Read this page again.
    • If you chose B: The gradient 1 belongs to y = x. A flat line has gradient 0. Read this page again.
    • If you chose C: You may have put a power of x back in. The derivative of a number is 0. Read this page again.
  4. To differentiate y = 5/x², what is the right first step?

    Tap your answer.
    1. Not this one. The x² is on the bottom of the fraction, so its power is negative. 1/x² is x⁻². Read this page again. Try another.

    2. Yes, that is right. 1/x² = x⁻², so 5/x² = 5x⁻². Then the derivative is 5 × (−2) x⁻³ = −10x⁻³.

    3. Not this one. There is no rule that differentiates the bottom of a fraction by itself. Write the whole term as a power of x. Read this page again. Try another.

    See the answer

    Write it as 5x⁻².

    1/x² = x⁻², so 5/x² = 5x⁻². Then the derivative is 5 × (−2) x⁻³ = −10x⁻³.

    • If you chose A: The x² is on the bottom of the fraction, so its power is negative. 1/x² is x⁻². Read this page again.
    • If you chose C: There is no rule that differentiates the bottom of a fraction by itself. Write the whole term as a power of x. Read this page again.
  5. From an earlier chapter

    The chords from P (3, 9) on y = x² to Q at x = 3.5, 3.1 and 3.01 have gradients 6.5, 6.1 and 6.01. What number do they close in on?

    Tap your answer.
    1. Not this one. That is the last chord, but it is not the limit. The gradients are still falling towards a number a little lower. Go to M5.4.1. Try another.

    2. Not this one. The number 9 is the height of P, not a gradient. Go to M5.4.1. Try another.

    3. Yes, that is right. Each chord gradient is 6 + h, with h = 0.5, 0.1 and 0.01. As h gets smaller, the gradient gets closer to 6. This agrees with dy/dx = 2x, which is 6 at x = 3.

    See the answer

    6

    Each chord gradient is 6 + h, with h = 0.5, 0.1 and 0.01. As h gets smaller, the gradient gets closer to 6. This agrees with dy/dx = 2x, which is 6 at x = 3.

    • If you chose A: That is the last chord, but it is not the limit. The gradients are still falling towards a number a little lower. Go to M5.4.1.
    • If you chose B: The number 9 is the height of P, not a gradient. Go to M5.4.1.
  6. What is the derivative of y = (x + 2)²?

    Tap your answer.
    1. Not this one. You differentiated x² and ignored the +2 inside the bracket. The bracket must be expanded first: x² + 4x + 4. Read this page again. Try another.

    2. Yes, that is right. Expand: (x + 2)² = x² + 4x + 4. The derivative is 2x + 4 + 0, which is 2x + 4. At x = 1 it is 6, as the chord gradients showed.

    3. Not this one. You may have lowered the power without multiplying. Expand first, then differentiate each term. Read this page again. Try another.

    4. Not this one. You differentiated 4x to 4 but did not differentiate x², and added the 4 back. Differentiate every term of x² + 4x + 4. Read this page again. Try another.

    See the answer

    2x + 4

    Expand: (x + 2)² = x² + 4x + 4. The derivative is 2x + 4 + 0, which is 2x + 4. At x = 1 it is 6, as the chord gradients showed.

    • If you chose A: You differentiated x² and ignored the +2 inside the bracket. The bracket must be expanded first: x² + 4x + 4. Read this page again.
    • If you chose C: You may have lowered the power without multiplying. Expand first, then differentiate each term. Read this page again.
    • If you chose D: You differentiated 4x to 4 but did not differentiate x², and added the 4 back. Differentiate every term of x² + 4x + 4. Read this page again.
  7. Differentiate y = 5x³ − 4x² + 2x − 9.

    See the answer

    15x² − 8x + 2

    5x³ gives 5 × 3 = 15, with the power 2. −4x² gives −4 × 2 = −8, with the power 1. 2x gives 2. The constant −9 gives 0.

  8. The curve is y = 2x³ − 5x + 1. Find the gradient where x = 3.

    See the answer

    49

    dy/dx = 6x² − 5. At x = 3 this is 6 × 9 − 5 = 54 − 5 = 49.

  9. Differentiate y = 6/x.

    See the answer

    −6x⁻²

    Write 6/x as 6x⁻¹. Multiply by the power −1: 6 × (−1) = −6. Lower the power: −1 − 1 = −2. The derivative is −6x⁻², which is −6/x².

  10. Differentiate y = 8√x. Write the answer as a number times a power of x.

    See the answer

    4x^(−1/2)

    Write 8√x as 8x^(1/2). Multiply by the power one half: 8 × 1/2 = 4. Lower the power: 1/2 − 1 = −1/2. The derivative is 4x^(−1/2), which is 4/√x.

Keep it

Copy this into your exercise book.

d/dx (xⁿ) = nxⁿ⁻¹. Constants stay, sums go term by term, a number goes to 0. Rewrite 1/x² as x⁻² and √x as x^(1/2) first.

Draw: A ladder of powers x, x², x³, x⁴ with the derivative beside each rung: 1, 2x, 3x², 4x³.

M5.4.3 Chapter 3

Tangents and normals

How do I write the equation of the straight line that just touches a curve at one point?

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

The derivative gives you the gradient of a curve at any point. A gradient and a point are exactly what you need to write the equation of a straight line. So the derivative lets you write the tangent at any point, and from the tangent you get the normal.

The tangent to the curve y = f(x) at the point where x = a is the line through P = (a, f(a)) with gradient f′(a). Use the equation of a line through a point: y − y₁ = m(x − x₁). Here (x₁, y₁) is P and m = f′(a). The three jobs are always the same. Find the y-coordinate of P. Find the gradient at P. Write the line.

The normal to a curve at P is the straight line through P at right angles to the tangent. Two lines at right angles are perpendicular. For perpendicular lines the gradients multiply to −1. So if the tangent has gradient m, the normal has gradient −1 ÷ m. You turn m upside down and change its sign.

A table with the heads tangent m and normal. The rows read 2 and −1/2, 5 and −1/5, −4 and 1/4, 0.25 and −4, 0 and upright line.tangent mnormal2−1/25−1/5−41/40.25−40upright line
The gradient of the normal is −1 ÷ m. A flat tangent, with m = 0, has an upright normal. An upright line has no gradient to write.

Worked example

Find the equation of the tangent and the normal to y = x³ − 2x + 1 at the point where x = 2.

  1. Find the y-coordinate of P. At x = 2, y = 2³ − 2 × 2 + 1 = 8 − 4 + 1 = 5. So P = (2, 5).
  2. Differentiate: dy/dx = 3x² − 2.
  3. The gradient at x = 2 is 3 × 2² − 2 = 10.
  4. The tangent is y − 5 = 10(x − 2). Expand the bracket: y = 10x − 20 + 5, so y = 10x − 15.
  5. The normal gradient is −1 ÷ 10 = −1/10.
  6. The normal is y − 5 = −(1/10)(x − 2). Multiply both sides by 10: 10y − 50 = −x + 2, so x + 10y = 52.

Answer: Tangent: y = 10x − 15. Normal: x + 10y = 52.

Check the tangent: the point P = (2, 5) must be on it. Put x = 2 in y = 10x − 15 and you get 20 − 15 = 5. Good. Check the normal too: 2 + 10 × 5 = 52. Good. Always do this check, since a slip in the algebra shows up here.

Draw it first

The tangent, then the normal

  1. A graph of the curve y = x² − 4x + 7 with the x axis x and the y axis y, with equal scales. The curve is named curve. The point P (3, 4) is on the curve. Step 1 adds the tangent at P, named tangent, which rises with gradient 2. Step 2 adds the dashed normal at P, named normal, which falls with gradient −1/2, with a small square marking the right angle between the two lines.P (3, 4)tangentcurve123456712345670xy

    1 The tangent at P touches the curve and has the same gradient as the curve there.

  2. A graph of the curve y = x² − 4x + 7 with the x axis x and the y axis y, with equal scales. The curve is named curve. The point P (3, 4) is on the curve. Step 1 adds the tangent at P, named tangent, which rises with gradient 2. Step 2 adds the dashed normal at P, named normal, which falls with gradient −1/2, with a small square marking the right angle between the two lines.P (3, 4)tangentnormalcurve123456712345670xy

    2 The normal at P is at right angles to the tangent, with gradient −1 ÷ the tangent gradient.

Worked example

The curve is y = x² − 4x + 7. Find the tangent and the normal at the point where x = 3.

  1. Find y at x = 3: 3² − 4 × 3 + 7 = 9 − 12 + 7 = 4. So P = (3, 4).
  2. Differentiate: dy/dx = 2x − 4.
  3. At x = 3 the gradient is 2 × 3 − 4 = 2.
  4. The tangent is y − 4 = 2(x − 3), so y = 2x − 6 + 4 and y = 2x − 2.
  5. The normal gradient is −1 ÷ 2 = −1/2.
  6. The normal is y − 4 = −(1/2)(x − 3). Multiply by 2: 2y − 8 = −x + 3. So x + 2y = 11.

Answer: Tangent: y = 2x − 2. Normal: x + 2y = 11.

Sometimes you are given the gradient and must find the point. A tangent that is parallel to a given line has the same gradient as that line. Set the derivative equal to that gradient, solve for x, and then find y.

Worked example

Find the point on y = x² − 6x + 5 where the tangent is parallel to the line y = 2x + 1. Then write the tangent.

  1. Parallel lines have equal gradients. The line y = 2x + 1 has gradient 2.
  2. Differentiate: dy/dx = 2x − 6.
  3. Set 2x − 6 = 2. Then 2x = 8, and x = 4.
  4. At x = 4, y = 16 − 24 + 5 = −3. So the point is (4, −3).
  5. The tangent is y + 3 = 2(x − 4), so y = 2x − 8 − 3 and y = 2x − 11.

Answer: The point is (4, −3) and the tangent is y = 2x − 11.

A graph of the curve y = x² − 6x + 5, named curve, with the x axis x and the y axis y. The point P at (4, −3) is on the curve. A solid tangent at P is named tangent. A dashed straight line, parallel to it, is named y = 2x + 1.Py = 2x + 1tangentcurve1234567−448120xy
The curve is y = x² − 6x + 5. The tangent at P (4, −3) is parallel to the dashed line y = 2x + 1. Both have gradient 2.

See it three ways

With things

Lay a ruler against the bend of a round tin, so that it touches at one point. That ruler is the tangent. Stand a set square on the ruler at the touching point and draw along its upright edge. That line is the normal.

As a picture

A graph of the curve y = x² with the x axis x and the y axis y, with equal scales. The point P is at (1, 1). The tangent at P is named tangent and the dashed normal at P is named normal. A small square marks the right angle at P.Ptangentnormaly = x²−2−11234−1123450xy

In words

The tangent has the gradient of the curve at P. The normal goes through P at right angles to the tangent.

In symbols

Tangent: y − y₁ = m(x − x₁), with m = f′(a). Normal gradient: −1 ÷ m.

Try it

Draw a tangent and a normal

You need: squared paper, a ruler, a set square or the corner of a sheet of paper, a pencil.

  1. Draw axes from −2 to 2 across and 0 to 4 up, with 2 squares for each unit in both directions. Plot y = x² at x = −2, −1, 0, 1 and 2, and join the dots with a smooth curve.
  2. Lay the ruler so that it touches the curve at (1, 1) and does not cut across it. Draw the tangent. Read its rise over its run.
  3. Place the corner of a sheet of paper on the tangent at the point (1, 1) and draw along the other edge of the corner. This is the normal. Read its gradient.
  4. Multiply the gradient of the tangent by the gradient of the normal.

What you will see: The tangent has gradient about 2 and the normal has gradient about −0.5. Their product is about −1, as the rule says.

If you cannot try it, this is what happens.
A table with the heads line and gradient. The rows read tangent and 2, normal and −0.5, product and −1.linegradienttangent2normal−0.5product−1

A wrong idea many people have

The gradient of the tangent at x = 2 is the y-coordinate of the point, so for y = x² + 3 the gradient is 7.

Why it feels right: You work with y = f(x) all the time, and f(2) = 7 is the first number you find. It is a quick slip to put the wrong number into the line equation.

The test that breaks it: Take the chords on y = x² + 3 from P (2, 7) to x = 3, 2.1 and 2.01. Their gradients are 5, 4.1 and 4.01. They close in on 4, not on 7.

What is true: The y-coordinate f(2) tells you where P is. The gradient is f′(2), found by differentiating first: dy/dx = 2x, so the gradient is 4 at x = 2. You need both numbers: f(a) for the point and f′(a) for the gradient.

A wrong idea many people have

The normal has gradient −m, the tangent gradient with its sign changed.

Why it feels right: If the tangent goes up, the normal goes down, so it seems enough to flip the sign. Lines with gradients 1 and −1 are at right angles, and that example supports the idea.

The test that breaks it: Take a tangent with gradient 2, and a line with gradient −2. A step of 1 across moves the first line up 2 and the second down 2. The lines are mirror images of each other, but they are not perpendicular. The product of the gradients is 2 × (−2) = −4, not −1.

What is true: Perpendicular lines have gradients that multiply to −1. For m = 2 the normal gradient is −1/2. You must turn the number upside down as well as change its sign. The case of 1 and −1 only works because 1 turned upside down is still 1.

A wrong idea many people have

A tangent touches a curve at one point and never meets the curve again.

Why it feels right: On a circle a tangent touches at one point only. The name "touches" suggests the line leaves the curve for good.

The test that breaks it: The tangent to y = x³ at x = 1 is y = 3x − 2. Put x = −2 in both. The curve gives (−2)³ = −8 and the line gives 3 × (−2) − 2 = −8. They meet again at (−2, −8).

What is true: A tangent matches the curve in direction at one point. Further along, a curve can bend back across the line. What defines the tangent is its gradient at the point of contact, not that it meets the curve only once.

A graph of the curve y = x³ with the x axis x and the y axis y. The point P at (1, 1) is on the curve and the tangent at P is named tangent. The tangent meets the curve again at the dot named Q at (−2, −8).PQtangent−3−2−1123−12−8−448120xy
The tangent y = 3x − 2 touches y = x³ at P (1, 1) and meets it again at Q (−2, −8).

Key words

tangent
the line through a point on a curve with the same gradient as the curve there.
normal
the line through a point on a curve at right angles to the tangent there.
perpendicular
at right angles. The gradients of perpendicular lines multiply to −1.
parallel
with the same gradient. Two parallel lines never meet.

Back to your guess

The answer is A: The tangent to y = x² at (1, 1) is y = 2x − 1.

The tangent is y = 2x − 1. Its gradient at (1, 1) is 2, and it must pass through (1, 1). The line y = 2x goes through (0, 0), not (1, 1), and y = 2x + 1 gives 3 at x = 1. Only y = 2x − 1 gives 1 at x = 1.

Check yourself

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

  1. Which line is the tangent to y = x² at the point (2, 4)?

    Tap your answer.
    1. Not this one. The gradient 4 is right, but this line goes through (0, 0), not through (2, 4). At x = 2 it gives 8. Read this page again. Try another.

    2. Yes, that is right. dy/dx = 2x, so the gradient at x = 2 is 4. The line is y − 4 = 4(x − 2), so y = 4x − 8 + 4 = 4x − 4.

    3. Not this one. You used the x value 2 as the gradient. The gradient is dy/dx = 2x = 4 at x = 2. Read this page again. Try another.

    4. Not this one. The line must pass through (2, 4). At x = 2 this gives 12, so the sign of the 4 is wrong. Read this page again. Try another.

    See the answer

    y = 4x − 4

    dy/dx = 2x, so the gradient at x = 2 is 4. The line is y − 4 = 4(x − 2), so y = 4x − 8 + 4 = 4x − 4.

    • If you chose A: The gradient 4 is right, but this line goes through (0, 0), not through (2, 4). At x = 2 it gives 8. Read this page again.
    • If you chose C: You used the x value 2 as the gradient. The gradient is dy/dx = 2x = 4 at x = 2. Read this page again.
    • If you chose D: The line must pass through (2, 4). At x = 2 this gives 12, so the sign of the 4 is wrong. Read this page again.
  2. The tangent to a curve at P has gradient 5. What is the gradient of the normal at P?

    Tap your answer.
    1. Not this one. That is the gradient of the tangent. The normal is at right angles to it. Read this page again. Try another.

    2. Not this one. You changed the sign but did not turn the number upside down. The product of the gradients 5 and −5 is −25, not −1. Read this page again. Try another.

    3. Yes, that is right. Perpendicular gradients multiply to −1. We need 5 × m = −1, so m = −1/5.

    See the answer

    −1/5

    Perpendicular gradients multiply to −1. We need 5 × m = −1, so m = −1/5.

    • If you chose A: That is the gradient of the tangent. The normal is at right angles to it. Read this page again.
    • If you chose B: You changed the sign but did not turn the number upside down. The product of the gradients 5 and −5 is −25, not −1. Read this page again.
  3. What is the gradient of the tangent to y = x² − 4x + 7 at the point where x = 3?

    Tap your answer.
    1. Not this one. That is the y-coordinate of the point (3, 4), found by putting x = 3 in the curve. The gradient needs the derivative. Read this page again. Try another.

    2. Not this one. That is the x-coordinate. Put x = 3 into dy/dx = 2x − 4. Read this page again. Try another.

    3. Not this one. Check the sign. 2 × 3 − 4 = 6 − 4 = 2, which is positive. Read this page again. Try another.

    4. Yes, that is right. dy/dx = 2x − 4. At x = 3, the gradient is 2 × 3 − 4 = 2.

    See the answer

    2

    dy/dx = 2x − 4. At x = 3, the gradient is 2 × 3 − 4 = 2.

    • If you chose A: That is the y-coordinate of the point (3, 4), found by putting x = 3 in the curve. The gradient needs the derivative. Read this page again.
    • If you chose B: That is the x-coordinate. Put x = 3 into dy/dx = 2x − 4. Read this page again.
    • If you chose C: Check the sign. 2 × 3 − 4 = 6 − 4 = 2, which is positive. Read this page again.
  4. A tangent has gradient 2. Mei says the normal has gradient −2. What is right?

    Tap your answer.
    1. Yes, that is right. Perpendicular gradients multiply to −1. We need 2 × m = −1, so m = −1/2. The line with gradient −2 would give 2 × (−2) = −4.

    2. Not this one. Changing the sign gives a mirror image of the tangent, not a perpendicular line. 2 × (−2) = −4, not −1. Read this page again. Try another.

    3. Not this one. A normal to a rising tangent falls. Two perpendicular lines have gradients of opposite signs, and their product is −1. Read this page again. Try another.

    See the answer

    The normal has gradient −1/2.

    Perpendicular gradients multiply to −1. We need 2 × m = −1, so m = −1/2. The line with gradient −2 would give 2 × (−2) = −4.

    • If you chose B: Changing the sign gives a mirror image of the tangent, not a perpendicular line. 2 × (−2) = −4, not −1. Read this page again.
    • If you chose C: A normal to a rising tangent falls. Two perpendicular lines have gradients of opposite signs, and their product is −1. Read this page again.
  5. From an earlier chapter

    Differentiate y = 4x³ − x².

    Tap your answer.
    1. Not this one. You brought the power down but did not lower it. The power goes down by 1. Go to M5.4.2. Try another.

    2. Not this one. You lowered the powers but did not multiply by the old powers. Go to M5.4.2. Try another.

    3. Yes, that is right. 4x³ gives 4 × 3 = 12 with the power 2. x² gives 2x. So dy/dx = 12x² − 2x.

    See the answer

    12x² − 2x

    4x³ gives 4 × 3 = 12 with the power 2. x² gives 2x. So dy/dx = 12x² − 2x.

    • If you chose A: You brought the power down but did not lower it. The power goes down by 1. Go to M5.4.2.
    • If you chose B: You lowered the powers but did not multiply by the old powers. Go to M5.4.2.
  6. A line touches a curve at the point P. Which statement is always true?

    Tap your answer.
    1. Not this one. A tangent can meet the curve again. The tangent to y = x³ at x = 1 also meets the curve at (−2, −8). Read this page again. Try another.

    2. Yes, that is right. That is what a tangent is. A tangent can meet the curve again elsewhere, and its gradient is f′(a), not the y-coordinate of P.

    3. Not this one. The gradient is f′(a), not f(a). The y-coordinate tells you where P is. Read this page again. Try another.

    See the answer

    If it is the tangent at P, it has the same gradient as the curve at P.

    That is what a tangent is. A tangent can meet the curve again elsewhere, and its gradient is f′(a), not the y-coordinate of P.

    • If you chose A: A tangent can meet the curve again. The tangent to y = x³ at x = 1 also meets the curve at (−2, −8). Read this page again.
    • If you chose C: The gradient is f′(a), not f(a). The y-coordinate tells you where P is. Read this page again.
  7. Find the equation of the tangent to y = x³ − 2x + 1 at the point where x = 1. Write it as y = mx + c.

    See the answer

    y = x − 1

    At x = 1, y = 1 − 2 + 1 = 0 and dy/dx = 3x² − 2 = 1. So y − 0 = 1(x − 1), which is y = x − 1.

  8. The tangent to y = x² at x = 5 meets the y axis at the point (0, c). What is c?

    See the answer

    −25

    At x = 5, y = 25 and the gradient is 2 × 5 = 10. The tangent is y − 25 = 10(x − 5), so y = 10x − 25. It meets the y axis where x = 0, so c = −25.

  9. The curve is y = x² − 6x + 5. At which value of x is the tangent parallel to the line y = 4x + 1?

    See the answer

    5

    The line has gradient 4. dy/dx = 2x − 6. Set 2x − 6 = 4, so 2x = 10 and x = 5.

  10. Find the normal to y = x² + 2x at the point where x = 1. Write it as x + ny = c.

    See the answer

    x + 4y = 13

    At x = 1, y = 3 and dy/dx = 2x + 2 = 4. The normal gradient is −1/4. So y − 3 = −(1/4)(x − 1). Multiply by 4: 4y − 12 = −x + 1, so x + 4y = 13.

Keep it

Copy this into your exercise book.

Tangent: find y, find dy/dx, then y − y₁ = m(x − x₁). Normal gradient is −1/m. Check the point lies on both lines. Parallel tangents share a gradient.

Draw: A curve with a point P, a tangent through P, and a normal at right angles, with a small square at P.

M5.4.4 Chapter 4

Turning points

Where does a curve stop going up and start going down?

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

Walk over a hill and watch the slope under your feet. On the way up it is positive. Over the top it is flat for an instant. On the way down it is negative. The same thing happens at the bottom of a valley. At both places the tangent to the curve is a flat, horizontal line, so the gradient is 0.

A point where dy/dx = 0 is a stationary point. A stationary point where the curve changes from rising to falling is a maximum, and where it changes from falling to rising is a minimum. Maxima and minima are the turning points of a curve. The recipe is short: differentiate, set the derivative equal to 0, solve for x, and then find y.

A graph of the curve y = x² − 4x + 5 with the x axis x and the y axis y. Three points on the curve are named A at x = 1, B at x = 2 and C at x = 3. Short tangents are drawn at each. The tangent at A slopes down, the tangent at B is flat, and the tangent at C slopes up.ABC12341234560xy
The curve y = x² − 4x + 5. At A (x = 1) the gradient is −2, at B (x = 2) it is 0, and at C (x = 3) it is 2. The gradient goes from negative to 0 to positive, so B is a minimum.

The gradient function of this curve is dy/dx = 2x − 4. It equals 0 when x = 2. Putting x = 2 back in the curve gives y = 4 − 8 + 5 = 1. So the turning point is (2, 1). Because the gradient goes from − to 0 to +, it is a minimum.

Worked example

Find the stationary points of y = x³ − 3x² − 9x + 5 and say whether each is a maximum or a minimum.

  1. Differentiate: dy/dx = 3x² − 6x − 9.
  2. Set dy/dx = 0: 3x² − 6x − 9 = 0. Divide by 3: x² − 2x − 3 = 0.
  3. Factorise: (x − 3)(x + 1) = 0, so x = 3 or x = −1.
  4. Find y at x = 3: 27 − 27 − 27 + 5 = −22.
  5. Find y at x = −1: −1 − 3 + 9 + 5 = 10.
  6. Differentiate again: d²y/dx² = 6x − 6.
  7. At x = 3 it is 12, which is positive, so (3, −22) is a minimum. At x = −1 it is −12, which is negative, so (−1, 10) is a maximum.

Answer: Minimum at (3, −22). Maximum at (−1, 10).

Two graphs one above the other, with the same x axis x. The upper graph has the y axis y and the curve named cubic. The lower graph has the y axis gradient and the curve named dy/dx. Dotted lines join the dot at x = −1 and the dot at x = 3 on the cubic to the dots on the lower curve, where the gradient is 0.cubic24−20−100xydy/dx−24−151530450xgradient
The cubic is y = x³ − 3x² − 9x + 5 and the lower graph is its gradient function, dy/dx = 3x² − 6x − 9. The gradient is 0 at x = −1 and x = 3, exactly where the cubic has its maximum and its minimum.

The second derivative tells you which kind of stationary point you have, without testing either side. Differentiate dy/dx once more. The result is written d²y/dx² or f″(x). It is the rate at which the gradient itself is changing. If the gradient is rising, the curve bends upward like a bowl, and the stationary point is a minimum. If the gradient is falling, the curve bends downward like a cap, and the point is a maximum.

See it three ways

With things

A ball rolls in a bowl. At the bottom it is for a moment flat. Roll it on top of an upside down bowl and the same flat spot is at the top. One spot is stable and the other is not, but the slope is 0 in both.

As a picture

Three boxes joined by two arrows. The first box reads y and the second reads y′ and the third reads y″. Both arrows are named d/dx. Under the first arrow is y′ = 0 and under the second arrow is y″ > 0: min.yd/dxy′d/dxy″y′ = 0y″ > 0: min

In words

Set the first derivative to 0 to find where. Use the sign of the second derivative to find what: positive is a minimum, negative is a maximum.

In symbols

dy/dx = 0 gives the turning points. d²y/dx² > 0: minimum. d²y/dx² < 0: maximum. d²y/dx² = 0: not enough to tell.

When d²y/dx² = 0 you cannot tell from the second derivative alone, and you must look at the sign of the gradient on each side. A stationary point where the gradient does not change sign is a point of inflection. The curve goes flat for a moment and then carries on in the same direction. The table lists what the gradient does.

A table with the heads kind and gradient. The rows read maximum and +, 0, −; minimum and −, 0, +; rising flat and +, 0, +; falling flat and −, 0, −.kindgradientmaximum+, 0, −minimum−, 0, +rising flat+, 0, +falling flat−, 0, −
The sign of the gradient just before the point, at the point, and just after it, in that order.

Worked example

Find the stationary point of y = x⁴. Use the sign of the gradient on both sides of it to say what kind it is.

  1. Differentiate: dy/dx = 4x³. Set it to 0: 4x³ = 0, so x = 0. The point is (0, 0).
  2. The second derivative is 12x², which is 0 at x = 0. It does not tell us the kind of point.
  3. Test the gradient just before: at x = −0.5, dy/dx = 4 × (−0.5)³ = −0.5.
  4. Test the gradient just after: at x = 0.5, dy/dx = 4 × 0.5³ = 0.5.
  5. The gradient goes from negative to 0 to positive, so (0, 0) is a minimum.

Answer: The gradient is −0.5 before and 0.5 after, so it is a minimum.

A graph of two curves through the origin, with the x axis x and the y axis y. The curve y = x³ rises through the origin with a flat spot there. The curve y = x⁴ has a flat bottom at the origin and rises on both sides. The curves are named y = x³ and y = x⁴.y = x³y = x⁴−11−2−112340xy
Both curves have dy/dx = 0 at the origin. The gradient of y = x⁴ changes sign there, so it is a minimum. The gradient of y = x³ stays positive on both sides, so it is a point of inflection.

Worked example

A stone is thrown upward. Its height after t seconds is h = 20t − 5t² metres. Find its greatest height.

  1. Differentiate: dh/dt = 20 − 10t. This is the speed of the stone in m/s.
  2. At the top the stone is stopped for an instant, so dh/dt = 0. Then 20 − 10t = 0, so t = 2.
  3. Check the type: d²h/dt² = −10, which is negative, so this is a maximum.
  4. At t = 2, h = 20 × 2 − 5 × 2² = 40 − 20 = 20.

Answer: The greatest height is 20 m, after 2 s.

Try it

Zoom in on a minimum

You need: a calculator, paper and a pencil.

  1. Take y = x² − 6x + 5. Find its derivative, 2x − 6, and its stationary point at x = 3.
  2. Work out y for x = 2.9, 3 and 3.1. Write down the three heights.
  3. Work out dy/dx = 2x − 6 for the same three values of x.
  4. Look at how the height changes near the bottom, and how the gradient changes.

What you will see: Near x = 3 the height barely changes, which is why the bottom looks flat. The gradient goes from −0.2 through 0 to 0.2.

If you cannot try it, this is what happens.
A table with the heads x, y and dy/dx. The rows read 2.9 and −3.99 and −0.2, 3 and −4 and 0, 3.1 and −3.99 and 0.2.xydy/dx2.9−3.99−0.23−403.1−3.990.2

A wrong idea many people have

If dy/dx = 0 at a point, that point must be a maximum or a minimum.

Why it feels right: Most of the examples you meet are hills and valleys, and the gradient is 0 at the top and bottom of each one. It is natural to think that a flat tangent always means a turning point.

The test that breaks it: Take y = x³. Its gradient 3x² is 0 at x = 0. But the gradient is positive just before 0 and positive just after, so the curve keeps rising through the origin. It is never a hilltop or a valley bottom.

What is true: A stationary point can be a maximum, a minimum, or a point of inflection. To tell them apart, use the second derivative, or look at the sign of the gradient on each side. The condition dy/dx = 0 only finds where the tangent is flat.

A wrong idea many people have

The maximum of the cubic y = x³ − 3x² − 9x + 5 is 10, the highest value the curve ever reaches.

Why it feels right: The word maximum sounds like the largest value of all. The point (−1, 10) is the top of the hill you can see, so it feels like the highest point.

The test that breaks it: Put x = 6 into the cubic: 216 − 108 − 54 + 5 = 59. The curve rises above 10 on the right, and it keeps rising for larger x.

What is true: A maximum found by calculus is a local maximum: the highest point in its own neighbourhood. A cubic goes up without limit on the right, so no single largest value exists. Say "a local maximum at (−1, 10)".

A wrong idea many people have

If the second derivative is 0 at a stationary point, there is no turning point there.

Why it feels right: For the examples with 6x − 6 and 2, the second derivative gave a clear answer. A result of 0 looks like "no answer", and so no turning point.

The test that breaks it: For y = x⁴ the second derivative 12x² is 0 at x = 0. Yet the gradient goes from −0.5 to 0 to 0.5 on either side, so (0, 0) is a minimum.

What is true: When d²y/dx² = 0, the test has not decided. The point could be a maximum, a minimum or an inflection. Look at the sign of dy/dx just before and just after the point.

Key words

stationary point
a point on a curve where dy/dx = 0, so the tangent is flat.
maximum
a stationary point where the curve goes from rising to falling.
minimum
a stationary point where the curve goes from falling to rising.
turning point
a maximum or a minimum.
second derivative
the derivative of the derivative, written d²y/dx² or f″(x).
point of inflection
a point where the bending of the curve changes. If it is also stationary, the gradient keeps its sign.

Back to your guess

The answer is C: At the top of a hill on a smooth curve, the gradient is exactly 0.

The gradient is exactly 0 at the top. Just before the top the curve is still rising, so the gradient is positive. Just after it, the curve falls, so the gradient is negative. A gradient that goes from positive to negative must pass through 0, and the top is where it does.

Check yourself

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

  1. At the top of a smooth hill on a curve, the gradient is:

    Tap your answer.
    1. Not this one. The gradient is largest where the curve is steepest, not at the top. At the top the tangent is flat. Read this page again. Try another.

    2. Yes, that is right. The gradient is positive before the top and negative after it. It passes through 0 at the top, where the tangent is horizontal.

    3. Not this one. Just after the top the gradient is negative, but at the top itself the gradient is 0. Read this page again. Try another.

    See the answer

    0

    The gradient is positive before the top and negative after it. It passes through 0 at the top, where the tangent is horizontal.

    • If you chose A: The gradient is largest where the curve is steepest, not at the top. At the top the tangent is flat. Read this page again.
    • If you chose C: Just after the top the gradient is negative, but at the top itself the gradient is 0. Read this page again.
  2. Find the x-coordinates of the stationary points of y = x³ − 12x.

    Tap your answer.
    1. Not this one. Setting 3x² − 12 = 0 gives x² = 4. That has two solutions, 2 and −2. Read this page again. Try another.

    2. Not this one. You may have solved x² = 4 as x = ±4. The square root of 4 is 2. Read this page again. Try another.

    3. Not this one. You solved x³ − 12x = 0, which is the curve itself. Differentiate first, and solve 3x² − 12 = 0. Read this page again. Try another.

    4. Yes, that is right. dy/dx = 3x² − 12. Set it to 0: x² = 4, so x = 2 or x = −2.

    See the answer

    x = −2 and x = 2

    dy/dx = 3x² − 12. Set it to 0: x² = 4, so x = 2 or x = −2.

    • If you chose A: Setting 3x² − 12 = 0 gives x² = 4. That has two solutions, 2 and −2. Read this page again.
    • If you chose B: You may have solved x² = 4 as x = ±4. The square root of 4 is 2. Read this page again.
    • If you chose C: You solved x³ − 12x = 0, which is the curve itself. Differentiate first, and solve 3x² − 12 = 0. Read this page again.
  3. For y = x² − 6x + 5 the second derivative is 2 everywhere. What does this tell you about the stationary point?

    Tap your answer.
    1. Yes, that is right. A positive second derivative means the gradient is rising, so the curve bends upward like a bowl. A stationary point on it is a minimum.

    2. Not this one. A maximum has a negative second derivative. The value 2 is positive. Read this page again. Try another.

    3. Not this one. A point of inflection has a second derivative of 0 there. Here it is 2, so the bend is upward. Read this page again. Try another.

    4. Not this one. A positive second derivative decides the matter: the curve bends up, so the stationary point is a minimum. Read this page again. Try another.

    See the answer

    It is a minimum.

    A positive second derivative means the gradient is rising, so the curve bends upward like a bowl. A stationary point on it is a minimum.

    • If you chose B: A maximum has a negative second derivative. The value 2 is positive. Read this page again.
    • If you chose C: A point of inflection has a second derivative of 0 there. Here it is 2, so the bend is upward. Read this page again.
    • If you chose D: A positive second derivative decides the matter: the curve bends up, so the stationary point is a minimum. Read this page again.
  4. For y = x³ the gradient 3x² is 0 at x = 0. What kind of point is (0, 0)?

    Tap your answer.
    1. Yes, that is right. The gradient 3x² is positive just before 0 and just after it, so the curve keeps rising and flattens for an instant.

    2. Not this one. The gradient is positive on both sides, so the curve does not go down and then up. Read this page again. Try another.

    3. Not this one. The gradient is positive on both sides, so the curve does not rise and then fall. Read this page again. Try another.

    4. Not this one. It is stationary, because dy/dx = 0 there. But the gradient does not change sign, so it is not a turning point. Read this page again. Try another.

    See the answer

    A stationary point of inflection

    The gradient 3x² is positive just before 0 and just after it, so the curve keeps rising and flattens for an instant.

    • If you chose B: The gradient is positive on both sides, so the curve does not go down and then up. Read this page again.
    • If you chose C: The gradient is positive on both sides, so the curve does not rise and then fall. Read this page again.
    • If you chose D: It is stationary, because dy/dx = 0 there. But the gradient does not change sign, so it is not a turning point. Read this page again.
  5. From an earlier chapter

    The tangent to a curve at x = 2 has gradient 4 and passes through the point (2, 7). Which line is it?

    Tap your answer.
    1. Not this one. At x = 2 this line gives 9, not 7. Use y − 7 = 4(x − 2). Go to M5.4.3. Try another.

    2. Not this one. This line passes through (2, 8), not (2, 7). It has the right gradient but the wrong position. Go to M5.4.3. Try another.

    3. Yes, that is right. y − 7 = 4(x − 2), so y = 4x − 8 + 7 = 4x − 1.

    See the answer

    y = 4x − 1

    y − 7 = 4(x − 2), so y = 4x − 8 + 7 = 4x − 1.

    • If you chose A: At x = 2 this line gives 9, not 7. Use y − 7 = 4(x − 2). Go to M5.4.3.
    • If you chose B: This line passes through (2, 8), not (2, 7). It has the right gradient but the wrong position. Go to M5.4.3.
  6. Which statement about y = x³ − 3x² − 9x + 5 is true?

    Tap your answer.
    1. Not this one. At x = 6 the curve is at 59, so it goes well above 10. Read this page again. Try another.

    2. Yes, that is right. The gradient goes from positive to negative at x = −1, so it is a local maximum. At x = 6 the curve is at 59, which is higher.

    3. Not this one. There is a local maximum at (−1, 10). A curve can have turning points without a greatest value overall. Read this page again. Try another.

    See the answer

    The point (−1, 10) is a local maximum, but the curve rises higher further to the right.

    The gradient goes from positive to negative at x = −1, so it is a local maximum. At x = 6 the curve is at 59, which is higher.

    • If you chose A: At x = 6 the curve is at 59, so it goes well above 10. Read this page again.
    • If you chose C: There is a local maximum at (−1, 10). A curve can have turning points without a greatest value overall. Read this page again.
  7. Find the x-coordinate of the stationary point of y = x² − 6x + 5.

    See the answer

    3

    dy/dx = 2x − 6. Set it to 0: 2x = 6, so x = 3. The second derivative is 2, so it is a minimum.

  8. Find the minimum value of y = x² − 6x + 5.

    See the answer

    −4

    The minimum is at x = 3. There, y = 9 − 18 + 5 = −4.

  9. A stone is thrown upward and its height is h = 30t − 5t² metres after t seconds. Ignore the air. What is its greatest height, in metres?

    See the answer

    45

    dh/dt = 30 − 10t = 0 at t = 3. Then h = 90 − 45 = 45 m. The second derivative is −10, so it is a maximum.

  10. Find the y-coordinate of the minimum point of y = x³ − 6x² + 9x + 2.

    See the answer

    2

    dy/dx = 3x² − 12x + 9 = 0 gives x = 1 or x = 3. The second derivative 6x − 12 is positive at x = 3, so the minimum is at x = 3, where y = 27 − 54 + 27 + 2 = 2.

Keep it

Copy this into your exercise book.

Turning points: dy/dx = 0, solve for x, then find y. y″ > 0 minimum, y″ < 0 maximum, y″ = 0 look at the sign of the gradient either side. A maximum is only local.

Draw: A wavy curve with a hilltop and a valley, flat tangents drawn at both, and plus and minus signs for the gradient on each side.

M5.4.5 Chapter 5

Biggest and smallest

What is the biggest box I can fold from one square sheet of card?

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

Many real problems ask you to optimise, which means to find the best value: the biggest volume, the least cost, the shortest fence. A turning point is exactly the best value of a quantity that rises and then falls, or falls and then rises. This chapter turns word problems into a function of one variable, and then uses the method of the last chapter.

The method has the same steps every time. One: draw the situation and name the quantity you want to make biggest or smallest. Two: write that quantity using one variable only. Three: state the values the variable is allowed to take. Four: differentiate, set the derivative to 0 and solve. Five: reject any answer that is not allowed. Six: show that the answer is a maximum or a minimum. Seven: answer the question, with units.

Draw it first

From a flat sheet to an open box

  1. A flat square sheet, then the open box it folds into, drawn at the same scale. Step 1 shows the square sheet of side 30 cm with a square of side x cut from each corner, hatched, and the middle labelled 30 − 2x. Step 2 adds the open box below it, with height x and a square base of side 30 − 2x.xxxx30 − 2x30 cm

    1 Start with a square sheet of side 30 cm. Cut a square of side x from each corner. The hatched squares are thrown away.

  2. A flat square sheet, then the open box it folds into, drawn at the same scale. Step 1 shows the square sheet of side 30 cm with a square of side x cut from each corner, hatched, and the middle labelled 30 − 2x. Step 2 adds the open box below it, with height x and a square base of side 30 − 2x.xxxx30 − 2x30 cmx30 − 2x30 − 2x

    2 Fold up the four sides. The box has height x and a square base of side 30 − 2x.

The volume is base area times height. The base is a square of side 30 − 2x, so its area is (30 − 2x)². The height is x. So V = x(30 − 2x)². The variable x cannot be 0 or less, since you must cut something. It must also be less than 15, since two cuts of 15 cm would use up the whole 30 cm side and leave a base of side 0. So the allowed values are 0 < x < 15. These allowed values are called the domain.

A table with the heads x (cm) and V (cm³). The rows read 1 and 784, 2 and 1352, 3 and 1728, 4 and 1936, 5 and 2000, 6 and 1944, 7 and 1792, 8 and 1568, 10 and 1000.x (cm)V (cm³)178421352317284193652000619447179281568101000
The volume V = x(30 − 2x)² for some cuts. It rises to a peak near x = 5 and then falls.

Worked example

A square sheet of side 30 cm has squares of side x cut from its corners, and is folded into an open box. Find x for the greatest volume, and that volume.

  1. The base has side 30 − 2x and the height is x. The volume is V = x(30 − 2x)².
  2. Expand: (30 − 2x)² = 900 − 120x + 4x². So V = 900x − 120x² + 4x³, with 0 < x < 15.
  3. Differentiate: dV/dx = 900 − 240x + 12x².
  4. Set dV/dx = 0. Divide by 12: x² − 20x + 75 = 0.
  5. Factorise: (x − 5)(x − 15) = 0, so x = 5 or x = 15.
  6. x = 15 is not allowed, because the base would have side 0. So x = 5.
  7. The second derivative is 24x − 240. At x = 5 it is 24 × 5 − 240 = −120, which is negative, so it is a maximum.
  8. The greatest volume is V = 5 × (30 − 10)² = 5 × 400 = 2000 cm³.

Answer: Cut squares of side 5 cm. The greatest volume is 2000 cm³.

A graph of the volume V in cm³ against the cut x in cm, with the x axis x (cm) and the y axis volume (cm³). The curve rises from 0 at x = 0 to a peak and then falls to 0 at x = 15. The peak is a dot named maximum at x = 5 and V = 2000.maximum510154008001 2001 6002 0002 4000x (cm)volume (cm³)
The volume is 0 at x = 0 and at x = 15. It peaks at x = 5 with V = 2000 cm³. The root x = 15 of dV/dx = 0 is the other end, where the volume is 0.

See it three ways

With things

Cut a square of paper, 20 cm each side, and make boxes with different corner cuts. A small cut makes a low, wide box. A big cut makes a tall box with a small base. Compare how much rice each holds.

As a picture

An open box, drawn in three dimensions. Its height is labelled x and the side of its square base is labelled 20 − 2x along the front and along the depth.x20 − 2x20 − 2x

In words

The volume is base area times height, and it depends on the size of the corner cut. There is one best cut.

In symbols

V = x(20 − 2x)². dV/dx = 0 gives x = 10/3 and a volume of about 592.6 cm³.

The second problem is a fence. A farmer wants a rectangular pen of area 200 m². One side is a long wall and needs no fence. The other three sides are fenced. What size of pen needs the least fence? The area is fixed, and a fixed condition like this is a constraint. It will let you write the length of one side using the other.

A rectangular pen with a hatched wall along the top. The two sides that meet the wall are each labelled x. The side opposite the wall is labelled y. The area inside is labelled 200 m².wallxxy200 m²
The fence goes along three sides: two sides of length x and one side of length y. The wall needs none.

Worked example

A pen of area 200 m² has a wall along one side. Find the dimensions that use the least fence, and the length of that fence.

  1. Let the sides that meet the wall have length x metres, and the side parallel to the wall have length y metres.
  2. The fence length is L = 2x + y. This has two variables. The area gives xy = 200, so y = 200/x.
  3. So L = 2x + 200/x = 2x + 200x⁻¹, with x > 0.
  4. Differentiate: dL/dx = 2 − 200x⁻² = 2 − 200/x².
  5. Set dL/dx = 0: 2 = 200/x², so x² = 100 and x = 10 (the other root, −10, is not allowed).
  6. Then y = 200 ÷ 10 = 20.
  7. The second derivative is 400/x³. At x = 10 it is 0.4, which is positive, so L has a minimum.
  8. The least fence is L = 2 × 10 + 20 = 40 m.

Answer: The pen is 10 m by 20 m, and the least fence is 40 m.

A graph of the fence length L in metres against x in metres, with the x axis x (m) and the y axis fence (m). The curve falls steeply, reaches a lowest point and then rises slowly. The lowest point is a dot named minimum at x = 10 and L = 40.minimum1020204060801000x (m)fence (m)
A narrow pen needs a long y, and a wide pen needs a long x. The least fence, 40 m, is at x = 10.

Worked example

Two numbers add up to 20. What is the greatest value of their product?

  1. Let the numbers be x and 20 − x. The product is P = x(20 − x) = 20x − x².
  2. Differentiate: dP/dx = 20 − 2x. Set it to 0: x = 10.
  3. The second derivative is −2, which is negative, so it is a maximum.
  4. The product is P = 10 × 10 = 100.

Answer: The greatest product is 100.

Try it

Fold boxes from a paper square

You need: a square of paper or card 20 cm by 20 cm, scissors, a ruler, tape.

  1. Cut four squares of side 2 cm from the corners of the sheet. Fold up the sides and tape the corners. Measure the base side and the height.
  2. Work out the volume with V = x(20 − 2x)². Do the same for a cut of 3 cm, and 4 cm, using new sheets.
  3. Check the volumes with a table. Look for the cut that gives the largest box.
  4. Compare your result with 3.3 cm, which is close to the exact answer 10 ÷ 3 cm.

What you will see: The volume rises and then falls as the cut grows. The best whole number cut is 3 cm, and the best cut overall is a little above it, 3.33 cm.

If you cannot try it, this is what happens.
A table with the heads x (cm) and V (cm³). The rows read 1 and 324, 2 and 512, 3 and 588, 4 and 576, 5 and 500.x (cm)V (cm³)13242512358845765500

A wrong idea many people have

A table of whole number cuts shows the best cut exactly: for the 20 cm sheet it is 3 cm.

Why it feels right: The table shows the biggest volume at 3 cm, 588 cm³, and each side of it is smaller. So 3 cm looks like the top of the hill.

The test that breaks it: Try 3.3 cm. The volume is 3.3 × (20 − 6.6)² = 3.3 × 13.4² = 592.5 cm³. That is bigger than 588 cm³.

What is true: A table of whole numbers only shows the region of the best value. Calculus finds it exactly. Here dV/dx = 0 gives x = 10 ÷ 3, about 3.33 cm, with V = 592.6 cm³.

A wrong idea many people have

Every solution of dV/dx = 0 is a possible answer. For the box, both x = 5 and x = 15 are good.

Why it feels right: Solving dV/dx = 0 gives two values of x, and each is a stationary point. It seems that both belong in the answer.

The test that breaks it: Put x = 15 in the box. The base has side 30 − 30 = 0 and the height is 15. The volume is 0, which is the smallest value, not the largest.

What is true: Always check each solution against the allowed values, here 0 < x < 15, and against the question. A solution outside the range, or one that gives a minimum, is rejected. Then say why.

A wrong idea many people have

For the pen, L = 2x + y, so dL/dx = 2. The fence has no turning point and there is no least value.

Why it feels right: You differentiate the formula you have written, and the derivative of 2x is 2. The y looks like a constant.

The test that breaks it: The area is fixed, so when x is large y must be small, and when x is small y must be large. The side y is not a constant. It depends on x, through xy = 200.

What is true: Use the fixed area to write y in terms of x first: y = 200/x. Then L = 2x + 200/x depends on x only, and dL/dx = 2 − 200/x². Always remove the second variable before you differentiate.

Key words

optimise
to find the greatest or the least value of a quantity.
constraint
a fixed condition that links the variables, such as the area xy = 200. It lets you write one variable using the other.
domain
the values of x that make sense in the problem, such as 0 < x < 15.
local maximum
the highest point in its own neighbourhood. A cubic can go higher elsewhere.

Back to your guess

The answer is C: A square sheet 30 cm by 30 cm has a square cut from each corner, and the sides fold up. The box holds the most when each cut square has sides of 5 cm.

The best cut is 5 cm, which gives a box of 2000 cm³. With 2 cm squares the box holds 1352 cm³, and with 10 cm squares it holds only 1000 cm³. A small cut makes a wide, shallow box. A big cut makes a tall, narrow one. The best is between, and calculus finds it exactly.

Check yourself

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

  1. For the open box made from a 30 cm sheet, V = x(30 − 2x)². Which values of x make sense?

    Tap your answer.
    1. Yes, that is right. The cut must be positive, and the base side 30 − 2x must be positive. So x > 0 and x < 15.

    2. Not this one. A cut of 20 cm from both ends would use up more than the 30 cm side. The base side 30 − 2x must be above 0, so x < 15. Read this page again. Try another.

    3. Not this one. A large x makes 30 − 2x negative, which is not a length. The base side must be above 0, so x < 15. Read this page again. Try another.

    4. Not this one. You may have divided 30 by 3. The only limits are that the cut is positive and that 30 − 2x is positive, so x < 15. Read this page again. Try another.

    See the answer

    0 < x < 15

    The cut must be positive, and the base side 30 − 2x must be positive. So x > 0 and x < 15.

    • If you chose B: A cut of 20 cm from both ends would use up more than the 30 cm side. The base side 30 − 2x must be above 0, so x < 15. Read this page again.
    • If you chose C: A large x makes 30 − 2x negative, which is not a length. The base side must be above 0, so x < 15. Read this page again.
    • If you chose D: You may have divided 30 by 3. The only limits are that the cut is positive and that 30 − 2x is positive, so x < 15. Read this page again.
  2. Solving dV/dx = 0 for the box gives x = 5 and x = 15. Which is rejected, and why?

    Tap your answer.
    1. Not this one. At x = 5 the second derivative is negative, so it is a maximum. That is the answer. Read this page again. Try another.

    2. Yes, that is right. At x = 15, 30 − 2x = 0, so there is no box and the volume is 0.

    3. Not this one. At x = 15 the box has no base and no volume. A solution must be checked against the allowed values. Read this page again. Try another.

    See the answer

    x = 15, because the base would have side 0.

    At x = 15, 30 − 2x = 0, so there is no box and the volume is 0.

    • If you chose A: At x = 5 the second derivative is negative, so it is a maximum. That is the answer. Read this page again.
    • If you chose C: At x = 15 the box has no base and no volume. A solution must be checked against the allowed values. Read this page again.
  3. The fence round a pen of area 200 m² against a wall is L = 2x + 200/x. What is dL/dx?

    Tap your answer.
    1. Not this one. The derivative of 200x⁻¹ is −200x⁻². The sign is negative because the power −1 comes down in front. Go to M5.4.2. Try another.

    2. Not this one. The power must go down by 1: x⁻¹ becomes x⁻², so the denominator is x². Go to M5.4.2. Try another.

    3. Not this one. The derivative of 2x is 2, not 2x. The power 1 comes down and the new power is 0. Go to M5.4.2. Try another.

    4. Yes, that is right. Write L = 2x + 200x⁻¹. The derivative of 2x is 2, and the derivative of 200x⁻¹ is −200x⁻² = −200/x².

    See the answer

    2 − 200/x²

    Write L = 2x + 200x⁻¹. The derivative of 2x is 2, and the derivative of 200x⁻¹ is −200x⁻² = −200/x².

    • If you chose A: The derivative of 200x⁻¹ is −200x⁻². The sign is negative because the power −1 comes down in front. Go to M5.4.2.
    • If you chose B: The power must go down by 1: x⁻¹ becomes x⁻², so the denominator is x². Go to M5.4.2.
    • If you chose C: The derivative of 2x is 2, not 2x. The power 1 comes down and the new power is 0. Go to M5.4.2.
  4. From an earlier chapter

    The second derivative at a turning point is −6. What kind of point is it?

    Tap your answer.
    1. Not this one. A minimum has a positive second derivative. This one is negative. Go to M5.4.4. Try another.

    2. Not this one. An inflection needs a second derivative of 0, and then the sign of the gradient does not change. Go to M5.4.4. Try another.

    3. Yes, that is right. A negative second derivative means the gradient is falling, so the curve bends like a cap. A stationary point on it is a maximum.

    See the answer

    A maximum

    A negative second derivative means the gradient is falling, so the curve bends like a cap. A stationary point on it is a maximum.

    • If you chose A: A minimum has a positive second derivative. This one is negative. Go to M5.4.4.
    • If you chose B: An inflection needs a second derivative of 0, and then the sign of the gradient does not change. Go to M5.4.4.
  5. Why do we check a solution of dV/dx = 0 after we find it?

    Tap your answer.
    1. Yes, that is right. The conditions dV/dx = 0 only find where the tangent is flat. You still need to check the domain and the type of point.

    2. Not this one. Slips in algebra do happen, but the main reason is different: a stationary point can be outside the domain or be the wrong type. Read this page again. Try another.

    3. Not this one. The solutions of dV/dx = 0 can include a minimum, or a value outside the domain, such as x = 15 for the box. Read this page again. Try another.

    See the answer

    The solution may be outside the allowed values, or may be a minimum, not a maximum.

    The conditions dV/dx = 0 only find where the tangent is flat. You still need to check the domain and the type of point.

    • If you chose B: Slips in algebra do happen, but the main reason is different: a stationary point can be outside the domain or be the wrong type. Read this page again.
    • If you chose C: The solutions of dV/dx = 0 can include a minimum, or a value outside the domain, such as x = 15 for the box. Read this page again.
  6. The pen of area 200 m² has x = 10 m. How long is y, the side parallel to the wall, in metres?

    Tap your answer.
    1. Not this one. That is x. The area is x times y, so y = 200 ÷ 10. Read this page again. Try another.

    2. Not this one. You divided by 40. Use xy = 200 with x = 10. Read this page again. Try another.

    3. Not this one. That is the length of the fence in metres, not the side y. Read this page again. Try another.

    4. Yes, that is right. The area is xy = 200. With x = 10, y = 200 ÷ 10 = 20 m.

    See the answer

    20

    The area is xy = 200. With x = 10, y = 200 ÷ 10 = 20 m.

  7. What is the greatest volume of an open box made from a square sheet of side 24 cm, in cm³?

    See the answer

    1024

    dV/dx = (24 − 2x)(24 − 6x) = 0 gives x = 4, since x = 12 leaves no base. The second derivative 24x − 192 is −96 at x = 4, so it is a maximum. Then V = 4 × (24 − 8)² = 4 × 256 = 1024 cm³.

  8. A pen of area 128 m² has a wall along one side. What is the least length of fence, in metres?

    See the answer

    32

    L = 2x + 128/x and dL/dx = 2 − 128/x² = 0 gives x = 8. The second derivative 256/x³ is 0.5 at x = 8, so it is a minimum. Then y = 128 ÷ 8 = 16, and L = 2 × 8 + 16 = 32 m.

  9. A rectangle has area 100 m². There is no wall, so all four sides count. What is the least perimeter, in metres?

    See the answer

    40

    With sides x and 100/x, the perimeter is P = 2x + 200/x. This is the same function as before, and it is least at x = 10. The rectangle is a 10 m by 10 m square, and P = 40 m.

  10. For the box from a 30 cm sheet, V = 900x − 120x² + 4x³. Find dV/dx.

    See the answer

    900 − 240x + 12x²

    900x gives 900. −120x² gives −240x. 4x³ gives 12x². So dV/dx = 900 − 240x + 12x².

Keep it

Copy this into your exercise book.

Optimise: one variable, allowed values, differentiate, set to 0, reject what is not allowed, test max or min, answer with units. Box from 30 cm sheet: x = 5, V = 2000.

Draw: A square sheet with corner squares marked x, beside the open box it folds into, with V = x(30 − 2x)².

M5.4.6 Chapter 6

Exponentials, logs and trig functions

What are the gradient functions of eˣ, ln x, 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

You can now differentiate every power of x. But the curves that model growth, decay and waves are not powers. They are eˣ, ln x, sin x and cos x. Their derivatives turn out to be as short as the power rule, and they are results you will use again and again.

Start with eˣ. Take any base a above 1, and ask how steep y = aˣ is at x = 0, where the height is 1. The chord from x = 0 to x = h has gradient (a^h − 1) ÷ h. Use a small step such as h = 0.001 and a calculator. The table shows the answer for three bases.

A table with the heads base a and gradient at x = 0. The rows read 2 and 0.6934, e and 1.0005, 3 and 1.0992.base agradient at x = 020.6934e1.000531.0992
The chord gradient at x = 0 for y = aˣ, with h = 0.001. A base of 2 is a little too gentle and a base of 3 is a little too steep. The base e gives a gradient of about 1. With a smaller h it gets closer to 1.

The base 2 gives a gradient below 1, and the base 3 gives one above 1. Somewhere between them is a base where the gradient at x = 0 is exactly 1. That base is the number e, about 2.718. This is the best way to describe e: it is the base whose curve has gradient 1 at height 1.

Now take any x. The chord gradient of eˣ from x to x + h is (e^(x + h) − eˣ) ÷ h. Write e^(x + h) = eˣ × e^h. Then the chord gradient is eˣ × (e^h − 1) ÷ h. The part (e^h − 1) ÷ h is the gradient at 0, which tends to 1. So the whole chord gradient tends to eˣ × 1. The result: if y = eˣ then dy/dx = eˣ. The gradient of the curve at every point is equal to its height.

Two graphs one above the other, with the same x axis x. The upper graph has the y axis y and the curve named eˣ. The lower graph has the y axis gradient and a curve named eˣ, which is the same curve. Dotted lines join a dot at x = −1, x = 0 and x = 1 on the upper curve to the dot straight below on the lower one, at the same height.eˣ−2−11224680xyeˣ−2−11224680xgradient
The gradient graph of y = eˣ is the same curve. At x = 0 the height is 1 and the gradient is 1. At x = 1 both are e = 2.72.

Next, ln x. The curves y = eˣ and y = ln x are mirror images in the line y = x. A mirror swaps across and up. So it swaps the rise and the run of any tangent, and turns a gradient m into 1 ÷ m. On y = eˣ the point (1, e) has gradient e. Its mirror image on y = ln x is the point (e, 1), and the gradient there is 1/e. In general, at x = b on y = ln x the gradient is 1/b. So if y = ln x then dy/dx = 1/x.

A graph with equal scales on the x axis x and the y axis y. The curve eˣ and the curve ln x are drawn, and the dashed line y = x lies between them as a mirror. The point P is at (1, 2.72) on eˣ and the point Q is at (2.72, 1) on ln x. A tangent at P rises steeply and a dashed tangent at Q rises gently.PQy = xeˣln x123412340xy
The mirror line y = x swaps the two curves. The tangent at P (1, 2.72) has gradient e = 2.72. Its mirror image, the tangent at Q (2.72, 1), has gradient 1/e = 0.37.

Now sin x and cos x. Look at the gradient of y = sin x with the picture below. The curve starts at 0 and climbs. Its gradient is highest at x = 0, flat at the top, and negative as it falls. That is exactly the shape of the cosine curve. In fact, if y = sin x then dy/dx = cos x. And if y = cos x then dy/dx = −sin x. The cosine curve starts at its top, where its gradient is 0. Its gradient is −sin x, which is 0 at x = 0 and then negative.

Two graphs one above the other, with the same x axis x (radians). The upper graph has the y axis y and the curve sin x. The lower graph has the y axis gradient and the curve cos x. Dotted lines join a dot at x = 0, x = 1.57 and x = 3.14 on the sine curve to the dot straight below on the cosine curve.sin x123457−110x (radians)ycos x134567−110x (radians)gradient
The gradient of sin x is cos x. At x = 0 the gradient is 1. At x = π/2 the sine is at its top and the gradient is 0. At x = π the sine is falling and the gradient is −1.

Both results come with a warning. They are true only when x is measured in radians. The reason is in the gradient of sin x at 0. The chord from 0 to h has gradient sin h ÷ h. With h in radians this tends to 1. If h were in degrees, the same chord would have a gradient of about 0.01745, which is π ÷ 180, because 1 degree is only π/180 of a radian.

Here is the reason in a picture. Take a circle of radius 1. An angle of h radians at the centre cuts off an arc of length exactly h, since a radian is defined by arc ÷ radius. The height of the point above the x axis is sin h. For a small angle the arc and the height are almost the same, so sin h ÷ h is close to 1. In degrees the arc is only πh/180 long, and the ratio of height to angle is about π/180.

A circle of radius 1 with its centre O at the origin and the axes x and y. The point P is on the circle, and the radius OP is labelled 1. The angle at the centre between the x axis and the line OP is labelled h. The arc of the circle from the x axis to P is drawn thick and labelled arc h. A dashed line drops from P to the x axis and is labelled sin h, and the stretch along the x axis is labelled cos h.xycos hsin hharc h1PO
On the unit circle an angle of h radians cuts off an arc of length h, drawn thick. The height of P is sin h. For a small h the two are nearly equal, so sin h ÷ h is close to 1. The picture uses h = 1.25 so that the names fit.
A table with the heads h, radians and degrees. The rows read 1 and 0.84147 and 0.01745, 0.1 and 0.99833 and 0.01745, 0.01 and 0.99998 and 0.01745.hradiansdegrees10.841470.017450.10.998330.017450.010.999980.01745
The value of sin h ÷ h for small h, with the calculator in radian mode and in degree mode. In radians it goes to 1. In degrees it sits at 0.01745, which is π ÷ 180.

Worked example

Estimate the gradient of y = sin x at x = 0, with the chord for h = 0.01. Do it with the calculator in radian mode and in degree mode.

  1. The chord from x = 0 to x = 0.01 has gradient (sin 0.01 − sin 0) ÷ 0.01 = sin 0.01 ÷ 0.01.
  2. In radian mode, sin 0.01 = 0.0099998. So the gradient is 0.0099998 ÷ 0.01 = 0.99998.
  3. In degree mode, sin 0.01° = 0.00017453. So the gradient is 0.00017453 ÷ 0.01 = 0.01745.
  4. Only the radian value is close to cos 0 = 1. In degree mode the rule dy/dx = cos x fails, because the answer is π/180 times too small.

Answer: Radian mode gives 0.99998 and degree mode gives 0.01745.

See it three ways

With things

Spin a bicycle wheel and watch a spot on the rim. The height of the spot goes up and down like sin x. How fast it is rising or falling at each moment is like cos x. The speed is biggest when the spot passes the middle height.

As a picture

A table with the heads y and dy/dx. The rows read eˣ and eˣ; ln x and 1/x; sin x and cos x; cos x and −sin x.ydy/dxeˣeˣln x1/xsin xcos xcos x−sin x

In words

The gradient of eˣ is eˣ. The gradient of ln x is 1 over x. The gradient of sin x is cos x, and the gradient of cos x is minus sin x, with x in radians.

In symbols

d/dx (eˣ) = eˣ, d/dx (ln x) = 1/x, d/dx (sin x) = cos x, d/dx (cos x) = −sin x.

These results work with the earlier rules. A constant multiplier stays, and a sum is differentiated term by term. So the derivative of 3eˣ is 3eˣ, and the derivative of 5 sin x is 5 cos x.

Worked example

Differentiate y = 4 sin x − 3 cos x + 2eˣ, and find the gradient at x = 0.

  1. Differentiate each term. The derivative of 4 sin x is 4 cos x.
  2. The derivative of −3 cos x is −3 × (−sin x) = 3 sin x.
  3. The derivative of 2eˣ is 2eˣ.
  4. So dy/dx = 4 cos x + 3 sin x + 2eˣ.
  5. At x = 0: cos 0 = 1, sin 0 = 0 and e⁰ = 1. So the gradient is 4 × 1 + 3 × 0 + 2 × 1 = 6.

Answer: dy/dx = 4 cos x + 3 sin x + 2eˣ, and the gradient at x = 0 is 6.

Worked example

Find the minimum point of y = eˣ − 2x.

  1. Differentiate: dy/dx = eˣ − 2.
  2. Set it to 0: eˣ = 2. Take natural logs: x = ln 2 = 0.693, to 3 decimal places.
  3. The second derivative is eˣ, which is always positive, so this is a minimum.
  4. At the minimum, y = e^(ln 2) − 2 ln 2 = 2 − 2 × 0.693 = 0.614.

Answer: The minimum is at (0.693, 0.614).

Try it

Test eˣ with a calculator

You need: a calculator with an eˣ key, paper and a pencil.

  1. Work out e¹ and e^1.001 on the calculator. Write down both, with at least 6 decimal places.
  2. Find the chord gradient (e^1.001 − e¹) ÷ 0.001.
  3. Compare it with the height e¹ = 2.718.
  4. Do the same at x = 2, using e² and e^2.001.

What you will see: The chord gradient is nearly equal to the height of the curve each time. This is the property of eˣ: its gradient equals its height.

If you cannot try it, this is what happens.
A table with the heads x, height and chord. The rows read 0 and 1 and 1.0005, 1 and 2.7183 and 2.7196, 2 and 7.3891 and 7.3928.xheightchord011.000512.71832.719627.38917.3928

A wrong idea many people have

The derivative of eˣ follows the power rule, so it is xeˣ⁻¹.

Why it feels right: The power rule is the one derivative you know well. The expression eˣ has x in a power, so it feels as if it should be brought down in front.

The test that breaks it: In the power rule, the base is the variable and the power is a fixed number. In eˣ the base is the fixed number e and the variable is the power. At x = 0, xeˣ⁻¹ gives 0, but the chord gradient of eˣ at 0 is about 1.

What is true: The power rule is for xⁿ. The function eˣ is an exponential. Its derivative is eˣ itself. Do not use the power rule when the variable is in the power.

A wrong idea many people have

The derivative of ln x is ln(x) × x, or the derivative of x with ln written in front.

Why it feels right: Logs look complicated, so a complicated result looks reasonable. A product or an extra ln seems a natural result.

The test that breaks it: At x = 4, the chord gradient of ln x is (ln 4.01 − ln 4) ÷ 0.01 = 0.2497. The claim ln 4 × 4 would give 5.5, far too big. And 1/x = 0.25.

What is true: The derivative of ln x is 1/x. It is the reciprocal of the gradient of eˣ at the mirror point. The curve y = ln x is steep near x = 0 and gets flatter as x grows, which 1/x does too.

A wrong idea many people have

The results for sin x and cos x work in degrees as well as in radians.

Why it feels right: The same curve is drawn whichever unit you use, so the gradient looks the same. A calculator accepts x in either mode.

The test that breaks it: The table above showed that sin h ÷ h goes to 1 in radian mode, and sits at 0.01745 in degree mode. The rule dy/dx = cos x would give 1 at x = 0, so it fails in degrees.

What is true: The results d/dx (sin x) = cos x and d/dx (cos x) = −sin x need x in radians. In degrees, a factor π/180 appears in front of each. Always set the calculator to radian mode in calculus.

Key words

e
the base, about 2.718, for which the curve y = aˣ has gradient 1 where it crosses the y axis.
natural logarithm
ln x, the logarithm to base e. It is the inverse of eˣ.
radian
the unit of angle in which d/dx (sin x) = cos x. π radians = 180°.
exponential
a function with the variable in the power, such as eˣ.

Back to your guess

The answer is B: The curve y = eˣ has height 1 at x = 0. Its gradient at x = 0 is 1.

The gradient is exactly 1 at x = 0, the same as the height. This is what makes e special. The curve y = eˣ has gradient equal to its height at every point, so its derivative is eˣ itself.

Check yourself

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

  1. What is the derivative of y = eˣ?

    Tap your answer.
    1. Yes, that is right. The gradient of the curve y = eˣ is equal to its height at every point. So dy/dx = eˣ.

    2. Not this one. That uses the power rule, which is for xⁿ. In eˣ the variable is in the power, not the base. Read this page again. Try another.

    3. Not this one. The gradient of eˣ at x = 0 is 1, but at x = 1 it is e. The derivative is a function of x, and it is eˣ. Read this page again. Try another.

    4. Not this one. The number e is the value of eˣ at x = 1. The derivative is eˣ, the same function. Read this page again. Try another.

    See the answer

    eˣ

    The gradient of the curve y = eˣ is equal to its height at every point. So dy/dx = eˣ.

    • If you chose B: That uses the power rule, which is for xⁿ. In eˣ the variable is in the power, not the base. Read this page again.
    • If you chose C: The gradient of eˣ at x = 0 is 1, but at x = 1 it is e. The derivative is a function of x, and it is eˣ. Read this page again.
    • If you chose D: The number e is the value of eˣ at x = 1. The derivative is eˣ, the same function. Read this page again.
  2. What is the derivative of y = ln x?

    Tap your answer.
    1. Not this one. The derivative of ln x gets smaller as x grows, because the curve flattens. A derivative of x would grow. Read this page again. Try another.

    2. Not this one. That is the derivative of eˣ. The function ln x is the inverse of eˣ, and its gradient is the reciprocal. Read this page again. Try another.

    3. Yes, that is right. The curve y = ln x is the mirror image of y = eˣ in y = x. A mirror turns a gradient m into 1/m, which gives 1/x.

    See the answer

    1/x

    The curve y = ln x is the mirror image of y = eˣ in y = x. A mirror turns a gradient m into 1/m, which gives 1/x.

    • If you chose A: The derivative of ln x gets smaller as x grows, because the curve flattens. A derivative of x would grow. Read this page again.
    • If you chose B: That is the derivative of eˣ. The function ln x is the inverse of eˣ, and its gradient is the reciprocal. Read this page again.
  3. What is the derivative of y = sin x, with x in radians?

    Tap your answer.
    1. Not this one. The gradient of sin x at x = 0 is +1, but −cos 0 = −1. The sign is wrong. Read this page again. Try another.

    2. Yes, that is right. The gradient of the sine curve is 1 at x = 0, 0 at the top, and −1 on the way down at x = π. That is cos x.

    3. Not this one. That is the function itself, not its gradient. At x = 0 the gradient of sin x is 1, but sin 0 = 0. Read this page again. Try another.

    4. Not this one. That is the derivative of cos x. At x = 0 the gradient of sin x is 1, but −sin 0 = 0. Read this page again. Try another.

    See the answer

    cos x

    The gradient of the sine curve is 1 at x = 0, 0 at the top, and −1 on the way down at x = π. That is cos x.

    • If you chose A: The gradient of sin x at x = 0 is +1, but −cos 0 = −1. The sign is wrong. Read this page again.
    • If you chose C: That is the function itself, not its gradient. At x = 0 the gradient of sin x is 1, but sin 0 = 0. Read this page again.
    • If you chose D: That is the derivative of cos x. At x = 0 the gradient of sin x is 1, but −sin 0 = 0. Read this page again.
  4. What is the derivative of y = cos x, with x in radians?

    Tap your answer.
    1. Not this one. The cosine curve starts at its top, where the gradient is 0, then falls. sin x is positive just after 0, but the gradient is negative. Read this page again. Try another.

    2. Not this one. At x = 0 the gradient of cos x is 0, but −cos 0 = −1. Read this page again. Try another.

    3. Not this one. At x = 0 the gradient of cos x is 0, but cos 0 = 1. Read this page again. Try another.

    4. Yes, that is right. The cosine curve is flat at x = 0 and then falls, so its gradient is 0 and then negative. That is −sin x.

    See the answer

    −sin x

    The cosine curve is flat at x = 0 and then falls, so its gradient is 0 and then negative. That is −sin x.

    • If you chose A: The cosine curve starts at its top, where the gradient is 0, then falls. sin x is positive just after 0, but the gradient is negative. Read this page again.
    • If you chose B: At x = 0 the gradient of cos x is 0, but −cos 0 = −1. Read this page again.
    • If you chose C: At x = 0 the gradient of cos x is 0, but cos 0 = 1. Read this page again.
  5. From an earlier chapter

    Which step comes first when you solve a problem about the biggest or smallest value?

    Tap your answer.
    1. Yes, that is right. The function must have one variable before it can be differentiated. For the box it was V = x(30 − 2x)², and for the fence L = 2x + 200/x.

    2. Not this one. You can only differentiate once the quantity is written using one variable, with its allowed values stated. Go to M5.4.5. Try another.

    3. Not this one. Rounding comes last. First write the quantity with one variable, then differentiate. Go to M5.4.5. Try another.

    See the answer

    Write the quantity using one variable.

    The function must have one variable before it can be differentiated. For the box it was V = x(30 − 2x)², and for the fence L = 2x + 200/x.

    • If you chose B: You can only differentiate once the quantity is written using one variable, with its allowed values stated. Go to M5.4.5.
    • If you chose C: Rounding comes last. First write the quantity with one variable, then differentiate. Go to M5.4.5.
  6. The gradient of y = sin x at x = 0 is 1 only if x is measured in what unit?

    Tap your answer.
    1. Not this one. In degrees the gradient at 0 is about 0.01745. The result depends on the unit. Read this page again. Try another.

    2. Not this one. The rule gives different values in the two units, so the unit matters. Read this page again. Try another.

    3. Yes, that is right. A radian is the angle for which the arc equals the radius. With radians, sin h ÷ h goes to 1 for small h. With degrees it goes to π/180.

    See the answer

    radians

    A radian is the angle for which the arc equals the radius. With radians, sin h ÷ h goes to 1 for small h. With degrees it goes to π/180.

    • If you chose A: In degrees the gradient at 0 is about 0.01745. The result depends on the unit. Read this page again.
    • If you chose B: The rule gives different values in the two units, so the unit matters. Read this page again.
  7. The curve is y = 3eˣ + 5 sin x − 2 cos x. Find the gradient at x = 0.

    See the answer

    8

    dy/dx = 3eˣ + 5 cos x + 2 sin x. At x = 0 this is 3 × 1 + 5 × 1 + 2 × 0 = 8.

  8. Find the gradient of y = ln x at x = 4.

    See the answer

    0.25

    dy/dx = 1/x. At x = 4 the gradient is 1/4 = 0.25.

  9. Find the x-coordinate of the minimum point of y = 4x − ln x.

    See the answer

    0.25

    dy/dx = 4 − 1/x. Set it to 0: 1/x = 4, so x = 1/4 = 0.25. The second derivative is 1/x², which is positive, so it is a minimum.

  10. In degree mode, work out sin 0.01° ÷ 0.01 to 5 decimal places. This is the chord gradient of sin x at 0, with the angle in degrees.

    See the answer

    0.01745

    In degree mode sin 0.01° = 0.00017453. Divide by 0.01 to get 0.01745. This is π ÷ 180, not 1, so the rule dy/dx = cos x fails in degrees.

Keep it

Copy this into your exercise book.

eˣ gives eˣ. ln x gives 1/x. sin x gives cos x. cos x gives −sin x. Radians only: in degrees a factor π/180 appears. Constants stay, sums go term by term.

Draw: A sine curve above a cosine curve, with a dotted line from a point on the sine to the matching height of the cosine.

M5.4.7 Chapter 7

Chain, product and quotient rules

How do I differentiate a function inside another function, a product, or a fraction?

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

So far you can differentiate xⁿ, eˣ, ln x, sin x and cos x, and sums of them. But most functions are built in other ways. The function (3x + 1)⁵ is a function inside another function. The function x² sin x is a product of two functions. The function (2x + 1) ÷ (x − 3) is a quotient. Each needs a rule of its own.

The chain rule is for a function of a function. Write y = u⁵ where u = 3x + 1. Then y depends on u, and u depends on x, like links in a chain. Now think of rates. If u changes 3 times as fast as x, and y changes 5u⁴ times as fast as u, then y changes 5u⁴ × 3 times as fast as x.

Draw it first

The chain of rates

  1. Three boxes x, u and y joined by two arrows. The first arrow is named 3x + 1 and the second arrow is named u⁵. Step 1 writes a rate under each arrow: du/dx = 3 under the first and dy/du = 5u⁴ under the second. Step 2 writes the result dy/dx = 15u⁴ at the bottom.x3x + 1uu⁵ydu/dx = 3dy/du = 5u⁴

    1 The rate along each arrow is the derivative of that step.

  2. Three boxes x, u and y joined by two arrows. The first arrow is named 3x + 1 and the second arrow is named u⁵. Step 1 writes a rate under each arrow: du/dx = 3 under the first and dy/du = 5u⁴ under the second. Step 2 writes the result dy/dx = 15u⁴ at the bottom.x3x + 1uu⁵ydu/dx = 3dy/du = 5u⁴dy/dx = 15u⁴

    2 Multiply the two rates. This gives dy/dx = 5u⁴ × 3 = 15u⁴.

The chain rule says: if y is a function of u and u is a function of x, then dy/dx = dy/du × du/dx. The symbols dy/du and du/dx look like fractions, and in this case multiplying them works as if the du cancelled. It is a rule you can trust, but remember that dy/dx is one symbol and not a real fraction.

Worked example

Differentiate y = (3x + 1)⁵.

  1. Let u = 3x + 1. Then y = u⁵.
  2. Differentiate each link: dy/du = 5u⁴ and du/dx = 3.
  3. Multiply: dy/dx = 5u⁴ × 3 = 15u⁴.
  4. Put u = 3x + 1 back: dy/dx = 15(3x + 1)⁴.
  5. At x = 0, u = 1, so the gradient is 15 × 1⁴ = 15.

Answer: dy/dx = 15(3x + 1)⁴.

A table with the heads h and chord gradient. The rows read 0.1 and 27.1293, 0.01 and 15.9274, 0.001 and 15.0903.hchord gradient0.127.12930.0115.92740.00115.0903
Chords of y = (3x + 1)⁵ from x = 0 to x = h. The gradients close in on 15, as the chain rule says, and not on 5.

The same idea gives a quick set of results. Whenever the inside is a straight line ax + b, the rate of change of the inside is the constant a, and it multiplies the result.

A table with the heads y and dy/dx. The rows read e^(kx) and k e^(kx); sin kx and k cos kx; cos kx and −k sin kx; (ax+b)ⁿ and an(ax+b)ⁿ⁻¹; ln(ax+b) and a/(ax+b).ydy/dxe^(kx)k e^(kx)sin kxk cos kxcos kx−k sin kx(ax+b)ⁿan(ax+b)ⁿ⁻¹ln(ax+b)a/(ax+b)
Results from the chain rule when the inside is a straight line. The constants a, b and k stay as they are.

Worked example

Differentiate y = (x² + 1)³, and find the gradient at x = 1.

  1. Let u = x² + 1. Then y = u³.
  2. Differentiate each link: dy/du = 3u² and du/dx = 2x.
  3. Multiply: dy/dx = 3u² × 2x = 6xu².
  4. Put u = x² + 1 back: dy/dx = 6x(x² + 1)².
  5. At x = 1: 6 × 1 × (1 + 1)² = 6 × 1 × 4 = 24.

Answer: dy/dx = 6x(x² + 1)².

See it three ways

With things

Gears in a line: turn the first gear once and the second turns 3 times. The second drives a third that turns 5 times for each turn of the second. One turn of the first makes the third turn 3 × 5 = 15 times. Rates multiply along the chain.

As a picture

Three boxes x, u and y joined by two arrows. The first arrow is named x² and the second arrow is named sin u. Under the arrows are the rates 2x and cos u. At the bottom is dy/dx = 2x cos u.xx²usin uy2xcos udy/dx = 2x cos u

In words

To differentiate a function of a function, differentiate the outside and the inside, and multiply the two results.

In symbols

dy/dx = dy/du × du/dx. For y = sin(x²), u = x² gives dy/dx = cos(x²) × 2x.

The product rule is for two functions multiplied together, y = uv, where u and v are both functions of x. A rectangle helps. It has sides u and v, so its area is uv. Let x grow a little, so that u grows by δu and v grows by δv. The new area is (u + δu)(v + δv).

A rectangle with width u and height v, hatched, and labelled uv. It grows by a strip of width δu on the right, labelled v δu, a strip of height δv on top, labelled u δv, and a small corner labelled δu δv.u δvv δuδu δvuvuδuvδv
The change in area is the two strips v δu and u δv, and the tiny corner δu δv. The corner is so small that it does not count when δx shrinks.

The change in area is v δu + u δv + δu δv. Divide by δx and let δx shrink. The two strips give v du/dx + u dv/dx. The corner gives δu δv ÷ δx, which goes to 0, since it is du/dx × δv with δv going to 0. So the product rule is: if y = uv, then dy/dx = u dv/dx + v du/dx.

Worked example

Differentiate y = x² sin x, and find the gradient at x = π.

  1. Let u = x² and v = sin x.
  2. Then du/dx = 2x and dv/dx = cos x.
  3. Product rule: dy/dx = u dv/dx + v du/dx = x² cos x + sin x × 2x.
  4. So dy/dx = x² cos x + 2x sin x.
  5. At x = π, cos π = −1 and sin π = 0. To 2 decimal places, dy/dx = π² × (−1) + 2π × 0 = −9.87.

Answer: dy/dx = x² cos x + 2x sin x. At x = π the gradient is −9.87.

The quotient rule is for a fraction y = u ÷ v. If y = u/v, then dy/dx = (v du/dx − u dv/dx) ÷ v². The order of the two terms on top matters, because there is a minus between them. Start with v du/dx, the bottom times the derivative of the top. Then subtract u dv/dx, the top times the derivative of the bottom.

Worked example

Differentiate y = (2x + 1) ÷ (x − 3), and find the gradient at x = 4.

  1. Let u = 2x + 1 and v = x − 3. Then du/dx = 2 and dv/dx = 1.
  2. The top of the quotient rule is v du/dx − u dv/dx = (x − 3) × 2 − (2x + 1) × 1.
  3. Expand: 2x − 6 − 2x − 1 = −7. The x terms cancel.
  4. So dy/dx = −7 ÷ (x − 3)².
  5. At x = 4: −7 ÷ 1² = −7.

Answer: dy/dx = −7/(x − 3)².

A graph of the curve y = (2x + 1) ÷ (x − 3) with the x axis x and the y axis y. The curve has two branches, one on each side of x = 3. The point P at (4, 9) is on the right branch and a tangent at P slopes steeply down and is named tangent.Ptangent2468−6612180xy
The curve y = (2x + 1) ÷ (x − 3) has no point at x = 3. The tangent at P (4, 9) has gradient −7, and the curve falls steeply there.

Which rule to use? Look at how the function is built from its last step. If the last step is a function of a bracket, use the chain rule. If the last step multiplies two functions, use the product rule. If the last step divides, use the quotient rule. Some functions need two rules, one inside the other.

A table with the heads you see and use. The rows read (3x + 1)⁵ and chain rule; x² sin x and product rule; sin x ÷ x and quotient rule; e^(2x) and chain rule.you seeuse(3x + 1)⁵chain rulex² sin xproduct rulesin x ÷ xquotient rulee^(2x)chain rule
Look at the last step of the function to choose the rule.

Try it

Check the chain rule with chords

You need: a calculator, paper and a pencil.

  1. Take y = (3x + 1)⁵. At x = 0, y = 1. Work out y at x = 0.1: 1.3⁵ = 3.71293.
  2. The chord gradient is (3.71293 − 1) ÷ 0.1 = 27.1293. Write it down.
  3. Do the same for x = 0.01 and x = 0.001. The values of y are 1.159274 and 1.015090.
  4. Compare the chord gradients with 15, the chain rule result, and with 5, the answer from forgetting the 3.

What you will see: The chord gradients are 27.13, 15.93 and 15.09. They close in on 15, not on 5.

If you cannot try it, this is what happens.
A table with the heads rule and gradient. The rows read power only and 5, chain rule and 15, chords and about 15.rulegradientpower only5chain rule15chordsabout 15

A wrong idea many people have

The derivative of (3x + 1)⁵ is 5(3x + 1)⁴. The power rule works on the bracket.

Why it feels right: It looks like the power rule, with the bracket in place of x. The answer 5(3x + 1)⁴ has the same shape as the power rule result for x⁵.

The test that breaks it: At x = 0 the chords of (3x + 1)⁵ have gradients 27.13, 15.93 and 15.09. The claim 5(3x + 1)⁴ gives 5 at x = 0. The chords are nowhere near 5.

What is true: The bracket changes 3 times as fast as x, and the chain rule multiplies by that rate. The result is 5(3x + 1)⁴ × 3 = 15(3x + 1)⁴. Always multiply by the derivative of the inside.

A wrong idea many people have

The derivative of a product uv is du/dx × dv/dx. For x² sin x it is 2x cos x.

Why it feels right: Adding and subtracting work term by term, so it seems that multiplying should too. The derivative of a product being the product of the derivatives looks tidy.

The test that breaks it: At x = π the chord gradient of x² sin x for a step of 0.001 is about −9.876, close to the true −9.870. The claim 2x cos x gives 2π × (−1) = −6.28.

What is true: In a product, each factor changes while the other one stays, and both effects add. That gives u dv/dx + v du/dx. The product rule has two terms, not one.

A wrong idea many people have

The derivative of u/v is (du/dx) ÷ (dv/dx). For (2x + 1) ÷ (x − 3) it is 2 ÷ 1 = 2.

Why it feels right: It is the same trick as the previous mistake, with division in place of multiplication. It looks like the derivative should split over the fraction.

The test that breaks it: At x = 4 the curve has y = 9. At x = 4.01, y = 9.02 ÷ 1.01 = 8.9307. The chord gradient is (8.9307 − 9) ÷ 0.01 = −6.93. The curve falls, and 2 says that it rises.

What is true: Use the quotient rule: (v du/dx − u dv/dx) ÷ v². Here that is −7/(x − 3)², which is −7 at x = 4. Note that the bottom is squared and that the minus sign sits between the two terms on top.

Key words

chain rule
dy/dx = dy/du × du/dx. It differentiates a function of a function.
product rule
if y = uv then dy/dx = u dv/dx + v du/dx.
quotient rule
if y = u/v then dy/dx = (v du/dx − u dv/dx) ÷ v².
composite function
a function built by putting one function inside another, such as (3x + 1)⁵.

Back to your guess

The answer is B: The derivative of y = (3x + 1)⁵ is 15(3x + 1)⁴.

The derivative is 15(3x + 1)⁴. The power rule brings down the 5 and lowers the power, but the bracket 3x + 1 changes 3 times as fast as x. So there is an extra factor 3. At x = 0, the chord gradients of (3x + 1)⁵ close in on 15, not on 5.

Check yourself

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

  1. What is the derivative of y = (3x + 1)⁵?

    Tap your answer.
    1. Yes, that is right. Let u = 3x + 1. Then dy/du = 5u⁴ and du/dx = 3. Multiplying gives 15u⁴ = 15(3x + 1)⁴.

    2. Not this one. You used the power rule only. The chain rule multiplies by the derivative of the inside, 3x + 1, which is 3. Read this page again. Try another.

    3. Not this one. You multiplied by 3 and by 5 but did not lower the power. The power goes down by 1. Read this page again. Try another.

    See the answer

    15(3x + 1)⁴

    Let u = 3x + 1. Then dy/du = 5u⁴ and du/dx = 3. Multiplying gives 15u⁴ = 15(3x + 1)⁴.

    • If you chose B: You used the power rule only. The chain rule multiplies by the derivative of the inside, 3x + 1, which is 3. Read this page again.
    • If you chose C: You multiplied by 3 and by 5 but did not lower the power. The power goes down by 1. Read this page again.
  2. What is the derivative of y = sin 2x, with x in radians?

    Tap your answer.
    1. Not this one. You differentiated the outside, sin, but not the inside, 2x. The inside changes twice as fast as x. Read this page again. Try another.

    2. Not this one. The derivative of sin is cos, not −sin. The negative sign belongs to the derivative of cos. Read this page again. Try another.

    3. Yes, that is right. Let u = 2x. Then y = sin u, dy/du = cos u and du/dx = 2. Multiplying gives 2 cos u = 2 cos 2x.

    4. Not this one. The derivative of the outside function sin u is cos u, not sin u. Read this page again. Try another.

    See the answer

    2 cos 2x

    Let u = 2x. Then y = sin u, dy/du = cos u and du/dx = 2. Multiplying gives 2 cos u = 2 cos 2x.

    • If you chose A: You differentiated the outside, sin, but not the inside, 2x. The inside changes twice as fast as x. Read this page again.
    • If you chose B: The derivative of sin is cos, not −sin. The negative sign belongs to the derivative of cos. Read this page again.
    • If you chose D: The derivative of the outside function sin u is cos u, not sin u. Read this page again.
  3. Which rule do you use to differentiate y = x³ cos x?

    Tap your answer.
    1. Not this one. The chain rule is for a function inside another function. Here two separate functions are multiplied. Read this page again. Try another.

    2. Yes, that is right. The function x³ cos x is x³ multiplied by cos x. A product uses u dv/dx + v du/dx.

    3. Not this one. The quotient rule is for one function divided by another. Here the two are multiplied. Read this page again. Try another.

    See the answer

    The product rule

    The function x³ cos x is x³ multiplied by cos x. A product uses u dv/dx + v du/dx.

    • If you chose A: The chain rule is for a function inside another function. Here two separate functions are multiplied. Read this page again.
    • If you chose C: The quotient rule is for one function divided by another. Here the two are multiplied. Read this page again.
  4. Which rule is made for a fraction like y = (sin x) ÷ x?

    Tap your answer.
    1. Not this one. There is no function inside another function here. One function is divided by another. Read this page again. Try another.

    2. Not this one. You could write it as a product with x⁻¹, and that would work. But the question asks which rule is made for a fraction, and that is the quotient rule. Read this page again. Try another.

    3. Not this one. The power rule is for xⁿ alone. Here sin x is divided by x. Read this page again. Try another.

    4. Yes, that is right. The function is one function, sin x, divided by another, x. That is the quotient rule.

    See the answer

    The quotient rule

    The function is one function, sin x, divided by another, x. That is the quotient rule.

    • If you chose A: There is no function inside another function here. One function is divided by another. Read this page again.
    • If you chose B: You could write it as a product with x⁻¹, and that would work. But the question asks which rule is made for a fraction, and that is the quotient rule. Read this page again.
    • If you chose C: The power rule is for xⁿ alone. Here sin x is divided by x. Read this page again.
  5. Which rule do you use first to differentiate y = (x² + 1)⁴?

    Tap your answer.
    1. Not this one. There is no fraction in this function. Read this page again. Try another.

    2. Not this one. The function is a power of a bracket, not two separate functions multiplied. Read this page again. Try another.

    3. Yes, that is right. The bracket x² + 1 is inside the power 4. That is a function of a function, so use the chain rule.

    See the answer

    The chain rule

    The bracket x² + 1 is inside the power 4. That is a function of a function, so use the chain rule.

  6. From an earlier chapter

    What is the derivative of y = 4 cos x, with x in radians?

    Tap your answer.
    1. Yes, that is right. The constant 4 stays, and the derivative of cos x is −sin x. So dy/dx = −4 sin x.

    2. Not this one. The derivative of cos x is −sin x. The minus sign is needed. Go to M5.4.6. Try another.

    3. Not this one. The derivative of cos x is −sin x, not −cos x. Go to M5.4.6. Try another.

    See the answer

    −4 sin x

    The constant 4 stays, and the derivative of cos x is −sin x. So dy/dx = −4 sin x.

    • If you chose B: The derivative of cos x is −sin x. The minus sign is needed. Go to M5.4.6.
    • If you chose C: The derivative of cos x is −sin x, not −cos x. Go to M5.4.6.
  7. Find the gradient of y = (2x + 1)⁴ at x = 1.

    See the answer

    216

    The chain rule gives dy/dx = 4(2x + 1)³ × 2 = 8(2x + 1)³. At x = 1 this is 8 × 3³ = 8 × 27 = 216.

  8. Find the gradient of y = (x² + 1)(3x − 2) at x = 2. Use the product rule.

    See the answer

    31

    Let u = x² + 1 and v = 3x − 2. Then du/dx = 2x and dv/dx = 3. The product rule gives u × 3 + v × 2x. At x = 2, u = 5 and v = 4, so the gradient is 5 × 3 + 4 × 4 = 15 + 16 = 31.

  9. Find the gradient of y = (3x + 2) ÷ (x − 4) at x = 5. Use the quotient rule.

    See the answer

    −14

    The top of the quotient rule is (x − 4) × 3 − (3x + 2) × 1 = −14. So dy/dx = −14 ÷ (x − 4)². At x = 5 this is −14 ÷ 1 = −14.

  10. Find the gradient of y = x sin x at x = π, to 2 decimal places.

    See the answer

    −3.14

    The product rule gives dy/dx = x cos x + sin x. At x = π, cos π = −1 and sin π = 0, so the gradient is −π = −3.14.

Keep it

Copy this into your exercise book.

Chain: dy/dx = dy/du × du/dx. Product: u dv/dx + v du/dx. Quotient: (v du/dx − u dv/dx) ÷ v². Look at the last step of the function to choose.

Draw: A row of boxes x, u, y with the rate written under each arrow, and the three rules written below.

M5.4.8 Chapter 8

Connected rates and implicit curves

If the radius of a circle is growing, how fast is its area growing?

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

Many things change with time, and many are tied together. A drop falls into a pond and a ripple spreads. The radius of the ripple grows, and so does its area, and the two growths are linked. This chapter finds how fast one quantity changes when you know how fast another one does.

The tool is the chain rule from the last chapter. A rate of change with time is a derivative with respect to time t. If the radius r grows at a rate dr/dt, and the area is A = πr², then A depends on r and r depends on t. The chain rule gives dA/dt = dA/dr × dr/dt. These are called connected rates.

A circle of radius r with a thin hatched ring of width δr round it, and the area πr² written inside the circle. A radius is drawn to the right and labelled r, and the width of the ring is labelled δr by a short line to the ring.rδrπr²
When the radius grows by a small δr, the area grows by the ring. The ring is nearly a long thin strip, of length 2πr and width δr, so its area is about 2πr δr.

Check this with numbers. When the radius grows from r to r + δr, the area grows by π(r + δr)² − πr². Divide by δr for the change of area for each unit of radius. At r = 10 the table shows the answer for smaller and smaller steps.

A table with the heads δr and ΔA ÷ δr. The rows read 1 and 65.97, 0.1 and 63.15, 0.01 and 62.86, limit and 62.83.δrΔA ÷ δr165.970.163.150.0162.86limit62.83
The change in area ΔA for each unit of radius, at r = 10. The numbers close in on 2πr = 62.83, which is dA/dr at r = 10.

Draw it first

From the radius to the area

  1. Three boxes t, r and A joined by two arrows. The first arrow is named r grows and the second arrow is named πr². Step 1 writes a rate under each arrow: dr/dt = 2 under the first and dA/dr = 2πr under the second. Step 2 writes dA/dt = 2πr × 2 at the bottom.tr growsrπr²Adr/dt = 2dA/dr = 2πr

    1 The radius grows at 2 cm each second, so dr/dt = 2. The area depends on r, with dA/dr = 2πr.

  2. Three boxes t, r and A joined by two arrows. The first arrow is named r grows and the second arrow is named πr². Step 1 writes a rate under each arrow: dr/dt = 2 under the first and dA/dr = 2πr under the second. Step 2 writes dA/dt = 2πr × 2 at the bottom.tr growsrπr²Adr/dt = 2dA/dr = 2πrdA/dt = 2πr × 2

    2 Multiply the two rates: dA/dt = 2πr × 2. Put in the value of r at the moment you want.

Worked example

The radius of a circular ripple grows at 2 cm per second. How fast is the area growing when the radius is 10 cm?

  1. The area is A = πr². Differentiate with respect to r: dA/dr = 2πr.
  2. We are told dr/dt = 2. By the chain rule, dA/dt = dA/dr × dr/dt = 2πr × 2.
  3. Now put in r = 10. First dA/dr = 2π × 10 = 62.83.
  4. Then dA/dt = 62.83 × 2 = 125.66, which is 125.7 cm² per second to 1 decimal place.

Answer: The area grows at 125.7 cm² per second.

Worked example

A balloon is a sphere with volume V = (4/3)πr³. Its radius grows at 0.5 cm per second. How fast is the volume growing when the radius is 6 cm?

  1. Differentiate with respect to r: dV/dr = (4/3)π × 3r² = 4πr².
  2. We are told dr/dt = 0.5. By the chain rule, dV/dt = 4πr² × 0.5.
  3. At r = 6, dV/dr = 4π × 36 = 452.39.
  4. Then dV/dt = 452.39 × 0.5 = 226.19.
  5. To 1 decimal place, the volume grows at 226.2 cm³ per second.

Answer: The volume grows at 226.2 cm³ per second.

Worked example

An oil patch on water is a circle. Its area grows at 30 m² per second. How fast is its radius growing when the radius is 5 m?

  1. The area is A = πr², so dA/dr = 2πr. We are told dA/dt = 30.
  2. The chain rule says dA/dt = dA/dr × dr/dt. So 30 = 2πr × dr/dt.
  3. At r = 5, 2πr = 2π × 5 = 31.42. So 30 = 31.42 × dr/dt.
  4. Then dr/dt = 30 ÷ 31.42 = 0.95. To 2 decimal places, the radius grows at 0.95 m per second.

Answer: The radius grows at 0.95 m per second.

See it three ways

With things

Drop a pebble in a basin of still water and watch the ring spread. The edge moves out at a steady speed. The area it covers grows faster and faster, because the ring is longer each moment.

As a picture

Three boxes t, r and A joined by two arrows. The first arrow is named r grows and the second arrow is named πr². Under the arrows are the rates dr/dt and 2πr. At the bottom is dA/dt = 2πr × dr/dt.tr growsrπr²Adr/dt2πrdA/dt = 2πr × dr/dt

In words

The rate of the area is the rate of the radius times how much the area changes for each unit of radius.

In symbols

A = πr². dA/dr = 2πr. dA/dt = dA/dr × dr/dt = 2πr dr/dt.

Now a different kind of problem. Some curves are not given as y = f(x). The circle x² + y² = 25 is such a curve, since for one x there are two values of y. We can still find its gradient. Differentiate every term with respect to x, and remember that y is a function of x. This is called implicit differentiation.

The terms in x differentiate as before. The derivative of x² is 2x. For y² we need the chain rule, because y depends on x: d/dx (y²) = 2y × dy/dx. The derivative of the number 25 is 0. Put them together: 2x + 2y dy/dx = 0. Solve for the gradient: dy/dx = −x/y.

Worked example

Find the gradient of the circle x² + y² = 25 at the point (3, 4), and the equation of the tangent there.

  1. Check that (3, 4) is on the circle: 3² + 4² = 9 + 16 = 25.
  2. Differentiate each term: 2x + 2y dy/dx = 0.
  3. Solve for dy/dx: 2y dy/dx = −2x, so dy/dx = −x/y.
  4. At (3, 4): dy/dx = −3 ÷ 4 = −0.75.
  5. The tangent is y − 4 = −0.75(x − 3). Multiply by 4: 4y − 16 = −3x + 9.
  6. So 3x + 4y = 25.

Answer: The tangent is 3x + 4y = 25.

A graph of the circle x² + y² = 25 with equal scales on the x axis x and the y axis y. The point P is on the circle, at (3, 4). The tangent at P is named tangent and falls to the right. The dashed normal at P is named normal and runs through the centre of the circle. A small square marks the right angle at P.Ptangentnormal−6−4−2246−6−4−22460xy
P is the point (3, 4). The tangent at P has gradient −3/4. The normal at P has gradient 4/3 and passes through the centre. A tangent to a circle is square to the radius.

A term with both x and y, such as xy, needs the product rule. The derivative of xy with respect to x is x × dy/dx + y × 1, because x differentiates to 1. The table lists the terms you will meet most.

A table with the heads term and d/dx. The rows read y² and 2y dy/dx; y³ and 3y² dy/dx; xy and x dy/dx + y; sin y and cos y dy/dx.termd/dxy²2y dy/dxy³3y² dy/dxxyx dy/dx + ysin ycos y dy/dx
Differentiating terms in y with respect to x. A term in y always brings a factor dy/dx.

Worked example

Find the gradient of the curve x² + xy = 6 at the point (2, 1).

  1. Check that (2, 1) is on the curve: 2² + 2 × 1 = 4 + 2 = 6.
  2. Differentiate each term with respect to x. The derivative of x² is 2x.
  3. The derivative of xy is x dy/dx + y. The derivative of 6 is 0.
  4. So 2x + x dy/dx + y = 0. Solve: x dy/dx = −2x − y, so dy/dx = −(2x + y) ÷ x.
  5. At (2, 1): dy/dx = −(4 + 1) ÷ 2 = −2.5.

Answer: The gradient at (2, 1) is −2.5.

Try it

Measure a thin ring

You need: a pair of compasses, a ruler, paper, a pencil.

  1. Draw a circle of radius 5 cm. Draw a second circle with the same centre and a radius of 6 cm. The ring between them is 1 cm wide.
  2. Work out the area of the ring: π × 6² − π × 5² = 11π.
  3. Work out 2π × 5 × 1, the circumference of the inner circle times the width, and 2π × 6 × 1, the same for the outer circle.
  4. Compare the three numbers.

What you will see: The area of the ring lies between the two products. When the ring is thin, the area is close to the circumference times the width. This is why dA/dr = 2πr.

If you cannot try it, this is what happens.
A table with the heads measure and cm². The rows read 2πr × 1, r = 5 and 31.42, ring area and 34.56, 2πr × 1, r = 6 and 37.7.measurecm²2πr × 1, r = 531.42ring area34.562πr × 1, r = 637.7

A wrong idea many people have

The area grows at dA/dt = 2πr. For r = 10 that is 62.8 cm² per second.

Why it feels right: You differentiated the area formula A = πr² and got 2πr. A derivative is a rate of change, so it feels like the rate you want.

The test that breaks it: The derivative 2πr is the change in area for each cm of radius, with units cm² per cm. The question asks for a rate with time, with units cm² per second. After 0.01 s the radius is 10.02 cm, and the area has grown by π(10.02² − 10²) = 1.2579 cm². Divided by 0.01, that is 125.79 cm² per second.

What is true: Connected rates need the chain rule: dA/dt = 2πr × dr/dt. The factor dr/dt, here 2 cm per second, turns the change per cm into a change per second. Check the units to see which derivative you have.

A wrong idea many people have

To differentiate y² with respect to x, the answer is 2y.

Why it feels right: The rule for x² is 2x, and y² looks the same with a different letter. It seems natural to write 2y.

The test that breaks it: Take the circle x² + y² = 25 and the point (3, 4). The result 2x + 2y = 0 would say y = −x. But at (3, 4), 2x + 2y = 14, not 0. The point is on the circle, so the equation must hold there.

What is true: The letter y is a function of x. So y² is a function of a function, and the chain rule applies: d/dx (y²) = 2y × dy/dx. The factor dy/dx is needed. It is what you solve for at the end.

A wrong idea many people have

Put r = 10 into A = πr² first. Then A = 100π, a number, and its derivative is 0.

Why it feels right: It saves work to put in the numbers early, and the value 100π is a plain number. The derivative of a number is 0, as chapter 2 showed.

The test that breaks it: The radius is growing, so it is 10 cm only for one instant. The area is 100π cm² only at that instant. A moment later the radius is 10.02 cm, and the area is π × 10.02² = 315.4 cm², which is more. So the area is not a constant.

What is true: Differentiate first, with r as a variable, and then put in the value of r at the instant you want. Put in numbers only after the derivative is found.

Key words

connected rates
rates of change of two quantities that are linked, found together with the chain rule.
implicit differentiation
differentiating an equation in x and y term by term, with dy/dx for each term in y.
implicit equation
an equation that links x and y without giving y alone, such as x² + y² = 25.
rate of change
how fast a quantity changes, written as a derivative, such as dA/dt.

Back to your guess

The answer is B: A ripple spreads so that its radius grows 2 cm each second. When the radius is 10 cm, the area grows at about 126 cm² each second.

The area grows at about 126 cm² each second. The area A = πr² changes 2πr = 62.8 cm² for each cm of radius, at r = 10. The radius grows 2 cm each second, so the area grows 62.8 × 2 = 125.7 cm² each second. The figure 63 forgets the 2 cm per second, and 628 is the area itself, doubled.

Check yourself

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

  1. The area of a circle is A = πr², and its radius r changes with time t. What is dA/dt?

    Tap your answer.
    1. Yes, that is right. The chain rule gives dA/dt = dA/dr × dr/dt. With A = πr², dA/dr = 2πr.

    2. Not this one. This is dA/dr, the change of area for each unit of radius. The rate with time needs the extra factor dr/dt. Read this page again. Try another.

    3. Not this one. You multiplied the area by dr/dt, but did not differentiate it. The derivative of πr² with respect to r is 2πr. Read this page again. Try another.

    4. Not this one. The derivative of r² is 2r, so the 2 and the r must stay. The result is 2πr dr/dt. Read this page again. Try another.

    See the answer

    2πr dr/dt

    The chain rule gives dA/dt = dA/dr × dr/dt. With A = πr², dA/dr = 2πr.

    • If you chose B: This is dA/dr, the change of area for each unit of radius. The rate with time needs the extra factor dr/dt. Read this page again.
    • If you chose C: You multiplied the area by dr/dt, but did not differentiate it. The derivative of πr² with respect to r is 2πr. Read this page again.
    • If you chose D: The derivative of r² is 2r, so the 2 and the r must stay. The result is 2πr dr/dt. Read this page again.
  2. The volume of a sphere is V = (4/3)πr³. What is dV/dr?

    Tap your answer.
    1. Not this one. You lowered the power but did not bring the 3 down in front. The 3 multiplies the (4/3). Go to M5.4.2. Try another.

    2. Not this one. The power must go down by 1, from 3 to 2. Go to M5.4.2. Try another.

    3. Yes, that is right. The 3 comes down and multiplies (4/3): (4/3) × 3 = 4. The power goes from 3 to 2. So dV/dr = 4πr².

    See the answer

    4πr²

    The 3 comes down and multiplies (4/3): (4/3) × 3 = 4. The power goes from 3 to 2. So dV/dr = 4πr².

    • If you chose A: You lowered the power but did not bring the 3 down in front. The 3 multiplies the (4/3). Go to M5.4.2.
    • If you chose B: The power must go down by 1, from 3 to 2. Go to M5.4.2.
  3. What is the derivative of y² with respect to x, when y is a function of x?

    Tap your answer.
    1. Not this one. The letter y depends on x, so the chain rule is needed. You must include the factor dy/dx. Read this page again. Try another.

    2. Yes, that is right. The chain rule: d/dx (y²) = d(y²)/dy × dy/dx = 2y × dy/dx.

    3. Not this one. The power rule comes first: the derivative of y² with respect to y is 2y, and then you multiply by dy/dx. Read this page again. Try another.

    See the answer

    2y dy/dx

    The chain rule: d/dx (y²) = d(y²)/dy × dy/dx = 2y × dy/dx.

    • If you chose A: The letter y depends on x, so the chain rule is needed. You must include the factor dy/dx. Read this page again.
    • If you chose C: The power rule comes first: the derivative of y² with respect to y is 2y, and then you multiply by dy/dx. Read this page again.
  4. On the circle x² + y² = 25, dy/dx = −x/y. What is the gradient at the point (3, 4)?

    Tap your answer.
    1. Not this one. The minus sign is missing. At (3, 4) the circle is falling to the right, so the gradient is negative. Read this page again. Try another.

    2. Not this one. You turned the fraction upside down. The formula is −x/y, with x on top. Read this page again. Try another.

    3. Not this one. This is the gradient of the normal, the line through the centre, not the tangent. Read this page again. Try another.

    4. Yes, that is right. dy/dx = −x/y = −3 ÷ 4 = −3/4.

    See the answer

    −3/4

    dy/dx = −x/y = −3 ÷ 4 = −3/4.

    • If you chose A: The minus sign is missing. At (3, 4) the circle is falling to the right, so the gradient is negative. Read this page again.
    • If you chose B: You turned the fraction upside down. The formula is −x/y, with x on top. Read this page again.
    • If you chose C: This is the gradient of the normal, the line through the centre, not the tangent. Read this page again.
  5. From an earlier chapter

    Which rule do you use to differentiate y = x² sin x?

    Tap your answer.
    1. Yes, that is right. The function is x² multiplied by sin x. A product uses u dv/dx + v du/dx.

    2. Not this one. There is no division in x² sin x. Two functions are multiplied. Go to M5.4.7. Try another.

    3. Not this one. There is no function inside another function. Two separate functions are multiplied, so the product rule is the one to use. Go to M5.4.7. Try another.

    See the answer

    The product rule

    The function is x² multiplied by sin x. A product uses u dv/dx + v du/dx.

    • If you chose B: There is no division in x² sin x. Two functions are multiplied. Go to M5.4.7.
    • If you chose C: There is no function inside another function. Two separate functions are multiplied, so the product rule is the one to use. Go to M5.4.7.
  6. A circle has radius 10 cm now, and the radius grows. Why is it wrong to put r = 10 into A = πr² before differentiating?

    Tap your answer.
    1. Not this one. That is the mistake, not the reason. The radius is changing, so the area is not a fixed number. Read this page again. Try another.

    2. Not this one. Length is not the reason. The reason is that a changing quantity must be treated as a variable until it has been differentiated. Read this page again. Try another.

    3. Yes, that is right. The radius is 10 cm for one instant. Differentiate A = πr² first, to get 2πr dr/dt, and then put in r = 10.

    See the answer

    Because the radius is only 10 cm at one instant, and the derivative needs r as a variable.

    The radius is 10 cm for one instant. Differentiate A = πr² first, to get 2πr dr/dt, and then put in r = 10.

    • If you chose A: That is the mistake, not the reason. The radius is changing, so the area is not a fixed number. Read this page again.
    • If you chose B: Length is not the reason. The reason is that a changing quantity must be treated as a variable until it has been differentiated. Read this page again.
  7. The radius of a circular ripple grows at 3 cm per second. How fast is the area growing when the radius is 15 cm? Give cm² per second to 1 decimal place.

    See the answer

    282.7

    dA/dt = 2πr × dr/dt = 2π × 15 × 3 = 282.7 cm² per second.

  8. The radius of a balloon grows at 2 cm per second. How fast is the volume V = (4/3)πr³ growing when the radius is 4 cm? Give cm³ per second to 1 decimal place.

    See the answer

    402.1

    dV/dt = 4πr² × dr/dt = 4π × 16 × 2 = 402.1 cm³ per second.

  9. The area of a circular oil patch grows at 40 m² per second. How fast is the radius growing when the radius is 4 m? Give m per second to 2 decimal places.

    See the answer

    1.59

    dA/dt = 2πr × dr/dt, so 40 = 2π × 4 × dr/dt. Then dr/dt = 40 ÷ 25.13 = 1.59 m per second.

  10. The curve is y² = 4x. Find dy/dx at the point (1, 2).

    See the answer

    1

    Differentiate each term with respect to x: 2y dy/dx = 4. So dy/dx = 2/y. At y = 2 this is 1.

  11. Find the gradient of x² + xy = 10 at the point (2, 3).

    See the answer

    −3.5

    Differentiate: 2x + x dy/dx + y = 0. So dy/dx = −(2x + y) ÷ x. At (2, 3) this is −7 ÷ 2 = −3.5.

Keep it

Copy this into your exercise book.

Connected rates: dA/dt = dA/dr × dr/dt. Differentiate first, then put in the numbers. Implicit: differentiate every term, a y term gives dy/dx, xy needs the product rule.

Draw: A circle with a thin ring of width δr, and the circle x² + y² = 25 with a tangent at (3, 4) and the gradient −3/4.

Key words, A to Z

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

chain rule
dy/dx = dy/du × du/dx. It differentiates a function of a function. M5.4.7
chord
a straight line joining two points on a curve. M5.4.1
composite function
a function built by putting one function inside another, such as (3x + 1)⁵. M5.4.7
connected rates
rates of change of two quantities that are linked, found together with the chain rule. M5.4.8
constant
a plain number such as 7. Its derivative is 0. M5.4.2
constraint
a fixed condition that links the variables, such as the area xy = 200. It lets you write one variable using the other. M5.4.5
derivative
the gradient function. It is written dy/dx or f′(x). M5.4.1, M5.4.2
differentiation
the process of finding the derivative. M5.4.1
domain
the values of x that make sense in the problem, such as 0 < x < 15. M5.4.5
e
the base, about 2.718, for which the curve y = aˣ has gradient 1 where it crosses the y axis. M5.4.6
exponential
a function with the variable in the power, such as eˣ. M5.4.6
first principles
finding a gradient from the chord gradient with a small step h, and then letting h shrink. M5.4.1
gradient function
a rule that gives the gradient of a curve at every x. For y = x² it is 2x. M5.4.1
implicit differentiation
differentiating an equation in x and y term by term, with dy/dx for each term in y. M5.4.8
implicit equation
an equation that links x and y without giving y alone, such as x² + y² = 25. M5.4.8
limit
the number that the chord gradients get as close to as you wish when h gets smaller. M5.4.1
local maximum
the highest point in its own neighbourhood. A cubic can go higher elsewhere. M5.4.5
maximum
a stationary point where the curve goes from rising to falling. M5.4.4
minimum
a stationary point where the curve goes from falling to rising. M5.4.4
natural logarithm
ln x, the logarithm to base e. It is the inverse of eˣ. M5.4.6
normal
the line through a point on a curve at right angles to the tangent there. M5.4.3
optimise
to find the greatest or the least value of a quantity. M5.4.5
parallel
with the same gradient. Two parallel lines never meet. M5.4.3
perpendicular
at right angles. The gradients of perpendicular lines multiply to −1. M5.4.3
point of inflection
a point where the bending of the curve changes. If it is also stationary, the gradient keeps its sign. M5.4.4
power rule
multiply by the power, then lower the power by 1. M5.4.2
product rule
if y = uv then dy/dx = u dv/dx + v du/dx. M5.4.7
quotient rule
if y = u/v then dy/dx = (v du/dx − u dv/dx) ÷ v². M5.4.7
radian
the unit of angle in which d/dx (sin x) = cos x. π radians = 180°. M5.4.6
rate of change
how fast a quantity changes, written as a derivative, such as dA/dt. M5.4.8
reciprocal
the form 1/x^a, written as x^(−a) before you differentiate. M5.4.2
second derivative
the derivative of the derivative, written d²y/dx² or f″(x). M5.4.4
stationary point
a point on a curve where dy/dx = 0, so the tangent is flat. M5.4.4
tangent
the straight line that touches a curve at a point and has the same steepness as the curve there. M5.4.1, M5.4.3
turning point
a maximum or a minimum. M5.4.4