Solveeit Logo

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

A

f(x) is discontinuous x=0x=0, continuous at x=1x=1 and not differentiable at x=1x=1

B

f(x) is discontinuous at x=0x=0, continuous and differentiable at x=1x=1

C

f(x) is discontinuous at x=0x=0, but differentiable at x=0x=0

D

f(x) is discontinuous at x=1x=1 but differentiable at x=1x=1

Answer

f(x) is discontinuous x=0x=0, continuous at x=1x=1 and not differentiable at x=1x=1

Explanation

Solution

The function f(x)=xx1xf(x) = \frac{x-|x-1|}{x} can be defined piecewise: For x1x \ge 1, x1=x1|x-1| = x-1, so f(x)=x(x1)x=1xf(x) = \frac{x-(x-1)}{x} = \frac{1}{x}. For x<1x < 1, x1=(x1)=1x|x-1| = -(x-1) = 1-x, so f(x)=x(1x)x=2x1x=21xf(x) = \frac{x-(1-x)}{x} = \frac{2x-1}{x} = 2 - \frac{1}{x}. Thus, f(x)={21xif x<1,x01xif x1f(x) = \begin{cases} 2 - \frac{1}{x} & \text{if } x < 1, x \neq 0 \\ \frac{1}{x} & \text{if } x \ge 1 \end{cases}

Analysis at x=0x=0: The function is not defined at x=0x=0 due to division by zero, hence it is discontinuous at x=0x=0. limx0f(x)=limx0(21x)=2()=+\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (2 - \frac{1}{x}) = 2 - (-\infty) = +\infty. limx0+f(x)=limx0+(21x)=2(+)=\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} (2 - \frac{1}{x}) = 2 - (+\infty) = -\infty. Since the limits are infinite, f(x)f(x) has an essential discontinuity at x=0x=0.

Analysis at x=1x=1:

  • Continuity: f(1)=11=1f(1) = \frac{1}{1} = 1. limx1f(x)=limx1(21x)=21=1\lim_{x \to 1^-} f(x) = \lim_{x \to 1^-} (2 - \frac{1}{x}) = 2 - 1 = 1. limx1+f(x)=limx1+1x=1\lim_{x \to 1^+} f(x) = \lim_{x \to 1^+} \frac{1}{x} = 1. Since limx1f(x)=limx1+f(x)=f(1)=1\lim_{x \to 1^-} f(x) = \lim_{x \to 1^+} f(x) = f(1) = 1, f(x)f(x) is continuous at x=1x=1.

  • Differentiability: For x<1x < 1, f(x)=ddx(21x)=1x2f'(x) = \frac{d}{dx}(2 - \frac{1}{x}) = \frac{1}{x^2}. The left-hand derivative at x=1x=1 is f(1)=limx11x2=1f'_-(1) = \lim_{x \to 1^-} \frac{1}{x^2} = 1. For x>1x > 1, f(x)=ddx(1x)=1x2f'(x) = \frac{d}{dx}(\frac{1}{x}) = -\frac{1}{x^2}. The right-hand derivative at x=1x=1 is f+(1)=limx1+(1x2)=1f'_+(1) = \lim_{x \to 1^+} (-\frac{1}{x^2}) = -1. Since f(1)f+(1)f'_-(1) \neq f'_+(1), f(x)f(x) is not differentiable at x=1x=1.

Therefore, f(x)f(x) is discontinuous at x=0x=0, continuous at x=1x=1, and not differentiable at x=1x=1.