Question:medium

If \( f(x) = \begin{cases} \dfrac{|x - 2|}{x - 2}, & x \ne 2 \\ 0, & x = 2 \end{cases} \) is defined, then check its continuity and differentiability at \( x = 2 \).

Show Hint

For \(x \gt 2\), \(f = 1\); for \(x \lt 2\), \(f = -1\). The one-sided limits differ, so there is no continuity and no differentiability.
Updated On: Nov 19, 2026
Show Solution

Solution and Explanation

Step 1: Write the function in terms of a small step h:
Put $x = 2 + h$ with $h \ne 0$. Then $f(2 + h) = \dfrac{|h|}{h}$, and $f(2) = 0$.
Now $\dfrac{|h|}{h}$ equals $1$ when $h$ is positive and $-1$ when $h$ is negative. So $f$ only takes the values $1$ and $-1$ away from $x = 2$.

Step 2: Let h go to zero from both sides:
When $h \to 0^+$, $f(2 + h) = 1$ every time, so the limit is $1$.
When $h \to 0^-$, $f(2 + h) = -1$ every time, so the limit is $-1$.
The two limits are different, so the limit of $f$ at $x = 2$ does not exist. A function can be continuous only where its limit exists and equals the value, so $f$ is discontinuous at $x = 2$.
The graph is a horizontal line at height $-1$ to the left of $2$, a horizontal line at height $1$ to the right, and an isolated point $(2, 0)$. The two pieces do not meet, which is a jump of size $2$.

Step 3: Look at the difference quotient:
The derivative at $2$ would be $\lim_{h \to 0} \dfrac{f(2 + h) - f(2)}{h}$.
Here $\dfrac{f(2 + h) - 0}{h} = \dfrac{|h|}{h \cdot h} = \dfrac{|h|}{h^2} = \dfrac{1}{|h|}$.
As $h \to 0$ from either side, $\dfrac{1}{|h|}$ becomes larger than any number we pick. So the limit is not a finite number and $f'(2)$ does not exist.
This agrees with the general rule that a break in continuity rules out differentiability.

Final Answer:
At $x = 2$ the function has a jump, so it is not continuous, and the derivative does not exist, so it is not differentiable. \[ \boxed{\text{Discontinuous and non-differentiable at } x = 2} \]
Was this answer helpful?
0