The given function is f(x)=⎧⎨⎩|x|x,ifx≠00,ifx=0
It is known that, for x<0,|x|=−x and for x>0,|x|=x
Therefore given function can be rewritten as
f(x)=⎧⎪
⎪
⎪
⎪
⎪⎨⎪
⎪
⎪
⎪
⎪⎩|x|x=−xx=−1,ifx<00,ifx=0|x|x=xx=1,ifx>0
The given function f is defined at all the points of the real line.
Let c be a point on the real line.
Case I:
If c<0, then f(c)=−1
limx→cf(x)=limx→c(−1)=−1
∴limx→cf(x)=f(c)
Therefore, f is continuous at all points x<0
Case II :
If c=0, then the left hand limit of f at x=0 is,
limx→0f(x)=limx→0(−1)=−1
The right hand limit of f at x=0 is,
limx→0f(x)=limx→0(1)=1
It is observed that the left and right hand limit of x=0 do not coincide.
Therefore, f is not continuous at x=0
Case III :
If c>0, then f(c)=1
limx→cf(x)=limx→c(1)=1
∴limx→cf(x)=f(c)
Therefore, f is continuous at all points x, such that x>0
Hence, x=0 is the only point of discontinuity of f.