Question
Question: f(x) = \frac{x-|x-1|}{x}$. Then which of the following is correct...
f(x) = \frac{x-|x-1|}{x}$. Then which of the following is correct

f(x) is discontinuous x=0, continuous at x=1 and not differentiable at x=1
f(x) is discontinuous at x=0, continuous and differentiable at x=1
f(x) is discontinuous at x=0, but differentiable at x=0
f(x) is discontinuous at x=1 but differentiable at x=1
f(x) is discontinuous x=0, continuous at x=1 and not differentiable at x=1
Solution
The function f(x)=xx−∣x−1∣ can be defined piecewise: For x≥1, ∣x−1∣=x−1, so f(x)=xx−(x−1)=x1. For x<1, ∣x−1∣=−(x−1)=1−x, so f(x)=xx−(1−x)=x2x−1=2−x1. Thus, f(x)={2−x1x1if x<1,x=0if x≥1
Analysis at x=0: The function is not defined at x=0 due to division by zero, hence it is discontinuous at x=0. limx→0−f(x)=limx→0−(2−x1)=2−(−∞)=+∞. limx→0+f(x)=limx→0+(2−x1)=2−(+∞)=−∞. Since the limits are infinite, f(x) has an essential discontinuity at x=0.
Analysis at x=1:
-
Continuity: f(1)=11=1. limx→1−f(x)=limx→1−(2−x1)=2−1=1. limx→1+f(x)=limx→1+x1=1. Since limx→1−f(x)=limx→1+f(x)=f(1)=1, f(x) is continuous at x=1.
-
Differentiability: For x<1, f′(x)=dxd(2−x1)=x21. The left-hand derivative at x=1 is f−′(1)=limx→1−x21=1. For x>1, f′(x)=dxd(x1)=−x21. The right-hand derivative at x=1 is f+′(1)=limx→1+(−x21)=−1. Since f−′(1)=f+′(1), f(x) is not differentiable at x=1.
Therefore, f(x) is discontinuous at x=0, continuous at x=1, and not differentiable at x=1.