Find all points of discontinuity of \(f\), where \(f\) is defined by
\[f(x) = \begin{cases} x^3 - 3, & \text{if } x \leq 2 \\ x^2 + 1, & \text{if } x > 2 \end{cases}\]Show solutionHide solution
We are given the piecewise function
\[f(x)=\begin{cases} x^3-3, & x\le 2,\\ x^2+1, & x>2. \end{cases}\]We examine continuity at the only point where the formula changes, namely \(x=2\).
Left-hand limit at \(x=2\): for \(x\le 2\) we use \(f(x)=x^3-3\), so
\[\lim_{x\to 2^-}f(x)=\lim_{x\to 2^-}(x^3-3)=2^3-3=8-3=5.\]Value at \(x=2\): since \(x=2\) falls in the first case,
\[f(2)=2^3-3=5.\]Right-hand limit at \(x=2\): for \(x>2\) we use \(f(x)=x^2+1\), so
\[\lim_{x\to 2^+}f(x)=\lim_{x\to 2^+}(x^2+1)=2^2+1=4+1=5.\]Thus
\[\lim_{x\to 2^-}f(x)=\lim_{x\to 2^+}f(x)=f(2)=5.\]Hence \(f\) is continuous at \(x=2\).
For \(x<2\), \(f(x)=x^3-3\) is a polynomial, hence continuous. For \(x>2\), \(f(x)=x^2+1\) is also a polynomial, hence continuous. Since \(f\) is continuous at the joining point \(x=2\) as well, \(f\) is continuous at every real number.
Conclusion: The function is continuous for all \(x\in\mathbb{R}\).