2. The function $f(x)=\cos(x) - x$ is continuous.
$f(0)=1~\&~f\left(\frac{\pi}{2}\right)=\frac{-\pi}{2}$.