Step 1: Rewrite x∣x∣ in piecewise form
For x>0, ∣x∣=x, so
f(x)=xx=1(x>0).
For x<0, ∣x∣=−x, so
f(x)=x−x=−1(x<0).
Also, f(0)=0.
Hence,
f(x)=⎩⎨⎧1,−1,0,x>0,x<0,x=0.
Continuity on intervals
- On (0,∞), f(x)=1, a constant function ⇒ continuous.
- On (−∞,0), f(x)=−1, a constant function ⇒ continuous.
So, f is continuous on R∖{0}.
Check continuity at x=0
Left-hand limit
x→0−limf(x)=x→0−lim(−1)=−1.
Right-hand limit
x→0+limf(x)=x→0+lim(1)=1.
Since
x→0−limf(x)=x→0+limf(x),
the limit limx→0f(x) does not exist.
Therefore, f is discontinuous at x=0.
Final Answer
The function f(x) is discontinuous only at x=0.
Note: This function is essentially the signum-type function (with f(0)=0).