Take $f, g: \mathbb{R} \to \mathbb{R} $ continuous and periodic and assume $\lim_{x \to \infty} (f(x)-g(x)) = 0$. Does it follow $f=g$? Prove or give counter example.
I cant find any counterexample, so maybe we should prove it:
we given that for any $\epsilon > 0$ we can find some $\delta > 0$ such that $x> \delta$ imply $|f(x)-g(x)| < \epsilon $
Let $H(x) = f(x) - g(x)$. and so $H$ better also be periodic and continous.
Now, certainly for any $\delta > 0$ we have $|H|< \epsilon $ which implies $H=0$ or that $f(x) =g(x)$.
But, we still need to prove for $x \leq \delta$
Now, this seems intuitively obvious as because periodicity and continuity:
if after some $\delta > 0$, we have that $f(x) = g(x)$ then we can find some interval after $\delta> 0$, say $[a,b]$ for which $H(x)$ is identical in $[0,\delta]$ and thus $H(x) = 0$ for every $x \in \mathbb{R}$. Now, this argument seems fishy.
Am I on the right track or I am completely off tracks?
If I correctly understand your reasoning, you're not far off. However I would put the proof the following way.
If $f$ and $g$ are periodic with the same period $T$ (as you seem to assume in your reasoning), then $H$ is also periodic with period $T$. For any $x\in\mathbb{R}$ we have $\lim_{n\rightarrow\infty} (x+nT) = \infty$. Since $\lim_{x\rightarrow\infty} H(x) = 0$, that means that $$\lim_{n\rightarrow\infty} H(x+nT) = 0$$ However, because $H$ is periodic, it means that $H(x+nT)=H(x)$ and $$\lim_{n\rightarrow\infty} H(x) = 0$$ that is $$H(x) = 0$$ .
If periods of $T_1$ and $T_2$ of functions $f$ and $g$ are different, but $T_1/T_2 \in\mathbb{Q}$, then you can find $T$ such that $T=nT_1=mT_2$ with $n,m\in\mathbb{N}$. $H$ will be periodic with period $T$, and the proof continues as in the previous case.
If $T_1/T_2\notin\mathbb{Q}$, then there exist two sequences sequences $n_k,m_k\rightarrow\infty$, such that $$\lim_{k\rightarrow\infty} \left(n_kT_1/T_2 - m_k\right) = 0 $$ that is$$\lim_{k\rightarrow\infty} \left(n_kT_1 - m_k T_2\right) = 0 $$ Since $g$ is continuous, we have, for every $x\in\mathbb{R}$: $$ \lim_{k\rightarrow\infty} g\left(x+n_kT_1 - m_kT_2 \right)= g(x)$$ Then we have $$0 =\lim_{k\rightarrow\infty} H(x+n_kT_1) = \\ = \lim_{k\rightarrow\infty} \left(f(x+n_kT_1) - g(x+n_kT_1)\right) = \\ = \lim_{k\rightarrow\infty} \left(f(x) - g(x+n_kT_1-m_kT_2) \right) = \\ = f(x)-g(x)$$ .