For the function f(x)=sinx+cosx,x∈[0,π], which one of the following is correct?
Solution
✅ Correct Option: 2
For the function f(x)=sinx+cosx on the interval [0,π], the absolute maximum and minimum occur either at critical points (where the derivative equals zero) or at the endpoints of the interval.
Taking the derivative:
f′(x)=cosx−sinx
Setting f′(x)=0:
cosx−sinx=0
cosx=sinx
tanx=1
x=4π
The critical point is x=4π.
Evaluating at x=0:
f(0)=sin0+cos0
f(0)=0+1
f(0)=1
Evaluating at x=4π:
f(4π)=sin4π+cos4π
f(4π)=21+21
f(4π)=22
f(4π)=2
Evaluating at x=π:
f(π)=sinπ+cosπ
f(π)=0+(−1)
f(π)=−1
Comparing the values:
At x=0: f(0)=1
At x=4π: f(4π)=2
At x=π: f(π)=−1
The absolute maximum value is 2 occurring at x=4π.
The absolute minimum value is −1 occurring at x=π.
Therefore, the correct option is: The absolute maximum value is 2.