Question 13 Marks
Find the maximum value of $\sin \theta+\cos \theta$.
Answer
View full question & answer→Given $\quad f(\theta)=\sin \theta+\cos \theta, \theta \in[0, \pi]$
$\therefore \quad f^{\prime}(\theta)=\cos \theta-\sin \theta$
$f^{\prime}(\theta)=0$
$\Rightarrow \quad \sin \theta-\cos \theta=0 \quad \Rightarrow \tan \theta=1$
$\therefore \quad \theta=\frac{\pi}{4}$
$\begin{array}{l}
\text { hence } f(0)=\sin 0+\cos 0=1 \\
f\left(\frac{\pi}{4}\right)=\sin \frac{\pi}{4}+\cos \frac{\pi}{4}=\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{2}}=\sqrt{2} \\
f(\pi)=\sin \pi+\cos \pi=0-1=-1 \\
\therefore \text { Absolute maximum value }=\sqrt{2}
\end{array}$
$\therefore \quad f^{\prime}(\theta)=\cos \theta-\sin \theta$
$f^{\prime}(\theta)=0$
$\Rightarrow \quad \sin \theta-\cos \theta=0 \quad \Rightarrow \tan \theta=1$
$\therefore \quad \theta=\frac{\pi}{4}$
$\begin{array}{l}
\text { hence } f(0)=\sin 0+\cos 0=1 \\
f\left(\frac{\pi}{4}\right)=\sin \frac{\pi}{4}+\cos \frac{\pi}{4}=\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{2}}=\sqrt{2} \\
f(\pi)=\sin \pi+\cos \pi=0-1=-1 \\
\therefore \text { Absolute maximum value }=\sqrt{2}
\end{array}$

