Consider the absolute-value function f(x) = |x|. Its graph is a sharp "V" with the corner sitting at the origin.
Sketch it, then ask: what is the slope at x = 0?
Walk in from the left, along y = −x. The slope there is −1 the whole way. Now walk in from the right, along y = x. The slope there is +1 the whole way. The two sides demand two different slopes at the single point x = 0.
There is no single tangent line that fits both — the graph turns a hard corner. So f(x) = |x| has no derivative at x = 0, even though the graph never lifts off the page: it is perfectly continuous there.
That is the heart of this lesson. Continuity is about the graph having no breaks. Differentiability is a stronger demand: the graph must also be smooth — no corners, no cusps, no vertical tangents. This lesson pins down exactly when a derivative fails to exist, and how to say so in AP language.
A function can be continuous (no gaps, jumps, or holes) yet still fail to be differentiable (no well-defined tangent slope). Understanding the precise relationship between these two ideas — and the four ways differentiability breaks — is a recurring AP exam theme.
The derivative at a point is a two-sided limit:
f'(c) = lim_{h→0} [f(c + h) − f(c)] / h
Like any two-sided limit, it exists only if the left-hand and right-hand pieces agree. Define the one-sided derivatives:
left-hand derivative: f'₋(c) = lim_{h→0⁻} [f(c + h) − f(c)] / h
right-hand derivative: f'₊(c) = lim_{h→0⁺} [f(c + h) − f(c)] / h
f is differentiable at c if and only if f'₋(c) and f'₊(c) both exist (as finite numbers) and are equal. This single test diagnoses every case below. For f(x) = |x|, f'₋(0) = −1 and f'₊(0) = +1; they exist but disagree, so f'(0) does not exist.
Theorem. If
fis differentiable atx = c, thenfis continuous atx = c.
In words: differentiability is the stronger condition. Smoothness implies connectedness. Intuitively, if the difference quotient [f(c+h) − f(c)]/h is to approach a finite slope as h → 0, the numerator f(c+h) − f(c) must shrink to 0 — which is exactly the statement that lim_{x→c} f(x) = f(c), i.e. continuity.
The theorem does not run backwards. Continuity does not imply differentiability. The honest way to state this is through the contrapositive, which IS always true and is your most useful exam tool:
Contrapositive. If
fis not continuous atx = c, thenfis not differentiable atx = c.
So a discontinuity is an automatic disqualification: no tangent line where the graph breaks. But the reverse trap is the one AP loves — a function can be continuous everywhere and still fail to be differentiable somewhere. The counterexample is f(x) = |x| at x = 0: continuous (no break), but not differentiable (a corner). Memorize this counterexample — it is the standard proof that "continuous ⇒ differentiable" is false.
A function fails to be differentiable at x = c in exactly one of four ways:
f'₋ ≠ f'₊). The graph abruptly changes slope. Example: |x| at 0.+∞, the other to −∞). The graph comes to a sharp point. Example: f(x) = x^(2/3) at 0, where f'(x) = (2/3)x^(−1/3) → −∞ from the left and → +∞ from the right.±∞ from both sides (the same infinite sign), so the tangent line is vertical and has no real slope. Example: f(x) = x^(1/3) at 0, where f'(x) = (1/3)x^(−2/3) → +∞ from both sides.f is not continuous.Note that cases 1–3 are all continuous points (the graph is unbroken) where differentiability still fails — they are the witnesses that the converse is false.
A favorite AP problem hands you a piecewise function with unknown constants and asks you to choose them so the function is differentiable at the seam. The seam must satisfy two independent conditions:
Two conditions, two unknowns — solve the system. Skipping condition 2 is the single most common error on this problem type.
Worked example. Find a and b so that
⎧ x² x ≤ 1
f(x) = ⎨
⎩ ax + b x > 1
is differentiable at x = 1.
Condition 1 — continuity at x = 1. The pieces must agree at x = 1:
left value: (1)² = 1
right value: a(1) + b = a + b
⇒ a + b = 1
Condition 2 — matching derivatives at x = 1. Differentiate each piece, then equate the one-sided slopes at x = 1:
left piece f(x) = x² ⇒ f'(x) = 2x ⇒ f'₋(1) = 2(1) = 2
right piece f(x) = ax+b ⇒ f'(x) = a ⇒ f'₊(1) = a
⇒ a = 2
Solve the system. From condition 2, a = 2. Substitute into condition 1: 2 + b = 1, so b = −1.
a = 2, b = −1
So f(x) = x² for x ≤ 1 and f(x) = 2x − 1 for x > 1 is differentiable at the seam. Check: continuity, 2(1) − 1 = 1 = 1² ✓; slopes, both equal 2 ✓. The line 2x − 1 is exactly the tangent line to x² at x = 1, which is the geometric meaning of "joining smoothly."
A graphing calculator is excellent for spotting trouble: graph the function and look for corners, cusps, and breaks. But nDeriv is dangerous near non-differentiable points. nDeriv computes a symmetric difference quotient [f(c+h) − f(c−h)]/(2h) with a small built-in h, so it will happily return a number even where no derivative exists:
TI-84: nDeriv(abs(X), X, 0) → 0 (but f'(0) does NOT exist for |x|!)
For |x|, the symmetric quotient averages the −1 and +1 slopes to a fake 0. nDeriv at a corner, cusp, or jump returns a meaningless value. Trust the graph and the one-sided derivatives, not the nDeriv number, near any suspected non-differentiable point.
Problem. A continuous function g is graphed on [−4, 4]. It has a sharp corner at x = −2, a vertical tangent at x = 1, and a sharp downward spike (cusp) at x = 3. Elsewhere it is a smooth curve. At which x-values is g not differentiable, and why?
Strategy. Scan for corners, cusps, vertical tangents, and discontinuities. Name the reason for each.
Solution. g is not differentiable at x = −2, x = 1, and x = 3.
Justification.
x = −2, g has a corner: the left- and right-hand derivatives both exist but are unequal, so g'(−2) does not exist.x = 1, g has a vertical tangent: the slope tends to ±∞, so g'(1) does not exist (the tangent line is vertical and has no finite slope).x = 3, g has a cusp: the one-sided slopes tend to infinity in opposite directions, so g'(3) does not exist.g is differentiable everywhere else on [−4, 4], since the graph is smooth (and continuous) there.Problem. Let f(x) = |x − 3|. Show that f is continuous at x = 3 but not differentiable there.
Strategy. Continuity: check the limit equals the value. Differentiability: compute both one-sided derivatives and compare.
Solution. Rewrite as a piecewise function:
f(x) = |x − 3| = ⎧ −(x − 3) = 3 − x, x < 3
⎨
⎩ (x − 3) = x − 3, x ≥ 3
Continuity at x = 3: the left limit is 3 − 3 = 0, the right limit is 3 − 3 = 0, and f(3) = 0. All three agree, so f is continuous at x = 3.
One-sided derivatives at x = 3:
left piece 3 − x ⇒ f'₋(3) = −1
right piece x − 3 ⇒ f'₊(3) = +1
Justification. f is continuous at x = 3 because lim_{x→3} f(x) = 0 = f(3). However, f is not differentiable at x = 3 because the left-hand derivative f'₋(3) = −1 and the right-hand derivative f'₊(3) = +1 are not equal. This is a corner — and a direct demonstration that continuity does not imply differentiability.
Problem. Find constants c and d so that
⎧ cx + d x < 2
g(x) = ⎨
⎩ x² − 1 x ≥ 2
is differentiable at x = 2.
Strategy. Impose both conditions at the seam x = 2: equal values (continuity) and equal one-sided slopes (matching derivatives). Solve the resulting system.
Solution.
Matching derivatives at x = 2: f'₋(2) = c (slope of cx + d); f'₊(2) = 2x |_{x=2} = 4 (since the derivative of x² − 1 is 2x). Set equal:
c = 4
Continuity at x = 2: left value c(2) + d = 2c + d; right value 2² − 1 = 3. Set equal:
2c + d = 3
Substitute c = 4: 2(4) + d = 3 ⇒ 8 + d = 3 ⇒ d = −5.
c = 4, d = −5
Justification. With c = 4 and d = −5, g is continuous at x = 2 because both pieces equal 3 there, and g is differentiable at x = 2 because both one-sided derivatives equal 4. Both conditions are required: continuity alone (any c, d with 2c + d = 3) would only guarantee the graph connects, not that it is smooth.
Problem. A function h is continuous on [0, 5] and has a jump discontinuity removed — actually h is continuous everywhere on [0, 5] except it has a corner at x = 2 and a removable hole patched at x = 4 (so h is continuous at x = 4). State, with justification, whether h is differentiable at x = 2 and at x = 4.
Strategy. Apply the definitions and the contrapositive directly.
Solution & Justification.
x = 2: h is not differentiable, because h has a corner there — the left- and right-hand derivatives are unequal. (Continuity at x = 2 is not enough; smoothness fails.)x = 4: the hole has been patched so h is continuous there, but continuity alone does not guarantee differentiability. If the curve is smooth at x = 4 (one-sided slopes match), then h is differentiable there; we cannot conclude differentiability from continuity alone. This is the precise point: differentiable ⇒ continuous, but continuous ⇏ differentiable.Assuming continuous ⇒ differentiable. Students see an unbroken graph and conclude the derivative exists everywhere. Why it's wrong: the implication only runs one way — differentiable ⇒ continuous, never the reverse. Fix: a continuous graph can still have corners (|x|), cusps (x^(2/3)), or vertical tangents (x^(1/3)). Always check for smoothness, not just connectedness.
On a piecewise problem, checking only continuity and forgetting derivative-matching. Students set the two pieces equal at the seam, solve, and stop — getting a function that connects but bends. Why it's wrong: differentiability requires the one-sided derivatives to match too. Fix: always impose both conditions (equal values AND equal slopes). One equation per condition; two equations for two unknowns.
Misreading a vertical tangent as differentiable. A vertical tangent looks like the graph has a perfectly good (steep) tangent line, so students say the derivative exists. Why it's wrong: a vertical line has no real slope — the derivative is ±∞, which means it does not exist as a finite number. Fix: "vertical tangent" is a reason the derivative fails to exist, not a reason it succeeds.
Trusting nDeriv at a corner or jump. Students compute nDeriv(abs(X), X, 0), get 0, and report f'(0) = 0. Why it's wrong: nDeriv uses a symmetric difference and averages the mismatched one-sided slopes into a meaningless number, even where no derivative exists. Fix: near any suspected non-differentiable point, use one-sided derivatives by hand; never trust the nDeriv value.
Confusing "the limit exists" with "the derivative exists." Students check that lim_{x→c} f(x) exists (continuity) and call the function differentiable. Fix: differentiability is about the limit of the difference quotient existing, which is strictly more than the function's limit existing.
---
## (e) Practice Problems
Which statement is always true?
- (A) If f is continuous at x = c, then f is differentiable at x = c.
- (B) If f is differentiable at x = c, then f is continuous at x = c.
- (C) If f is not continuous at x = c, then f may still be differentiable at x = c.
- (D) Continuity and differentiability are equivalent.
The function f(x) = |x + 4| fails to be differentiable at:
- (A) x = 4 (B) x = −4 (C) x = 0 (D) nowhere
A function has a vertical tangent at x = c. This means at x = c the function is:
- (A) discontinuous and not differentiable
- (B) continuous and differentiable
- (C) continuous but not differentiable
- (D) differentiable but not continuous
Which feature does NOT make a continuous function non-differentiable at a point?
- (A) a corner (B) a cusp (C) a vertical tangent (D) a horizontal tangent
At a corner, the left- and right-hand derivatives:
- (A) are both infinite (B) both fail to exist
- (C) exist but are unequal (D) exist and are equal
For f(x) = x^(1/3), the derivative f'(x) = (1/3)x^(−2/3) as x → 0 behaves so that f has at x = 0 a:
- (A) corner (B) cusp (C) vertical tangent (D) jump discontinuity
If g(x) = x² for x ≤ 0 and g(x) = mx for x > 0 is differentiable at x = 0, then m =
- (A) 2 (B) 1 (C) 0 (D) −1
Consider the graph below. At which x-value is the function continuous but not differentiable?
x = −1 (B) x = 2 (C) x = 4 (D) the function is differentiable everywhereA student computes nDeriv(abs(X−2), X, 2) and the calculator returns 0. The correct conclusion is:
- (A) f'(2) = 0
- (B) f has a horizontal tangent at x = 2
- (C) f'(2) does not exist; nDeriv is unreliable at the corner
- (D) f is differentiable at x = 2 with slope 0
If f is differentiable at x = 5, which MUST be true?
- (A) f is continuous at x = 5
- (B) f has a horizontal tangent at x = 5
- (C) f(5) = 0
- (D) f'(5) = 0
(Short answer.) Find constants a and b so that
f(x) = ⎧ ax + b x < 1
⎨
⎩ x³ x ≥ 1
is differentiable at x = 1. Show both conditions.
(Short answer.) Let f(x) = |2x − 6|. Find the one-sided derivatives at x = 3 and state whether f is differentiable there.
(Justification.) A function f is continuous at x = 0 but lim_{h→0⁻}[f(0+h)−f(0)]/h = 3 while lim_{h→0⁺}[f(0+h)−f(0)]/h = −1. Is f differentiable at x = 0? Justify your answer using precise language.
(Justification.) A student writes: "Since g(x) = x^(2/3) is continuous at x = 0, it is differentiable at x = 0." Identify the error and write a correct justification.
The piecewise function f(x) = x² for x ≤ 1 and f(x) = 2x + k for x > 1 is continuous at x = 1. The value of k is:
- (A) 1 (B) −1 (C) 0 (D) 2
---
## (f) AP Exam Focus — Free Response Question
This is the lesson's full AP-style FRQ. Total: 9 points. No calculator. All justification must be shown in writing using precise AP language.
Problem. Let f be the function defined by
⎧ x² + 1 x ≤ 2
f(x) = ⎨
⎩ ax + b x > 2
where a and b are constants.
(a) (2 points) Find the value of b in terms of a so that f is continuous at x = 2. Show the reasoning.
(b) (3 points) Find the values of a and b so that f is differentiable at x = 2. Show that your function satisfies both the continuity and the derivative conditions.
(c) (2 points) Let g be the function g(x) = |x − 2|. State, with justification, whether g is differentiable at x = 2.
(d) (2 points) A student claims, "Every continuous function is differentiable." Use part (c) to explain, with correct mathematical language, why this claim is false.
(a) For f to be continuous at x = 2, the two pieces must agree at x = 2:
left value: (2)² + 1 = 5
right value: a(2) + b = 2a + b
Setting them equal: 2a + b = 5, so
b = 5 − 2a
(b) Differentiability at x = 2 requires both continuity (from part (a)) and matching one-sided derivatives.
Derivative condition. The left piece x² + 1 has derivative 2x, so f'₋(2) = 2(2) = 4. The right piece ax + b has derivative a, so f'₊(2) = a. Setting these equal:
a = 4
Continuity condition. Substitute a = 4 into b = 5 − 2a from part (a):
b = 5 − 2(4) = 5 − 8 = −3
So a = 4 and b = −3.
Verification.
2² + 1 = 5; right value 4(2) + (−3) = 8 − 3 = 5. They agree ✓.f'₋(2) = 4 and f'₊(2) = 4. They agree ✓.Therefore f is differentiable at x = 2 with a = 4, b = −3.
(c) Write g(x) = |x − 2| as a piecewise function:
g(x) = ⎧ 2 − x, x < 2 ⇒ g'₋(2) = −1
⎨
⎩ x − 2, x ≥ 2 ⇒ g'₊(2) = +1
g is not differentiable at x = 2, because the left-hand derivative g'₋(2) = −1 and the right-hand derivative g'₊(2) = +1 are not equal. (Note g is continuous at x = 2 since both pieces equal 0 there — but a corner prevents differentiability.)
(d) The claim is false. The function g(x) = |x − 2| from part (c) is continuous at x = 2 (its left and right limits both equal g(2) = 0), yet it is not differentiable at x = 2 because its one-sided derivatives −1 and +1 are unequal — a corner. The correct relationship is one-directional: differentiability implies continuity, but continuity does not imply differentiability. The function g is a counterexample to the student's claim.
x = 2 (the continuity condition 2a + b = 5), 1 point for the correct answer b = 5 − 2a. Students lose a point for plugging in x = 2 to only one piece, or for using a strict-inequality value incorrectly.a = 4 (correctly differentiating both pieces and equating one-sided slopes), 1 point for b = −3, 1 point for showing both conditions are satisfied. The classic loss: solving only a = 4 without finding b, or finding a and b but never demonstrating the continuity check. Students who match derivatives but forget continuity (or vice versa) cap at 2 of 3.−1 and +1, 1 point for the conclusion "not differentiable because the left- and right-hand derivatives are unequal." Students lose points for saying only "it has a corner" without naming the unequal one-sided derivatives, or for claiming the derivative is 0 (a common nDeriv-style error).g as continuous yet not differentiable at x = 2, 1 point for stating the correct one-way implication (differentiable ⇒ continuous, but not conversely). Students lose points for a vague answer like "it has a sharp point" without the words continuous and not differentiable, or for reversing the implication.1. (B). This is exactly the theorem: differentiable ⇒ continuous.
- (A) reverses the implication (continuity does not imply differentiability — |x|). (C) is false: a discontinuity always blocks differentiability (contrapositive). (D) is false: they are not equivalent.
2. (B) x = −4. |x + 4| has its corner where the inside is zero, x + 4 = 0 ⇒ x = −4.
- (A) x = 4 flips the sign of the inside. (C) x = 0 is the corner of |x|, not |x+4|. (D) is wrong — a corner does exist.
3. (C) continuous but not differentiable. A vertical tangent occurs on an unbroken curve (continuous) where the slope is ±∞, so the derivative does not exist (not differentiable).
- (A) wrongly calls it discontinuous. (B), (D) wrongly claim differentiability.
4. (D) a horizontal tangent. A horizontal tangent has slope 0 — a perfectly good finite derivative, so the function IS differentiable there.
- (A), (B), (C) are all genuine ways a continuous function fails to be differentiable.
5. (C) exist but are unequal. That is the definition of a corner.
- (A) describes a cusp/vertical tangent. (B) is too strong — at a corner each one-sided derivative does exist. (D) would make it differentiable.
6. (C) vertical tangent. f'(x) = (1/3)x^(−2/3) → +∞ from both sides (the exponent −2/3 keeps it positive), so the slope is +∞ on both sides — a vertical tangent.
- (A) corner needs unequal finite slopes. (B) cusp needs opposite infinite signs; here both are +∞. (D) x^(1/3) is continuous, no jump.
7. (C) 0. Continuity holds for any m (both pieces equal 0 at x = 0). Matching derivatives at x = 0: left piece x² gives f'₋(0) = 2(0) = 0; right piece mx gives f'₊(0) = m. Setting them equal gives m = 0.
- (A) 2 mistakenly evaluates 2x away from 0. (B), (D) do not satisfy the matching condition.
8. (B) x = 2. The corner at x = 2 is continuous (graph unbroken) but not differentiable (slopes mismatch).
- (A) x = −1 is a smooth minimum — differentiable. (C) x = 4 is a jump — not even continuous. (D) is false.
9. (C) f'(2) does not exist; nDeriv is unreliable at the corner. |x − 2| has a corner at x = 2 (one-sided derivatives −1 and +1); nDeriv averages them to a meaningless 0.
- (A), (B), (D) all trust the bogus nDeriv value; no derivative exists at a corner.
10. (A) f is continuous at x = 5. Differentiable ⇒ continuous.
- (B), (D) confuse differentiable with having slope 0. (C) is unrelated to differentiability.
11. Derivative match at x = 1: right piece x³ gives f'₊(1) = 3x² |_{x=1} = 3; left piece ax + b gives f'₋(1) = a. So a = 3. Continuity at x = 1: right value 1³ = 1; left value a(1) + b = a + b. So a + b = 1 ⇒ 3 + b = 1 ⇒ b = −2.
a = 3, b = −2
Check: continuity 3(1) − 2 = 1 = 1³ ✓; slopes both 3 ✓.
12. f(x) = |2x − 6| = |2(x − 3)|. Corner where 2x − 6 = 0 ⇒ x = 3. Piecewise:
f(x) = ⎧ 6 − 2x, x < 3 ⇒ f'₋(3) = −2
⎨
⎩ 2x − 6, x ≥ 3 ⇒ f'₊(3) = +2
The one-sided derivatives are f'₋(3) = −2 and f'₊(3) = +2. Since they are unequal, f is not differentiable at x = 3 (a corner).
13. f is not differentiable at x = 0. The derivative f'(0) exists only if the left- and right-hand derivatives are equal. Here the left-hand derivative is 3 and the right-hand derivative is −1; since 3 ≠ −1, the two-sided limit of the difference quotient does not exist, so f'(0) does not exist. (The function is continuous at 0, but continuity does not guarantee differentiability — this is a corner.)
14. The error: the student assumes continuity implies differentiability, but the implication only runs the other way (differentiable ⇒ continuous). Correct justification: g(x) = x^(2/3) is continuous at x = 0, but g'(x) = (2/3)x^(−1/3) tends to −∞ as x → 0⁻ and to +∞ as x → 0⁺. Because the slope is unbounded with opposite signs on the two sides, g has a cusp at x = 0 and is not differentiable there. Continuity does not imply differentiability.
15. (B) −1. Continuity at x = 1: left value 1² = 1; right value 2(1) + k = 2 + k. Set equal: 2 + k = 1 ⇒ k = −1.
- (A) 1 and (C) 0, (D) 2 fail the continuity equation 2 + k = 1.
### FRQ Rubric — 9 points total
| Part | Points | Earned for |
|---|---|---|
| (a) | 2 | 1: set pieces equal at x = 2 (2a + b = 5); 1: answer b = 5 − 2a |
| (b) | 3 | 1: derivative condition a = 4; 1: b = −3; 1: verify both continuity and derivative match |
| (c) | 2 | 1: one-sided derivatives −1 and +1; 1: "not differentiable because left- and right-hand derivatives unequal" |
| (d) | 2 | 1: identify g as continuous but not differentiable; 1: state the one-way implication (diff ⇒ cont, not conversely) |
Top point-losers: in (b), solving for a only and forgetting b, or never verifying both conditions; in (c), naming "corner" without the unequal one-sided derivatives; in (d), reversing the implication or giving a vague "sharp point" answer without the words continuous and not differentiable.
---
CalcIQ · Lesson 10 of 35 · Unit 2: Differentiation — Definition & Fundamentals. This lesson is independent self-study material and is not endorsed by or affiliated with the College Board, which produces the AP Calculus AB exam. All derivatives were independently recomputed and verified: the corner counterexample |x| has one-sided derivatives ∓1; the cusp x^(2/3) has f'(x) = (2/3)x^(−1/3) → ∓∞; the vertical tangent x^(1/3) has f'(x) = (1/3)x^(−2/3) → +∞ both sides; the FRQ solution a = 4, b = −3 was verified to satisfy both continuity (both pieces = 5 at x = 2) and derivative-matching (both slopes = 4).