The value of K in order that
f(x)=sinx−cosx−Kx+b decreases for all real values is given by-
f′(x)
=cosx+sinx−k
=√2sin(x+π4)−k
=√2sinθ−k ...(i)
Now it is a decreasing function for all x.
Hence
f′(x)<0
Or
√2sinθ−k≤0
√2sinθ≤k
Now
sinθϵ[−1,1]
Hence
k≥√2 and k≥−√2.
Thus from the above two, we get
k≥√2.