# Rates of change and derivatives

Work out the average rate over shorter and shorter intervals. The value those averages settle on is the rate at the instant, and it is called the derivative.

Written for this edition, not translated from Einstein.

## How can a body have a speed at a single instant?

A speed needs two readings of position and the time between them: divide the distance covered by the time taken, and you have the average speed over that interval. An instant has no duration, so that recipe cannot be used at an instant as it stands.

So shorten the interval and watch what happens. A ball rolls so that after t seconds it has gone 3t² metres: 3 m after one second, 12 m after two. Start at the one-second mark and average over shorter and shorter stretches:

1. Over the next second it goes from 3 m to 12 m: 9 m in 1 s, an average of 9 m/s.
2. Over the next tenth of a second it reaches 3.63 m: 0.63 m in 0.1 s, an average of 6.3 m/s.
3. Over the next hundredth it reaches 3.0603 m: 0.0603 m in 0.01 s, an average of 6.03 m/s.
4. Over the next thousandth it reaches 3.006003 m: 0.006003 m in 0.001 s, an average of 6.003 m/s.

The averages close in on 6 m/s. That number is the derivative: the ball's speed at the instant t = 1 s. The interval is never set to zero, which would mean dividing zero distance by zero time. It only shrinks, and the averages settle.

In symbols, with Δt for the short interval, the same recipe reads:

$$
\frac{dx}{dt} = \lim_{\Delta t \to 0} \frac{x(t+\Delta t) - x(t)}{\Delta t}
$$

d x by d t is the value that the change in position divided by the change in time settles on as delta t shrinks towards zero.

A derivative carries units: those of the quantity that changes, divided by those of the quantity you vary. Position in metres, varied over time in seconds, gives metres per second. On a graph of position against time, the derivative at a point is the steepness of the curve there.

Einstein's Brownian paper needs rates like this for a concentration of particles, which changes along a tube and in time at once. With two things changing, a rate has to say which one it follows, so the paper writes a curly ∂ and holds the other fixed:

$$
\frac{\partial f}{\partial t} = D\,\frac{\partial^2 f}{\partial x^2}
$$

The partial derivative of f with respect to t equals D times the second partial derivative of f with respect to x.

The lesson on partial derivatives, listed at the end of this page, reads that equation one piece at a time.

## Worked example: Why the averages settle on 6 m/s

The list of averages can be explained, not only watched. Start at any time t and let the interval be Δt. In that interval the ball moves 3(t + Δt)² − 3t² metres. Since (t + Δt)² is t² + 2tΔt + (Δt)², that distance is:

$$
3(t+\Delta t)^2 - 3t^2 = 6t\,\Delta t + 3(\Delta t)^2
$$

Three times t plus delta t, squared, minus three t squared, equals six t delta t plus three delta t squared.

Divide that distance by the time Δt to get the average speed over the interval:

$$
\frac{6t\,\Delta t + 3(\Delta t)^2}{\Delta t} = 6t + 3\,\Delta t
$$

Six t delta t plus three delta t squared, divided by delta t, equals six t plus three delta t.

The 3Δt term shrinks with the interval and leaves 6t metres per second. At t = 1 s that is 6 m/s. The extra 3, 0.3, 0.03 and 0.003 in the list above are that 3Δt term, for Δt of 1, 0.1, 0.01 and 0.001 seconds.

## Where this lesson stops

A derivative is the value an average rate settles on as the interval shrinks, in units of one quantity per unit of the other. The interval shrinks but is never set to zero, so nothing is ever divided by zero.

## This lesson builds on

- [Functions and graphs](/foundations/functions-graphs/)
