# Functions and graphs

A function gives exactly one output for each input. Its graph lays those pairs out on two axes, and every slope or area read off it carries units made from the two axes' units.

Written for this edition, not translated from Einstein.

## How does a graph record the way one quantity depends on another?

A bath fills from a tap. After one minute it holds 10 litres, after two 20, after three 30. For each time there is exactly one amount of water, and that pairing, one output for each input, is a function. Plot the pairs with time along the bottom and litres up the side and they fall on a straight line that climbs 10 litres for every minute. The slope, in litres per minute, is how fast the bath fills.

In the papers the pairs are physical: the mean square displacement of a Brownian particle for each elapsed time, or the concentration for each position along a tube. A function says how one thing responds when another changes.

A graph puts the input along the horizontal axis and the output up the vertical one, so each point is one pair. Both axes carry units, and so does everything read off the graph: the slope of mean square displacement against time is in square micrometres per second, and the area under a probability density is a plain probability.

A formula such as ⟨x²⟩ = 2Dt describes an average over many particles. One particle's squared displacement scatters widely around the line; the average over many lies close to it. The Brownian paper predicts the average, and ends by hoping that a researcher will soon decide the question by observation.

## Worked example: Mean square displacement plotted against time

$$
\langle x^2\rangle = 2Dt
$$

The mean square displacement equals two times the diffusion coefficient times the time.

1. Take D = 0.5 square micrometres per second, so 2D = 1 square micrometre per second.
2. At t = 1 s the mean square displacement is 1 µm²; at t = 4 s it is 4 µm²; at t = 9 s, 9 µm².
3. Plotted against time, these points lie on a straight line through the origin whose slope is 2D, 1 µm² per second.
4. Their square roots, the root-mean-square displacements, are 1, 2 and 3 µm: four times the time gives twice the distance.

## Where this lesson stops

A graph is a record of paired quantities, each with its units. A slope read off it has units too, and a slope stated without them explains nothing.

## This lesson builds on

- [Reading a graph](/foundations/bridge-a-graph/)
