Find the intervals in which the function f given by f(x)=sinx+cosx,0≤x≤2π is increasing or decreasing.
Open in App
Solution
f(x)=sinx+cosx,0≤x≤2π
Differentiating w.r.t. x, we get f′(x)=cosx−sinx
Now, f′(x)=0 ⇒cosx−sinx=0 ⇒x=π4,5π4
Plotting points on number line
f′(x)=cosx−sinx
When x∈[0,π4), cosx−sinx>0 ⇒f′(x)>0
So, f(x) is increasing
When x∈(π4,5π4), cosx−sinx<0 ⇒f′(x)<0
So, f(x) is decreasing.
When x∈(5π4,2π], cosx−sinx>0 ⇒f′(x)>0
So, f(x) is increasing.
Thus, f(x) is increasing for x∈[0,π4)∪(5π4,2π] f(x) is decreasing for x∈(π4,5π4)