Mathematical concepts
Derivative (rate of change)
Also called: differentiation · dy/dx · instantaneous rate · finite difference
Definition
The derivative of a quantity is its instantaneous rate of change: the gradient of its graph at a point.
Picture it
Velocity is the derivative of position, acceleration the derivative of velocity. A computer estimates a derivative from samples with a finite difference: the change between two readings divided by the time between them. Noise gets amplified, which is why derivative control usually needs filtering.
The maths
dy/dx = limit of Δy/Δx as Δx → 0 finite difference: (y[k] − y[k−1]) / Δt d/dx (x^n) = n x^(n−1)
| Quantity | Unit | Symbol |
|---|---|---|
| velocity | metre per second | m/s |
| acceleration | metre per second squared | m/s² |
| time | second | s |
Worked example
An encoder reports a position of 1.20 m and, 0.05 s later, 1.23 m. Estimate the velocity. Separately, what is the derivative of s = 4t² at t = 3 s?
- v ≈ (1.23 − 1.20) / 0.05 = 0.6 m/s
- ds/dt = 8t, so at t = 3 s, ds/dt = 24 m/s
AnswerAbout 0.6 m/s from the samples; 24 m/s for s = 4t² at t = 3 s.
✓ The 2 numbers in this answer are recomputed from scratch by an automated test.
Common misconceptions
- Misconception: Dividing by a tiny Δt makes small measurement noise look like huge rates.
- Misconception: A derivative of zero means flat at that point, not that the quantity is zero.