Question:easy

Is the function \(f(x)\) defined by
\[ f(x) = \begin{cases} x, & \text{if } x \le 1 \\ 5, & \text{if } x \gt 1 \end{cases} \]
continuous at \(x = 1\)?

Show Hint

Compare \(f(1)=1\), the left hand limit \(\lim_{x\to1^-}x = 1\) and the right hand limit \(5\). They are not all equal, so \(f\) is discontinuous at \(x=1\).
Updated On: Nov 19, 2026
Show Solution

Solution and Explanation

Step 1: Use sequences instead of one sided limits.
A function is continuous at a point if, for every sequence $x_n \to 1$, we have $f(x_n) \to f(1)$. To show it is not continuous, one bad sequence is enough.

Step 2: Find $f(1)$.
Since $x = 1$ satisfies $x \le 1$, we have $f(1) = 1$.

Step 3: Build the bad sequence.
Take $x_n = 1 + \dfrac{1}{n}$ for $n = 1, 2, 3, \dots$. Every $x_n$ is greater than 1, and $x_n \to 1$ as $n$ grows.

Step 4: Look at the function values.
For every $n$, $x_n \gt 1$, so $f(x_n) = 5$. The sequence of values is $5, 5, 5, \dots$, which tends to 5.

Step 5: Compare with $f(1)$.
We have $f(x_n) \to 5$ but $f(1) = 1$, and $5 \ne 1$. A second check from the left, $y_n = 1 - \dfrac1n$, gives $f(y_n) = 1 - \dfrac1n \to 1$. The two sequences approach 1 from opposite sides and give different limits, so the limit of $f$ at 1 does not exist.

Final Answer:
$f$ is not continuous at $x = 1$. \[ \boxed{\text{Not continuous at } x=1} \]
Was this answer helpful?
0