What Is a Derivative?
A derivative measures how fast a function’s output changes at one specific input. Geometrically it is the slope of the tangent line to the graph at that point. Physically it is an instantaneous rate of change, such as the velocity of a moving object at a single moment.
Average vs. instantaneous rate of change
Suppose you drive 120 km in 2 hours. Your average speed is 120 ÷ 2 = 60 km/h. That figure describes the whole trip and says nothing about any single moment. You may have cruised at 90 km/h on a highway and stood at 0 km/h at a traffic light.
A speedometer answers a different question. It shows how fast you are going right now, at this instant. That reading is an instantaneous rate of change, and the derivative is its precise mathematical version.
The difference is the difference between an interval and a point. You can find an average rate of change over any interval with a division. To get the rate at one point, you shrink the interval toward zero length and ask what the average settles toward. The definition below does exactly that.
The limit definition
For a function f, the derivative at x is
f'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h},
provided this limit exists. Here is what each piece means:
| Piece | Meaning |
|---|---|
| f(x) | The output at the point you care about |
| h | A small, nonzero step along the x-axis, so x+h is a nearby input |
| f(x+h)-f(x) | How much the output changed over that step |
| \dfrac{f(x+h)-f(x)}{h} | Change in output per unit of input over the step: the average rate of change |
| \lim\limits_{h\to 0} | The value that average rate approaches as the step shrinks toward zero |
The quotient is also the slope of the secant line, the straight line through the points (x, f(x)) and (x+h, f(x+h)) on the graph. Letting h \to 0 turns that secant slope into a tangent slope. The picture is in the geometric section below.
The limit does not exist for every function at every point. Where it fails, the function has no derivative there. The article on when a derivative does not exist covers the typical cases.
Worked example from the definition
Let f(x)=x^2. Apply the definition step by step.
Write out f(x+h): f(x+h)=(x+h)^2=x^2+2xh+h^2.
Subtract f(x)=x^2: f(x+h)-f(x)=x^2+2xh+h^2-x^2=2xh+h^2.
Divide by h. This is allowed because h \ne 0 in the quotient, and it lets you factor h out and cancel it: \frac{2xh+h^2}{h}=\frac{h(2x+h)}{h}=2x+h.
Let h \to 0: f'(x)=\lim_{h\to 0}(2x+h)=2x.
So the derivative of x^2 is 2x. To get the slope at a particular point, substitute the x-value: f'(3)=2\cdot 3=6.
The graph of y=x^2 has slope 6 at the point (3, 9). Every derivative computed from the definition follows the same pattern: expand, simplify until h cancels, then let h go to 0.
Geometric meaning: the slope of the tangent
Stay with f(x)=x^2 and the point (3, 9). Pick a second point on the graph at x = 3+h and find the secant slope. By step 3 above, the secant slope at x=3 equals 2\cdot 3+h = 6+h.
| Step h | Second point | Secant slope |
|---|---|---|
| 1 | (4,\ 16) | 7 |
| 0.1 | (3.1,\ 9.61) | 6.1 |
| 0.01 | (3.01,\ 9.0601) | 6.01 |
As the second point slides toward (3, 9), the secant lines rotate and flatten toward one limiting line, the tangent. Their slopes approach 6, and that value is f'(3).
This gives you a quick way to read a derivative off a graph. A positive derivative means the graph is rising at that point, and a negative one means it is falling. A value near zero means the graph is nearly flat there. A large absolute value means the graph is steep.
Physical meaning: velocity
Position is the classic case. Suppose an object’s distance from its starting point is s(t)=5t^2 metres after t seconds. Its average velocity between times t and t+h is
\frac{5(t+h)^2-5t^2}{h}=\frac{10th+5h^2}{h}=10t+5h.
Letting h \to 0 gives the instantaneous velocity: v(t)=s'(t)=10t.
At t=3 seconds, v(3)=10\cdot 3=30 m/s.
The unit of a derivative is always the unit of y per unit of x. Here that is metres per second. Differentiating velocity once more gives acceleration, which belongs to the topic of higher-order derivatives.
Notation
The same derivative is written in several ways, and each has its natural setting.
| Notation | Read as | When it is used |
|---|---|---|
| f'(x) | “f prime of x” | Compact form for a function named f. Convenient for values such as f'(3). |
| \dfrac{dy}{dx} | “the derivative of y with respect to x” | When y is a variable that depends on x. It names both variables, as in \dfrac{ds}{dt} for velocity. |
| \dfrac{d}{dx}f(x) | “d dx of f of x” | Treats differentiation as an operation applied to an expression, as in \dfrac{d}{dx}x^2=2x. |
The symbol \frac{dy}{dx} comes from the ratio of a small change in y to a small change in x. For now, read it as one symbol meaning “the derivative”. To evaluate it at a point, write \left.\frac{dy}{dx}\right|_{x=3}, which means the same as f'(3).
What derivatives are used for
The definition looks abstract, but the same idea drives a lot of practical work:
- Tangent lines and approximations. The tangent line at a point is a good stand-in for the curve near that point, which makes tangent lines and linear approximations possible.
- Maximum and minimum values. A smooth graph is flat at a peak or a valley, so locating extrema comes down to finding where the derivative is zero.
- The shape of a graph. The sign of the derivative shows where a curve rises or falls, and how the derivative itself changes shows how the curve bends.
- Rates in applications. Any quantity that changes with time or with another variable has a derivative that says how fast it changes. Velocity is one example.
Finding derivatives in practice
The limit definition always works, but it is slow, and it gets painful once a function has more than a couple of terms. In practice you learn a small set of rules for differentiating and a table of standard results, and apply them directly. The definition remains the reason those rules are true.
A calculator can handle the mechanical part and leave you free to think. The one here shows the rule applied at each step and plots a function with its derivative. It also has an answer checker that accepts any equivalent form of your derivative, so you can test your own work.
Try it: Open
x^2at the point x=3 in the derivative calculator. The calculator shows f'(x)=2x and plots f together with f'. Under the graph, the row “Value / tangent at a point” is filled in with x=3: it reports f(3)=9 and f'(3)=6 and draws the tangent line, printed asy = 6·x − 9. On the graph of f' the height at x=3 is 6, which is the slope of f there. Where f' is negative (x<0), f is falling, and where f' is positive (x>0), f is rising.
Frequently asked questions
Is the derivative the same as the slope?
At a single point, yes: the derivative is the slope of the tangent line there. For a straight line y=mx+b the definition gives m at every point, so the derivative matches the ordinary slope. For a curve the slope changes from point to point, so the derivative is a whole function that gives the slope at each x. A single number such as f'(3)=6 is the slope at one point.
Why does h never equal 0 in the definition?
Setting h=0 in the quotient gives \frac{0}{0}, which has no value. The limit asks what the quotient approaches as h gets arbitrarily close to 0 without ever being 0. In the example above, the quotient equals 2x+h for every h\ne 0, and it approaches 2x as h shrinks. That value, 2x, is what the derivative is defined to be.
What do the units of a derivative mean?
The derivative tells you how many units of y the function changes per one unit of x, at that point. A temperature in °C measured against time in hours has a derivative in °C per hour. The result is a rate at one moment, not an amount accumulated over time. In the earlier example, v(3)=30 m/s describes the speed at t=3 and does not say how far the object has travelled.
Where to go next
- Table of derivatives and rules: the shortcuts that replace the limit definition in everyday work.
- Differentiability and one-sided derivatives: see exactly where the limit in the definition can fail.
- Tangent and normal lines: turn the slope at a point into the equation of a line.
When you are ready to practise, the step-by-step derivative calculator names the rule used at each step, and its “Check your answer” box tests your own result.