Differentiating polynomials, fractions and all
What this lesson covers
- A polynomial is differentiated term by term, and a constant term differentiates to zero.
- The derivative is a new function; substituting into it gives a gradient, not a y value.
One term at a time
- A polynomial is a sum of terms.
- Differentiate each term separately.
- Then add the results back up.
Differentiate 4x³ − 5x² + 2x − 7
- Power times coefficient.
- Keep each sign.
- A constant goes to 0.
- y = 4x³ − 5x² + 2x − 7
- 4x³ → 3 × 4x² = 12x²
- −5x² → 2 × (−5x) = −10xkeep the sign
- 2x → 1 × 2 = 2
- −7 → 0a constant
- dy/dx = 12x² − 10x + 2
Fractional coefficients
- The rule does not change.
- Multiply, then simplify.
- x³/3 → 3x²/3 = x²cancel the 3
- −x²/2 → −2x/2 = −xcancel the 2
- (2/5)x⁵ → 5 × (2/5)x⁴
- = 2x⁴5 × 2/5 = 2
Try it: slide the tangent
Expand brackets first
- No product rule here.
- Expand, then find dy/dx.
- y = (x + 3)(x − 2)
- = x² − 2x + 3x − 6expand
- = x² + x − 6collect x terms
- dy/dx = 2x + 1term by term
Evaluating at fractions and negatives
- Bracket every value.
- Gradient 0: flat there.
- f′(x) = 12x² − 10x + 2
- f′(1/2) = 12(1/2)² − 10(1/2) + 2
- = 12(1/4) − 5 + 2
- = 3 − 5 + 2 = 0flat here
- f′(−1) = 12(−1)² − 10(−1) + 2
- = 12 + 10 + 2 = 24
The −x² trap
- −x² means −(x²).
- Square, then the minus.
- −x² at x = −3
- = −(−3)²bracket the value
- = −(9)square first
- = −9then the minus
- (−3)² = 9lost the minus
The derivative gives gradients
- Substitute into f′ for a gradient.
- Substitute into f for a height.
- Label which you have found.
Where is the gradient 4?
- Set dy/dx equal to 4.
- Height from y, not dy/dx.
- y = x² − 6x + 1
- dy/dx = 2x − 6
- 2x − 6 = 4gradient 4
- 2x = 10, so x = 5
- y = 5² − 6(5) + 1the original y
- = 25 − 30 + 1 = −4
- the point (5, −4)
Try it: the gradient at every x
Try it: differentiate, substitute, find the point
Check your derivative
- The power of each term drops by one.
- The constant term has gone.
- The number of terms usually drops by one too.
Where the marks are
- Achieved: differentiate and evaluate correctly.
- Merit: several accurate steps in a row.
- Every step written, not just the answer.
What to take away
- Term by term, and brackets around every substitution.
| Term by term | power down, power minus one |
| Constants | disappear |
| Fractions | multiply, then simplify |
| Brackets | expand before differentiating |
| Substituting | brackets around negatives |
| Given gradient | set dy/dx equal, solve for x |
Common mistakes
- y = 4x³ − 5x² + 2x − 7, so dy/dx = 12x² − 10x + 2 − 7A constant has gradient 0, so the −7 disappears: dy/dx = 12x² − 10x + 2.
- y = (x + 3)(x − 2), so dy/dx = 1 × 1 = 1Expand first, then differentiate term by term: y = x² + x − 6, so dy/dx = 2x + 1.
- −x² at x = −3 is (−3)² = 9−x² means −(x²): square first, then apply the minus, so −(−3)² = −9.
- The gradient of y = x² − 6x + 1 is 4 at x = 5, so the point is (5, 4).4 is the gradient, not the height. Use the original y: 5² − 6(5) + 1 = −4, so the point is (5, −4).
Your turn: eight questions
- Question 2 needs expanding first.
- Question 4 wants a point.
Differentiate y = 3x⁴ − 2x² + 9.
Differentiate y = (2x − 1)(x + 4).
f(x) = x³/6. Find f′(−2).
Where on y = x² + 3x is the gradient −1?
Find the gradient of y = 5 − x² at x = −3.
Differentiate y = x³/3 − 3x²/2 + 5x.
Where on y = x³ − 12x is the gradient zero?
The curve y = ax² − 4x has gradient 8 at x = 3. Find a.
Show answer
1. dy/dx = 12x³ − 4x. 2. Expand: y = 2x² + 7x − 4, so dy/dx = 4x + 7. 3. f′(x) = x²/2, so f′(−2) = 4/2 = 2. 4. 2x + 3 = −1 gives x = −2, and y = 4 − 6 = −2: the point (−2, −2). 5. 6. dy/dx = −2x, so −2 × (−3) = 6. 6. dy/dx = x² − 3x + 5. Term by term: 3x²/3 = x², 2 × 3x/2 = 3x, and 5x gives 5. 7. x = 2 and x = −2. Set dy/dx = 3x² − 12 = 0, so x² = 4. 8. a = 2. dy/dx = 2ax − 4, so 6a − 4 = 8 and a = 2.
The answers: questions 1 and 2
- 1. y = 3x⁴ − 2x² + 9
- dy/dx = 4 × 3x³ − 2 × 2xterm by term
- = 12x³ − 4xthe 9 goes
- 2. y = (2x − 1)(x + 4)
- = 2x² + 8x − x − 4expand
- = 2x² + 7x − 4collect x terms
- dy/dx = 4x + 7
The answers: questions 3 and 4
- 3. f′(x) = 3x²/6 = x²/2
- f′(−2) = (−2)²/2brackets round −2
- = 4/2 = 2
- 4. dy/dx = 2x + 3
- 2x + 3 = −1, so 2x = −4gradient −1
- x = −2
- y = (−2)² + 3(−2)the original y
- = 4 − 6 = −2
- the point (−2, −2)
Sample question: Achieved
For f(x) = 2x³ − 5x² + 4x − 1, find f′(x) and the gradient of the curve at x = 2.
Hint
Differentiate term by term: multiply by the power, then take 1 off the power. Then substitute x = 2 into f′(x), not into f(x).
Answer
f′(x) = 6x² − 10x + 4; the gradient at x = 2 is 8
Step by step
- Recall the rule for each term axⁿ: multiply by the power n, then reduce the power by 1. It gives naxⁿ⁻¹.
- 2x³ becomes 3 × 2x² = 6x². −5x² becomes 2 × (−5)x = −10x.
- 4x becomes 4, and the constant −1 becomes 0, because a constant does not change.
- So f′(x) = 6x² − 10x + 4.
- The gradient at x = 2 comes from the derivative: f′(2) = 6 × 4 − 10 × 2 + 4 = 24 − 20 + 4 = 8.
- Classic mistake: substituting into f(x) instead. f(2) = 3 is the height of the curve there, not its gradient.
- So at x = 2 the curve is rising, with gradient 8.
- Check numerically: f(2.01) − f(1.99) ≈ 0.16, and dividing by 0.02 gives about 8. Correct.
Full working
- f′(x) = 3 × 2x² − 2 × 5x + 4multiply by the power, take 1 off
- f′(x) = 6x² − 10x + 4
- f′(2) = 24 − 20 + 4substitute into the derivative
- Gradient = 8
Sample questions: Merit
Find the point on the curve y = (3x − 2)² where the gradient is 6.
Hint
Expand the bracket first, then differentiate. Set the derivative equal to 6 and solve, then find y from the original curve.
Answer
(1, 1)
Step by step
- The rule works term by term, so expand the square first: (3x − 2)² = (3x − 2)(3x − 2) = 9x² − 12x + 4.
- Classic mistake: writing (3x − 2)² = 9x² + 4. A squared bracket always has a middle term.
- Differentiate: dydx = 18x − 12.
- The gradient is 6, so set the derivative equal to 6: 18x − 12 = 6.
- Solve: 18x = 18, so x = 1.
- The question asks for a point, so find y too. Use the original curve, not the derivative: y = (3 × 1 − 2)² = 1² = 1.
- So the point is (1, 1).
- Check: dydx at x = 1 is 18 − 12 = 6. Correct.
Full working
- y = 9x² − 12x + 4expand first
- dydx = 18x − 12
- 18x − 12 = 6, so x = 1gradient 6
- y = (3 − 2)² = 1the original curve
- (1, 1)
Find the coordinates of the points on the curve y = x³3 − 3x²2 − 4x + 2 where the gradient is 6. Give exact values.
Hint
Differentiate (the fractions cancel neatly), set dydx = 6 and solve the quadratic. Use the original curve for the y values.
Answer
(5, −836) and (−2, 43)
Step by step
- Differentiate each term. x³3 gives 3x²3 = x². −3x²2 gives −2 × 3x2 = −3x. −4x gives −4, and 2 gives 0.
- So dydx = x² − 3x − 4.
- Set the gradient to 6: x² − 3x − 4 = 6, so x² − 3x − 10 = 0.
- Factorise: (x − 5)(x + 2) = 0, so x = 5 or x = −2.
- Classic mistake: factorising x² − 3x − 4 = 0 instead. That finds where the gradient is 0, not 6.
- Find y at x = 5 from the original curve: 1253 − 752 − 20 + 2.
- Use a common denominator of 6: 2506 − 2256 = 256, and 256 − 18 = 256 − 1086 = −836.
- Find y at x = −2: −83 − 3 × 42 + 8 + 2 = −83 − 6 + 10 = 4 − 83 = 43.
- So the points are (5, −836) and (−2, 43).
- Check: at x = −2 the gradient is 4 + 6 − 4 = 6, and at x = 5 it is 25 − 15 − 4 = 6. Both correct.
Full working
- dydx = x² − 3x − 43 × x²3 = x², 2 × 3x2 = 3x
- x² − 3x − 10 = 0set dydx = 6
- (x − 5)(x + 2) = 0, so x = 5 or −2
- y(5) = 1253 − 752 − 18 = −836
- y(−2) = −83 − 6 + 10 = 43
- (5, −836) and (−2, 43)
Sample questions: Excellence
The curve y = x³ + ax² + bx has gradient 0 at x = 1 and gradient 8 at x = −1. Find a and b. Hence find the other point where the gradient is 0, giving its coordinates exactly.
Hint
Differentiate with a and b as letters. Each gradient fact gives one equation, so solve the pair simultaneously.
Answer
a = −2, b = 1; the gradient is also 0 at (13, 427)
Step by step
- Differentiate, keeping a and b as constants: dydx = 3x² + 2ax + b.
- Gradient 0 at x = 1: 3 + 2a + b = 0.
- Gradient 8 at x = −1: 3 − 2a + b = 8.
- Classic mistake: substituting into y instead of dydx. These facts are about gradients, so they belong in the derivative.
- Subtract the second equation from the first: (3 + 2a + b) − (3 − 2a + b) = 0 − 8, so 4a = −8 and a = −2.
- Then 3 − 4 + b = 0, so b = 1.
- The curve is y = x³ − 2x² + x and dydx = 3x² − 4x + 1.
- Hence: the gradient is 0 when 3x² − 4x + 1 = 0. Factorise: (3x − 1)(x − 1) = 0.
- x = 1 is the point we were given. The other one is x = 13.
- y at x = 13: 127 − 2 × 19 + 13 = 127 − 627 + 927 = 427.
- So the other point is (13, 427).
- Check the second fact: at x = −1, dydx = 3 + 4 + 1 = 8. Correct.
Full working
- dydx = 3x² + 2ax + b
- 3 + 2a + b = 0 and 3 − 2a + b = 8gradients at x = 1 and x = −1
- 4a = −8, so a = −2 and b = 1subtract the equations
- 3x² − 4x + 1 = (3x − 1)(x − 1) = 0hence
- y(13) = 127 − 627 + 927 = 427
- a = −2, b = 1; (13, 427)
Prove that the curve y = x³ − 6x² + 15x − 2 has a positive gradient at every point. Find the least gradient of the curve and the point where it happens, and explain what this tells you about the curve.
Hint
Differentiate, take out the common factor, and complete the square on the quadratic that is left.
Answer
dydx = 3(x − 2)² + 3 ≥ 3, so the gradient is always positive; the least gradient is 3, at (2, 12); the curve always rises and has no turning points
Step by step
- Differentiate: dydx = 3x² − 12x + 15.
- To show it is always positive, write it in a form where that is obvious. Take out 3 first: 3(x² − 4x + 5).
- Complete the square: x² − 4x + 5 = (x − 2)² − 4 + 5 = (x − 2)² + 1.
- So dydx = 3((x − 2)² + 1) = 3(x − 2)² + 3.
- A square is never negative, so 3(x − 2)² ≥ 0 and dydx ≥ 3. The gradient is always at least 3, so it is always positive.
- Classic mistake: testing a few x values and saying it is positive. Checking examples is not a proof; the completed square covers every x at once.
- Another valid proof: the discriminant of 3x² − 12x + 15 is 144 − 180 = −36 < 0, so it never equals zero, and it is positive because the x² coefficient is positive.
- The least gradient is 3, when (x − 2)² = 0, so x = 2.
- At x = 2: y = 8 − 24 + 30 − 2 = 12. So the least gradient happens at (2, 12).
- Meaning: the curve rises everywhere, so it has no turning points. Its flattest point is (2, 12), where it still climbs with gradient 3.
- Check: at x = 0 the gradient is 15, and at x = 2 it is 12 − 24 + 15 = 3. Both are at least 3.
Full working
- dydx = 3x² − 12x + 15
- = 3(x² − 4x + 5) = 3((x − 2)² + 1)complete the square
- dydx = 3(x − 2)² + 3 ≥ 3 > 0(x − 2)² ≥ 0
- Least gradient 3 at x = 2; y(2) = 12
- Always positive; least gradient 3 at (2, 12); no turning points
Challenge
Curve C is y = x³ − 5x² + 4x and curve D is y = x² − 5x + 1. Find the x-values where the tangents to C and D at the same x are parallel. Find all x for which the gradient of C is less than the gradient of D, and the greatest amount by which D's gradient is bigger than C's.
Hint
Differentiate both and subtract. The difference of the gradients is a quadratic, so its sign and its least value come from factorising and completing the square.
Answer
Parallel at x = 1 and x = 3. C's gradient is less than D's for 1 < x < 3, and D's gradient is bigger by at most 3, at x = 2.
Step by step
- Tangents at the same x are parallel when the two gradients are equal.
- Subtract the gradient of D from the gradient of C. This difference is a quadratic in x.
- Its roots are where the tangents are parallel.
- It is a ∪-shaped parabola, so it is negative between its roots: that is where C's gradient is the smaller one.
- Its least value, at the vertex, is the most that C's gradient falls below D's.
Full working
- C: dydx = 3x² − 10x + 4, D: dydx = 2x − 5differentiate
- (3x² − 10x + 4) − (2x − 5) = 3x² − 12x + 9difference of gradients
- 3(x − 1)(x − 3) = 0, so x = 1 or x = 3parallel tangents
- 3(x − 1)(x − 3) < 0 for 1 < x < 3∪-shaped, negative between the roots
- 3x² − 12x + 9 = 3(x − 2)² − 3, least value −3 at x = 2complete the square
- Parallel at x = 1 and 3; C's gradient is less for 1 < x < 3; D's gradient is bigger by at most 3, at x = 2
Find every point on the curve y = x³ − 2x² where the gradient of the curve is equal to the y-coordinate, and the equation of the tangent at each of these points.
Hint
Set dydx equal to y itself, not to a number. Collect everything on one side and factorise.
Answer
(0, 0) with tangent y = 0, (1, −1) with tangent y = −x, and (4, 32) with tangent y = 32x − 96.
Step by step
- The gradient at a point is dydx, and the y-coordinate is y. Set them equal.
- This gives a cubic equal to 0. Take out the common factor x, then factorise the quadratic.
- Find each point's y from the curve.
- At each point the tangent's gradient is that same y-value, which makes the tangents quick to write.
- Use y − y₁ = m(x − x₁) for each.
Full working
- dydx = 3x² − 4xdifferentiate
- 3x² − 4x = x³ − 2x²gradient = y
- x³ − 5x² + 4x = x(x − 1)(x − 4) = 0rearrange, factorise
- points (0, 0), (1, −1), (4, 32)heights from the curve
- gradients 0, −1 and 32equal to the y-values
- y = 0; y + 1 = −(x − 1), so y = −x; y − 32 = 32(x − 4), so y = 32x − 96tangents
- (0, 0): y = 0; (1, −1): y = −x; (4, 32): y = 32x − 96
A cubic is y = (x − a)²(x − b), where a and b are different numbers. (a) Expand and differentiate, and show that dydx = (x − a)(3x − a − 2b). (b) Hence show that the curve is flat where it touches the x-axis, and that its other flat point is one third of the way from x = a to x = b. (c) Show that the gradient where the curve crosses the x-axis is always (b − a)². (d) For y = (x − 2)²(x + 4), find both flat points and the equation of the tangent where the curve crosses the x-axis.
Hint
Expand (x − a)² first, then multiply by (x − b), treating a and b as numbers. Check (a) by expanding (x − a)(3x − a − 2b) too.
Answer
(a) y = x³ − (2a + b)x² + (a² + 2ab)x − a²b, so dydx = 3x² − (4a + 2b)x + a² + 2ab = (x − a)(3x − a − 2b). (b) dydx = 0 at x = a and at x = a + 2b3 = a + b − a3. (c) At x = b, dydx = (b − a)(3b − a − 2b) = (b − a)². (d) Flat at (2, 0) and (−2, 32); tangent at (−4, 0) is y = 36x + 144.
Step by step
- (x − a)² = x² − 2ax + a², and multiplying by (x − b) gives x³ − (2a + b)x² + (a² + 2ab)x − a²b.
- Term by term, dydx = 3x² − (4a + 2b)x + a² + 2ab, and expanding (x − a)(3x − a − 2b) gives exactly this.
- The curve touches the x-axis at x = a, and dydx has a factor (x − a), so the gradient there is 0.
- The other flat point has 3x = a + 2b, so x = a + 2b3 = a + b − a3, one third of the way from a to b.
- It crosses the x-axis at x = b, where dydx = (b − a)(b − a) = (b − a)², which is positive since a ≠ b.
- For a = 2 and b = −4: flat at x = 2 and x = −2, and the crossing gradient is (−6)² = 36.
Full working
- y = (x² − 2ax + a²)(x − b) = x³ − (2a + b)x² + (a² + 2ab)x − a²bexpand
- dydx = 3x² − (4a + 2b)x + a² + 2abterm by term
- (x − a)(3x − a − 2b) = 3x² − (4a + 2b)x + a² + 2abthe same
- x = a or x = a + 2b3 = a + b − a3dydx = 0
- x = b: (b − a)(3b − a − 2b) = (b − a)²crossing gradient
- a = 2, b = −4: flat at x = 2 and x = 2 − 83 = −2from (b)
- y(−2) = (−4)² × 2 = 32height
- gradient at x = −4: (−4 − 2)² = 36from (c)
- y = 36(x + 4) = 36x + 144tangent through (−4, 0)
- Flat points (2, 0) and (−2, 32); tangent where it crosses the x-axis: y = 36x + 144
Practise this
Report a mistake
More in AS 91262
The derivative: what the gradient function means6 min
Differentiating polynomials, fractions and all7 min
Equation of a tangent to a curve, step by step8 min
Turning points: finding and proving max or min8 min
Sketching the gradient graph of a function7 min
Optimisation with calculus: the biggest box8 min
Anti-differentiation and why you need + c7 min
Kinematics: displacement, velocity and acceleration8 min
The derivative: 7 exam questions solved step by step11 min
Differentiating: 7 exam questions solved step by step11 min
Tangents: 7 exam questions solved step by step11 min
Turning points: 7 exam questions solved step by step12 min
Gradient graphs: 7 exam questions solved step by step12 min
Optimisation: 7 exam questions solved step by step11 min
Anti-differentiation: 7 exam questions solved step by step11 min
Kinematics: 7 exam questions solved step by step11 min