Calculus · Grade 12 and undergraduate
The Derivative: Slope of the Tangent Line and Rate of Change
Quick answer
The average rate of change of f from a to a + h is the slope of a secant line, (f(a + h) − f(a))/h. Letting h shrink to 0 turns secants into the tangent line and averages into an instantaneous rate: that limit is the derivative f′(a). Computed at every x it gives a new function, f′(x), also written dy/dx. A function is not differentiable at a corner, a cusp, a vertical tangent or a discontinuity; differentiability implies continuity, but not the reverse.
What you'll learn
- Compute an average rate of change as the slope of a secant line
- Find a derivative from the limit definition
- Write the equation of a tangent line
- Identify where a function is not differentiable, and why
Average rate of change
Over an interval from to , a function changes by while the input changes by . The ratio
is the average rate of change, called the difference quotient. It is the slope of the secant line through and .
From secant to tangent
Take and . As shrinks, the secant lines pivot around and settle onto the tangent line.
- y = x²
- secant, h = 1
- secant, h = 0.5
- tangent
| secant slope |
The slopes approach , and algebra confirms it: .
The definition
The derivative of at is
when this limit exists. Geometrically it is the slope of the tangent line at . Physically it is the instantaneous rate of change of at , measured in units of output per unit of input.
The tangent line itself is
Why the derivative has to be a limit
“The rate of change at an instant” sounds like a paradox. A rate compares two changes, and at a single instant nothing has changed: setting in the difference quotient gives .
That is precisely the kind of expression limits were built for. The limit never sets . It asks what the averages over ever shorter intervals are heading toward. When they close in on a single number, that number is the only sensible meaning of the instantaneous rate. The derivative is the limit of average rates, because no single average can capture an instant.
The derivative as a function
Letting the point vary gives a new function, the derivative:
For the same algebra gives . Other common notations are
The notation, due to Leibniz, recalls where the derivative came from: a small change in over a small change in .
Where the derivative fails
A differentiable function is continuous: if exists, then . The converse is false. A function can be continuous and still have no derivative at a point:
- y = |x| (corner)
- y = x^(2/3) (cusp)
- y = ∛x (vertical tangent)
- Corner: the one-sided slopes differ ( and for ).
- Cusp: the one-sided slopes go to and .
- Vertical tangent: the slopes go to from both sides.
- Discontinuity: a function that is not continuous at cannot be differentiable there.
Worked examples
Common mistakes
Practice problems
-
Find the average rate of change of from to .
Answer
Full solution
.
-
Use the definition to find for .
Answer
Full solution
. Divided by : .
-
Use the definition to find for .
Answer
Full solution
. A line has the same slope everywhere.
-
Find the tangent line to at .
Answer
Full solution
, so the slope is and the point is . Then , so .
-
Use the definition to find for .
Answer
Full solution
. Divided by : .
-
A ball’s height is meters after seconds. Find its velocity at .
Answer
meters per second
Full solution
. Divided by : .
-
Use the definition to find for .
Answer
Full solution
. Divided by : .
-
Is differentiable at ? At ?
Answer
Not at ; yes at (with ).
Full solution
At the graph has a corner: the one-sided slopes are and . Near , , a line with slope .
-
The limit is for which function and number ?
Answer
and
Full solution
It matches with and .
-
A student finds the tangent line to at as . What went wrong?
Hint
Is that equation a line?
Answer
The slope must be the number , not the function . The tangent is .
Full solution
is a parabola. A tangent line needs one fixed slope: the derivative evaluated at the point.
With : , so .
Frequently asked questions
What is the derivative?
The limit of the difference quotient: f′(a) = lim as h → 0 of (f(a + h) − f(a))/h. It is the slope of the tangent line at a and the instantaneous rate of change of f there.
What is the difference between average and instantaneous rate of change?
The average rate is the change over an interval, the slope of a secant line. The instantaneous rate is the limit of those averages as the interval shrinks to a point.
How do I find the equation of a tangent line?
Find the point (a, f(a)) and the slope f′(a), then use point-slope form: y − f(a) = f′(a)(x − a).
Where is a function not differentiable?
At corners, cusps, vertical tangents and discontinuities — anywhere the difference quotient has no finite limit.
Does differentiable mean continuous?
Yes, a differentiable function is continuous. The reverse fails: |x| is continuous at 0 but has a corner there.