Let $a \in \mathbb{R}$ and \begin{align*} g: \mathbb{R} &\rightarrow \mathbb{R},&\ g(x) = x+\cos x - a. \end{align*}
I want to prove that $g$ is strictly increasing. But the derivative is not everywhere zero. I tried the intermediate theorem, and also tried proving that $x<y\implies g(x)<g(y),$ but no luck.