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.
By the end you can
- Estimate a gradient using chords that get shorter and shorter
- Find the gradient of y = x² from first principles
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.
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 Q₁ is at x = 3. The chord PQ₁ has gradient 4.
2 Q₂ is at x = 1.5. The chord PQ₂ has gradient 2.5, much less steep.
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.
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.
- Call P the point (2, 4). For each chord, gradient = (y at Q − 4) ÷ (x at Q − 2).
- Q at x = 3 is (3, 9). The gradient is (9 − 4) ÷ (3 − 2) = 5.
- Q at x = 2.5 is (2.5, 6.25). The gradient is (6.25 − 4) ÷ 0.5 = 4.5.
- Q at x = 2.1 is (2.1, 4.41). The gradient is (4.41 − 4) ÷ 0.1 = 4.1.
- Q at x = 2.01 is (2.01, 4.0401). The gradient is (4.0401 − 4) ÷ 0.01 = 4.01.
- 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.
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.
- P is (3, 9). Q is (3 + h, (3 + h)²).
- Expand: (3 + h)² = 9 + 6h + h². The rise is (9 + 6h + h²) − 9 = 6h + h².
- The run is (3 + h) − 3 = h. So the gradient of PQ is (6h + h²) ÷ h = 6 + h.
- For h = 0.1 the gradient of PQ is 6.1.
- For h = 0.01 the gradient of PQ is 6.01.
- 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.
- P = (x, x²) and Q = (x + h, (x + h)²).
- Rise = (x + h)² − x² = x² + 2xh + h² − x² = 2xh + h².
- Run = (x + h) − x = h.
- Gradient of PQ = (2xh + h²) ÷ h = 2x + h.
- As h shrinks towards 0, the term h shrinks away, and 2x + h approaches 2x.
- So the gradient of y = x² at any point is 2x. We write dy/dx = 2x.
- At x = 4 the gradient is 2 × 4 = 8.
Answer: dy/dx = 2x, so the gradient at x = 4 is 8.
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
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.
- 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.
- Mark P at (1, 1). Mark Q at (3, 9) and draw the chord PQ. Read its rise and its run from the squares.
- 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.
- 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.
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 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.
P (1, 1) and Q (4, 16) are on the curve y = x². What is the gradient of the chord PQ?
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.
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?
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.
What is the gradient of y = x² at x = 0, the lowest point of the curve?
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.
Ana says the gradient of y = x² at (3, 9) is 3, because 9 ÷ 3 = 3. What is the gradient there?
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.
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?
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.
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.
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.
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.