Continuity at x=0
Left-hand limit
x→0−limf(x)=x→0−limx=0
Right-hand limit
x→0+limf(x)=x→0+limx=0
∴x→0limf(x)=0
Also,
f(0)=0
∴x→0limf(x)=f(0)
Hence, f(x) is continuous at x=0.
Continuity at x=1
Left-hand limit
x→1−limf(x)=x→1−limx=1
Right-hand limit
x→1+limf(x)=x→1+lim5=5
Since,
x→1−limf(x)=x→1+limf(x)
∴x→1limf(x) does not exist
Hence, f(x) is discontinuous at x=1.
Continuity at x=2
Left-hand limit
x→2−limf(x)=x→2−lim5=5
Right-hand limit
x→2+limf(x)=x→2+lim5=5
∴x→2limf(x)=5
Also,
f(2)=5
∴x→2limf(x)=f(2)
Hence, f(x) is continuous at x=2.
Final Answer
f(x) is continuous at x=0 and x=2, but not continuous at x=1.