Continuity, Discontinuities and Piecewise Functions
AP Calculus AB · Unit 1 — Limits and Continuity
The three-part definition
$f$ is continuous at $x=c$ when all three hold:
- $f(c)$ is defined;
- $\lim_{x\to c}f(x)$ exists (both one-sided limits exist and are equal);
- $\lim_{x\to c}f(x)=f(c)$.
On free-response, writing all three lines is worth points on its own — a bare "it's continuous" earns nothing.
Naming the failure
- Removable — the limit exists but disagrees with (or replaces a missing) $f(c)$. A hole.
- Jump — one-sided limits exist but differ. Typical of piecewise definitions.
- Infinite — at least one one-sided limit is $\pm\infty$. A vertical asymptote.
For a piecewise function with a parameter, continuity at the seam becomes an equation: set the left-hand expression evaluated at the seam equal to the right-hand expression evaluated at the seam, then solve.
Worked example: two parameters, two junction points
Let $f(x)=\begin{cases} x^2 & x<2\\ ax+b & 2\le x<5\\ 12 & x\ge 5\end{cases}$. Find $a,b$ so that $f$ is continuous on all of $\mathbb{R}$.
Solution
Two junction points, two equations.
At $x=2$: the left branch gives $2^2=4$, the middle branch gives $2a+b$ ⇒ $2a+b=4$.
At $x=5$: the middle branch gives $5a+b$, the right branch gives $12$ ⇒ $5a+b=12$.
Subtract: $3a=8\Rightarrow a=\frac83$, then $b=4-\frac{16}{3}=-\frac43$.