The Derivative: Definition via Difference Quotients
How fast is a quantity changing at a single instant? This differs from changing on average over an interval. A car's speedometer answers this question every second. Yet "speed at an instant" is a strange idea. An instant has zero duration. So the ordinary notion of "distance divided by time" seems to collapse into . The derivative is the precise resolution of this paradox. It is built entirely from the machinery of Limits of Functions. That machinery already handles delicate limiting processes rigorously. The derivative matters because it converts an intuition into a number. This intuition is geometric and physical — the slope of a tangent line, the instantaneous rate of change. It becomes a single well-defined real number, computable by a limit. This number underlies almost every quantitative model of change. Examples include velocity and acceleration in mechanics, marginal cost in economics, and growth rates in biology. It also underlies the local linear approximation. This makes calculus a tool for approximation rather than just description. The big picture is this: near a point , a differentiable function looks almost like a straight line. This holds when you zoom in far enough. The derivative is the slope of that line. We capture "almost like a straight line" in a specific way. We compare the average slope over a shrinking interval — the difference quotient. Then we ask whether these average slopes converge to a limiting value. This happens as the interval shrinks to a point. This article gives the formal – definition of the derivative. It defines the derivative as a limit of difference quotients. It proves that this limit, when it exists, is unique. It interprets this limit as the slope of the tangent line. It works through fully rigorous examples. One example shows a case where the derivative fails to exist. It sets the stage for showing differentiability forces continuity. It also prepares for the algebraic differentiation rules, and for the chain rule.
- The difference quotient measures the average rate of change of over the interval between and .
- The derivative is defined as the limit of this quotient as , when that limit exists.
- Geometrically, is the slope of the tangent line to the graph of at the point .
- The limit, when it exists, is unique — this is inherited directly from uniqueness of limits of functions.
- Not every continuous function is differentiable: sharp corners (like at ) produce one-sided quotients that disagree.
- The derivative is only ever defined at points where is defined on some open interval around , or at least in a punctured neighborhood permitting the limit to make sense.
- Key idea: the derivative is the limit of average slopes as the interval of averaging shrinks to a single point.
Where this lives today
The derivative as a limit of difference quotients is the bedrock computational tool of physics, where for a position function gives instantaneous velocity, and the second derivative gives acceleration, feeding directly into Newton's laws of motion. In economics, marginal cost and marginal revenue are derivatives of cost and revenue functions with respect to quantity produced. In numerical analysis and scientific computing, finite-difference approximations for small fixed are literally truncated difference quotients, used to approximate derivatives when a closed form is unavailable, with the approximation error controlled by how close the discrete quotient is to the true limit. In machine learning, the gradient used in gradient descent is built from partial derivatives, each defined via exactly this one-variable limiting process along each coordinate direction. In control theory and signal processing, the derivative operator models rates of change of signals, and difference quotients underlie discrete-time approximations (digital differentiation) implemented in embedded systems. The idea of a "local linear approximation" coming out of this definition — see Algebraic Rules of Differentiation and eventually The Chain Rule — is the seed of the entire framework of local linearization used throughout applied mathematics, from Newton's method for root-finding to perturbation theory in physics.
Ask the tutor: Can you show me why differentiability at a point must imply continuity there, using this same difference-quotient definition?
Let be a real-valued function defined on an open interval containing the point . The difference quotient of at , as a function of , is
The function is differentiable at if the limit
exists (as a finite real number). In that case, this limit is denoted and is called the derivative of at :
Equivalently, substituting with , differentiability at means
exists. If is differentiable at every point of a set , we say is differentiable on , and denotes the resulting function .
Intuition
Fix a point on the graph of and a second point nearby. The straight line through and is a secant line, and its slope is exactly the difference quotient . This is an average rate of change: if measures position and measures elapsed time, is average velocity over that time interval. The derivative asks: what happens to the slope of this secant line as slides toward , so the interval shrinks to nothing? If the secant slopes converge to a single number , the secant lines themselves converge (in a precise sense, via their slopes and the common point ) to a limiting line — the tangent line at :
This is the line through that best approximates near , in the sense that the error vanishes even after dividing by .
As moves from toward toward , the secant slopes converge to , the tangent slope — matching the algebraic computation done below.
Let be defined on an open interval containing . If is differentiable at , then the value is unique: there is only one real number satisfying
This is an immediate consequence of the uniqueness of limits of functions, which we recall and apply carefully.
Uniqueness of limits (recalled). Suppose is defined on a punctured neighborhood of and suppose both
We show . Let . By the definition of limit, there exists such that implies , and there exists such that implies . Let . Since is defined on a punctured neighborhood of , we may choose some with (such exists because a punctured neighborhood of is nonempty and can be taken small enough to lie inside it). Then by the triangle inequality,
Since was arbitrary and for every , we conclude , i.e., .
Application. Now apply this with , the difference quotient function , which is defined precisely for in the open interval around where is defined — this is indeed a punctured neighborhood of . If exists as defined, it is by definition a number with . Suppose for contradiction two numbers both satisfy this limit equation for . By the uniqueness of limits argument just given (with ), , a contradiction. Hence there is exactly one such , and this is what we call .
∎If is differentiable at , the tangent line to the graph of at is well-defined and is given by
Moreover this is the unique line through for which
and this special value of is exactly .
Suppose satisfies the stated limit condition. Then
Since , and constants have trivial limits, adding to both sides of the limit statement (using the algebra-of-limits rule that if then , itself a direct - consequence of the limit definition) gives . By the theorem above (uniqueness), is forced, since being differentiable at means , and a limit is unique. Conversely if , then directly from the definition of . Hence is the unique slope making the line an order-of-contact approximation to at in the stated sense.
∎Worked examples
Example 1: at (asymmetric polynomial). We compute directly from the definition. Here . For ,
We factor the numerator. Since is a root of (check: ), polynomial division gives
(Verification: . ✓.) Hence for ,
where the cancellation is valid precisely because in the domain of . The function is a polynomial, hence continuous at , so
Therefore is differentiable at and . Geometrically, the tangent line to at has slope and equation .
Example 2: at (a non-polynomial case requiring conjugates). Here . For , ,
Multiply numerator and denominator by the conjugate (valid since for ):
again with cancellation legitimate because means . The function is continuous at (as a composition/quotient of continuous functions with nonvanishing denominator ), so
Thus . The tangent line at is . Note the domain subtlety: is only defined for , so strictly the "open interval containing " in the definition should be read as an interval within the domain; at we can certainly find an open interval for small , so the definition applies without modification.
The hypothesis under scrutiny is the existence of the two-sided limit defining — this is not automatic even for perfectly continuous functions, and the definition demands we check it, not merely assume it. Let and . Certainly is continuous at (indeed everywhere), and defined on all of , an open interval containing . Compute the difference quotient:
As , . As , . Since the one-sided limits and disagree, the two-sided limit
does not exist (if it existed, both one-sided limits would have to equal it, forcing , false). Hence is not differentiable at , even though it is continuous there and defined on a full neighborhood of . Geometrically this matches the picture: the graph of has a sharp corner at the origin, and secant lines approaching from the right have slope forever while those from the left have slope forever — there is no single limiting tangent slope. This shows why the definition insists on a genuine two-sided limit, not merely a formula that "looks like it should work": continuity of at alone is not sufficient hypothesis to guarantee differentiability at .
Scope, edge cases & common traps
| Situation | What to check | Common error |
|---|---|---|
| defined only on a closed interval , evaluating at endpoint | Only a one-sided limit makes sense; some texts define one-sided derivatives | Silently treating a one-sided derivative as if it were the (two-sided) derivative |
| Corner points, e.g. at | One-sided quotient limits must agree | Assuming continuity implies differentiability |
| Vertical tangent, e.g. at | Difference quotient , not a finite limit | Declaring as if it were a legitimate derivative value (the derivative is undefined here, by our definition which requires a finite limit) |
| Removable discontinuities in | Simplify algebraically before taking the limit; cancellation is valid only for | Plugging directly into the unsimplified quotient, getting and stopping |
| Domain not an open interval around (e.g. is an isolated point of the domain) | Definition requires a neighborhood of in the domain so is defined on a punctured neighborhood | Applying the derivative definition where no genuine limit process is possible |
The mathematician behind it
Origins · 1 minIsaac Newton and how this was discovered
Newton developed his "method of fluxions" — his term for what we now call derivatives — around 1665–1666 while Cambridge University was closed due to plague, deriving instantaneous velocities as limits of ratios of vanishing increments. Independently and roughly contemporaneously, Gottfried Wilhelm Leibniz in Germany developed a parallel formalism using the notation and infinitesimals, which proved more flexible for later generations and is still in use today. The rigorous – limit definition used in this article, making precise what both Newton and Leibniz meant informally by "vanishingly small," is due to 19th-century analysts, chiefly Augustin-Louis Cauchy and later Karl Weierstrass, who replaced infinitesimal intuition with the modern limit concept.
Why do we need a limit at all — why not just define the derivative as evaluated at ?
Because plugging directly gives , which is undefined — division by zero is never permitted. The entire content of the derivative is that even though this ratio is undefined exactly at , it can still approach a definite, finite value as gets arbitrarily close to (but never equal to) . The limit concept, built from Limits of Functions, is precisely the tool for making sense of "approaches a value without ever reaching the problematic point," and that is exactly what is needed here.
Does differentiability at a point require the function to be defined on both sides of that point?
Yes, for the ordinary two-sided derivative as defined here: the definition requires to be defined on a full open interval containing , so that can approach from both the left and the right within the domain. If is only defined on one side (for instance at an endpoint of a closed interval), one instead defines a one-sided derivative using a one-sided limit, and many texts distinguish this explicitly from the full (two-sided) derivative treated in this article.
Is every continuous function differentiable?
No. Continuity is a strictly weaker condition than differentiability. The counterexample at shows a continuous function that fails to be differentiable at a single point because of a corner. Even more dramatically, Weierstrass constructed a function that is continuous at every real number yet differentiable at none of them, showing continuity can hold everywhere while differentiability holds nowhere. The article Differentiability Implies Continuity proves the correct one-directional implication: differentiability does force continuity, but never the converse.
What is the geometric meaning of being negative, zero, or undefined?
If , the tangent line rises left to right, meaning is instantaneously increasing near . If , the tangent falls, so is instantaneously decreasing. If , the tangent is horizontal, which is necessary (though not sufficient) for to be a local extremum of a differentiable function. If is undefined, the graph either has a corner (like ), a vertical tangent (like at ), or some other failure of the two one-sided quotient limits to exist and agree, so no single tangent slope can be assigned.
How does the form of the definition relate to the form?
They are the same limit, only reparametrized. Setting , the condition (with ) is exactly equivalent to (with ), and becomes under this substitution. Both forms define exactly the same number when the corresponding limit exists; the form is often more convenient in explicit computations and is the version most often generalized in later topics like the definition of higher derivatives and partial derivatives.
Can the derivative be or ?
Under the definition given here, no — differentiability requires the limit of the difference quotient to be a finite real number, so if the quotient diverges to , is simply not differentiable at that point in this sense. Some texts separately discuss the geometric phenomenon of a "vertical tangent line" (as with at , where the quotient does tend to ) as a distinct, informally-described case, but it is not assigned a derivative value under the standard finite-limit definition used throughout this article and its sequels.
Why is uniqueness of the derivative worth proving — isn't it obvious?
It is worth proving because "obvious" claims are exactly where hidden assumptions hide, and the entire rigor of calculus rests on such foundational facts being genuinely established rather than assumed. The uniqueness of is not a new fact requiring new machinery: it follows immediately, via a short and completely standard – argument, from the already-established uniqueness of limits of functions. Demonstrating this explicitly shows how the whole edifice of differentiation is built as a direct logical consequence of the limit concept, with no extra unproven assumptions smuggled in.