AP Calculus BC · Limits and continuity
Continuity and discontinuities
1The definition of continuity
Informally, a function is continuous at a point if you can draw its graph through that point without lifting your pencil. Formally, $f$ is continuous at $x = c$ if all three conditions hold:
- $f(c)$ is defined.
- $\lim_{x \to c} f(x)$ exists.
- $\lim_{x \to c} f(x) = f(c)$.
If any condition fails, $f$ has a discontinuity at $c$.
A function is continuous on an interval if it is continuous at every point in it. Polynomials, $\sin x$, $\cos x$ and $e^x$ are continuous everywhere. Rational functions, $\sqrt{x}$, $\ln x$ and $\tan x$ are continuous on their domains.
Check yourself
Which is NOT one of the three conditions for continuity at x = c?
Show the answer
f must be differentiable at c
Differentiability is a stronger condition.
2Types of discontinuity
- Removable (a hole): the limit exists, but $f(c)$ is undefined or not equal to the limit. Example: $\frac{x^2 - 1}{x - 1}$ at $x = 1$.
- Jump: the one-sided limits exist but are different. Example: a piecewise function that jumps from 2 to 5.
- Infinite (vertical asymptote): $f(x)$ is unbounded near $c$. Example: $\frac{1}{x - 3}$ at $x = 3$.
The three kinds of discontinuity
A removable discontinuity can be removed by defining (or redefining) $f(c)$ to equal the limit. Jump and infinite discontinuities cannot.
Check yourself
Which type of discontinuity can be removed by redefining one point?
Show the answer
A removable discontinuity (a hole)
Set f(c) equal to the limit.
3Finding discontinuities of rational functions
For a rational function, look where the denominator is zero.
$f(x) = \frac{x^2 - x - 6}{x^2 - 9}$
- The denominator is zero at $x = 3$ and $x = -3$.
- Factor: $\frac{(x - 3)(x + 2)}{(x - 3)(x + 3)}$.
- At $x = 3$, the factor cancels, so there is a removable discontinuity. The limit is $\frac{3 + 2}{3 + 3} = \frac{5}{6}$, so the hole is at $\left(3, \frac{5}{6}\right)$.
- At $x = -3$, the factor does not cancel, so there is an infinite discontinuity (vertical asymptote $x = -3$).
Check yourself
f(x) = (x − 2)/((x − 2)(x + 1)). At x = −1, f has:
Show the answer
An infinite discontinuity
The factor (x + 1) does not cancel.
4Making piecewise functions continuous
A common AP question asks for a constant that makes a piecewise function continuous. Set the one-sided limits equal at the join.
$f(x) = \begin{cases} kx + 1 & x < 2 \\ x^2 - k & x \ge 2 \end{cases}$
- Left limit: $\lim_{x \to 2^-} (kx + 1) = 2k + 1$.
- Right limit and value: $\lim_{x \to 2^+} (x^2 - k) = 4 - k = f(2)$.
- Set equal: $2k + 1 = 4 - k$, so $3k = 3$ and $k = 1$.
- Check: both sides give 3, so $f$ is continuous at 2.
To justify continuity on the exam, show all three conditions explicitly.
Check yourself
For f(x) = 3x for x < 1 and f(x) = x + a for x ≥ 1, what value of a makes f continuous?
Show the answer
2
3(1) = 1 + a, so a = 2.
5Going deeper: the three-part test, classifying breaks and finding constants
A function f is continuous at x = a if all three hold:
- f(a) is defined;
- $\lim_{x \to a} f(x)$ exists (left and right limits agree);
- the limit equals f(a).
On the exam, a justification of continuity (or its failure) should refer to these three conditions explicitly.
Types of discontinuity
- Removable (a hole): the limit exists but f(a) is undefined or different. It can be "repaired" by redefining f(a) as the limit.
- Jump: the left and right limits both exist but differ.
- Infinite: the function is unbounded near a (a vertical asymptote).
- (Oscillating: as $\sin\frac{1}{x}$ at 0.)
Worked example (classify): $f(x) = \frac{x^2 - 1}{x - 1}$ at x = 1.
- f(1) is undefined.
- $\lim_{x \to 1} f(x) = \lim (x + 1) = 2$.
- Removable discontinuity; defining f(1) = 2 makes f continuous.
Worked example (classify): $g(x) = \frac{x + 2}{x^2 - 4}$.
- Factor: $\frac{x + 2}{(x - 2)(x + 2)}$.
- At x = −2: the factor cancels; limit $-\frac{1}{4}$: removable.
- At x = 2: the denominator alone is zero: infinite discontinuity (vertical asymptote).
Finding a constant to make a function continuous: set the left and right limits equal at the joining point.
$f(x) = kx + 1$ for x ≤ 2 and $f(x) = x^2$ for x > 2.
- Left limit (and f(2)): 2k + 1.
- Right limit: 4.
- 2k + 1 = 4, so k = 1.5.
Worked example (two constants): $f(x) = ax + b$ on 1 ≤ x ≤ 3 must join $x^2$ (for x < 1) and $12 - x$ (for x > 3).
- At x = 1: a + b = 1.
- At x = 3: 3a + b = 9.
- Subtract: 2a = 8, so a = 4, b = −3.
Continuity on an interval: continuous at every point of it (with one-sided continuity at closed endpoints).
Functions continuous on their domains: polynomials, rational functions, power and root functions, exponential, logarithmic and trigonometric functions. Sums, products, quotients (where the denominator is not zero) and compositions of continuous functions are continuous.
Worked example (where is it continuous?): $h(x) = \frac{\sqrt{x + 3}}{x - 1}$.
- The root needs x ≥ −3; the denominator needs x ≠ 1.
- Continuous on [−3, 1) and (1, ∞).
Why continuity matters: it is a hypothesis of the intermediate value theorem, the extreme value theorem and (with differentiability) the mean value theorem. If a function is differentiable at a point, it is continuous there; the converse is false (|x| at 0).
From a table or a statement: you cannot conclude continuity from a table of values alone. Look for a statement such as "f is continuous" or "f is differentiable" (which implies continuity).
Common mistakes
- Checking only that f(a) exists.
- Calling a hole a vertical asymptote.
- Saying a function with a removable discontinuity is continuous.
- Setting the two pieces equal at the wrong x-value.
- Claiming differentiability from continuity.
Check yourself
The function f(x) = (x² − 9) ÷ (x − 3) has what kind of discontinuity at x = 3?
Show the answer
Removable
The limit exists (it equals 6) but the function is undefined at x = 3.
6For top marks
- To show continuity at $c$, write three lines: $f(c) = \ldots$, $\lim_{x \to c} f(x) = \ldots$ (using both one-sided limits for piecewise functions), and "since these are equal, $f$ is continuous at $x = c$."
- Classify each discontinuity and give a reason.
- For rational functions, factor fully before deciding between a hole and an asymptote.
- Continuity is required for the IVT and the MVT, so you will use this justification again.
"$f(2) = 3$; $\lim_{x \to 2^-} f(x) = 3$ and $\lim_{x \to 2^+} f(x) = 3$, so $\lim_{x \to 2} f(x) = 3 = f(2)$. Therefore $f$ is continuous at $x = 2$."
Check yourself
A function has lim (x→4) f(x) = 7 and f(4) = 2. The discontinuity at 4 is:
Show the answer
Removable
The limit exists but differs from f(4).
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera