I am trying to learn Galois theory by myself. When reading a section for applications to polynomials, I got stuck in the following exercise:
If $f(x) \in \mathbb{R}[x]$ is any polynomial having exactly $k$ distinct real roots, I need to show that there exists $\epsilon > 0$ for which $f(x) +a$ has exactly $k$ real roots, for all $a\in \mathbb{R}$ with $|a|<\epsilon$.
Is there an example for which the assumption that the roots of $f(x)$ are distinct is essential for the conclusion to hold?