Derivatives and Rates
The derivative measures instantaneous change. It turns the average slope of a secant line into the slope of a tangent line by shrinking the input interval to zero. In physical language, the same idea turns average velocity into instantaneous velocity, average growth into current growth rate, and average cost into marginal cost.
Derivatives are the first major payoff of limits. They connect local graph shape, rates with units, and linear approximation. A derivative is not only a formula to compute; it is a function that tells how another function is changing at every point where the limit exists.
Definitions
For a function , the derivative at is
provided the limit exists. The quotient
is the slope of the secant line through and . The derivative is the limiting slope of these secant lines as the second point approaches the first.
The derivative function is
Alternative notation includes
If is position at time , then velocity is
and acceleration is
The units of a derivative are output units per input unit. If is measured in meters and in seconds, then is measured in meters per second. If is cost in dollars for units produced, then is dollars per unit.
A function is differentiable at if exists. Differentiability can fail at corners, cusps, vertical tangents, jumps, holes, or oscillations. A tangent line to a differentiable graph at is
One-sided derivatives are useful at endpoints and corners:
The derivative exists exactly when the two one-sided derivative limits exist and agree. On a closed interval , a function can have a right-hand derivative at and a left-hand derivative at , but ordinary differentiability is usually discussed at interior points.
Higher derivatives repeat the same operation. The second derivative measures how changes, and in graph language it measures concavity. If , slopes are increasing and the graph is concave up. If , slopes are decreasing and the graph is concave down. This makes the derivative a bridge from local linear change to the larger shape of the graph.
Key results
If is differentiable at , then is continuous at . A proof sketch starts from
for . As , the first factor approaches and the second factor approaches , so . Therefore .
The converse is false. The function is continuous at but not differentiable there because
The two one-sided derivative limits disagree, so the derivative does not exist.
The derivative controls a first-order approximation:
for small . This says that near , the graph is well approximated by its tangent line. The approximation becomes more accurate relative to as when is differentiable.
For motion, the sign of velocity indicates direction, while speed is . Positive acceleration means velocity is increasing, not necessarily that the object is moving to the right. An object moving left with negative velocity and negative acceleration is speeding up because the velocity is becoming more negative.
Geometrically, a positive derivative means the tangent line rises left to right. A negative derivative means it falls. A zero derivative means a horizontal tangent, which may signal a local maximum, local minimum, or neither.
The derivative may also be read as the best linear coefficient near a point. If is small, then
This is a local statement, not a global one. A large input change may make the tangent-line estimate poor, especially when the graph has strong curvature. The second derivative later gives a way to judge the likely size and direction of that error.
Normal lines are perpendicular to tangent lines. If and , the normal slope is . If the tangent is horizontal, the normal is vertical. This geometry is useful in curve sketching, optics, constrained motion, and optimization problems where a direction perpendicular to a level curve matters.
Rates should always be interpreted in context. If people per year, then the population is increasing at that instant at approximately people per year; it does not mean exactly people are added over every nearby year. If dollars per item, then producing the st item costs about more, assuming one unit is a small enough change for the marginal approximation to be sensible.
Another useful interpretation is sensitivity. If has large magnitude, a small error in the input can create a relatively large error in the output. If is near zero, the output is locally insensitive to small input changes. This idea appears in measurement error, numerical methods, optimization, and stability analysis. For instance, if a radius measurement has error , then the area error for a circle is approximately , so the same measuring error matters more for a larger circle.
Derivative notation should be chosen to match the setting. Prime notation is compact for one-variable functions, while Leibniz notation makes the independent variable and units explicit. In applied problems, is often clearer than because it states that population is changing with respect to time rather than with respect to another parameter directly.
Visual
| Object | Formula | Interpretation |
|---|---|---|
| Average rate on | Slope of secant line | |
| Instantaneous rate at | Slope of tangent line | |
| Velocity | Instantaneous change in position | |
| Acceleration | Instantaneous change in velocity | |
| Marginal cost | Approximate extra cost for one more unit |
Worked example 1: derivative from the limit definition
Problem. Use the definition to find the derivative of at a general point .
Method.
- Start with the difference quotient:
- Expand the numerator:
- Simplify:
- Factor and cancel for :
- Take the limit:
Checked answer. The derivative is . At , the tangent slope is . The tangent line there is
Worked example 2: velocity, speed, and acceleration
Problem. A particle moves along a line with position
meters after seconds. Find velocity and acceleration. Determine when the particle is at rest on , and decide whether it is speeding up at .
Method.
- Differentiate position to get velocity:
- Factor the velocity:
- The particle is at rest when :
- Differentiate velocity to get acceleration:
- Evaluate at :
At the exact instant , the speed is . Immediately after , velocity is positive and acceleration is positive, so the particle begins moving right and speeding up.
Checked answer. The velocity is , acceleration is , and the rest times are and . At the object is momentarily stopped; just after that instant it speeds up to the right.
Code
def derivative_central(f, x, h=1e-5):
return (f(x + h) - f(x - h)) / (2 * h)
def position(t):
return t**3 - 6*t**2 + 9*t
for t in [0, 1, 2, 3, 4]:
velocity_estimate = derivative_central(position, t)
print(t, round(velocity_estimate, 6))
Common pitfalls
- Treating the derivative as a fraction before learning what the limit notation means. The notation is powerful, but the derivative is defined by a limit.
- Forgetting units. A derivative of distance with respect to time is not measured in meters; it is measured in meters per second.
- Assuming continuity implies differentiability. Corners such as are continuous but not differentiable at the corner.
- Assuming a zero derivative always means a local maximum or minimum. A function such as has but no extremum at .
- Confusing velocity and speed. Velocity can be negative; speed is never negative.
- Using a numerical derivative with too large or too small a step without checking stability. Floating-point rounding can distort the estimate.
Connections
- Limits and Continuity: the derivative is built from a limit.
- Differentiation Rules: rules make derivative computation efficient after the definition is understood.
- Applications of Derivatives: signs of derivatives explain increasing, decreasing, and concavity.
- Vector Functions and Motion: velocity and acceleration extend to curves in space.