Let $f: \mathbb{R} \to \mathbb{R}$ be uniformly continuous on $\mathbb{R}$ and let $f_n(x) = f(x + \frac{1}{n})$ for $x \in \mathbb{R}$. Show that $f_n$ converges uniformly to $f$.
I have seen many proofs of this online, but I am wondering if the requirement that $f$ be uniformly continuous is necessary. Could we weaken this to continuity?
Suppose $f$ is continuous. Then
$\forall \epsilon > 0, \exists \delta > 0$ s.t. whenever $|x - y| < \delta$, we have $|f(x) - f(y)| < \epsilon$
I want to show $\forall \epsilon > 0 \ \exists N \in \mathbb{N}$ s.t. $\forall n \geq N, \forall x \in \mathbb{R}, |f_n(x) - f(x)| < \epsilon$
Now, consider $g_n(x) = x - \frac{1}{n}$ and $g(x) = x$. Choose $N = \frac{1}{\delta}$. Then,
$|g_n(x) - g(x)| = |x + \frac{1}{n} - x| = |\frac{1}{n}| < \frac{1}{N} < \delta$
Now, here is where the other proofs use uniform continuity. Since $\delta$ could depend on $x$, uniform continuity would be needed to ensure $N$ does not depend on $x$. However, let's start from a different approach.
I know $g_n(x) = x + \frac{1}{n}$ converges uniformly to $g(x) = x$. In case this needs justification, forget about the $\delta$ above for a moment.
I want to show $\forall \rho > 0, \exists N_{1} \in \mathbb{N}, \forall n \geq N_{1}, \forall x \in \mathbb{R}, |g_n(x) - g(x)| < \rho$.
Fix $\rho > 0$ Choose $N = \frac{1}{\rho}$. Then, $|g_n(x) - g(x)| = |x + \frac{1}{n} - x| = |\frac{1}{n}| < \frac{1}{N} < \rho$
Therefore, $g_n$ is uniformly convergent. This $\rho$, unlike $\delta$ from before, will definitely not depend on $x$ due to uniform convergence of $g_n$. Therefore, I can take $\delta = \rho$ in the definition of continuity, and this choice of $\delta$ will work because indeed $|g_n(x) - g(x)| < \rho = \delta$. I will also choose $N = N_{1}$. This would imply
$|f(x_n) - f(x)| < \epsilon$
and then by substitution,
$|f(x_n) - f(x)| = |f(x + \frac{1}{n}) - f(x)| < \epsilon$
Therefore, $f_n$ converges uniformly to $f$.
Considering how many times this question has been asked, I am assuming I went wrong somewhere. Does anyone see where my "proof" without uniform continuity would fall apart?
This is different from this question If $f(x+1/n)$ converges to a continuous function $f(x)$ uniformly on $\mathbb{R}$, is $f(x)$ necessarily uniformly continuous? as this one starts with $f_n$ converging uniformly. I am trying to start from the other side.
Let me restate my comment as an answer: you should follow through the logic using a concrete example like $f(x) = x^2$ to see exactly where the argument fails.