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.
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.
- P = (x, x³) and Q = (x + h, (x + h)³).
- Expand: (x + h)³ = x³ + 3x²h + 3xh² + h³.
- The rise is (x + h)³ − x³ = 3x²h + 3xh² + h³. The run is h.
- The gradient of PQ is 3x² + 3xh + h².
- As h shrinks towards 0, the terms 3xh and h² shrink away, and only 3x² is left. So dy/dx = 3x².
- 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.
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.
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
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.
- Differentiate each term. For 3x⁴, multiply 3 by the power 4: 3 × 4 = 12, and lower the power to 3. This gives 12x³.
- For −2x, the power is 1. Multiply: −2 × 1 = −2, and the new power is 0, so x⁰ = 1. This gives −2.
- For the number 7, the derivative is 0.
- So dy/dx = 12x³ − 2.
- 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.
Worked example
Differentiate y = 4/x³ + 6√x.
- Write each term as a power of x. 4/x³ = 4x⁻³ and 6√x = 6x^(1/2).
- For 4x⁻³, multiply by the power −3: 4 × (−3) = −12.
- Lower the power by 1: −3 − 1 = −4. The term is −12x⁻⁴.
- For 6x^(1/2), multiply by the power 1/2: 6 × 1/2 = 3.
- Lower the power by 1: 1/2 − 1 = −1/2. The term is 3x^(−1/2), which is 3/√x.
- So dy/dx = −12x⁻⁴ + 3/√x.
Answer: dy/dx = −12x⁻⁴ + 3/√x.
Worked example
Differentiate y = (2x + 1)(x − 3).
- The rules so far cannot differentiate a product directly. Expand the brackets first.
- (2x + 1)(x − 3) = 2x² − 6x + x − 3 = 2x² − 5x − 3.
- Differentiate: 2x² gives 4x, −5x gives −5, and −3 gives 0.
- 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.
- 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.
- The chord gradient is (9.261 − 8) ÷ 0.1. Write it down.
- Do the same with 2.01, then with 2.001.
- 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.
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.
What is the derivative of y = x⁵?
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.
What is the derivative of y = 6x²?
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.
What is the derivative of y = 7?
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.
To differentiate y = 5/x², what is the right first step?
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.
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?
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.
What is the derivative of y = (x + 2)²?
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.
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.
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.
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².
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³.