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:

  1. $f(c)$ is defined;
  2. $\lim_{x\to c}f(x)$ exists (both one-sided limits exist and are equal);
  3. $\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

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$.

Common mistake

At a junction point, whether the sign is $\le$ or $<$ does not affect the limit computation — it only decides which branch gives $f(c)$. Many solutions lose marks because students fuss over choosing the branch instead of just substituting both expressions at the junction and setting them equal.

Key takeaway

Continuous = three parts. Finding parameters = set the two expressions equal at the junction point. Naming a discontinuity = check whether the two-sided limits exist, are equal, or are infinite.

← Algebraic Techniques: Indeterminate Forms · All AP Calculus AB lessons · Practice AP Calculus AB questions (free, instant scoring) · Asymptotes, Squeeze Theorem and the IVT →