The graphs show two piecewise-defined functions: \(f\) in panel a) and \(g\) in panel b).
a) Determine from the graph whether \(f\) is continuous at \(x=1\). Justify your answer by stating and comparing the left-hand limit, right-hand limit, and \(f(1)\).
b) Explain why \(g\) is continuous at \(x=1\), even though it is defined by two different formulas.

Hints
- Trace each graph toward \(x=1\) from the left and from the right.
- A filled point gives the function value; an open circle is not included.
- For continuity, the left-hand limit, right-hand limit, and function value must agree.
- Analyze the two panels separately.
Solution
1. In panel a), \(\lim_{x\to1^-}f(x)=1\), \(\lim_{x\to1^+}f(x)=-1\), and the filled point shows that \(f(1)=1\). Since the one-sided limits are different, the two-sided limit does not exist. Therefore, \(f\) has a jump discontinuity at \(x=1\).
2. In panel b), the left-hand piece gives \(\lim_{x\to1^-}g(x)=1^2-1=0\), and the right-hand piece gives \(\lim_{x\to1^+}g(x)=-1+1=0\). The pieces meet at \((1, 0)\), so \(g(1)=0\). The two one-sided limits and the function value are equal, so \(g\) is continuous at \(x=1\).
Answer
a) \(f\) is not continuous at \(x=1\): \(\lim_{x\to1^-}f(x)=1\), \(\lim_{x\to1^+}f(x)=-1\), and \(f(1)=1\).
b) \(g\) is continuous at \(x=1\) because \(\lim_{x\to1^-}g(x)=\lim_{x\to1^+}g(x)=g(1)=0\).