• Foundation
  • About 13 min
  • 5 practice questions

The derivative: slope and rate of change

Understand the derivative as the limit of an average rate of change, read it as the slope of a tangent or an instantaneous speed, and compute it from the definition for simple polynomials.

If something looks wrong, please tell us.

Speedometers show speed at an instant, not an average over a journey. Calculus explains how such an 'instant' rate can be defined. The tool is the derivative, and it is built from the limits you may already know. This lesson gives the idea and the definition; later lessons give quick rules for computing derivatives.

Average rate of change

For a function y = f(x), the average rate of change from x = a to x = a + h is [f(a + h) − f(a)]/h. On a graph, it is the slope of the straight line (a secant) through the points (a, f(a)) and (a + h, f(a + h)). For example, for f(x) = x² from x = 1 to x = 3, the average rate of change is (9 − 1)/2 = 4.

From average to instantaneous

Now let h shrink towards 0. The second point slides along the curve towards the first, and the secant turns into the tangent at x = a. The limit of the average rate of change is the instantaneous rate of change. It is called the derivative of f at a.

f′(a) = lim(h→0) [f(a + h) − f(a)]/h, when this limit exists. It is the slope of the tangent to y = f(x) at x = a and the instantaneous rate of change of f at a.

When we find this limit for a general x we get a new function f′(x), also written dy/dx or d/dx f(x). Working the limit out directly from the definition is called differentiation from first principles.

Worked example 1: f(x) = x² at x = 3

f(3 + h) = 9 + 6h + h², so f(3 + h) − f(3) = 6h + h². Dividing by h gives 6 + h for h ≠ 0. As h → 0 this tends to 6, so f′(3) = 6. The tangent to y = x² at the point (3, 9) has slope 6. Doing the same at a general x gives (2xh + h²)/h = 2x + h → 2x, so f′(x) = 2x.

Worked example 2: a straight line

Let f(x) = 3x + 5. Then f(x + h) − f(x) = 3h, and 3h/h = 3 for every h ≠ 0. So f′(x) = 3 at every x. This makes sense: a straight line has the same slope everywhere, and its tangent is the line itself. In particular, the derivative of a constant function is 0, since its graph is a horizontal line.

Worked example 3: speed at an instant

A ball rolls so that its distance from the start after t seconds is s(t) = 5t² metres. Its average speed between t = 2 and t = 2 + h is [5(2 + h)² − 20]/h = (20h + 5h²)/h = 20 + 5h m/s. Over shorter and shorter intervals this approaches 20, so the speed at the instant t = 2 is 20 m/s. This is exactly s′(2).

What the derivative tells you

  • The slope of the graph at a point: a positive derivative means the graph is rising, a negative one means it is falling.
  • How fast a quantity changes: speed is the rate of change of distance, and the units are (units of y) per (unit of x).
  • Where a graph is flat: a derivative of 0 means a horizontal tangent.

Key takeaways: the derivative is a limit of slopes of secants, which gives the slope of the tangent. Write f(a + h) − f(a), divide by h, simplify so that h cancels, and then let h → 0. A straight line y = mx + c has derivative m everywhere, and a constant has derivative 0.

Check your understanding

  1. 1. What is the average rate of change of f(x) = x² from x = 1 to x = 3?

    1. 8
    2. 2
    3. 4
    4. 6
    Show answer

    Answer: C. [f(3) − f(1)]/(3 − 1) = (9 − 1)/2 = 4.

  2. 2. Using the definition, what is f′(2) for f(x) = x²?

    1. 4
    2. 2
    3. 8
    4. 0
    Show answer

    Answer: A. [(2 + h)² − 4]/h = (4h + h²)/h = 4 + h → 4.

  3. 3. What is the derivative of f(x) = 3x + 5?

    1. 5
    2. 8
    3. 3
    4. 0
    Show answer

    Answer: C. [3(x + h) + 5 − 3x − 5]/h = 3h/h = 3. The derivative of a line is its slope.

  4. 4. What does f′(a) represent on the graph of y = f(x)?

    1. The value of f at x = a
    2. The slope of the line joining (0, f(0)) and (a, f(a))
    3. The slope of the tangent to the graph at x = a
    4. The area under the graph from 0 to a
    Show answer

    Answer: C. f′(a) is the limit of secant slopes as the second point approaches a, which is the slope of the tangent at x = a.

  5. 5. A particle's distance is s(t) = t² + 2t metres after t seconds. What is its speed at t = 3 s?

    1. 15 m/s
    2. 5 m/s
    3. 8 m/s
    4. 6 m/s
    Show answer

    Answer: C. [s(3 + h) − s(3)]/h = [(3 + h)² + 2(3 + h) − 15]/h = (8h + h²)/h → 8. The speed is 8 m/s.

Sign in to keep track of the lessons you finish.

Next lesson → Derivatives from first principles

Privacy · Terms · Refunds · Delivery