Tutorials › AP Calculus › When Continuity is Mistaken for Differentiability

Differentiability and Continuity · Tutorial 119 of 999

When Continuity is Mistaken for Differentiability

Learn why continuity alone cannot establish differentiability, and test claims using one-sided difference quotients and the continuity requirement.

Beginner 9 min read

What You'll Learn

  • Distinguish continuity at a point from differentiability there
  • Explain why differentiability at an interior point implies continuity
  • Test a continuous piecewise function using its one-sided slopes
  • Identify when a difference quotient becomes unbounded
  • Reject differentiability claims at discontinuities
  • Correct the mistaken inference that continuity guarantees a derivative

Continuity Is Necessary, but Not Enough

A graph can have no break at a point and still fail to have a well-defined tangent slope there. This is the key distinction between continuity and differentiability: continuity describes how function values behave near a point, while differentiability requires a finite, consistent limiting slope.

When deciding whether a derivative exists, continuity is an important check, but it is not a complete test. A discontinuous function cannot be differentiable at the point; a continuous function may or may not be differentiable there. The difference quotient reveals what continuity alone cannot.

Key takeaway: Differentiability at an interior point implies continuity there, but continuity at a point does not imply differentiability there.

Definitions and the One-Sided Test

Let \(f\) be defined on an open interval containing \(a\). The function is continuous at \(a\) if

$$ \lim_{x\to a} f(x)=f(a). $$

The function is differentiable at \(a\) if the following limit exists as a finite real number:

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

The expression inside the limit is the difference quotient. For an interior point, the two-sided limit exists exactly when the left-hand and right-hand limits both exist as finite numbers and are equal. These limits are called the left-hand and right-hand derivatives.

$$ \lim_{h\to 0^-}\frac{f(a+h)-f(a)}{h} \qquad\text{and}\qquad \lim_{h\to 0^+}\frac{f(a+h)-f(a)}{h}. $$

Thus, a function’s values can fit together continuously while its slopes from the two sides disagree. Or the difference quotient may grow without bound rather than approach a finite value. Either behavior prevents differentiability.

Why Differentiability Implies Continuity

This implication explains why a discontinuity is decisive evidence against differentiability. Suppose \(f'(a)\) exists. For every nonzero \(h\) sufficiently close to zero, rearrange the difference quotient:

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

As \(h\to 0\), the first factor on the right approaches \(0\), and the factor in parentheses approaches the finite number \(f'(a)\). By the product limit law, their product approaches \(0\). Therefore \(f(a+h)-f(a)\to 0\), which means \(f(a+h)\to f(a)\). This is continuity at \(a\).

Theorem: If a function is differentiable at an interior point, then it is continuous at that point. The converse is not guaranteed: continuity does not, by itself, establish differentiability.

The proof gives a useful order for checking a claim. First, if the function is discontinuous at the point, conclude that it is not differentiable there. If it is continuous, do not stop: evaluate the difference quotient or compare the one-sided slopes.

Worked Example: Continuous at a Join, but Unequal Slopes

Worked Example: Continuous at a Join, but Unequal Slopes

Consider the function

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

Determine whether \(f\) is differentiable at \(0\).

Step 1: Check continuity. Since \(f(0)=0\), the left-hand limit is

$$ \lim_{x\to 0^-}f(x)=\lim_{x\to 0^-}x=0. $$

The right-hand limit is

$$ \lim_{x\to 0^+}f(x)=\lim_{x\to 0^+}2x=0. $$

Both one-sided limits equal \(f(0)\), so \(f\) is continuous at \(0\).

Step 2: Compute the one-sided difference quotients. For \(h<0\), \(f(h)=h\), so

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

For \(h>0\), \(f(h)=2h\), so

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

The left-hand derivative is \(1\), and the right-hand derivative is \(2\). They are unequal, so the two-sided derivative does not exist. The function is continuous but not differentiable at \(0\). As a check, the two branches meet at the same function value, but their slopes, \(1\) and \(2\), do not match.

Worked Example: A Continuous Function with an Unbounded Quotient

Worked Example: A Continuous Function with an Unbounded Quotient

Let \(g(x)=\sqrt{|x|}\). Test continuity and differentiability at \(0\).

Step 1: Check continuity. We have \(g(0)=0\). As \(x\to 0\), \(|x|\to 0\), so \(\sqrt{|x|}\to 0=g(0)\). Thus \(g\) is continuous at \(0\).

Step 2: Form the difference quotient. For \(h\ne 0\),

$$ \frac{g(0+h)-g(0)}{h} = \frac{\sqrt{|h|}}{h}. $$

When \(h>0\), this becomes \(1/\sqrt{h}\), which grows without bound as \(h\to 0^+\). When \(h<0\), \(h=-|h|\), so the quotient becomes \(-1/\sqrt{|h|}\), which decreases without bound as \(h\to 0^-\). Neither one-sided limit is a finite real number. Therefore \(g'(0)\) does not exist.

Check: The function values approach \(0\), confirming continuity, but the quotients do not approach any finite slope. A limit of function values and a limit of slopes are different tests.

Worked Example: A Discontinuity Rules Out a Derivative

Worked Example: A Discontinuity Rules Out a Derivative

Define

$$ q(x)= \begin{cases} 0, & x<1,\\ 1, & x\geq 1. \end{cases} $$

Can \(q\) be differentiable at \(1\)?

Step 1: Check the function value and one-sided limits. Since \(1\geq 1\), \(q(1)=1\). But

$$ \lim_{x\to 1^-}q(x)=0 \qquad\text{and}\qquad \lim_{x\to 1^+}q(x)=1. $$

The left-hand limit does not equal \(q(1)\), so \(q\) is discontinuous at \(1\).

Step 2: Apply the necessary condition. A function differentiable at \(1\) would have to be continuous there. Since \(q\) is not continuous at \(1\), it cannot be differentiable there.

Check using the quotient: For \(h<0\),

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

As \(h\to 0^-\), this expression grows without bound. For \(h>0\), it equals \((1-1)/h=0\). The difference quotient cannot have a finite two-sided limit, consistent with the discontinuity test.

A Common Mistake: Treating Continuity as a Differentiability Test

A tempting but invalid argument is: “The graph has no gap at \(a\), so the derivative exists at \(a\).” That conclusion confuses a condition that is necessary with one that is sufficient.

Common mistake: For \(f(x)=|x|\), note that \(f(0)=0\) and the function is continuous at \(0\), then conclude \(f'(0)=0\). Continuity only gives \(\lim_{x\to 0}f(x)=f(0)\); it says nothing by itself about the difference quotient.

The correction is to calculate the quotient from the definition. For \(h>0\), \(|h|/h=1\); for \(h<0\), \(|h|/h=-1\). The one-sided limits are unequal, so \(f'(0)\) does not exist. Continuity verifies that the function value fits the nearby values; it does not guarantee a single limiting slope.

A Reliable Check for a Differentiability Claim

When someone claims that a function is differentiable at an interior point, separate the continuity question from the slope question.

1
Check continuity first.
Compare the limit of the function at the point with its actual value. If they differ, differentiability is impossible.
2
If continuous, test the quotient.
Use the definition of the derivative, paying attention to the left-hand and right-hand limits.
3
Require a finite, matching result.
The two one-sided limits must both be finite and equal. Continuity alone does not meet this requirement.

This approach prevents two opposite errors: claiming a derivative where a discontinuity rules it out, and claiming a derivative merely because the function is continuous. It also clarifies what evidence is needed: continuity is the first requirement, while the difference quotient decides whether a finite slope exists.

Check Your Understanding

For each question, distinguish what continuity establishes from what the difference quotient must establish.

  1. State the implication connecting differentiability and continuity. Does the converse follow?
  2. A function is continuous at \(a\), but its left-hand and right-hand difference-quotient limits are \(3\) and \(5\). Does its derivative exist at \(a\)? Explain.
  3. Why does a discontinuity at an interior point rule out differentiability there?
  4. For \(r(x)=\sqrt{|x|}\), what happens to the difference quotient from the right as \(h\to 0^+\)?
  5. What additional test is needed after confirming that a function is continuous at a point?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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
Clinical Biostats