On the open pieces IkI_k the function inherits the continuity of the formula fkf_k. At the junction points between two neighbouring pieces you must check by hand that the two values coincide: if at the boundary point x0x_0 between IkI_k and Ik+1I_{k+1} we have

limxx0fk(x)=f(x0)=limxx0+fk+1(x),\lim_{x\to x_0^-}f_k(x) = f(x_0) = \lim_{x\to x_0^+}f_{k+1}(x),

the function is continuous at x0x_0; otherwise it has a jump.

Example — Finding a parameter to obtain continuity

f(x)={2x+ax1x2x>1f(x)=\begin{cases} 2x+a & x\le 1 \\ x^2 & x>1\end{cases}. For which aa is the function continuous at x=1x=1?

On the left limx1(2x+a)=2+a\lim_{x\to 1^-}(2x+a)=2+a; on the right limx1+x2=1\lim_{x\to 1^+}x^2=1; continuity     2+a=1    a=1\iff 2+a=1\iff \boxed{a=-1}.

Example — Intersection with a line

Find the points of f(x)={x+1x<0x2x0f(x)=\begin{cases} -x+1 & x<0 \\ x^2 & x\ge 0\end{cases} that satisfy y=1y=1.

On x<0x<0: x+1=1    x=0-x+1=1 \iff x=0, outside the interval \to discarded. On x0x\ge 0: x2=1    x=1x^2=1 \iff x=1 (x=1x=-1 outside). Point (1,1)(1,1).

Moreover the piece x<0x<0 has a right-hand limit at 00: limx0(x+1)=1\lim_{x\to 0^-}(-x+1)=1 — the value 11 is “approached” from the left without being reached. It is important to read the domain of the piece.

Topics: Functions and properties
Concepts: Continuity · Piecewise function
Skills: Reasoning by cases · Solving equations