Tutorials › Calculus I › The Absolute-Value Difference Quotient at Its Corner

The Derivative from First Principles · Tutorial 353 of 1495

The Absolute-Value Difference Quotient at Its Corner

Use the derivative’s difference quotient to see exactly why the absolute-value function has no derivative at zero.

Intermediate 9 min read

What You'll Learn

  • Write the derivative quotient for the absolute-value function at zero.
  • Simplify the quotient separately for positive and negative increments.
  • Find each one-sided limit and interpret its value.
  • Prove that the unequal limits rule out a two-sided limit.
  • Identify and correct a common sign error when the increment is negative.

The Difference Quotient at Zero

The function \(f(x)=|x|\) is defined at zero, and its value there is \(f(0)=0\). To ask whether it has a derivative at zero, we examine how the output changes relative to a small change \(h\) in the input. The crucial point is that the absolute-value expression behaves differently according to whether \(h\) is positive or negative.

The derivative at zero, if it exists, is the limit of the difference quotient as the nonzero increment \(h\) approaches zero:

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

For this function, \(f(0+h)=|h|\) and \(f(0)=0\). Therefore the quotient to evaluate is

$$ \frac{f(0+h)-f(0)}{h} = \frac{|h|-0}{h} = \frac{|h|}{h}, \qquad h\ne 0. $$

The condition \(h\ne 0\) matters: the difference quotient itself has \(h\) in its denominator, so it is not defined at \(h=0\). The derivative question concerns the limit as nonzero values of \(h\) approach zero.

Definition: The derivative of \(f\) at zero exists if the two-sided limit \(\lim_{h\to 0}\frac{f(0+h)-f(0)}{h}\) exists as a finite real number. For \(f(x)=|x|\), this is the limit of \(\frac{|h|}{h}\) as \(h\to 0\), with \(h\ne 0\).

Separate Positive and Negative Increments

The absolute value of a real number is its nonnegative distance from zero. In particular, \(|h|=h\) when \(h>0\), and \(|h|=-h\) when \(h<0\). Substituting each expression into the quotient gives two different results.

$$ \frac{|h|}{h} = \begin{cases} \frac{h}{h}=1, & h>0,\\[4pt] \frac{-h}{h}=-1, & h<0. \end{cases} $$

Thus every positive increment, however small, gives quotient \(1\); every negative increment, however small, gives quotient \(-1\). These are not merely values the quotient approaches: on each side, it is exactly constant.

The one-sided difference quotient limits are therefore

$$ \lim_{h\to 0^+}\frac{|h|}{h}=1 \qquad\text{and}\qquad \lim_{h\to 0^-}\frac{|h|}{h}=-1. $$

The first limit describes increments approaching zero from above, and the second describes increments approaching from below. To have a two-sided limit, the quotient must approach the same real number from both sides. Here the two values differ, so the derivative limit does not exist.

Worked Example: Simplifying the Quotient on Each Side

Worked Example: Simplifying the Quotient on Each Side

Start with \(f(x)=|x|\) and form the difference quotient at zero. Then simplify it for each sign of \(h\).

First, \(f(0+h)=|h|\) and \(f(0)=|0|=0\). Hence

$$ \frac{f(0+h)-f(0)}{h} = \frac{|h|-0}{h} = \frac{|h|}{h}, \qquad h\ne 0. $$

If \(h>0\), then \(|h|=h\), so the quotient is

$$ \frac{|h|}{h} = \frac{h}{h} = 1. $$

If \(h<0\), then \(|h|=-h\), so the quotient is

$$ \frac{|h|}{h} = \frac{-h}{h} = -1. $$

For a direct check, take \(h=\frac{3}{4}\). Then \(|h|=\frac{3}{4}\), and the quotient is \(\frac{3/4}{3/4}=1\). Take \(h=-\frac{3}{4}\). Then \(|h|=\frac{3}{4}\), and the quotient is \(\frac{3/4}{-3/4}=-1\). The computed values agree with the sign-based simplification.

Because the quotient is constantly \(1\) for positive \(h\) and constantly \(-1\) for negative \(h\), its one-sided limits are \(1\) and \(-1\), respectively. They are unequal, so the two-sided derivative limit does not exist.

Why the Unequal Limits Prove Nondifferentiability

It is useful to make the final inference precise. A limit at zero, if it exists, must be approached by the quotient for both positive and negative increments. Suppose, for contradiction, that the limit exists and equals some real number \(L\). By the definition of a finite limit, for \(\varepsilon=\frac12\) there must be a \(\delta>0\) such that

$$ 0<|h|<\delta \quad\Longrightarrow\quad \left|\frac{|h|}{h}-L\right|<\frac12. $$

Choose a positive \(h\) with \(0<h<\delta\), for example \(h=\frac{\delta}{2}\). The quotient is \(1\), so the assumed limit condition gives

$$ |1-L|<\frac12. $$

Now choose \(h=-\frac{\delta}{2}\), which is negative and also satisfies \(0<|h|<\delta\). The quotient is \(-1\), so the same limit condition gives

$$ |-1-L|<\frac12. $$

But the triangle inequality then implies

$$ 2 = |1-(-1)| \le |1-L|+|L-(-1)| = |1-L|+|-1-L| < \frac12+\frac12 = 1. $$

This would say \(2<1\), which is impossible. Therefore no such \(L\) exists. The difference quotient has no two-sided limit at zero, and, by the definition of the derivative, \(f(x)=|x|\) is not differentiable at zero.

Theorem: If the two-sided limit defining \(f'(a)\) exists, then the difference quotient must have the same limit as its increment approaches zero from either side. For \(f(x)=|x|\) at zero, the one-sided limits are \(1\) and \(-1\), so \(f'(0)\) does not exist.

Worked Example: Checking the Quotient Along Sequences

Worked Example: Checking the Quotient Along Sequences

Consider the positive increments \(h_n=\frac1n\) and the negative increments \(k_n=-\frac1n\), where \(n\in\mathbb N\). Both sequences approach zero: as \(n\) increases, \(\frac1n\) approaches zero, so \(h_n\to0\) and \(k_n\to0\).

For every \(n\ge1\), \(h_n>0\). Thus \(|h_n|=h_n=\frac1n\), and

$$ \frac{|h_n|}{h_n} = \frac{1/n}{1/n} = 1. $$

For every \(n\ge1\), \(k_n<0\). Its absolute value is \(|k_n|=\frac1n\), while its signed value is \(k_n=-\frac1n\). Therefore

$$ \frac{|k_n|}{k_n} = \frac{1/n}{-1/n} = -1. $$

So along increments tending to zero from above, the quotient always equals \(1\); along increments tending to zero from below, it always equals \(-1\). If a two-sided limit existed, every sequence of nonzero increments approaching zero would have quotient values approaching that same limit. These two sequences instead give different constant values. This independently confirms that the two-sided limit, and hence the derivative at zero, does not exist.

The check is exact for every \(n\), not just for selected numerical values. For instance, at \(n=4\), \(h_4=\frac14\) gives \(\frac{|h_4|}{h_4}=\frac{1/4}{1/4}=1\), while \(k_4=-\frac14\) gives \(\frac{|k_4|}{k_4}=\frac{1/4}{-1/4}=-1\). These agree with the formulas for all \(n\).

Worked Example: Comparing the Secant Slopes from Either Side

Worked Example: Comparing the Secant Slopes from Either Side

The difference quotient at zero is also the slope between the graph points at \(x=0\) and \(x=h\). Compute that slope for \(h=\frac25\) and \(h=-\frac25\).

At \(x=0\), the function value is \(|0|=0\). At \(x=\frac25\), it is \(\left|\frac25\right|=\frac25\). The slope between those points is

$$ \frac{\left|\frac25\right|-|0|}{\frac25-0} = \frac{\frac25-0}{\frac25} = \frac{\frac25}{\frac25} = 1. $$

At \(x=-\frac25\), the function value is \(\left|-\frac25\right|=\frac25\). The slope from \(x=0\) to this point is

$$ \frac{\left|-\frac25\right|-|0|}{-\frac25-0} = \frac{\frac25-0}{-\frac25} = \frac{\frac25}{-\frac25} = -1. $$

These slopes are precisely the difference quotients for the positive and negative increments. They verify the same two values: \(1\) from the positive side and \(-1\) from the negative side. Since approaching zero from the two sides does not produce one common slope, the derivative limit fails to exist.

A Common Sign Mistake

A frequent error is to use \(|h|=h\) for negative \(h\) as well as positive \(h\). That substitution would produce

$$ \frac{|h|}{h} \overset{\text{wrong for }h<0}{=} \frac{h}{h} = 1. $$

The error is in the first equality: when \(h<0\), the absolute value is \(-h\), not \(h\). For example, if \(h=-2\), then \(|h|=2\), whereas \(h=-2\). The correct calculation is

$$ \frac{|h|}{h} = \frac{-h}{h} = -1 \qquad (h<0). $$

A reliable check is to substitute a particular negative increment before simplifying. With \(h=-2\), the original quotient is \(\frac{|-2|}{-2}=\frac{2}{-2}=-1\), not \(1\). Keeping the signed denominator is essential.

What the Calculation Establishes

The entire conclusion follows from the difference quotient and the definition of absolute value. For positive increments the quotient is exactly \(1\); for negative increments it is exactly \(-1\). Consequently, the one-sided limits are different, the two-sided limit does not exist, and \(f'(0)\) is undefined.

This calculation is a useful model for derivative questions at points where a formula changes behavior. The immediate task is not to guess a slope from a sketch, but to form the quotient, respect the sign of the increment, and compare the resulting limits. Here the comparison is decisive: no single real number can be the limit from both sides.

Check Your Understanding

Use the difference quotient at zero and keep positive and negative increments separate.

  1. Write the difference quotient for \(f(x)=|x|\) at zero, including the restriction on \(h\).
  2. What is \(\frac{|h|}{h}\) when \(h>0\), and why?
  3. What is \(\frac{|h|}{h}\) when \(h<0\), and why?
  4. Compute the quotient for \(h=-\frac37\), showing the absolute value and the signed denominator.
  5. Explain why the unequal one-sided limits imply that \(f'(0)\) does not exist.

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