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

  • Differentiate xⁿ for any power n
  • Differentiate sums like 3x⁴ − 2x + 7
  • Rewrite √x and 1/x² as powers before you differentiate

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³.

Reading with a child? A short page for the adult: what this chapter teaches and three questions to ask.

No internet tomorrow? Save the whole book as one file (925 KB). It opens on any phone.