Let $b \in \mathbb{R}$ and $a \in \mathbb{R}\setminus\{0\}$, I'd like to prove that $$\tanh(x) = ax + b$$ has at least one, but at most three solutions. That the equation has always at least one solution follows by the intermediate value theorem (i.e., both sides are real continuous functions and $\tanh(x)$ is bounded, while $ax + b$ is not).
Yet, I lack a concrete approach to prove that the equation has at most three solutions (even though this is easily apparent from a graphical observation).