The tangent line at a point captures the instantaneous slope of a function. This checkpoint makes that intuition precise: the derivative of f at a point x0 is the limit of the difference quotient, and the formal definition gives it a firm foundation.
Definition
Definition. Let f be defined on an open interval containing x0. The derivative of f at x0, written f′(x0), is
f′(x0)=h→0limhf(x0+h)−f(x0),(1)
provided this limit exists and is finite. When it does, f is said to be differentiable at x0.
Equivalently, via the substitution x=x0+h:
f′(x0)=x→x0limx−x0f(x)−f(x0).
The notations dxdfx=x0 and dxdf(x)x=x0 are also standard.
Computing from first principles
Power function f(x)=xn, n∈N
By the binomial theorem,
h(x0+h)n−x0n=nx0n−1+(2n)x0n−2h+⋯+hn−1.
Every term except the first contains a factor of h, so as h→0 the quotient converges to nx0n−1:
dxd(xn)=nxn−1.
Constant function f(x)=c
The difference quotient is hc−c=0 for all h=0, so f′(x0)=0.
Differentiability implies continuity
Theorem. If f is differentiable at x0, then f is continuous at x0.
Proof. Write f(x0+h)−f(x0)=hf(x0+h)−f(x0)⋅h. The first factor converges to f′(x0) and the second to 0. By the product rule for limits,
h→0lim[f(x0+h)−f(x0)]=f′(x0)⋅0=0,
so limh→0f(x0+h)=f(x0). □
The converse fails: f(x)=∣x∣ is continuous at 0 but is not differentiable there — the left and right difference quotients approach −1 and +1 respectively.
One-sided derivatives
Definition. The right derivative and left derivative at x0 are