Question states
Prove that for all $x$ and $y\in (0, \frac{\pi}{2})$ the function $f(t) = \cos(t^2)$ satisfies the following inequality
$$|f(x) - f(y)| \le \pi |x-y|.$$
Use the mean value theorem
So derivative of $\cos(t^2) = -2\sin(t)\cos(t) = - \sin(2t)$
so $ -\sin(2t) = \dfrac {\cos(x^2) - \cos(y^2)}{x-y}.$
$\sin(2t)$ is bounded by $1$ and $-1$ so $|f(x) - f(y)| \le |x-y|.$
I'm missing $\pi$ there, could you correct me?
we have $$\frac{f(b)-f(a)}{b-a}=-\sin(\xi^2)2\xi$$