Continuity and differentiability: the corner test
Last updated: 2026-11-26
Continuity and differentiability answer different questions about the same graph. Continuity asks whether the graph is unbroken at a point; differentiability asks whether it has a single, well-defined slope there. The first does not give you the second, and the absolute value function shows it in one picture.
Start learning No account needed
1. Continuity: the unbroken test
The Wikipedia article on continuous functions gives the test at a point c: as x approaches c within the domain, the values f(x) must have a limit, and that limit must be f(c). That is three checks. The function is defined at c, the limit exists, and the limit matches the value. A function is continuous on an interval when it passes at each point of the interval, and the article notes that polynomial functions are continuous everywhere.
Three ways to fail are a misplaced value (the limit exists but f(c) is something else), a jump (the two sides approach different heights) and a missing value (f(c) is undefined, so there is nothing to compare). A function cannot have a derivative at such a point. The reverse problem is the subject here: a graph can be unbroken and still have no slope at a point.
2. Differentiability: the slope test
The article on differentiable functions says f is differentiable at a when the difference quotient, f(a + h) minus f(a), all over h, has a limit as h goes to 0. That limit is the derivative. At an interior point of the domain, the graph then has a non-vertical tangent line, and the article says a differentiable function's graph has no break, angle or cusp there. Differentiability also forces continuity at the same point. The reason is that f(a + h) minus f(a) equals the quotient times h, and a quotient with a finite limit times an h going to 0 goes to 0.
The arrow does not run backwards. A figure in the same article shows the usual counterexample, the absolute value function f(x) = |x|, which is continuous but has a sharp turn at x = 0 and no derivative there. Continuity is the weaker property.
3. A worked example: the corner of |x| in numbers
You can check the corner with a calculator. The script, scripts/continuity-vs-differentiability-worked-example.py, tests f(x) = |x| at the corner x = 0 and, for comparison, g(x) = x² at the same point.
Continuity of |x| at 0. The value is f(0) = 0, and nearby inputs give f(-0.001) = 0.001 and f(0.001) = 0.001. Samples alone do not prove a limit, but the gap between |x| and 0 is exactly the distance from x to 0, so the limit is 0. Limit equals value, so |x| is continuous at the corner.
Differentiability of |x| at 0. Now compute the difference quotient on each side. From the right, (f(h) - f(0)) / h is 1.0 at h = 0.1, 1.0 at h = 0.01 and 1.0 at h = 0.001. From the left, (f(-h) - f(0)) / (-h) is -1.0 at all three sizes. For any h above 0 these quotients are exactly +1 on the right and -1 on the left. The two sides do not share a limit, so the derivative does not exist. The corner has a left slope and a right slope but no single slope.
| h | Right slope of |x| | Left slope of |x| | Symmetric quotient |
|---|---|---|---|
| 0.1 | 1.0 | -1.0 | 0.0 |
| 0.01 | 1.0 | -1.0 | 0.0 |
| 0.001 | 1.0 | -1.0 | 0.0 |
The symmetric quotient column, (f(h) - f(-h)) / (2h), sits at 0.0 for every h. That column is the trap: a single number that is not a derivative. It averages a slope of +1 with a slope of -1, and only the two one-sided quotients decide the question. Compare g(x) = x². Its right quotient at 0 is 0.100 at h = 0.1, 0.010 at h = 0.01 and 0.001 at h = 0.001, and its left quotient is -0.100, -0.010 and -0.001. Each quotient equals h or -h, so both sides head to 0, which is the derivative 2x at x = 0.
Output from the script:
continuity of |x| at 0: f(-0.001) = 0.001, f(0.001) = 0.001, f(0) = 0 -> limit 0 = value, continuous
|x| difference quotients at 0:
h = 0.1: right 1.0, left -1.0, symmetric 0.0
h = 0.01: right 1.0, left -1.0, symmetric 0.0
h = 0.001: right 1.0, left -1.0, symmetric 0.0
one-sided slopes settle at +1 and -1 -> no derivative at the corner
x^2 right quotients at 0: 0.100, 0.010, 0.001
x^2 left quotients at 0: -0.100, -0.010, -0.001
both sides head to 0 (2x at 0), differentiable
4. A mistake to avoid: continuous means differentiable
The arrow points one way. Differentiable at a point forces continuous at that point, but continuous at a point leaves the slope question open, and the corner answers it no. Watch for two errors. One is claiming that |x| has a derivative of 0 at x = 0, which is that 0.0 symmetric quotient again, averaged from two slopes that disagree. The other is claiming a function is differentiable because a rough sketch looks smooth.
The failure can be much worse than one corner. The Weierstrass function, the first known example of its kind, is continuous at each point and differentiable at none. Continuity alone, then, is a statement about breaks, not about slopes; treat every differentiability claim as its own question.
5. Test yourself
Answer before you open each one.
Question 1. f(x) = |x - 2|. Where does differentiability fail, and what are the two one-sided slopes there?
Answer to question 1
The corner moves to x = 2. The right slope is +1 and the left slope is -1, the same numbers as before shifted two units, so the derivative fails to exist at x = 2 only.
Question 2. A classmate computes the symmetric quotient of |x| at 0 for h = 0.0001, gets 0.0, and reports the derivative is 0. What went wrong?
Answer to question 2
The symmetric quotient averages the two one-sided slopes. At a corner they disagree (+1 and -1), so their average describes no tangent line. The derivative needs the difference quotient to have the same limit from both sides, and here the two limits differ.
Question 3. Can a function be differentiable at a point and discontinuous somewhere else?
Answer to question 3
Yes. The arrow from differentiability to continuity is local, so it says nothing about other points. Let f(x) = x² for x below 5 and x² + 1 for x of 5 or more. It is differentiable at 0, yet at x = 5 it jumps from values near 25 to 26.
For where this sits in a calculus course, see how to study for calculus and how to test yourself.
What the sources found, and their limits
Wikipedia, Continuous function. It gives the test for continuity at a point and on an interval, says polynomial functions are continuous everywhere, and states that the absolute value function is continuous everywhere but not differentiable at x = 0. Source: Continuous function (CC BY-SA 4.0), read on 2026-11-25.
Wikipedia, Differentiable function. It supplies the difference-quotient definition, the geometric statement (a non-vertical tangent, with no break, angle or cusp), the one-way arrow to continuity, the absolute value figure and the Weierstrass function. Source: Differentiable function (CC BY-SA 4.0), read on 2026-11-25. Limits: neither article works the corner numerically, so the quotient table, the symmetric-quotient trap, the x² comparison, the one-line continuity argument and the practice questions are ours. The script computes the table and comparison.
How Professor Turing helps
Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.
Bring the function whose differentiability you are arguing about, say |x - 3| at 3. Its first reply asks what you already know before it teaches anything: which limit you would compute, and from which sides. If you answer with a bare guess, it asks how you got there instead of saying right or wrong, and when you stay stuck it changes its approach and makes the next step smaller, so the two tests become something you can run alone. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.
FAQ
Does differentiability imply continuity? Yes. A function that is differentiable at a point is continuous at that point, as the differentiable function article explains. The reverse is false, and the absolute value function is the usual counterexample.
Is there a function that is continuous everywhere and differentiable nowhere? Yes. The Weierstrass function is the first known example of one. The corner at x = 0 in the absolute value function breaks differentiability at a single point, while the Weierstrass function has no derivative at any point.
Start with what you're working on
Tell the tutor which function you are testing and let it ask you the questions.
Start learning No account needed
See also: limits in calculus · what is a derivative · the mean value theorem · all study guides