DONAT STEMSciences and MathsENFR
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.

  • Best for S4 · Unit 8: Differentiation of polynomial, rational and irrational functions
  • Also useful S4 · Unit 7: Limits of polynomial, rational and irrational functions (the derivative is a limit)
  • Also useful S5 · Unit 4: Points, straight lines and shapes in 2D (gradient and equation of a straight line)
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.

Simulation

A road engineer designing the climb from Nyabugogo to Kimihurura must know how steep the road is at every point, not only on average. The derivative gives exactly that: the gradient of a curve at one point.

Change and observe

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

  1. 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?
  2. Tap Record the gradient with h = 0.001.
  3. Repeat for a = −2, −1, 0, 2 and 2.5. Look at the graph of gradient against a: what kind of line is it?
  4. Write a formula for the gradient of x² at x = a. Tap Show the derivative to check.
  5. Do the same for 2x² − 4x + 1. Where is the gradient zero? What is special about that point on the curve?
  6. 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³?

2. For f(x) = x², the secant from x = 1 to x = 1.1 has gradient…

3. At a turning point of a smooth curve, f′(x) is…

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).

For class and homework

Teacher resources

The worksheet has the steps, an empty results table, a graph grid and all the questions with answer lines. The marking scheme has the expected results and every answer with its marks.

Keep learning

More free practice: Calculus Grapher (external website, by PhET Interactive Simulations, University of Colorado Boulder). It opens in a new tab.

This simulation is an original model made for Rwandan learners. Real experiments can give slightly different numbers: a simulation never replaces handling real apparatus when your school has it.