Vertex Learn

The derivative: what the gradient function means

What this lesson covers

  • The derivative gives the gradient of the curve at every point.
  • The gradient at a point is the gradient of the tangent there, which the chord gradients approach.
Key idea

How steep is a curve?

  • A straight line has one gradient everywhere.
  • A curve gets steeper or flatter as you go.
  • The derivative gives its gradient at every point.
Worked example

The gradient of y = x² at x = 3

  • Mark the point (3, 9) on the curve.
  • A chord joins it to a second point.
  • Chord to x = 4: gradient 7.
The gradient of y = x² at x = 3
Worked example

Move the second point closer

  • To x = 3.5: gradient 6.5.
  • To x = 3.1: gradient 6.1.
  • The chords are closing in on one line.
Move the second point closer
Key idea

Try it: slide Q in towards P

Worked example

The limit is the tangent

  • As the gap shrinks, the gradient heads to 6.
  • That line just touches the curve: the tangent.
  • Gradient at x = 3 is 6, which is 2 × 3.
The limit is the tangent
Worked example

The numbers behind the drawing

  • Rise ÷ run, each chord.
  • The run shrinks to 0.
  • Gradients close in on 6.
  1. gradient = rise ÷ run
  2. x = 4: (16 − 9) ÷ 1 = 7
  3. x = 3.5: (12.25 − 9) ÷ 0.5 = 6.5
  4. x = 3.1: (9.61 − 9) ÷ 0.1 = 6.1
  5. x = 3.01: (9.0601 − 9) ÷ 0.01
  6. = 0.0601 ÷ 0.01 = 6.01
  7. gradients → 6 as run → 0
Key idea

A gradient for every x

  • Repeat at any point on y = x²: the gradient is 2x.
  • Dy/dx = 2x is the gradient function.
  • It is a new function, not the curve.
y = x²the curve: heights
dy/dx = 2xthe gradient at every x
at x = 3height 9, gradient 6
at x = −1height 1, gradient −2
Key idea

Graphing calculator

Key idea

The rule for xⁿ

  • Bring the power down in front.
  • Then reduce the power by one.
  • A constant term has gradient 0.
ydy/dx
x²2x
x³3x²
x⁵5x⁴
5x5
7 (a constant)0
Worked example

Using it at a point

  • Differentiate first.
  • Brackets around −2.
  • Positive: the curve rises.
  1. y = x³
  2. dy/dx = 3x²power down, one less
  3. x = −2: 3 × (−2)²into dy/dx
  4. = 3 × 4 = 12
  5. x = 1: 3 × 1² = 3
Worked example

The most common gradient mistake

  • Substituting into y gives a height, not a gradient.
  • For a gradient, substitute into dy/dx.
  • Write which one you are using.
Askedthe gradient of y = x³ at x = 2
Wrongsubstitute into y: 8
Rightdy/dx = 3x², so 3 × 4 = 12
Key idea

A gradient is a rate of change

  • Units of y per unit of x.
  • Metres per second, dollars per item.
  • Say the rate in context, with units.
Summary

What to take away

  • The derivative is the gradient, everywhere at once.
Derivativethe gradient at every point
Tangentthe limit of the chords
Rulexⁿ becomes nxⁿ⁻¹
Constantdifferentiates to 0
Gradient at a pointsubstitute into dy/dx
Height at a pointsubstitute into y

Common mistakes

  • The gradient of y = x³ at x = 2 is 2³ = 8.
    Substituting into y gives the height. For the gradient use dy/dx = 3x²: 3 × 2² = 12.
  • dy/dx = 3x² at x = −2: 3 × −2² = −12
    Bracket the value before squaring: 3 × (−2)² = 3 × 4 = 12.
  • x⁵ differentiates to 5x⁵
    Bring the power down, then reduce it by one: x⁵ becomes 5x⁴.
  • The chord from (1, 1) to (1.1, 1.21) has gradient 1.21 ÷ 1.1 = 1.1
    Gradient is rise ÷ run between the two points: (1.21 − 1) ÷ (1.1 − 1) = 0.21 ÷ 0.1 = 2.1.
Your turn

Your turn: four questions

  • Question 3 is a chord, not a derivative.
  • Question 4: set the gradient equal to 10.
1

Differentiate y = x⁴.

2

Find the gradient of y = x³ at x = −2.

3

Gradient of the chord (1, 1) to (1.1, 1.21) on y = x²?

4

Where does y = x² have a gradient of 10?

Show answer

1. dy/dx = 4x³. 2. dy/dx = 3x², so 3 × (−2)² = 12. 3. (1.21 − 1) ÷ (1.1 − 1) = 0.21 ÷ 0.1 = 2.1, close to the tangent gradient 2. 4. 2x = 10, so x = 5, at the point (5, 25).

Worked example

The answers

  1. 1. y = x⁴, dy/dx = 4x³power down, one less
  2. 2. dy/dx = 3x²
  3. x = −2: 3 × (−2)² = 3 × 4 = 12
  4. 3. (1.21 − 1) ÷ (1.1 − 1)rise ÷ run
  5. = 0.21 ÷ 0.1 = 2.1
  6. close to dy/dx = 2(1) = 2the tangent
  7. 4. dy/dx = 2x = 10
  8. x = 5, y = 5² = 25
  9. the point (5, 25)
Your turn

Sample question: Achieved

Find the gradient of the curve y = x⁴ − 3x at the point where x = 2, and say what it tells you about the curve there.

Hint

Use the rule for xⁿ to find dydx, then substitute x = 2 into dydx.

Answer

dydx = 4x³ − 3, so the gradient at x = 2 is 29: the curve is rising steeply there

Step by step
  1. The derivative dydx is the gradient function: it gives the gradient at any x.
  2. Recall the rule: xⁿ differentiates to nxⁿ⁻¹. So x⁴ gives 4x³.
  3. −3x differentiates to −3, because the gradient of the straight line −3x is −3.
  4. So dydx = 4x³ − 3.
  5. At x = 2: dydx = 4 × 2³ − 3 = 4 × 8 − 3 = 32 − 3 = 29.
  6. Classic mistake: putting x = 2 into y, which gives 16 − 6 = 10. That is the height of the point, not the gradient.
  7. Meaning: at x = 2 the tangent has gradient 29, so the curve is rising steeply. For each 1 unit across, it climbs about 29 units.
  8. Check numerically: the chord from x = 2 to x = 2.001 has gradient about 29.02, very close to 29.
Full working
  1. dydx = 4x³ − 3xⁿ gives nxⁿ⁻¹
  2. dydx at x = 2: 4 × 8 − 3substitute into the derivative
  3. Gradient = 29 (rising steeply)
Your turn

Sample questions: Merit

1

For the curve y = x² + x, show that the gradient of the chord from x = 1 to x = 1 + h is 3 + h. Work out the chord gradient for h = 0.1 and h = 0.01, and hence state the gradient of the curve at x = 1. Confirm it with the derivative.

Hint

Chord gradient = (change in y) ÷ (change in x). Expand (1 + h)² and simplify before dividing by h.

Answer

Chord gradient 3 + h: 3.1 for h = 0.1 and 3.01 for h = 0.01; the gradient at x = 1 is 3, which matches dydx = 2x + 1 = 3

Step by step
  1. A chord joins two points on the curve. Its gradient is the rise over the run, and as the points get closer it approaches the tangent's gradient.
  2. First point: x = 1, y = 1 + 1 = 2.
  3. Second point: x = 1 + h, y = (1 + h)² + (1 + h) = 1 + 2h + h² + 1 + h = 2 + 3h + h².
  4. Rise: (2 + 3h + h²) − 2 = 3h + h². Run: (1 + h) − 1 = h.
  5. Gradient: 3h + h²h = 3 + h, after dividing each term by h. That is what we had to show.
  6. Classic mistake: writing (1 + h)² = 1 + h². The middle term 2h is needed.
  7. h = 0.1 gives 3.1, and h = 0.01 gives 3.01.
  8. As h gets closer to 0, the second point slides towards the first and 3 + h gets closer to 3. So the gradient of the curve at x = 1 is 3.
  9. Confirm with the derivative: dydx = 2x + 1, and at x = 1 that is 3. The two methods agree.
Full working
  1. y(1) = 2, y(1 + h) = 2 + 3h + h²expand (1 + h)²
  2. gradient = 3h + h²h = 3 + hrise over run
  3. h = 0.1: 3.1; h = 0.01: 3.01
  4. As h approaches 0, 3 + h approaches 3the chord becomes the tangent
  5. dydx = 2x + 1 = 3 at x = 1the derivative agrees
  6. Gradient at x = 1 is 3
2

The volume of water in a tank t minutes after a valve is opened is V = 200 + 30t − t² litres, for 0 ≤ t ≤ 15. Find the rate the volume is changing at t = 5 and at t = 12, and find when the volume is increasing at 10 litres per minute.

Hint

The rate of change of V is its derivative dVdt. Substitute for the rates; set dVdt = 10 for the last part.

Answer

20 litres per minute at t = 5; 6 litres per minute at t = 12; 10 litres per minute at t = 10

Step by step
  1. A rate of change is a gradient. The rate the volume changes is dVdt, measured in litres per minute.
  2. Differentiate term by term: 200 gives 0, 30t gives 30, and −t² gives −2t. So dVdt = 30 − 2t.
  3. At t = 5: dVdt = 30 − 10 = 20 litres per minute.
  4. At t = 12: dVdt = 30 − 24 = 6 litres per minute.
  5. Both rates are positive, so the volume is still increasing, but more slowly later on.
  6. Classic mistake: giving V(5) = 325 litres as the rate. That is how much water there is, not how fast it is changing.
  7. Increasing at 10 litres per minute: set 30 − 2t = 10, so 2t = 20 and t = 10 minutes.
  8. Check: t = 10 is inside 0 ≤ t ≤ 15, so the answer is allowed.
  9. So the rates are 20 and 6 litres per minute, and the rate is 10 litres per minute at t = 10.
Full working
  1. dVdt = 30 − 2trate = derivative
  2. t = 5: 30 − 10 = 20 L per min
  3. t = 12: 30 − 24 = 6 L per min
  4. 30 − 2t = 10, so t = 10inside 0 ≤ t ≤ 15
  5. 20 and 6 L per min; t = 10 min
Your turn

Sample questions: Excellence

1

For the curve y = x³, show that the gradient of the chord from the point with x-coordinate x to the point with x-coordinate x + h is 3x² + 3xh + h². Hence explain why the gradient function of y = x³ is 3x², and use the chord formula with x = 2 and h = 0.1 to check it.

Hint

Expand (x + h)³ as (x + h)(x + h)², subtract x³, then divide each term by h. Think about what happens to the h terms as h gets closer to 0.

Answer

Chord gradient = 3x² + 3xh + h²; as h approaches 0 this approaches 3x², so dydx = 3x²; at x = 2, h = 0.1 the chord gradient is 12.61, close to 12

Step by step
  1. Two points on the curve: (x, x³) and (x + h, (x + h)³). The chord gradient is rise over run.
  2. Expand (x + h)³. First (x + h)² = x² + 2xh + h². Then multiply by (x + h): x³ + 2x²h + xh² + x²h + 2xh² + h³.
  3. Collect like terms: (x + h)³ = x³ + 3x²h + 3xh² + h³.
  4. Rise: (x + h)³ − x³ = 3x²h + 3xh² + h³. The x³ terms cancel.
  5. Run: (x + h) − x = h.
  6. Gradient: 3x²h + 3xh² + h³h = 3x² + 3xh + h². Every term on top has an h, so each one divides cleanly. That is what we had to show.
  7. Now let the second point slide towards the first, so h gets closer and closer to 0.
  8. 3xh and h² both shrink towards 0, but 3x² does not depend on h, so it stays.
  9. So the chord gradients approach 3x², which is the gradient of the tangent at x. That means dydx = 3x², matching the rule xⁿ gives nxⁿ⁻¹.
  10. Classic mistake: putting h = 0 straight into 3x²h + 3xh² + h³h. That gives 0 ÷ 0, which means nothing. Divide by h first, then let h approach 0.
  11. Check with x = 2 and h = 0.1: 3 × 4 + 3 × 2 × 0.1 + 0.01 = 12 + 0.6 + 0.01 = 12.61.
  12. The derivative gives 3 × 2² = 12, and 12.61 is close to it. A smaller h would give an even closer value.
Full working
  1. (x + h)³ = x³ + 3x²h + 3xh² + h³expand
  2. rise = 3x²h + 3xh² + h³, run = h
  3. gradient = 3x² + 3xh + h²divide each term by h
  4. As h approaches 0: 3xh and h² approach 0the chord becomes the tangent
  5. dydx = 3x²
  6. x = 2, h = 0.1: 12 + 0.6 + 0.01 = 12.61 ≈ 12
  7. dydx = 3x²
2

For the curve y = x² − 4x, find the point where the tangent is parallel to the chord joining the points with x = 1 and x = 5. Then prove that for any parabola y = ax² + bx + c, the tangent parallel to the chord from x = p to x = q is at x = p + q2.

Hint

Parallel lines have equal gradients. Find the chord's gradient, set dydx equal to it, then repeat the same steps with letters.

Answer

(3, −3); in general the chord gradient is a(p + q) + b and dydx = 2ax + b, so x = p + q2

Step by step
  1. Parallel lines have the same gradient. So find the chord's gradient, and then where the curve has that gradient.
  2. The chord ends: at x = 1, y = 1 − 4 = −3; at x = 5, y = 25 − 20 = 5.
  3. Chord gradient = (5 − (−3)) ÷ (5 − 1) = 8 ÷ 4 = 2.
  4. dydx = 2x − 4. Set it equal to 2: 2x − 4 = 2, so x = 3.
  5. y at x = 3: 9 − 12 = −3. So the tangent at (3, −3) is parallel to the chord. Notice 3 is halfway between 1 and 5.
  6. Now the general case. Chord rise: (aq² + bq + c) − (ap² + bp + c) = a(q² − p²) + b(q − p). The c terms cancel.
  7. Factorise the rise: q² − p² = (q − p)(q + p), so rise = (q − p)(a(q + p) + b).
  8. Divide by the run q − p: chord gradient = a(p + q) + b.
  9. The tangent's gradient is dydx = 2ax + b. Set them equal: 2ax + b = a(p + q) + b.
  10. Take b from both sides and divide by 2a (a ≠ 0 for a parabola): x = p + q2.
  11. So the tangent parallel to any chord of a parabola is always exactly halfway between the chord's ends, whatever a, b and c are.
  12. Classic mistake: proving it only with numbers, like 1 and 5. That shows one case; the letters p and q show every case.
  13. Check with the first part: p = 1 and q = 5 give x = 6 ÷ 2 = 3. It agrees.
Full working
  1. chord gradient = (5 − (−3)) ÷ (5 − 1) = 2
  2. 2x − 4 = 2, so x = 3, y = −3tangent parallel to the chord
  3. rise = (q − p)(a(q + p) + b), run = q − pgeneral parabola
  4. chord gradient = a(p + q) + b
  5. 2ax + b = a(p + q) + b, so x = p + q2a ≠ 0
  6. (3, −3); in general x = p + q2
Try it

Calculus Grapher

Full screen · PhET Interactive Simulations, University of Colorado Boulder, CC BY 4.0

Science

Where science uses this

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91262

Is your child on track?

Take the free placement test