If f(x)=sinx-cosx, the function decreasing in 0≤x≤2π is
5π6,3π4
π4,π2
3π2,5π2
None of these
Explanation for the correct option.
Find the range:
Given,
f(x)=sinx-cosx.
Now, differentiate the f(x) w.r.t. x.
f'(x)=ddxsinx-cosx=cosx+sinx[∵ddxsinx=cosx&&ddxcosx=-sinx]=212cosx+12sinx=2cosπ4cosx+sinπ4sinx=2cosx-π4[∵cos(a-b)=cosa·cosb+sina·sinb]
The function is decreasing.
⇒f'(x)<02cosx-π4<0cosx-π4<0
⇒π2<x-π4<3π23π4<x<7π4
Therefore, x∈3π4,7π4
Hence, the correct option is D.