Extreme value theorem · Exercise-EXTREME-VALUE-THEOREM-015

Step-by-step solved exercise: Continuity

Let \(\displaystyle f(x)=\cos x\) on \(\displaystyle [0,\pi]\). At which points does it attain its maximum and minimum?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. We compute the derivative: \(\displaystyle \cos\) is decreasing on \(\displaystyle [0,\pi]\).

    \[\displaystyle f'(x)=-\sin x\le0\quad x\in[0,\pi]\]
  2. Since it decreases, its extreme values lie at the two endpoints of the interval.

    \[\displaystyle f(0)=1,\ f(\pi)=-1\]
  3. Therefore, the maximum is attained at \(\displaystyle x=0\) and the minimum at \(\displaystyle x=\pi\).

    \[\displaystyle x=0,\ x=\pi\]

Answer

Maximum at \(\displaystyle x=0\), minimum at \(\displaystyle x=\pi\)

🎯 Build my path to this exercise