The domain of f is R.
The possible point of discontinuity is x=0.
Continuity for x<0
f(x)=xsinx
Both sinx and x are continuous for x<0, and x=0.
Hence, f(x) is continuous for x<0.
Continuity for x>0
f(x)=x+1
which is a polynomial and hence continuous.
Continuity at x=0
x→0−limf(x)=x→0−limxsinx=1
x→0+limf(x)=x→0+lim(x+1)=1
Also,
f(0)=0+1=1
∴x→0limf(x)=f(0)
Hence, f(x) is continuous at x=0.
The function is continuous for all real x