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 0/00/0. 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 aa, a differentiable function looks almost like a straight line. This holds when you zoom in far enough. The derivative f′(a)f'(a) 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 ε\varepsilon–δ\delta 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.

Key takeaways
  • The difference quotient f(x)−f(a)x−a\frac{f(x)-f(a)}{x-a} measures the average rate of change of ff over the interval between aa and xx.
  • The derivative f′(a)f'(a) is defined as the limit of this quotient as x→ax \to a, when that limit exists.
  • Geometrically, f′(a)f'(a) is the slope of the tangent line to the graph of ff at the point (a,f(a))(a, f(a)).
  • 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 ∣x∣|x| at 00) produce one-sided quotients that disagree.
  • The derivative is only ever defined at points where ff is defined on some open interval around aa, 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 f′(t)f'(t) for a position function ff 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 f(a+h)−f(a)h\frac{f(a+h)-f(a)}{h} for small fixed hh 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?

DefinitionThe Derivative at a Point

Let ff be a real-valued function defined on an open interval containing the point a∈Ra \in \mathbb{R}. The difference quotient of ff at aa, as a function of x≠ax \neq a, is

Qa(x)=f(x)−f(a)x−a.Q_a(x) = \frac{f(x) - f(a)}{x - a}.

The function ff is differentiable at aa if the limit

lim⁡x→aQa(x)=lim⁡x→af(x)−f(a)x−a\lim_{x \to a} Q_a(x) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}

exists (as a finite real number). In that case, this limit is denoted f′(a)f'(a) and is called the derivative of ff at aa:

f′(a):=lim⁡x→af(x)−f(a)x−a.f'(a) := \lim_{x \to a} \frac{f(x) - f(a)}{x - a}.

Equivalently, substituting x=a+hx = a + h with h≠0h \neq 0, differentiability at aa means

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}

exists. If ff is differentiable at every point of a set SS, we say ff is differentiable on SS, and f′f' denotes the resulting function a↦f′(a)a \mapsto f'(a).

Intuition

Fix a point aa on the graph of ff and a second point xx nearby. The straight line through (a,f(a))(a, f(a)) and (x,f(x))(x, f(x)) is a secant line, and its slope is exactly the difference quotient Qa(x)=f(x)−f(a)x−aQ_a(x) = \frac{f(x)-f(a)}{x-a}. This is an average rate of change: if ff measures position and x−ax - a measures elapsed time, Qa(x)Q_a(x) is average velocity over that time interval. The derivative asks: what happens to the slope of this secant line as xx slides toward aa, so the interval shrinks to nothing? If the secant slopes converge to a single number f′(a)f'(a), the secant lines themselves converge (in a precise sense, via their slopes and the common point (a,f(a))(a,f(a))) to a limiting line — the tangent line at aa:

y=f(a)+f′(a)(x−a).y = f(a) + f'(a)(x-a).

This is the line through (a,f(a))(a,f(a)) that best approximates ff near aa, in the sense that the error f(x)−[f(a)+f′(a)(x−a)]f(x) - \big[f(a) + f'(a)(x-a)\big] vanishes even after dividing by x−ax-a.

Figure
Secant lines through (1,1)(1,1) on y=x2y=x^2 converging to the tangent of slope 22
x y (1,1) x=2, slope 3 x=1.5, slope 2.5 tangent, slope 2 f(x) = x², a = 1, f'(1) = 2

As xx moves from 22 toward 1.51.5 toward 11, the secant slopes 3,2.5,…3, 2.5, \dots converge to 22, the tangent slope — matching the algebraic computation done below.

TheoremUniqueness of the Derivative

Let ff be defined on an open interval containing aa. If ff is differentiable at aa, then the value f′(a)f'(a) is unique: there is only one real number LL satisfying

lim⁡x→af(x)−f(a)x−a=L.\lim_{x\to a} \frac{f(x)-f(a)}{x-a} = L.
Proof

This is an immediate consequence of the uniqueness of limits of functions, which we recall and apply carefully.

Uniqueness of limits (recalled). Suppose gg is defined on a punctured neighborhood of aa and suppose both

lim⁡x→ag(x)=L1andlim⁡x→ag(x)=L2.\lim_{x\to a} g(x) = L_1 \quad \text{and} \quad \lim_{x\to a} g(x) = L_2.

We show L1=L2L_1 = L_2. Let ε>0\varepsilon > 0. By the definition of limit, there exists δ1>0\delta_1 > 0 such that 0<∣x−a∣<δ10 < |x-a| < \delta_1 implies ∣g(x)−L1∣<ε/2|g(x) - L_1| < \varepsilon/2, and there exists δ2>0\delta_2 > 0 such that 0<∣x−a∣<δ20<|x-a|<\delta_2 implies ∣g(x)−L2∣<ε/2|g(x)-L_2| < \varepsilon/2. Let δ=min⁡(δ1,δ2)>0\delta = \min(\delta_1,\delta_2) > 0. Since gg is defined on a punctured neighborhood of aa, we may choose some x0x_0 with 0<∣x0−a∣<δ0 < |x_0 - a| < \delta (such x0x_0 exists because a punctured neighborhood of aa is nonempty and δ\delta can be taken small enough to lie inside it). Then by the triangle inequality,

∣L1−L2∣≤∣L1−g(x0)∣+∣g(x0)−L2∣<ε/2+ε/2=ε.|L_1 - L_2| \le |L_1 - g(x_0)| + |g(x_0) - L_2| < \varepsilon/2 + \varepsilon/2 = \varepsilon.

Since ε>0\varepsilon > 0 was arbitrary and ∣L1−L2∣<ε|L_1 - L_2| < \varepsilon for every ε>0\varepsilon > 0, we conclude ∣L1−L2∣=0|L_1 - L_2| = 0, i.e., L1=L2L_1 = L_2.

Application. Now apply this with g=Qag = Q_a, the difference quotient function Qa(x)=f(x)−f(a)x−aQ_a(x) = \frac{f(x)-f(a)}{x-a}, which is defined precisely for x≠ax \neq a in the open interval around aa where ff is defined — this is indeed a punctured neighborhood of aa. If f′(a)f'(a) exists as defined, it is by definition a number LL with lim⁡x→aQa(x)=L\lim_{x\to a} Q_a(x) = L. Suppose for contradiction two numbers L1≠L2L_1 \ne L_2 both satisfy this limit equation for QaQ_a. By the uniqueness of limits argument just given (with g=Qag = Q_a), L1=L2L_1 = L_2, a contradiction. Hence there is exactly one such LL, and this is what we call f′(a)f'(a). ■\blacksquare

∎
CorollaryTangent Line Characterization

If ff is differentiable at aa, the tangent line to the graph of ff at (a,f(a))(a,f(a)) is well-defined and is given by

y=f(a)+f′(a)(x−a).y = f(a) + f'(a)(x - a).

Moreover this is the unique line y=f(a)+m(x−a)y = f(a) + m(x-a) through (a,f(a))(a, f(a)) for which

lim⁡x→af(x)−[f(a)+m(x−a)]x−a=0,\lim_{x \to a} \frac{f(x) - \big[f(a) + m(x-a)\big]}{x - a} = 0,

and this special value of mm is exactly m=f′(a)m = f'(a).

Proof

Suppose y=f(a)+m(x−a)y = f(a) + m(x-a) satisfies the stated limit condition. Then

f(x)−f(a)−m(x−a)x−a=f(x)−f(a)x−a−m=Qa(x)−m→0 as x→a.\frac{f(x) - f(a) - m(x-a)}{x-a} = \frac{f(x)-f(a)}{x-a} - m = Q_a(x) - m \to 0 \text{ as } x \to a.

Since Qa(x)−m→0Q_a(x) - m \to 0, and constants have trivial limits, adding mm to both sides of the limit statement (using the algebra-of-limits rule that if g(x)→0g(x) \to 0 then g(x)+m→mg(x) + m \to m, itself a direct ε\varepsilon-δ\delta consequence of the limit definition) gives Qa(x)→mQ_a(x) \to m. By the theorem above (uniqueness), m=f′(a)m = f'(a) is forced, since ff being differentiable at aa means Qa(x)→f′(a)Q_a(x) \to f'(a), and a limit is unique. Conversely if m=f′(a)m = f'(a), then Qa(x)−m→f′(a)−f′(a)=0Q_a(x) - m \to f'(a) - f'(a) = 0 directly from the definition of f′(a)f'(a). Hence m=f′(a)m = f'(a) is the unique slope making the line an order-of-contact approximation to ff at aa in the stated sense. ■\blacksquare

∎

Worked examples

Example 1: f(x)=x3−2xf(x) = x^3 - 2x at a=2a = 2 (asymmetric polynomial). We compute f′(2)f'(2) directly from the definition. Here f(2)=23−2(2)=8−4=4f(2) = 2^3 - 2(2) = 8 - 4 = 4. For x≠2x \neq 2,

Q2(x)=f(x)−f(2)x−2=(x3−2x)−4x−2.Q_2(x) = \frac{f(x) - f(2)}{x - 2} = \frac{(x^3 - 2x) - 4}{x - 2}.

We factor the numerator. Since x=2x=2 is a root of x3−2x−4x^3 - 2x - 4 (check: 8−4−4=08 - 4 - 4 = 0), polynomial division gives

x3−2x−4=(x−2)(x2+2x+2).x^3 - 2x - 4 = (x-2)(x^2 + 2x + 2).

(Verification: (x−2)(x2+2x+2)=x3+2x2+2x−2x2−4x−4=x3−2x−4(x-2)(x^2+2x+2) = x^3 + 2x^2 + 2x - 2x^2 - 4x - 4 = x^3 - 2x - 4. ✓.) Hence for x≠2x \ne 2,

Q2(x)=(x−2)(x2+2x+2)x−2=x2+2x+2,Q_2(x) = \frac{(x-2)(x^2+2x+2)}{x-2} = x^2 + 2x + 2,

where the cancellation is valid precisely because x≠2x \ne 2 in the domain of Q2Q_2. The function x↦x2+2x+2x \mapsto x^2+2x+2 is a polynomial, hence continuous at 22, so

lim⁡x→2Q2(x)=lim⁡x→2(x2+2x+2)=4+4+2=10.\lim_{x \to 2} Q_2(x) = \lim_{x\to 2} (x^2+2x+2) = 4 + 4 + 2 = 10.

Therefore ff is differentiable at a=2a=2 and f′(2)=10f'(2) = 10. Geometrically, the tangent line to y=x3−2xy = x^3-2x at (2,4)(2,4) has slope 1010 and equation y=4+10(x−2)=10x−16y = 4 + 10(x-2) = 10x - 16.

Example 2: f(x)=xf(x) = \sqrt{x} at a=4a = 4 (a non-polynomial case requiring conjugates). Here f(4)=2f(4) = 2. For x>0x > 0, x≠4x \neq 4,

Q4(x)=x−2x−4.Q_4(x) = \frac{\sqrt{x} - 2}{x - 4}.

Multiply numerator and denominator by the conjugate x+2\sqrt{x}+2 (valid since x+2≠0\sqrt x + 2 \neq 0 for x>0x>0):

Q4(x)=(x−2)(x+2)(x−4)(x+2)=x−4(x−4)(x+2)=1x+2,Q_4(x) = \frac{(\sqrt{x}-2)(\sqrt{x}+2)}{(x-4)(\sqrt{x}+2)} = \frac{x - 4}{(x-4)(\sqrt{x}+2)} = \frac{1}{\sqrt{x}+2},

again with cancellation legitimate because x≠4x \ne 4 means x−4≠0x - 4 \ne 0. The function x↦1x+2x \mapsto \frac{1}{\sqrt x + 2} is continuous at x=4x=4 (as a composition/quotient of continuous functions with nonvanishing denominator 4+2=4≠0\sqrt 4 + 2 = 4 \ne 0), so

lim⁡x→4Q4(x)=14+2=14.\lim_{x\to 4} Q_4(x) = \frac{1}{\sqrt 4 + 2} = \frac{1}{4}.

Thus f′(4)=1/4f'(4) = 1/4. The tangent line at (4,2)(4,2) is y=2+14(x−4)y = 2 + \tfrac14(x-4). Note the domain subtlety: f(x)=xf(x)=\sqrt x is only defined for x≥0x \ge 0, so strictly the "open interval containing aa" in the definition should be read as an interval within the domain; at a=4>0a=4>0 we can certainly find an open interval (4−δ,4+δ)⊂(0,∞)(4-\delta, 4+\delta) \subset (0,\infty) for small δ\delta, so the definition applies without modification.

CounterexampleDifferentiability can fail even when the function is continuous: dropping "the limit exists" cannot be assumed for free

The hypothesis under scrutiny is the existence of the two-sided limit defining f′(a)f'(a) — this is not automatic even for perfectly continuous functions, and the definition demands we check it, not merely assume it. Let f(x)=∣x∣f(x) = |x| and a=0a = 0. Certainly ff is continuous at 00 (indeed everywhere), and defined on all of R\mathbb R, an open interval containing 00. Compute the difference quotient:

Q0(x)=∣x∣−∣0∣x−0=∣x∣x={1x>0−1x<0.Q_0(x) = \frac{|x| - |0|}{x - 0} = \frac{|x|}{x} = \begin{cases} 1 & x > 0 \\ -1 & x < 0. \end{cases}

As x→0+x \to 0^+, Q0(x)≡1→1Q_0(x) \equiv 1 \to 1. As x→0−x \to 0^-, Q0(x)≡−1→−1Q_0(x) \equiv -1 \to -1. Since the one-sided limits 11 and −1-1 disagree, the two-sided limit

lim⁡x→0Q0(x)\lim_{x\to 0} Q_0(x)

does not exist (if it existed, both one-sided limits would have to equal it, forcing 1=−11 = -1, false). Hence f(x)=∣x∣f(x) = |x| is not differentiable at 00, even though it is continuous there and defined on a full neighborhood of 00. Geometrically this matches the picture: the graph of ∣x∣|x| has a sharp corner at the origin, and secant lines approaching from the right have slope +1+1 forever while those from the left have slope −1-1 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 ff at aa alone is not sufficient hypothesis to guarantee differentiability at aa.

Scope, edge cases & common traps

SituationWhat to checkCommon error
ff defined only on a closed interval [a,b][a,b], evaluating at endpoint aaOnly a one-sided limit makes sense; some texts define one-sided derivatives f′(a+)f'(a^+)Silently treating a one-sided derivative as if it were the (two-sided) derivative
Corner points, e.g. ∣x∣|x| at 00One-sided quotient limits must agreeAssuming continuity implies differentiability
Vertical tangent, e.g. f(x)=x1/3f(x)=x^{1/3} at 00Difference quotient →±∞\to \pm\infty, not a finite limitDeclaring f′(0)=∞f'(0) = \infty as if it were a legitimate derivative value (the derivative is undefined here, by our definition which requires a finite limit)
Removable discontinuities in QaQ_aSimplify Qa(x)Q_a(x) algebraically before taking the limit; cancellation is valid only for x≠ax \ne aPlugging x=ax=a directly into the unsimplified quotient, getting 0/00/0 and stopping
Domain not an open interval around aa (e.g. aa is an isolated point of the domain)Definition requires a neighborhood of aa in the domain so QaQ_a is defined on a punctured neighborhoodApplying the derivative definition where no genuine limit process is possible

The mathematician behind it

Origins · 1 minIsaac Newton and how this was discovered
IN
Isaac Newton
1642–1727 · Cambridge and London, England; developed fluxions and the calculus of instantaneous rates of change

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 dydx\frac{dy}{dx} and infinitesimals, which proved more flexible for later generations and is still in use today. The rigorous ε\varepsilon–δ\delta 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.

History
- 1665–1666: Newton develops fluxions and fluents during his stay at Woolsthorpe, computing tangent slopes as limiting ratios.
- 1675–1676: Leibniz independently develops differential calculus in Paris, introducing the notation dy/dxdy/dx.
- 1823: Cauchy's Résumé des leçons gives an early rigorous limit-based treatment of the derivative.
- 1861: Weierstrass, lecturing in Berlin, formalizes the ε\varepsilon–δ\delta definition of limit underlying the modern derivative.
- 1872: Weierstrass exhibits a function continuous everywhere but differentiable nowhere, sharply separating continuity from differentiability.
Why do we need a limit at all — why not just define the derivative as f(x)−f(a)x−a\frac{f(x)-f(a)}{x-a} evaluated at x=ax=a?

Because plugging x=ax=a directly gives f(a)−f(a)a−a=00\frac{f(a)-f(a)}{a-a} = \frac{0}{0}, 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 x=ax=a, it can still approach a definite, finite value as xx gets arbitrarily close to (but never equal to) aa. 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 ff to be defined on a full open interval containing aa, so that xx can approach aa from both the left and the right within the domain. If ff 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 f(x)=∣x∣f(x)=|x| at a=0a=0 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 f′(a)f'(a) being negative, zero, or undefined?

If f′(a)>0f'(a) > 0, the tangent line rises left to right, meaning ff is instantaneously increasing near aa. If f′(a)<0f'(a) < 0, the tangent falls, so ff is instantaneously decreasing. If f′(a)=0f'(a) = 0, the tangent is horizontal, which is necessary (though not sufficient) for aa to be a local extremum of a differentiable function. If f′(a)f'(a) is undefined, the graph either has a corner (like ∣x∣|x|), a vertical tangent (like x1/3x^{1/3} at 00), 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 h→0h \to 0 form of the definition relate to the x→ax \to a form?

They are the same limit, only reparametrized. Setting x=a+hx = a+h, the condition x→ax \to a (with x≠ax \ne a) is exactly equivalent to h→0h \to 0 (with h≠0h \ne 0), and f(x)−f(a)x−a\frac{f(x)-f(a)}{x-a} becomes f(a+h)−f(a)h\frac{f(a+h)-f(a)}{h} under this substitution. Both forms define exactly the same number f′(a)f'(a) when the corresponding limit exists; the h→0h\to 0 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 +∞+\infty or −∞-\infty?

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 ±∞\pm\infty, ff is simply not differentiable at that point in this sense. Some texts separately discuss the geometric phenomenon of a "vertical tangent line" (as with f(x)=x1/3f(x)=x^{1/3} at x=0x=0, where the quotient does tend to +∞+\infty) 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 f′(a)f'(a) is not a new fact requiring new machinery: it follows immediately, via a short and completely standard ε\varepsilon–δ\delta 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.

Where this leads