The domain of f is
(−∞,0)∪[0,1]∪(1,∞)=R
For x<0,
f(x)=2x
which is a polynomial function and hence continuous.
For 0<x<1,
f(x)=0
which is a constant function and hence continuous.
For x>1,
f(x)=4x
which is a polynomial function and hence continuous.
Thus, possible points of discontinuity are x=0 and x=1.
Continuity at x=0
x→0−limf(x)=x→0−lim(2x)=0
x→0+limf(x)=x→0+lim(0)=0
Also,
f(0)=0
∴x→0limf(x)=f(0)
Hence, f(x) is continuous at x=0.
Continuity at x=1
x→1−limf(x)=x→1−lim(0)=0
x→1+limf(x)=x→1+lim(4x)=4
Since,
x→1−limf(x)=x→1+limf(x)
∴f(x) is discontinuous at x=1
The only point of discontinuity is x=1