The given function is f(x)={sinx−cosx,ifx≠0−1,ifx=0
It is evident that f is defined at all points of the real line.
Let c be a real number.
Case I:
If c≠0, then f(c)=sinc−cosc
limx→cf(x)=limx→c(sinx−cosx)=sinc−cosc
∴limx→cf(x)=f(c)
Therefore, f is continuous at all points x, such that x≠0
Case II
If c=0, then f(0)=−1
limx→0f(x)=limx→0(sinx−cosx)=sin0−cos0=0−1=−1
limx→0f(x)=limx→0(sinx−cosx)=sin0−cos0=0−1=−1
∴limx→0f(x)=limx→0f(x)=f(0)
Therefore, f is continuous at x=0
From the above observations, it can be concluded that f is continuous at every point of the real line.