Question is: find minimum and maximum of $f(x)$: $$f(x)=\cos\left(\frac\pi2\cos x\right)+\cos\left(\frac\pi2\sin x\right)$$ without differentiation.
This problem is supposed to be solved only with pre-calculus knowledge, but I have no idea how to do it.
$f(x)$ decreases monotonically from $\frac{n\pi}2$ to $\frac{n\pi}2+\frac\pi4$, and monotonically increases from $\frac{n\pi}2+\frac\pi4$ to $\frac{(n+1)\pi}2$, but how can it be proved the monotonicity without calculus?
I also tried to transform the expression into \begin{align}f(x)=&2\cos\left(\frac\pi4(\cos x+\sin x)\right)\cos\left(\frac\pi4(\cos x-\sin x)\right)\\=&2\cos\left(\frac{\sqrt2\pi}4\sin \left(x+\frac\pi4\right)\right)\cos\left(\frac{\sqrt2\pi}4\sin\left(-x+\frac\pi4\right)\right)\end{align} but found it has the same issue of proving the monotonicity.