Tutorials › Calculus I › One-Sided Difference Quotient Limits

The Derivative from First Principles · Tutorial 352 of 1495

One-Sided Difference Quotient Limits

Learn to calculate each one-sided difference quotient limit and decide whether the two-sided derivative exists.

Intermediate 9 min read

What You'll Learn

  • Define left and right derivatives using increments approaching zero from the appropriate side
  • Distinguish one-sided derivative limits from the ordinary two-sided derivative
  • Calculate one-sided limits for piecewise-defined functions
  • Determine whether a finite two-sided derivative exists by comparing the one-sided limits
  • Recognize why reversing the difference quotient numerator changes the result

Why Examine the Two Sides Separately?

The derivative at a point measures the limiting change in a function as the input changes by a small amount. At a point where a function is defined by different formulas on the two sides, those changes may behave differently depending on the direction of approach. One-sided difference quotient limits let us examine each direction precisely.

The increment form of the difference quotient uses an increment \(h\):

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

For \(h>0\), the input \(a+h\) lies to the right of \(a\). For \(h<0\), it lies to the left. The numerator and denominator keep the same order in both cases; only the allowed direction of \(h\) changes.

Definitions of the One-Sided Derivatives

Assume that \(f(a)\) is defined and that \(f\) is defined on some interval immediately to the left and immediately to the right of \(a\). The left and right derivatives are the corresponding one-sided limits of the difference quotient, provided those limits exist as finite real numbers.

Definition: The left derivative of \(f\) at \(a\) is \(f'_{-}(a)=\lim_{h\to 0^-}\frac{f(a+h)-f(a)}{h}\), if this limit exists as a finite real number. The right derivative is \(f'_{+}(a)=\lim_{h\to 0^+}\frac{f(a+h)-f(a)}{h}\), if this limit exists as a finite real number.

The notation \(h\to 0^-\) means that \(h\) approaches zero through negative values. The notation \(h\to 0^+\) means that it approaches through positive values. Equivalently, \(f'_{-}(a)\) uses inputs approaching \(a\) from the left, while \(f'_{+}(a)\) uses inputs approaching from the right.

The ordinary derivative uses the unrestricted two-sided limit:

$$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}. $$

For this two-sided derivative to be defined in the usual sense, \(a\) must be an interior point of the domain: the function must be defined on both sides of \(a\) in some interval around it. The ordinary derivative is a finite real number. Thus, a limit that grows without bound on one side is not a one-sided derivative under this definition.

Worked Example: Equal One-Sided Derivatives

Worked Example: Equal One-Sided Derivatives

Let \(f(x)=x^2\) for \(x<1\), and \(f(x)=2x-1\) for \(x\geq 1\). Find the left and right derivatives at \(a=1\), and determine whether \(f'(1)\) exists.

Since \(1\) belongs to the second branch, \(f(1)=2(1)-1=1\). For the left derivative, take \(h<0\). Then \(1+h<1\), so the left branch applies:

$$ \begin{aligned} \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. \end{aligned} $$

Therefore \(f'_{-}(1)=\lim_{h\to0^-}(2+h)=2\). For the right derivative, take \(h>0\). Then \(1+h\geq1\), so the second branch applies:

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

Thus \(f'_{+}(1)=2\). Both one-sided limits are finite and equal, so the two-sided derivative exists and \(f'(1)=2\). As a direct check, the left quotient approaches \(2\), and the right quotient is exactly \(2\) for every \(h>0\) close to zero.

Worked Example: Unequal One-Sided Derivatives

Worked Example: Unequal One-Sided Derivatives

Now let \(g(x)=x^2\) for \(x\leq1\), and \(g(x)=3x-2\) for \(x>1\). Determine the one-sided derivatives at \(1\) and whether the ordinary derivative exists.

The first branch includes \(x=1\), so \(g(1)=1^2=1\). If \(h<0\), then \(1+h\leq1\), and the first branch gives

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

It follows that \(g'_{-}(1)=2\). If \(h>0\), then \(1+h>1\), so the second branch applies:

$$ \begin{aligned} \frac{g(1+h)-g(1)}{h} &=\frac{[3(1+h)-2]-1}{h}\\ &=\frac{3+3h-2-1}{h}\\ &=\frac{3h}{h}\\ &=3. \end{aligned} $$

Therefore \(g'_{+}(1)=3\). The one-sided limits are finite, but they are not equal. The two-sided difference quotient limit consequently does not exist, so \(g'(1)\) does not exist. The calculation checks the conclusion directly: approaching from the left gives slopes tending to \(2\), while approaching from the right gives slopes equal to \(3\).

Worked Example: A One-Sided Quotient That Is Not Finite

Worked Example: A One-Sided Quotient That Is Not Finite

Define \(q(x)=x+1\) for \(x<0\), and \(q(x)=x^2\) for \(x\geq0\). Determine what happens to the difference quotient on each side of \(a=0\).

The second branch gives \(q(0)=0^2=0\). When \(h<0\), the first branch applies, so

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

As \(h\to0^-\), \(1/h\to-\infty\). Hence the left difference quotient does not approach a finite real number, and \(q'_{-}(0)\) does not exist as a finite one-sided derivative. When \(h>0\), the second branch applies:

$$ \frac{q(0+h)-q(0)}{h} =\frac{h^2-0}{h} =h, \qquad \lim_{h\to0^+}h=0. $$

Thus the right derivative exists and equals \(q'_{+}(0)=0\), but there is no finite two-sided derivative because the left quotient has no finite limit. The difference quotient calculations, rather than any assumption about the shape of the graph, establish this result.

When Do the One-Sided Limits Give a Derivative?

Theorem: Suppose \(f\) is defined on an interval around \(a\). The finite two-sided limit \(f'(a)\) exists if and only if both \(f'_{-}(a)\) and \(f'_{+}(a)\) exist as finite real numbers and are equal. When they exist and are equal, their common value is \(f'(a)\).

This criterion follows from the basic relationship between two-sided and one-sided limits. Here is a proof for the difference quotient. Write \(Q(h)=\frac{f(a+h)-f(a)}{h}\) for \(h\ne0\) close to zero.

1
A two-sided limit implies both one-sided limits.
Suppose \(\lim_{h\to0}Q(h)=L\). Given any \(\varepsilon>0\), there is a \(\delta>0\) such that \(0<|h|<\delta\) implies \(|Q(h)-L|<\varepsilon\). This implication holds in particular when \(-\delta<h<0\), and also when \(0<h<\delta\). Therefore both one-sided limits equal \(L\).
2
Equal one-sided limits imply a two-sided limit.
Suppose the left and right limits both exist and equal the finite number \(L\). For a given \(\varepsilon>0\), choose \(\delta_{-}>0\) so that \(-\delta_{-}<h<0\) implies \(|Q(h)-L|<\varepsilon\). Choose \(\delta_{+}>0\) so that \(0<h<\delta_{+}\) implies the same inequality. Set \(\delta=\min(\delta_{-},\delta_{+})\). Then every \(h\) with \(0<|h|<\delta\) is either negative or positive, and in either case \(|Q(h)-L|<\varepsilon\). This is the definition of \(\lim_{h\to0}Q(h)=L\).

The proof also shows why checking just one side is insufficient: a two-sided limit makes a demand about every sufficiently small nonzero \(h\), both negative and positive. If either side fails to approach a finite number, or if the two sides approach different numbers, that demand cannot be met.

A Common Sign Error

The increment quotient has a fixed order: \(f(a+h)-f(a)\) in the numerator and \(h\) in the denominator. The fact that \(h\) is negative on the left does not reverse the numerator. For the function \(g\) in the second worked example, the correct left quotient is

$$ \frac{g(1+h)-g(1)}{h} =\frac{(1+h)^2-1}{h} =2+h \qquad (h<0). $$

A common incorrect calculation swaps the function values but leaves the denominator unchanged:

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

This expression tends to \(-2\), but it is not the difference quotient defining the derivative: its numerator has been reversed without also reversing the denominator. The correction is to keep the prescribed order throughout. A negative increment already accounts for approaching from the left.

A Reliable Procedure

For a piecewise function at a point where the formula may change, proceed in a fixed order:

  1. Find \(f(a)\) from the branch that includes \(a\).
  2. Write the difference quotient \(\frac{f(a+h)-f(a)}{h}\).
  3. For the left limit, use the branch valid when \(h<0\); simplify before taking the limit.
  4. For the right limit, use the branch valid when \(h>0\); simplify before taking the limit.
  5. Check that each one-sided limit is finite, then compare their values.

The branch containing the point matters because it determines \(f(a)\), which appears in both quotients. The branch used for \(f(a+h)\) depends on the sign of \(h\). Keeping those two choices distinct prevents many errors in piecewise calculations.

Why the Comparison Matters

The one-sided calculations give a precise answer to a local question: does the difference quotient settle on one finite value regardless of the direction from which the input approaches \(a\)? If both sides settle on the same value, that value is the derivative. If they settle on different values, or if either side has no finite limit, the ordinary derivative does not exist.

This method is especially useful at points where a piecewise definition changes. It does not require guessing a tangent slope from a graph. Instead, it applies the derivative definition separately to negative and positive increments, and then uses the two-sided limit criterion to reach a conclusion.

Check Your Understanding

Use the difference quotient and keep track of which branch applies on each side.

  1. In the definition of \(f'_{-}(a)\), what restriction is placed on \(h\)?
  2. For \(r(x)=x^2\) when \(x<2\) and \(r(x)=4x-4\) when \(x\geq2\), calculate \(r'_{-}(2)\) and \(r'_{+}(2)\). Does \(r'(2)\) exist?
  3. Why must \(f(a)\) be found before calculating either one-sided quotient?
  4. If the left derivative is \(5\) and the right derivative is \(5\), what is the two-sided derivative, and why?
  5. If one one-sided quotient tends to \(+\infty\), is that a finite one-sided derivative under the definition here?

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