A function is differentiable at a point if its graph has a tangent line there. Algebraically, this means the limit defining the derivative exists. The derivative measures the instantaneous rate of change , slope of the tangent, velocity from displacement, marginal cost from cost.
Definition
The function f is differentiable at a if
f′(a)=limh→0hf(a+h)−f(a)
exists (as a finite limit). The value of the limit is the derivative of f at a.
Equivalent form: f′(a)=limx→ax−af(x)−f(a).
One-sided derivatives
The left derivative at a:
f−′(a)=limh→0−hf(a+h)−f(a).
The right derivative:
f+′(a)=limh→0+hf(a+h)−f(a).
f is differentiable at a iff both one-sided derivatives exist and are equal.
Differentiability implies continuity
Theorem. If f is differentiable at a, then f is continuous at a.
Proof.limx→a[f(x)−f(a)]=limx→a[x−af(x)−f(a)](x−a)=f′(a)⋅0=0. So limx→af(x)=f(a). ■
The converse is false: continuity does not imply differentiability. The classic counter-example is f(x)=∣x∣, continuous everywhere but not differentiable at 0.
Derivative as a function
If f is differentiable at every x in an interval, the function x↦f′(x) is the derivative function, denoted f′ or dxdf.
Example 5. Where is f(x)=∣x∣3 differentiable? Compute the derivative.
f(x)=x3 if x≥0, and f(x)=−x3 if x<0. From either side at 0: right derivative limh→0+h2=0. Left derivative limh→0−(−h2)=0. So f′(0)=0 , differentiable. Elsewhere f′(x)=3x∣x∣.
Example 6. Discuss differentiability of f(x)={x2sin(1/x),0,x=0x=0 at x=0.
f′(0)=limh→0hh2sin(1/h)−0=limh→0hsin(1/h)=0 (by squeeze). So differentiable at 0 with f′(0)=0. Note the derivative function is discontinuous at 0.
Try it yourself
From first principles, find f′(x) for f(x)=1/x.
From first principles, find f′(x) for f(x)=x.
Show f(x)=∣x−1∣ is not differentiable at x=1.
Is f(x)=x∣x∣ differentiable at 0?
Find f′(x) from first principles for f(x)=ex.
Is the derivative of ∣x∣ even or odd? Sketch its graph.
Compute f′(0) if f(x)=xsin(1/x) for x=0 and f(0)=0.
Investigate differentiability of f(x)=cos∣x∣ everywhere.
Find conditions on a,b so f(x)={ax+b,x2,x<1x≥1 is differentiable at x=1.
Show: a function differentiable on [a,b] is also continuous there.
Is f(x)=tanx differentiable on (−π/2,π/2)?
Where is f(x)=min(x,x2) non-differentiable?
Investigate differentiability of f(x)=∣sinx∣.
Show: if f is differentiable at a and f(a)=0, then limx→ax−af(x)=f′(a).
Pitfalls / Tricks
Differentiability is stronger than continuity. The implication is one-way.
Corners (∣x∣ type), cusps, and vertical tangents are the three school-relevant ways to fail differentiability.
Always check both one-sided derivatives when the function is defined piecewise.
First-principles computations require careful algebraic manipulation; check limits using trig identities or rationalisation as needed.