Consider the function
⎧ x² - 4
⎪ ───────, x ≠ 2
f(x) = ⎨ x - 2
⎪
⎩ 5, x = 2
Two quick questions before we begin.
lim_{x→2} f(x)? (Hint: factor the numerator. You did exactly this kind of cancellation in Lesson 3.)f(2) that the rule actually assigns?Work it out before reading on. Factoring, (x² - 4)/(x - 2) = (x-2)(x+2)/(x-2) = x + 2 for every x ≠ 2, so lim_{x→2} f(x) = 2 + 2 = 4. But the function was defined to equal 5 at x = 2. So the limit (4) and the function value (5) disagree.
The graph is the line y = x + 2 with the single point at x = 2 lifted up to height 5 — a hole at (2, 4) and a stray dot at (2, 5). That tiny mismatch is exactly what "continuity" measures, and repairing it is the heart of this lesson.
Informally, a function is continuous if you can draw its graph through that point without lifting your pencil. To make that precise, the AP exam requires you to check three separate conditions.
A function f is continuous at x = c if and only if all three hold:
(1) f(c) is defined (c is in the domain)
(2) lim_{x→c} f(x) exists (left-hand limit = right-hand limit, both finite)
(3) lim_{x→c} f(x) = f(c) (the limit equals the function value)
These are ordered for a reason. Condition (2) requires the one-sided limits to agree (recall Lesson 2). Condition (3) then requires that common limiting value to actually match the height of the dot. If any one of the three fails, f is discontinuous at c.
In the Opening Question, conditions (1) and (2) both held — f(2) = 5 is defined, and lim_{x→2} f(x) = 4 exists — but condition (3) failed because 4 ≠ 5. That single failure is enough.
f is continuous on an open interval (a, b) if it is continuous at every point inside it. For a closed interval [a, b], we only have one side available at the endpoints, so we require continuity at every interior point plus one-sided continuity at the ends:
lim_{x→a⁺} f(x) = f(a) and lim_{x→b⁻} f(x) = f(b)
This closed-interval idea matters enormously, because the Intermediate Value Theorem (and later the Extreme Value Theorem and the Mean Value Theorem) all demand continuity on a closed interval [a, b].
When f fails to be continuous at c, the kind of failure has a name.
lim_{x→c} f(x) exists (a finite number), but either f(c) is undefined or f(c) does not equal that limit. We could "remove" it by redefining f(c) to be the limit. (Both the Opening Question and any cancelled factor like (x²-4)/(x-2) produce removable discontinuities.)f(c) can fix this.+∞ or −∞, typically at a vertical asymptote such as f(x) = 1/(x - c).[GRAPH: three side-by-side panels illustrating discontinuity types, each on [-1, 5] × [-4, 4]
Panel 1 — REMOVABLE (hole): the line y = x - 1 drawn through the window, with an open circle (hole) at the point (2, 1). A separate filled dot sits at (2, 3), above the hole. Label: "limit exists (= 1) but f(2) ≠ limit".
Panel 2 — JUMP: a step function. For x < 2 draw the horizontal segment y = 1 ending in an open circle at (2, 1). For x ≥ 2 draw the horizontal segment y = 3 starting with a filled dot at (2, 3). Label: "left limit = 1, right limit = 3; limits disagree".
Panel 3 — INFINITE: the curve y = 1/(x - 2) with a dashed vertical asymptote at x = 2. Branch on the left falls to -∞ as x→2⁻; branch on the right rises to +∞ as x→2⁺. Label: "one-sided limit is infinite".]
You do not re-derive continuity from scratch every time. These common function families are continuous at every point of their domains:
p(x)/q(x) — continuous everywhere except where q(x) = 0.√x — continuous on their domain (x ≥ 0).eˣ, aˣ — continuous everywhere.ln x — continuous for x > 0.sin x, cos x — continuous everywhere; tan x, sec x etc. continuous except where undefined.Sums, differences, products, quotients (nonzero denominator), and compositions of continuous functions are continuous. So f(x) = e^{x} · cos x + √(x² + 1) is continuous for all real x without any further work — a fact you can state in a justification.
A favorite AP setup gives a piecewise function with an unknown constant and asks you to choose the constant that makes the function continuous. The strategy is always the same: at the boundary point, force condition (3) by setting the two pieces equal.
Mini-example. Let
g(x) = kx + 1forx ≤ 3andg(x) = x² - 5forx > 3. Findkmakinggcontinuous atx = 3.Each piece is a polynomial, so the only place continuity can fail is the boundary
x = 3. We need the left and right limits to match the value:- Left piece at 3:
k(3) + 1 = 3k + 1- Right limit as
x→3⁺:(3)² - 5 = 4Set them equal:
3k + 1 = 4 ⟹ 3k = 3 ⟹ k = 1. Withk = 1, both pieces give 4 atx = 3, all three conditions hold, andgis continuous.
Continuity is what lets us guarantee a function hits a target value somewhere, even when we cannot solve for the exact location.
Intermediate Value Theorem (IVT).
Hypotheses: If
fis continuous on the closed interval[a, b], andNis any number betweenf(a)andf(b)(withf(a) ≠ f(b)),Conclusion: then there exists at least one number
cin the open interval(a, b)such thatf(c) = N.
Read the hypotheses carefully — the AP exam scores them:
[a, b]. If f is discontinuous, the theorem says nothing.N is between the endpoint values. It must lie strictly between f(a) and f(b). The IVT does not say f hits values outside that range.The IVT is an existence theorem: it guarantees that some c exists, but it does not tell you what c is or how many there are.
Show that
f(x) = x³ + x - 1has a root on[0, 1].
A "root" means f(c) = 0, so we take N = 0 and check the endpoints:
f(0) = 0³ + 0 - 1 = -1 (negative)
f(1) = 1³ + 1 - 1 = 1 (positive)
Since −1 < 0 < 1, the target N = 0 lies between f(0) and f(1). Now the full justification in AP language:
f(x) = x³ + x − 1is a polynomial, so it is continuous on the closed interval[0, 1]. Sincef(0) = −1 < 0 < 1 = f(1), the value0lies betweenf(0)andf(1). Therefore, by the Intermediate Value Theorem, there exists at least one valuecin(0, 1)such thatf(c) = 0.
Notice every hypothesis is named explicitly: continuity, closed interval, N between the endpoint values. That sentence earns full credit; "by IVT there's a root" does not.
Problem. For f(x) = (x² - x - 6)/(x - 3), locate and classify every discontinuity.
Strategy. A rational function is discontinuous only where the denominator is 0. Factor and see whether the factor cancels (removable) or not (infinite).
Solution. The denominator is 0 at x = 3. Factor the numerator:
x² - x - 6 = (x - 3)(x + 2)
So for x ≠ 3, f(x) = (x-3)(x+2)/(x-3) = x + 2. The (x − 3) cancels, so lim_{x→3} f(x) = 3 + 2 = 5, a finite limit, but f(3) is undefined.
Justification. The limit lim_{x→3} f(x) = 5 exists but f(3) is undefined, so condition (1) fails while the limit exists — this is a removable discontinuity (hole) at (3, 5). There are no other discontinuities.
Problem. Find the value of a for which
⎧ x² + a, x < 1
h(x) = ⎨
⎩ 4x - 1, x ≥ 1
is continuous at x = 1.
Strategy. Each piece is a polynomial, continuous on its own. Continuity can only break at the boundary x = 1, so enforce condition (3): the left-hand limit must equal h(1).
Solution.
lim_{x→1⁻} h(x) = (1)² + a = 1 + a
h(1) = 4(1) - 1 = 3 (also the right-hand limit)
Set them equal: 1 + a = 3 ⟹ a = 2.
Justification. With a = 2, lim_{x→1⁻} h(x) = 3 = lim_{x→1⁺} h(x), so the two-sided limit exists and equals h(1) = 3. All three conditions hold, so h is continuous at x = 1.
Problem. Let f be continuous on [1, 5] with f(1) = −3 and f(5) = 7. Explain why there must be a value c in (1, 5) with f(c) = 2.
Strategy. This is a direct IVT application. Confirm the hypotheses, identify N = 2, and write the precise justification.
Solution / Justification.
fis continuous on the closed interval[1, 5](given). Sincef(1) = −3andf(5) = 7, and−3 < 2 < 7, the valueN = 2lies betweenf(1)andf(5). Therefore, by the Intermediate Value Theorem, there exists at least one valuecin(1, 5)such thatf(c) = 2.
Note what we did not claim: we did not say where c is, nor that it is unique. The IVT only guarantees existence.
Problem. Show that f(x) = cos x − x has a solution to f(x) = 0 on [0, 1], then approximate it.
Strategy. Use the IVT for existence (by hand), then use the calculator's numerical solver for the location.
Solution. First the existence justification:
f(0) = cos 0 - 0 = 1 (positive)
f(1) = cos 1 - 1 ≈ 0.5403 - 1 = -0.4597 (negative)
f(x) = cos x − xis continuous on[0, 1]because it is the difference ofcos x(continuous everywhere) and the polynomialx. Sincef(0) = 1 > 0 > −0.4597 ≈ f(1), the value0lies betweenf(0)andf(1). By the Intermediate Value Theorem, there existscin(0, 1)withf(c) = 0.
Now locate it:
TI-84: y1 = cos(X) - X. Graph on [0,1]×[-1,1] to see the single crossing.
Then 2nd → TRACE (CALC) → 2:zero, bracket the crossing.
Result: c ≈ 0.739
So c ≈ 0.739 (this is the famous Dottie number, where cos x = x). The IVT guaranteed the crossing existed; the calculator only pinned it down.
Checking only the limit (or only the value), not all three conditions. Students see that lim_{x→c} f(x) exists and declare f continuous. Why it's wrong: the limit can exist while f(c) is undefined or unequal (the Opening Question: limit 4, value 5). Fix: every time, verify (1) f(c) defined, (2) limit exists, (3) they are equal.
Applying the IVT without confirming continuity. Students compute f(a) and f(b), see N between them, and conclude a c exists. Why it's wrong: the IVT is false without continuity — a jump function can skip right over N. Fix: state the continuity hypothesis first ("f is continuous on [a, b] because…") before citing the theorem.
Confusing the IVT with the MVT or the EVT. Why it's wrong: the IVT guarantees an output value f(c) = N; the Mean Value Theorem guarantees a slope f′(c) = [f(b)−f(a)]/(b−a) and needs differentiability; the Extreme Value Theorem guarantees a max and a min exist on [a, b]. Fix: IVT → a value is attained. MVT → an instantaneous rate matches the average rate. EVT → extremes exist.
Using the closed interval in the conclusion. Students write "there exists c in [a, b]." Why it's wrong: the hypotheses use the closed interval [a, b], but the conclusion places c in the open interval (a, b). Fix: hypotheses closed, conclusion open.
Forgetting N must be strictly between the endpoint values. Students try to use the IVT to reach a value outside [f(a), f(b)]. Why it's wrong: the theorem only delivers values between f(a) and f(b). Fix: always confirm f(a) < N < f(b) (or f(b) < N < f(a)).
---
## (e) Practice Problems
x-value does f(x) = (x + 1)/(x² - 1) have a removable discontinuity?f(x) = (x - 4)/(x² - 16) has what type of discontinuity at x = 4?For what value of k is the function below continuous at x = 2?
f(x) = 3x + k for x ≤ 2, f(x) = x² + 2 for x > 2
(A) k = 0 (B) k = -1 (C) k = 2 (D) k = 6
f to be continuous at x = c?f is continuous on [2, 6] with f(2) = 10 and f(6) = −4. Which value is the IVT guaranteed to produce on (2, 6)?g has lim_{x→3⁻} g(x) = 5 and lim_{x→3⁺} g(x) = 1. The discontinuity at x = 3 is:f(x) = x³ − 4x + 1 have on the interval [0, 2], as guaranteed and confirmed by graphing?f satisfies f(0) = −2 and f(3) = 6, and f is continuous on [0, 3]. A student concludes "by the IVT there is a c in (0, 3) with `f′(c) = 0." What is wrong?(Justification.) Let f(x) = x⁵ + 2x − 5. Show that f has a real root on [1, 2]. Write a complete IVT justification, naming every hypothesis.
Find all discontinuities of f(x) = (x² - 9)/(x² - 4x + 3) and classify each.
Determine constants a and b so that the function is continuous everywhere:
⎧ -2, x ≤ -1
f(x) = ⎨ ax + b, -1 < x < 3
⎩ 10, x ≥ 3
(Justification.) A continuous function models the temperature T(t) (in °F) of a metal rod, with T(0) = 68 and T(10) = 200. Use the IVT to justify that at some time the rod's temperature was exactly 150 °F. Write the full justification.
Is f(x) = |x − 2| continuous at x = 2? Justify using the three conditions. (It is differentiable there?)
Explain in one sentence why the IVT cannot be applied to f(x) = 1/x on [−1, 1] to conclude f(c) = 0 for some c, even though f(−1) = −1 < 0 < 1 = f(1).
For f(x) = ln x − 1, use the IVT to justify a solution to f(x) = 0 on [2, 3], then approximate it with a calculator.
---
1. (A). f(x) = (x+1)/(x²-1) = (x+1)/[(x-1)(x+1)]. The (x+1) cancels, leaving 1/(x-1), so at x = −1 the factor cancels → removable hole. At x = 1 the factor (x−1) does not cancel → infinite discontinuity. The removable one is at x = −1.
Distractors: (B) x = 0 is in the domain, fully continuous. (C) x = 1 is a discontinuity but infinite, not removable. (D) false — a removable one exists at −1.
2. (B). x² − 16 = (x−4)(x+4), so f(x) = (x−4)/[(x−4)(x+4)] = 1/(x+4) for x ≠ 4. The (x−4) cancels, so lim_{x→4} f(x) = 1/8 exists but f(4) is undefined → removable.
Distractors: (A) jump requires unequal finite one-sided limits — not the case. (C) infinite would require a non-cancelling factor; here it cancels. (D) f(4) is undefined, so not continuous.
3. (A) k = 0. Set the left value equal to the right limit at x = 2: 3(2) + k = (2)² + 2, i.e. 6 + k = 6, so k = 0. (Verification: with k = 0, left limit 3(2)+0 = 6, right limit 2²+2 = 6, value f(2) = 6; continuous.)
Distractors: (D) k = 6 would give left limit 12 ≠ 6. (B) k = −1 gives 5 ≠ 6. (C) k = 2 gives 8 ≠ 6.
4. (C). Continuity requires only the three conditions: f(c) defined, limit exists, and they are equal. Differentiability is not required — e.g. |x| is continuous but not differentiable at 0.
Distractors: (A),(B),(D) are exactly the three required conditions.
5. (B). The IVT guarantees f attains every value strictly between f(2) = 10 and f(6) = −4, i.e. every N with −4 < N < 10. Only 0 lies in that range.
Distractors: (A) 12 and (D) 11 exceed f(2) = 10 — outside the range. (C) −5 is below f(6) = −4 — outside the range.
6. (B). Both one-sided limits exist and are finite (5 and 1) but are unequal, so the two-sided limit fails → jump discontinuity.
Distractors: (A) removable needs the two-sided limit to exist. (C) infinite needs an unbounded one-sided limit. (D) limits disagree, so not continuous.
7. (C). f(0) = 1 > 0; f(1) = 1 − 4 + 1 = −2 < 0; f(2) = 8 − 8 + 1 = 1 > 0. Sign change on [0,1] gives one root and on [1,2] gives another → 2 roots. Graphing confirms two crossings on [0, 2] (near x ≈ 0.25 and x ≈ 1.86).
Distractors: (A) ignores the sign changes. (B) catches only one interval. (D) the third real root of this cubic is near x ≈ −2.1, outside [0,2].
8. (B). The IVT concludes about a function value f(c) = N, not a derivative. The statement f′(c) = 0 is the language of the Mean/Rolle's Theorem, not the IVT.
Distractors: (A) the conclusion is misattributed. (C) differentiability is irrelevant to the IVT. (D) c ∈ (0,3) (open) is actually correct, so that is not the error.
9. Model justification.
> f(x) = x⁵ + 2x − 5 is a polynomial, so it is continuous on the closed interval [1, 2]. Evaluating the endpoints: f(1) = 1 + 2 − 5 = −2 < 0 and f(2) = 32 + 4 − 5 = 31 > 0. Since f(1) = −2 < 0 < 31 = f(2), the value 0 lies between f(1) and f(2). Therefore, by the Intermediate Value Theorem, there exists at least one value c in (1, 2) such that f(c) = 0; that is, f has a real root on [1, 2].
10. f(x) = (x² − 9)/(x² − 4x + 3) = [(x−3)(x+3)] / [(x−1)(x−3)]. Denominator zeros: x = 1 and x = 3.
- At x = 3: the (x−3) cancels, leaving (x+3)/(x−1), so lim_{x→3} f(x) = 6/2 = 3 exists but f(3) is undefined → removable discontinuity (hole at (3, 3)).
- At x = 1: the (x−1) does not cancel, denominator → 0 while numerator → (1+3)/… ≠ 0 style nonzero, so the one-sided limits are infinite → infinite discontinuity (vertical asymptote at x = 1).
11. Each piece is continuous internally; enforce continuity at the two boundaries.
- At x = −1: left value −2 must equal a(−1) + b, so −a + b = −2.
- At x = 3: a(3) + b must equal 10, so 3a + b = 10.
Subtract: (3a + b) − (−a + b) = 10 − (−2) ⟹ 4a = 12 ⟹ a = 3. Then b = −2 + a = −2 + 3 = 1. a = 3, b = 1. (Check: middle piece 3x + 1 gives −2 at x = −1 and 10 at x = 3. ✓)
12. Model justification.
> T is continuous on the closed interval [0, 10] (given). Since T(0) = 68 and T(10) = 200, and 68 < 150 < 200, the value 150 lies between T(0) and T(10). Therefore, by the Intermediate Value Theorem, there exists at least one time t = c in (0, 10) such that T(c) = 150; that is, at some moment the rod's temperature was exactly 150 °F.
13. Continuous at x = 2. (1) f(2) = |2 − 2| = 0 is defined. (2) lim_{x→2⁻} |x−2| = 0 and lim_{x→2⁺} |x−2| = 0, so the two-sided limit exists and equals 0. (3) The limit 0 equals f(2) = 0. All three conditions hold, so f is continuous at x = 2. However, f is not differentiable there — the graph has a corner (the left slope is −1, the right slope is +1). Continuity does not imply differentiability.
14. f(x) = 1/x is not continuous on [−1, 1] — it has an infinite discontinuity at x = 0, which lies inside the interval. The IVT requires continuity on the entire closed interval, so its hypotheses fail and it cannot be applied (indeed 1/x is never 0).
15. Model justification + approximation.
> f(x) = ln x − 1 is continuous on [2, 3] because ln x is continuous for x > 0 and the constant 1 is continuous everywhere. Evaluating: f(2) = ln 2 − 1 ≈ 0.693 − 1 = −0.307 < 0 and f(3) = ln 3 − 1 ≈ 1.099 − 1 = 0.099 > 0. Since f(2) < 0 < f(3), the value 0 lies between f(2) and f(3). By the Intermediate Value Theorem, there exists c in (2, 3) with f(c) = 0.
Locate it: ln x − 1 = 0 ⟹ ln x = 1 ⟹ x = e ≈ 2.718.
TI-84: y1 = ln(X) - 1. Graph on [2,3]×[-0.5,0.5] → 2nd TRACE → 2:zero → c ≈ 2.718
The IVT guaranteed the crossing; c = e ≈ 2.718.
---
CalcIQ · Lesson 4 of 35 · Unit 1: Limits and Continuity
This lesson is a study aid for the AP® Calculus AB exam. AP® is a registered trademark of the College Board, which was not involved in the production of, and does not endorse, this product.
Accuracy review: All limits, factorizations, parameter solutions, and IVT applications in this lesson were recomputed and self-verified. Every IVT justification names the three required components — continuity on a closed interval, N strictly between the endpoint values, and an existence conclusion placing c in the open interval (a, b). Reviewed for mathematical correctness by Isaac.