Mathematics · Simulation and virtual lab Free
Differentiation: from the secant to the tangent
Make a secant through two points on a curve, move one point closer and closer, and discover the derivative as the gradient of the tangent.
- You will learn to
- Find the gradient of a secant and see it approach the gradient of the tangent as h → 0.
- Build the graph of f′(x) from gradients at many points.
- Use derivatives to find gradients, tangents and turning points.
- You will measure
- Gradient of the secant for smaller and smaller h; f′(a) at several points.
- Time needed
- About 35–45 min
- Equipment
- Nothing extra. Real version: graph paper, ruler, a sharp pencil to draw tangents by hand.
- Price
- Free: no payment, no account.
Virtual lab
Follow the steps with the simulation above (go back to the simulation ↑). Each time you tap Record, a row is added to the table and a point to the graph.
Aim
To find the gradient of a curve at a point as the limit of the gradients of secants, and to find the derivative function f′(x) from these gradients.
What to do
- Choose f(x) = x² and a = 1. Read the gradient of the secant for h = 2, 1, 0.5, 0.1, 0.01 and 0.001 (tap Move the second point closer). What number does it approach?
- Tap Record the gradient with h = 0.001.
- Repeat for a = −2, −1, 0, 2 and 2.5. Look at the graph of gradient against a: what kind of line is it?
- Write a formula for the gradient of x² at x = a. Tap Show the derivative to check.
- Do the same for 2x² − 4x + 1. Where is the gradient zero? What is special about that point on the curve?
- Try x³ − 3x, √x and 1 ÷ x. For x³ − 3x find the two points where the tangent is horizontal.
Results
⚠️ Avoid these mistakes
- Calculating f(a + h) − f(a) without dividing by h.
- Putting h = 0 before simplifying, which gives 0 ÷ 0.
- Mixing up the value of the function f(a) and its gradient f′(a).
✍️ Conclusion
Write your own conclusion first: what do your results and graph show, and which law or principle do they support?
Check your conclusion
As h → 0 the gradient of the secant approaches a limit, the gradient of the tangent: the derivative f′(a). Plotting f′(a) against a gives the derivative function: a straight line 2x for x², 4x − 4 for 2x² − 4x + 1 and a parabola 3x² − 3 for x³ − 3x. The derivative is zero at turning points.
Questions
What is a secant? What is a tangent?
A secant is a straight line through two points of a curve. A tangent touches the curve at one point and has the same gradient as the curve there.
Write the derivative as a limit.
f′(a) = lim (h → 0) [f(a + h) − f(a)] ÷ h.
Use the limit to find the derivative of x² at x = 3.
[(3 + h)² − 9] ÷ h = (6h + h²) ÷ h = 6 + h → 6 as h → 0.
State the power rule.
d/dx (xⁿ) = n xⁿ⁻¹. For example d/dx (x³) = 3x², and d/dx (√x) = ½ x^(−½).
Find the turning point of y = 2x² − 4x + 1.
dy/dx = 4x − 4 = 0 when x = 1; y = 2 − 4 + 1 = −1. The turning point is (1, −1), a minimum.
Why does the gradient of 1 ÷ x stay negative?
f′(x) = −1 ÷ x², and x² is always positive, so the curve always goes down (for x > 0 and for x < 0).
For teachers: expected results and how the model works
h takes the values 2, 1, 0.5, 0.1, 0.01 and 0.001; the secant gradient is computed exactly. For x² at a = 1 the gradients are 4, 3, 2.5, 2.1, 2.01, 2.001 → 2. The lower panel (after “Show the derivative”) plots f′(x) and marks f′(a). Ask learners to predict the derivative graph before showing it; for x³ − 3x they should spot the turning points at x = ±1. √x and 1/x are defined for x > 0 here.
Quick check 3 questions · scored
Choose one answer for each question. You see at once if it is right, why, and your score at the end.
1. What is the derivative of f(x) = x³?
Power rule: d/dx (xⁿ) = n xⁿ⁻¹, so 3x².
2. For f(x) = x², the secant from x = 1 to x = 1.1 has gradient…
(1.21 − 1) ÷ 0.1 = 2.1.
3. At a turning point of a smooth curve, f′(x) is…
The tangent is horizontal, so its gradient is 0.
Your score:
Exam practice Exam set
National-exam style questions on this simulation (19 marks). Try each one on paper first, then open the marking scheme.
Use first principles to differentiate f(x) = x² + 3x. (4 marks)
Marking scheme: f(x + h) − f(x) = 2xh + h² + 3h (1); divide by h: 2x + h + 3 (1); let h → 0 (1): f′(x) = 2x + 3 (1).
Differentiate: (a) y = 4x³ − 5x + 7, (b) y = 6√x, (c) y = 3 ÷ x². (4 marks)
Marking scheme: (a) 12x² − 5 (1, 1). (b) 3 ÷ √x (1). (c) −6 ÷ x³ (1).
Find the equation of the tangent to y = x³ − 3x at the point where x = 2. (4 marks)
Marking scheme: y(2) = 8 − 6 = 2 (1); dy/dx = 3x² − 3 = 9 at x = 2 (1); y − 2 = 9(x − 2) (1); y = 9x − 16 (1).
Find the stationary points of y = x³ − 3x and determine their nature. (4 marks)
Marking scheme: dy/dx = 3x² − 3 = 0, x = ±1 (1); points (1, −2) and (−1, 2) (1); d²y/dx² = 6x: at x = 1 it is positive → minimum (1); at x = −1 negative → maximum (1).
A ball is thrown up so that its height is h = 20t − 4.9t² metres. Find its velocity at t = 1 s and the time when it is highest. (3 marks)
Marking scheme: dh/dt = 20 − 9.8t (1); at t = 1, v = 10.2 m/s (1); highest when 20 − 9.8t = 0, t = 2.04 s (1).

Donat Sciences and MathsMathematics · Virtual lab worksheet
School: ........................................ Name: ................................ Class: ........ Date: ............
Differentiation: from the secant to the tangent
Aim: To find the gradient of a curve at a point as the limit of the gradients of secants, and to find the derivative function f′(x) from these gradients.
Apparatus (real laboratory): graph paper, ruler, a sharp pencil to draw tangents by hand.
What to do (with the simulation on www.donatstem.co.rw)
- Choose f(x) = x² and a = 1. Read the gradient of the secant for h = 2, 1, 0.5, 0.1, 0.01 and 0.001 (tap Move the second point closer). What number does it approach?
- Tap Record the gradient with h = 0.001.
- Repeat for a = −2, −1, 0, 2 and 2.5. Look at the graph of gradient against a: what kind of line is it?
- Write a formula for the gradient of x² at x = a. Tap Show the derivative to check.
- Do the same for 2x² − 4x + 1. Where is the gradient zero? What is special about that point on the curve?
- Try x³ − 3x, √x and 1 ÷ x. For x³ − 3x find the two points where the tangent is horizontal.
Results
| # | f(x) | a | f(a) | h | Gradient of secant | f′(a) |
|---|
| 1 | | | | | | |
| 2 | | | | | | |
| 3 | | | | | | |
| 4 | | | | | | |
| 5 | | | | | | |
| 6 | | | | | | |
| 7 | | | | | | |
| 8 | | | | | | |
| 9 | | | | | | |
| 10 | | | | | | |
| 11 | | | | | | |
| 12 | | | | | | |
Graph
Plot the gradient at x = a (vertical axis) against a for each function. Join the points: this is the graph of f′(x).
Questions
- What is a secant? What is a tangent? [2]
- Write the derivative as a limit. [2]
- Use the limit to find the derivative of x² at x = 3. [2]
- State the power rule. [2]
- Find the turning point of y = 2x² − 4x + 1. [2]
- Why does the gradient of 1 ÷ x stay negative? [2]
- Use first principles to differentiate f(x) = x² + 3x. [4]
- Differentiate: (a) y = 4x³ − 5x + 7, (b) y = 6√x, (c) y = 3 ÷ x². [4]
- Find the equation of the tangent to y = x³ − 3x at the point where x = 2. [4]
- Find the stationary points of y = x³ − 3x and determine their nature. [4]
- A ball is thrown up so that its height is h = 20t − 4.9t² metres. Find its velocity at t = 1 s and the time when it is highest. [3]

Donat Sciences and MathsMathematics · Virtual lab worksheet
School: ........................................ Name: ................................ Class: ........ Date: ............
Marking scheme: Differentiation: from the secant to the tangent
Expected results
h takes the values 2, 1, 0.5, 0.1, 0.01 and 0.001; the secant gradient is computed exactly. For x² at a = 1 the gradients are 4, 3, 2.5, 2.1, 2.01, 2.001 → 2. The lower panel (after “Show the derivative”) plots f′(x) and marks f′(a). Ask learners to predict the derivative graph before showing it; for x³ − 3x they should spot the turning points at x = ±1. √x and 1/x are defined for x > 0 here.
Answers
- What is a secant? What is a tangent? [2]
A secant is a straight line through two points of a curve. A tangent touches the curve at one point and has the same gradient as the curve there.
- Write the derivative as a limit. [2]
f′(a) = lim (h → 0) [f(a + h) − f(a)] ÷ h.
- Use the limit to find the derivative of x² at x = 3. [2]
[(3 + h)² − 9] ÷ h = (6h + h²) ÷ h = 6 + h → 6 as h → 0.
- State the power rule. [2]
d/dx (xⁿ) = n xⁿ⁻¹. For example d/dx (x³) = 3x², and d/dx (√x) = ½ x^(−½).
- Find the turning point of y = 2x² − 4x + 1. [2]
dy/dx = 4x − 4 = 0 when x = 1; y = 2 − 4 + 1 = −1. The turning point is (1, −1), a minimum.
- Why does the gradient of 1 ÷ x stay negative? [2]
f′(x) = −1 ÷ x², and x² is always positive, so the curve always goes down (for x > 0 and for x < 0).
- Use first principles to differentiate f(x) = x² + 3x. [4]
f(x + h) − f(x) = 2xh + h² + 3h (1); divide by h: 2x + h + 3 (1); let h → 0 (1): f′(x) = 2x + 3 (1).
- Differentiate: (a) y = 4x³ − 5x + 7, (b) y = 6√x, (c) y = 3 ÷ x². [4]
(a) 12x² − 5 (1, 1). (b) 3 ÷ √x (1). (c) −6 ÷ x³ (1).
- Find the equation of the tangent to y = x³ − 3x at the point where x = 2. [4]
y(2) = 8 − 6 = 2 (1); dy/dx = 3x² − 3 = 9 at x = 2 (1); y − 2 = 9(x − 2) (1); y = 9x − 16 (1).
- Find the stationary points of y = x³ − 3x and determine their nature. [4]
dy/dx = 3x² − 3 = 0, x = ±1 (1); points (1, −2) and (−1, 2) (1); d²y/dx² = 6x: at x = 1 it is positive → minimum (1); at x = −1 negative → maximum (1).
- A ball is thrown up so that its height is h = 20t − 4.9t² metres. Find its velocity at t = 1 s and the time when it is highest. [3]
dh/dt = 20 − 9.8t (1); at t = 1, v = 10.2 m/s (1); highest when 20 − 9.8t = 0, t = 2.04 s (1).