Given that $$f (x)=\sin (x/2)+2\sin (x/4)$$ Show that $f (x)\leq3\sqrt{3}/2$ for all $x \in [0,2\pi]$.
My try
$f (x)=\sin (x/2)+2\sin (x/4)$
$f' (x)=\frac {1}{2}\cos(x/2)+\frac {1}{2}\cos (x/4)$
$f' (x)=\frac {1}{2}\cos(x/2)+\frac {1}{2}\cos (x/4)$
$f' (x)=\frac {1}{2}(\cos(x/2)+\cos (x/4))$
$f' (x)=\cos(3x/4)\cos (x/4))$
$f'(x)=0$ $\implies$ $\cos(3x/4)\cos (x/4))=0$
$\cos(3x/4)=0\:$ or $\:\cos (x/4)=0$
$3x/4= \pi/2\:$ and so $\:x= 2\pi/3$ or $ x=2\pi$
$x/4= \pi/2\:$ and so $\:x= 2\pi $
Is my work ok ? What should I do now?
The conclusion that you should have extracted from $f'(x)=\frac12\left(\cos\left(\frac x2\right)+\cos\left(\frac x4\right)\right)$ was that $f'(x)=\cos\left(\frac{3x}8\right)\cos\left(\frac x8\right)$. Therefore, $f'(x)=0\iff x=\frac{4\pi}3$. It turns out that $f''\left(\frac{4\pi}3\right)=-\frac{3\sqrt3}{16}<0$. Therefore, $f$ attains its maximum when $x=\frac{4\pi}3$. Besides, $f\left(\frac{4\pi}3\right)=\frac{3\sqrt3}2$.