Skip to main contentSkip to solution

For the function f(x)=sinx+cosx,x∈[0,π]f(x) = sinx + cosx, x \in [0, \pi], which one of the following is correct?

Solution

✅ Correct Option: 2

For the function f(x)=sin⁡x+cos⁡xf(x) = \sin x + \cos x on the interval [0,π][0, \pi], 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)=cos⁡x−sin⁡xf'(x) = \cos x - \sin x

Setting f′(x)=0f'(x) = 0:

cos⁡x−sin⁡x=0\cos x - \sin x = 0

cos⁡x=sin⁡x\cos x = \sin x

tan⁡x=1\tan x = 1

x=π4x = \frac{\pi}{4}

The critical point is x=π4x = \frac{\pi}{4}.


Evaluating at x=0x = 0:

f(0)=sin⁡0+cos⁡0f(0) = \sin 0 + \cos 0

f(0)=0+1f(0) = 0 + 1

f(0)=1f(0) = 1


Evaluating at x=π4x = \frac{\pi}{4}:

f(π4)=sin⁡π4+cos⁡π4f\left(\frac{\pi}{4}\right) = \sin \frac{\pi}{4} + \cos \frac{\pi}{4}

f(π4)=12+12f\left(\frac{\pi}{4}\right) = \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{2}}

f(π4)=22f\left(\frac{\pi}{4}\right) = \frac{2}{\sqrt{2}}

f(π4)=2f\left(\frac{\pi}{4}\right) = \sqrt{2}


Evaluating at x=πx = \pi:

f(π)=sin⁡π+cos⁡πf(\pi) = \sin \pi + \cos \pi

f(π)=0+(−1)f(\pi) = 0 + (-1)

f(π)=−1f(\pi) = -1


Comparing the values:

At x=0x = 0: f(0)=1f(0) = 1

At x=π4x = \frac{\pi}{4}: f(π4)=2f\left(\frac{\pi}{4}\right) = \sqrt{2}

At x=πx = \pi: f(π)=−1f(\pi) = -1

The absolute maximum value is 2\sqrt{2} occurring at x=π4x = \frac{\pi}{4}.

The absolute minimum value is −1-1 occurring at x=πx = \pi.

Therefore, the correct option is: The absolute maximum value is 2\sqrt{2}.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question