Derivative Definitions
For , moving from to changes the output from to , so the average rate of change is . Moving instead from to changes the output from to , giving an average rate of .
Write the nonzero input change as , keeping the starting point at . Dividing the output change by gives:
This ratio is the difference quotient, the average rate of change between the two points.
The slopes approach as approaches zero from either side. At , the quotient is undefined; the derivative comes from the limit, not from substituting zero into the quotient.
In the square-function view below, stays fixed while moves with ; for , the line through them is a secant whose slope is the difference quotient.
Formal Definition
For a function , the derivative is the instantaneous rate of change defined by
provided the limit is a finite real number. The ordinary two-sided derivative requires to be defined on an open interval around the point and the quotients from both sides to approach the same value. At a domain endpoint, specify a one-sided derivative. The limit definition and examples develop this distinction between a function value and a derivative.
For the square function, . More generally, at any real ,
so . Cancellation is valid for nonzero ; no division by zero is performed.
From a difference quotient to a local approximation
Slope of the Tangent Line
The difference quotient is the slope of a secant through and . Its finite limit is the slope of the tangent at .
Equation of the Tangent Line
With this slope and the point , the tangent line is
At for , this is . Taking , the line predicts , while the exact value is . The error is .
More generally, differentiability is equivalent to
The remainder is written : its magnitude becomes negligible relative to . Subtracting from the defining difference quotient gives this condition. For the square function at , , but differentiability alone does not guarantee a quadratic error bound or accuracy far from .
When a local slope does not exist
The same remainder identity implies , so differentiability implies continuity. The converse fails: is continuous at , but its difference quotient is for and for . The one-sided slopes disagree, so there is no two-sided derivative.
Return to the figure above and switch to at . Move toward zero from both sides: unlike at , the secant slopes do not approach the same value. At , the difference quotient remains undefined for both functions.
Also, has quotient at ; a vertical tangent is not a finite derivative.
Interpretation of the Derivative
Rate of Change
The tangent slope gives the instantaneous output change per unit input change near . The local approximation expresses that rate as a prediction.
Physical Interpretation in Motion
If is an object's position at time , then is its velocity at . Position in metres and time in seconds give a derivative in metres per second. For several inputs, the analogous local linear term uses a gradient and a displacement vector.
Equivalent Notations for Derivatives
For , these notations all denote the derivative with respect to :
Notation for Derivatives at a Specific Point
At , write