Continuity and piecewise-defined functions
What it means for a function to be continuous at a point, how to sketch piecewise-defined functions, and how to test whether the pieces join up.
Continuity at a point
Informally, a function is at $x = a$ if you can draw its graph through $x = a$ without lifting your pen.
Graphs can fail at a point in three ways: a hole (as in $\dfrac{x^2 - 9}{x - 3}$ at $x = 3$), a jump (where two pieces don't meet), or an asymptote (as in $\dfrac{1}{x}$ at $x = 0$).
Piecewise-defined functions
A piecewise-defined function uses different rules on different parts of its domain:
$$f(x) = \begin{cases} x^2, & x < 1 \\ 3 - 2x, & x \ge 1 \end{cases}$$To evaluate, first decide which piece the input belongs to: $f(-2) = 4$ (top piece) and $f(3) = -3$ (bottom piece).
Left of x = 1: y = x². From x = 1 on: y = mx + c. Adjust m and c until there is no jump.
- Keep $m = -2$. Which value of $c$ joins the pieces?
- Find another line that joins up and leaves no corner. (Hint: try $m = 2$.)
Is $f(x)$ above continuous at $x = 1$?
Find $k$ so that $g(x) = \begin{cases} kx + 1, & x \le 2 \\ x^2 - 3, & x > 2 \end{cases}$ is continuous.
$f(x) = \begin{cases} 2x + 1, & x \ge 0 \\ x^2, & x < 0 \end{cases}$. Find $f(4)$.
$4 \ge 0$, so $f(4) = 2(4) + 1 = 9$.
With the same $f$, find $f(-3)$.
$-3 < 0$, so $f(-3) = (-3)^2 = 9$.
Is that $f$ continuous at $x = 0$?
The left piece approaches $0$, but $f(0) = 1$.
$y = \dfrac{1}{x - 2}$ is discontinuous at:
It has a vertical asymptote at $x = 2$.
Find $a$ so that $\begin{cases} x + a, & x < 1 \\ 5x, & x \ge 1 \end{cases}$ is continuous.
$1 + a = 5$, so $a = 4$.
Which function is continuous for all real $x$?
$|x|$ has a corner at $0$, but no break. The others are undefined somewhere.
$\dfrac{x^2 - 4}{x - 2}$ has what kind of discontinuity at $x = 2$?
It equals $x + 2$ everywhere except $x = 2$, where it is undefined.
$|x|$ written piecewise is $x$ for $x \ge 0$ and what for $x < 0$? Enter the value of that piece at $x = -2$.
The piece is $-x$, which gives $2$.
Coaching Centre