Mathwords logoMathwords

One-Sided Derivative — Definition, Formula & Example

A one-sided derivative is the slope of a function at a point measured from only one side. The left derivative uses points just to the left. The right derivative uses points just to the right.

Let ff be defined on an interval (a−δ,a](a-\delta, a] for some δ>0\delta > 0. The left derivative of ff at aa is f−′(a)=lim⁡h→0−f(a+h)−f(a)hf'_-(a) = \lim_{h \to 0^-} \frac{f(a+h) - f(a)}{h}, provided this limit exists as a finite number. The right derivative f+′(a)f'_+(a) is defined the same way on [a,a+δ)[a, a+\delta) with h→0+h \to 0^+. The two-sided derivative f′(a)f'(a) exists if and only if both one-sided derivatives exist and f−′(a)=f+′(a)f'_-(a) = f'_+(a).

Key Formula

f−′(a)=lim⁡h→0−f(a+h)−f(a)h,f+′(a)=lim⁡h→0+f(a+h)−f(a)hf'_-(a) = \lim_{h \to 0^-} \frac{f(a+h) - f(a)}{h}, \qquad f'_+(a) = \lim_{h \to 0^+} \frac{f(a+h) - f(a)}{h}
Where:
  • f−′(a)f'_-(a) = Left derivative of f at a (h takes only negative values)
  • f+′(a)f'_+(a) = Right derivative of f at a (h takes only positive values)
  • aa = The point where the slope is measured
  • hh = A small step away from a, approaching 0 from one side

Worked Example

Problem: Let f(x)=x2f(x) = x^2 for x≤2x \le 2 and f(x)=8−2xf(x) = 8 - 2x for x>2x > 2. Find the left and right derivatives at x=2x = 2. Is ff differentiable at x=2x = 2?
Step 1: Find f(2)f(2). Since 2≤22 \le 2, use the first piece. Points to the left of 2 also use x2x^2, so the left difference quotient simplifies for h<0h < 0.
f(2)=4,(2+h)2−4h=4h+h2h=4+hf(2) = 4, \qquad \frac{(2+h)^2 - 4}{h} = \frac{4h + h^2}{h} = 4 + h
Step 2: Let h→0−h \to 0^- to get the left derivative.
f−′(2)=lim⁡h→0−(4+h)=4f'_-(2) = \lim_{h \to 0^-} (4 + h) = 4
Step 3: For h>0h > 0, the point 2+h2 + h uses the second piece. Simplify and let h→0+h \to 0^+.
f+′(2)=lim⁡h→0+8−2(2+h)−4h=lim⁡h→0+−2hh=−2f'_+(2) = \lim_{h \to 0^+} \frac{8 - 2(2+h) - 4}{h} = \lim_{h \to 0^+} \frac{-2h}{h} = -2
Answer: The left derivative is 4 and the right derivative is −2. Both exist, but they are not equal, so ff is not differentiable at x=2x = 2. The graph has a corner there, even though ff is continuous at that point.

Why It Matters

AP Calculus questions, including some free-response questions, ask whether a piecewise function is differentiable where its pieces meet. You answer by checking continuity and then comparing the left and right derivatives at that point. One-sided derivatives also let you define the slope at the endpoint of a closed interval, where only one side of the function exists.

Common Mistakes

Mistake: Differentiating each piece and plugging in the boundary value, without first checking that the function is continuous there.
Correction: Shortcuts like this only work when ff is continuous at the point. For g(x)=xg(x) = x when x<0x < 0 and g(x)=x+1g(x) = x + 1 when x≥0x \ge 0, both pieces have slope 1, yet g(0)=1g(0) = 1. The left difference quotient h−1h\frac{h - 1}{h} grows without bound as h→0−h \to 0^-, so g−′(0)g'_-(0) does not exist. Check continuity first, or use the limit definition directly.

Related Terms