Tutorials › Calculus I › The One-Sided Derivative Test

The Derivative from First Principles · Tutorial 355 of 1495

The One-Sided Derivative Test

Use one-sided difference quotient limits to test differentiability, and identify why a missing finite limit rules it out.

Intermediate 10 min read

What You'll Learn

  • Define the left- and right-hand derivative limits using the increment form of the difference quotient.
  • State the conditions under which a function is differentiable at an interior point.
  • Apply the one-sided derivative test to piecewise and rational functions.
  • Recognize when failure of one finite one-sided limit rules out differentiability.
  • Avoid concluding differentiability from just one side of a point.

Why Check Both Sides?

A derivative at a point describes the limiting rate of change as the input approaches that point. When the point lies inside the domain, inputs can approach from both below and above. It is therefore necessary to check that the difference quotient has the same finite limit from each side.

The one-sided derivative test makes this requirement precise. It separates the two approaches, lets us calculate each limit using the appropriate formula, and then gives a criterion for combining them into an ordinary derivative.

One-Sided Difference Quotient Limits

Let \(f\) be defined on an open interval containing \(a\). For a nonzero increment \(h\) sufficiently close to \(0\), the increment form of the difference quotient is

$$ \frac{f(a+h)-f(a)}{h}. $$

For \(h<0\), the input \(a+h\) approaches \(a\) from the left. For \(h>0\), it approaches from the right. When the corresponding limits exist as finite real numbers, define

$$ D_-(a)=\lim_{h\to 0^-}\frac{f(a+h)-f(a)}{h}, \qquad D_+(a)=\lim_{h\to 0^+}\frac{f(a+h)-f(a)}{h}. $$

Here \(D_-(a)\) is the left-hand derivative limit and \(D_+(a)\) is the right-hand derivative limit. These names refer to the direction from which the input approaches \(a\), not to the sign of the limit itself.

Definition: The derivative \(f'(a)\) exists if the two-sided limit of the difference quotient exists as a finite real number. When it exists, its value is that limit.

The condition that \(a\) is inside an open interval matters here: it ensures that the function is defined for inputs on both sides sufficiently close to \(a\). At an interior point, differentiability requires both one-sided limits to exist finitely and to agree.

The One-Sided Derivative Test

Theorem: Suppose \(f\) is defined on an open interval containing \(a\). Then \(f'(a)\) exists if and only if both \(D_-(a)\) and \(D_+(a)\) exist as finite real numbers and are equal. If they are equal to \(L\), then \(f'(a)=L\).

This test includes two separate requirements. First, neither one-sided limit may fail to exist as a finite real number. Second, the two limits must have the same value. A limit on only one side is not enough to establish the two-sided derivative.

Why the Test Works

The argument follows from the definition of a two-sided limit. A two-sided limit exists precisely when the expression approaches the same finite value from both directions. Here the expression is the difference quotient, so its left- and right-hand limits must both exist and agree.

1
If the derivative exists.
If the difference quotient has a finite two-sided limit \(L\) as \(h\to 0\), then restricting \(h\) to negative values or to positive values preserves that limit. Thus both one-sided limits exist and equal \(L\).
2
If the one-sided limits agree.
Suppose the left- and right-hand limits both equal the finite number \(L\). For increments sufficiently close to zero, the quotient is then close to \(L\) on either side. Hence it is close to \(L\) for all sufficiently small nonzero \(h\), which is the definition of the two-sided limit.
3
Identify the derivative.
The two-sided difference quotient limit is \(L\), so the definition gives \(f'(a)=L\).

For completeness, in the second step, let \(\varepsilon>0\). Since the left-hand limit is \(L\), there is a \(\delta_->0\) such that \(0<|h|<\delta_-\) and \(h<0\) imply that the quotient differs from \(L\) by less than \(\varepsilon\). The right-hand limit gives a \(\delta_+>0\) with the same property when \(0<h<\delta_+\). Set \(\delta=\min(\delta_-,\delta_+)\). Every \(h\) satisfying \(0<|h|<\delta\) is either negative or positive, so in either case the quotient differs from \(L\) by less than \(\varepsilon\). This proves the two-sided limit is \(L\).

Worked Example: A Piecewise Function with Matching One-Sided Limits

Worked Example: A Piecewise Function with Matching One-Sided Limits

Consider

$$ f(x)= \begin{cases} x^2, & x\le 1,\\ (x-1)^2+2x-1, & x>1. \end{cases} $$

Determine whether \(f\) is differentiable at \(a=1\).

First, \(f(1)=1^2=1\). For the left-hand limit, take \(h<0\). Then \(1+h\le 1\), so the first formula applies:

$$ \frac{f(1+h)-f(1)}{h} = \frac{(1+h)^2-1}{h} = \frac{1+2h+h^2-1}{h} = \frac{2h+h^2}{h} = 2+h. $$

Therefore,

$$ D_-(1)=\lim_{h\to0^-}(2+h)=2. $$

For the right-hand limit, take \(h>0\). Then \(1+h>1\), so the second formula applies. Substituting and simplifying gives

$$ \begin{aligned} \frac{f(1+h)-f(1)}{h} &=\frac{h^2+2(1+h)-1-1}{h}\\ &=\frac{h^2+2h}{h}\\ &=2+h. \end{aligned} $$

Thus \(D_+(1)=\lim_{h\to0^+}(2+h)=2\). Both limits are finite and equal, so the test gives \(f'(1)=2\). Checking the two calculations, each one-sided quotient simplifies to \(2+h\), and each tends to \(2\) in its stated direction.

Worked Example: Testing a Rational Function at an Interior Point

Worked Example: Testing a Rational Function at an Interior Point

Let \(f(x)=1/x\), and test differentiability at \(a=2\). The function is defined in an open interval around \(2\), and \(f(2)=1/2\). For nonzero \(h\) close enough to \(0\),

$$ \begin{aligned} \frac{f(2+h)-f(2)}{h} &=\frac{\frac{1}{2+h}-\frac12}{h}\\ &=\frac{\frac{2-(2+h)}{2(2+h)}}{h}\\ &=\frac{-h}{2(2+h)h}\\ &=-\frac{1}{2(2+h)}. \end{aligned} $$

The last expression is defined for \(h\) near \(0\), since \(2+h\ne0\) there. Its left- and right-hand limits are both

$$ \lim_{h\to0^-}-\frac{1}{2(2+h)} = \lim_{h\to0^+}-\frac{1}{2(2+h)} = -\frac14. $$

Both one-sided limits exist finitely and agree. Therefore \(f'(2)=-1/4\). As a check, the simplified quotient approaches \(-1/(2\cdot2)=-1/4\) from either side.

Worked Example: When One One-Sided Limit Is Not Finite

Worked Example: When One One-Sided Limit Is Not Finite

Define

$$ f(x)= \begin{cases} x^2, & x\le 0,\\ \sqrt{x}, & x>0. \end{cases} $$

Test differentiability at \(a=0\). Since \(f(0)=0\), for \(h<0\) the quotient is

$$ \frac{f(0+h)-f(0)}{h} = \frac{h^2-0}{h} = h. $$

Consequently, \(D_-(0)=\lim_{h\to0^-}h=0\). For \(h>0\), the quotient instead is

$$ \frac{f(0+h)-f(0)}{h} = \frac{\sqrt{h}-0}{h} = \frac{1}{\sqrt{h}}. $$

This right-hand quotient has no finite real limit. For example, if \(h=1/n^2\) for a positive integer \(n\), then \(h>0\), \(h\to0\) as \(n\to\infty\), and the quotient equals \(n\), which is unbounded. The right-hand limit therefore fails to exist as a finite real number. The one-sided derivative test shows that \(f'(0)\) does not exist. The left-hand limit \(0\) alone cannot determine a two-sided derivative.

A Common Mistake: Using Only One Side

A frequent error is to calculate whichever one-sided quotient is simpler and treat its limit as the derivative. In the preceding example, the left-hand calculation gives

$$ \lim_{h\to0^-}\frac{f(h)-f(0)}{h} = \lim_{h\to0^-}h = 0. $$

It would be incorrect to conclude from this calculation alone that \(f'(0)=0\). This computes \(D_-(0)\), not the two-sided derivative. On the right, the quotient is \(1/\sqrt{h}\), which has no finite limit. The correction is to calculate both one-sided limits and apply the test only after checking that each exists finitely and that their values agree.

Key takeaway: At an interior point, differentiability is a two-sided condition. A finite limit from one side cannot substitute for the limit from the other side.

How to Apply the Test Reliably

When formulas change at a point or the difference quotient behaves differently on either side, use a fixed sequence of steps. The sign of \(h\) determines which nearby inputs and which formula must be used.

1
Find the function value.
Evaluate \(f(a)\), because it appears in both difference quotients.
2
Compute the left-hand quotient.
Use \(h<0\) and the formula valid for inputs \(a+h<a\). Simplify before taking the limit when possible.
3
Compute the right-hand quotient.
Use \(h>0\) and the formula valid for inputs \(a+h>a\).
4
Check finiteness and equality.
If either limit does not exist as a finite real number, or if the two finite limits differ, the derivative does not exist. If both are finite and equal, their common value is \(f'(a)\).

Why the Test Matters

The test turns the definition of the derivative into a practical decision procedure. It is especially useful when a function has different formulas on opposite sides of a point: each formula can be substituted into the quotient on the side where it applies. It also makes clear why simplifying an expression for only one sign of \(h\) cannot settle a two-sided question.

The test is local: it concerns the difference quotient for inputs arbitrarily close to \(a\), not the behavior of the function far away. At the same time, every condition matters. Both one-sided limits must be defined by valid nearby inputs, finite, and equal. Omitting any of these checks can lead to an unjustified claim of differentiability.

Check Your Understanding

For each question, use the difference quotient and the one-sided derivative test where appropriate.

  1. State the two conditions on \(D_-(a)\) and \(D_+(a)\) that are necessary and sufficient for differentiability at an interior point.
  2. For \(f(x)=x^2\) when \(x\le 2\) and \(f(x)=(x-2)^2+4x-4\) when \(x>2\), find both one-sided derivative limits at \(2\) and decide whether \(f'(2)\) exists.
  3. For \(f(x)=1/x\) at \(a=1\), simplify the difference quotient and compare its left- and right-hand limits.
  4. If the left-hand difference quotient has a finite limit but the right-hand one does not, can the ordinary derivative exist at that interior point? Explain using the test.
  5. Why does a finite two-sided limit of the difference quotient imply that both one-sided limits exist and have the same value?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon