Let f:E→R (or C) with E⊆R, and let a∈E be a limit point of E∩(a,∞) and of E∩(−∞,a). The right derivative of f at a is
f+′(a):=h↓0limhf(a+h)−f(a),
provided the limit exists. The left derivative is
f−′(a):=h↑0limhf(a+h)−f(a),
provided the limit exists.
If both one-sided derivatives exist and are equal, then f is differentiable at a and f′(a)=f+′(a)=f−′(a).
ExamplesOpen
- For f(x)=∣x∣, one has f+′(0)=1 and f−′(0)=−1, so f′(0) does not exist.
- For f(x)=x2, f+′(a)=f−′(a)=2a for all a.
- For the step function 1[0,∞), the one-sided derivatives at 0 do not exist (difference quotient blows up).