I'm working on a homework problem, and a part of it is to show that $|\cos z| \leq e$ if $|z|=1$, where $z$ is a complex number.
I figured that it would be useful to write $\cos(z) = \frac{e^{iz}+e^{-iz}}{2}$, and then by the triangle inequality, we can say that $|\cos(z)| \leq 1/2 |e^{iz}| + 1/2 |e^{-iz}|$, however working out the two norms yields $1/2(2)=1$, which isn't very useful.
Any hints would be greatly appreciated.
Using the definition: writing $z=a+ib$ for $a,b\in\mathbb R$, $$ |\cos z|=\left|\frac{e^{iz}+e^{-iz}}2\right|=\left|\frac{e^{ia}e^{-b}+e^{-ia}e^{b}}2 \right| \leq\frac{|e^{ia}|\,e+|e^{-ia}|\,e}{2}=e, $$ where we have used that $|b|\leq1$.