Let $B>0$ and define for all $x\in \mathbb{R}$ the function $f(x)=x+e^{-Bx^2}\mbox{cos}(x)$. Prove that $f$ has exactly one root over $\mathbb{R}$.
My original attempt was to show that the function $g(x)=-e^{-Bx^2}\mbox{cos}(x)$ is contractive (in this sense) and the result would follow from the Bannach Fixed Point theorem. However, I posted this as a question (look here) and I've concluded that this idea is not the best one. Can anyone give me a tip about how to attack this problem? Thanks in advance!
$f(x)=0$ is equivalent to: $$ g(x) = x e^{Bx^2}+\cos x = 0.$$ However, $g(x)$ is an increasing function, since: $$ g'(x) = \left(e^{Bx^2}-\sin x\right) +2Bx^2 e^{Bx^2}>0 $$ for any $x$, since $e^{Bx^2}-\sin x\geq e^{Bx^2}-1\geq 0$ and $2Bx^2 e^{Bx^2}\geq 0$ with equality only in $x=0$.
So we have that $g(x)$ has at most one real zero, and it has for sure a real zero since: $$\lim_{x\to\pm\infty}g(x)=\pm\infty.$$