Definition of the derivative
The derivative turns the tangent problem and the velocity problem into one tool: a limit of difference quotients that measures instantaneous rate of change anywhere on a curve.
From one point to every point
In the last unit we found the slope of a tangent line at a single point by taking a limit. If we do that at every point at once, we get a new function that reports the slope of the original curve wherever you ask. That new function is the derivative. It answers 'how fast is this changing right now?' for positions, prices, temperatures, populations, and anything else that varies.
The definition
The derivative of \(f\) at \(x\) is the limit of the difference quotient as \(h\) approaches \(0\). If this limit exists, we say \(f\) is differentiable at \(x\). The expression \(\frac{f(x+h)-f(x)}{h}\) is the slope of a secant line; the limit is the slope of the tangent line.
f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}Notation you will see
Several notations mean the same thing. Lagrange's prime notation writes \(f'(x)\). Leibniz notation writes \(\frac{dy}{dx}\) or \(\frac{d}{dx}f(x)\), which reminds you that the derivative is a ratio of tiny changes in \(y\) and \(x\). In physics you may see a dot, \(\dot{x}\), for a rate with respect to time. Each is useful: Leibniz notation is especially handy for the chain rule and for keeping track of units.
f'(x) = \frac{dy}{dx} = \frac{d}{dx} f(x)Worked example: the derivative of x squared
Let \(f(x) = x^2\). Then \(f(x+h) - f(x) = (x+h)^2 - x^2 = 2xh + h^2\). Dividing by \(h\) gives \(2x + h\), and letting \(h \to 0\) leaves \(2x\). So \(f'(x) = 2x\). Check it against what you know: at \(x = 1\) the slope is \(2\), matching the tangent we found before; at \(x = 0\) the slope is \(0\), the bottom of the parabola; for negative \(x\) the slope is negative, so the curve is falling.
\frac{d}{dx} x^2 = \lim_{h\to 0} (2x + h) = 2xWorked example: the derivative of 1/x
Let \(f(x) = \frac{1}{x}\). The difference quotient is \(\frac{1}{h}\left(\frac{1}{x+h} - \frac{1}{x}\right)\). Combine the fractions: \(\frac{x - (x+h)}{x(x+h)} = \frac{-h}{x(x+h)}\). Dividing by \(h\) gives \(\frac{-1}{x(x+h)}\), which approaches \(-\frac{1}{x^2}\). The derivative is always negative, which matches the graph of \(1/x\): it falls on both branches.
\frac{d}{dx}\frac{1}{x} = -\frac{1}{x^2}Reading a derivative as a rate
If \(s(t)\) is position in metres and \(t\) is in seconds, then \(s'(t)\) is velocity in metres per second. If \(C(q)\) is the cost in dollars of making \(q\) items, \(C'(q)\) is dollars per item, the marginal cost. The units of a derivative are always the output units divided by the input units. Saying '\(C'(100) = 4\)' means that around 100 items, each extra item costs about \$4.
The derivative as a function and its graph
You can sketch \(f'\) from the graph of \(f\). Where \(f\) is rising, \(f' > 0\); where it is falling, \(f' < 0\); at a peak or valley with a smooth top, \(f' = 0\). Steep parts of \(f\) give large values of \(|f'|\). Practise this by tracing a curve with your finger and calling out 'positive, zero, negative' as the slope changes.
Differentiable implies continuous
If a function has a derivative at a point, it must be continuous there. The reverse is not true. The absolute value function \(|x|\) is continuous at \(0\) but has a sharp corner: the slope is \(-1\) from the left and \(+1\) from the right, so the limit of the difference quotient does not exist. Corners, cusps, vertical tangents, and breaks are the places where derivatives fail.
Higher derivatives
The derivative of the derivative is the second derivative, \(f''(x)\) or \(\frac{d^2y}{dx^2}\). If \(s(t)\) is position, \(s'(t)\) is velocity and \(s''(t)\) is acceleration. For \(f(x) = x^3\), \(f'(x) = 3x^2\) and \(f''(x) = 6x\). The second derivative measures how the slope itself is changing, which is the key to concavity in the next unit.
f''(x) = \frac{d}{dx} f'(x)Estimating derivatives from data
Real data often comes as a table rather than a formula. To estimate a derivative at a point, use a symmetric difference: \(\frac{f(a+h) - f(a-h)}{2h}\) with the nearest data values on each side. If a city had 50,000 people in 2020 and 54,000 in 2024, the population grew at roughly \(\frac{4000}{4} = 1000\) people per year around 2022.
Common mistakes
Writing \(f(x) + h\) instead of \(f(x+h)\). Forgetting to subtract \(f(x)\). Setting \(h = 0\) before cancelling, which gives \(\frac{0}{0}\). Assuming a continuous function must be differentiable. Forgetting units when interpreting \(f'(a)\) in a word problem.
Try it yourself
Use the definition to differentiate \(f(x) = 3x^2 - 5x\). Answer: \(f(x+h) - f(x) = 6xh + 3h^2 - 5h\); divide by \(h\) to get \(6x + 3h - 5\); let \(h \to 0\) to get \(f'(x) = 6x - 5\). Then find where the tangent line is horizontal: \(6x - 5 = 0\), so \(x = \frac{5}{6}\).
Key takeaways
The derivative \(f'(x)\) is the limit of the difference quotient. It gives the slope of the tangent line and the instantaneous rate of change, with units of output per input. Differentiable functions are continuous, but corners and cusps break differentiability. Second derivatives describe how rates themselves change, like acceleration.
Flashcard
Definition of the derivative
Check your understanding
Using the definition, what is the derivative of f(x) = 3x^2?
