13

There are several questions here on MSE about the periodicity of the sum of two continuous, periodic functions. Here's what I know so far:

  • It's obvious that if the ratio of the periods is rational, the sum of the functions will be periodic with a period equal to the LCM of the individual periods.

  • It's relatively easy to give a counterexample to show that the sum of two continuous periodic functions is not always periodic, for instance by considering $\sin(x) + \sin(\pi x)$.

My hunch is that in fact, the sum of two continuous periodic functions is periodic if and only if the ratio of their periods is rational. First of all, is this true?

Secondly, if it's true, the sufficient part is obvious, but is there a simple proof to show the necessary part?

By a "simple" proof I mean one that is accessible to someone with no extensive formal knowledge of analysis or algebra. This is the closest proof I could find, but I can't quite follow it.

MGA
  • 9,636
  • It won't be easy to provide a proof substantially simpler than the one you refer to. However looking in details at a proof that the additive subgroups of the reals are either dense or discrete will really help you to understand the topic. – mathcounterexamples.net Jul 10 '15 at 20:13

2 Answers2

17

Let $f,g$ be continuous and periodic with period $p,q$ where $\alpha=\frac pq$ is irrational. Assume $f+g$ is periodic with period $r$. Let $f(x_0)=\max f$ and $g(x_1)=\max g$. Then the set $\{\,np+mq\mid n,m\in\mathbb Z\,\}$ is dense in $\mathbb R$. Let $\epsilon>0$. Then for some $\delta>0$, $|x-x_1|<\delta$ implies $g(x)>g(x_1)-\epsilon$. Let $np+mq$ differ by less than $\delta$ from $x_1-x_0$. Then $f(x_0+np)=\max f$ and $g(x_0+np)>\max g-\epsilon$. We conclude that $\max(f+g)=\max f+\max g$. So assume $(f+g)(x_2)=\max (f+g)=\max f+\max g$. Then $(f+g)(x_2+nr)=\max(f+g)$ implies that also $f(x_2+nr)=\max f$ and $g(x_2+nr)=\max g$. At least one of $\frac rp$, $\frac rq$ is irrational, say $\frac rp$ is irrational. Then the set $\{\,x_2+nr+mp\mid n,m\in\mathbb Z\,\}$ is dense in $\mathbb R$ and we conclude that $f(x)=\max f$ on this dense set and hence throughout. Thus $f$ is constant.

In summary: The sum of two nonconstant continuous periodic functions with incommensurable periods is not periodic.

-5

$f(x+p)=f(x); g(x+p')=g(x) \rightarrow (f+g)(x)=f(x+kp)+g(x+k'p'); k \in \mathbb Z $ . Now, $f+g$ must satisfy both periods $p,p'$, so:

Then, for a period, we need $$ x+kp=x+k'p'\rightarrow \frac {k}{k'}= \frac{p}{p'} $$.

EDIT: My claim: given $f,g$ periodic, then $h:=f+g$ repeats precisely , i.e., iff $f,g$ simultaneously repeat, i.e., $h$ must satisfy the periods of both $f,g$. This happens precisely when the ratio of their periods is Rational.

Gary.
  • 2,432
  • 2
    Nothing in your first two lines forces $x+kp=x+k'p'$. – Greg Martin Jul 10 '15 at 20:46
  • How so? For the two periods to overlap, we need $x+kp=x+k'p'$. The first two lines are just the layout. – Gary. Jul 10 '15 at 20:54
  • @GregMartin: So is it incorrect to say that $f+g$ must be periodic n both $p,p'$, ? – Gary. Jul 10 '15 at 22:48
  • @GregMartin: My claim is that if g,h are periodic with periods p1, p2, and f=g+h is periodic with period p, then p1|p and p2|p . Are you saying this is incorrect? – Gary. Jul 14 '15 at 16:27
  • 1
    I'm not discussing your claim; I'm discussing your proof. Your proof has an equality appear, as I point out, that does not follow from what you've written before. Therefore the proof is incorrect. — I will add that the edit of your answer makes you come across as defensive and petty, and certainly convinces me it's not worth my time to interact with you further. – Greg Martin Jul 14 '15 at 17:40
  • @GregMartin: I actually replied to your claim in the third post here, and you ever addressed this for 4 days now. I went over the top here, and I was actually upset over the anonymous vote. My apologies to you if I was offensive; you actually addressed my point and that is all I can ask from you. Sorry. – Gary. Jul 14 '15 at 19:31
  • @GregMartin: And if you do complain about my being defensive, you do have some responsibility : by down-voting before asking, you have concluded that I am wrong, and I have to defend my proof as being correct. You have, from the get-go concluded I am wrong, and I have to prove --defend myself -- to show otherwise. So, IMHO, in doing so, you ar being offensive. It is possible to ask me how the answer follows, wait for my reply, and then decide to down vote if my reply is not satisfactory. But you, ad others have chosen not to take what would be a neutral stance. – Gary. Jul 14 '15 at 20:18
  • You have given no justification for the claim that a period of $f+g$ must be an integer multiple of both $p$ and $p'$ (a claim which happens to be false, as $f(x)=\sin x+\sin 2x$ and $g(x)=-\sin x$ demonstrates). It is not even true if you replace "integer" by "rational" if you do not require $f$ and $g$ to be continuous (even assuming that the period groups of $f$, $g$, and $f+g$ are all cyclic), an assumption which you have never used. – Eric Wofsey Jul 26 '15 at 21:45
  • @EricWofsey: Thanks for giving me actual input, I will try to rewrite. My claim was that if $f,g$ and $f+g$ were periodic with periods $p_1, p_2, p$ respectively, then $p_1|p , p_2|p$ and $lcm(p_1,p_2)|p$. Do you agree with this last claim? Of course, an adjustment is made when the periods are not integers. But in the OP , the functions $f,g$ are assumed to be continuous. – Gary. Jul 26 '15 at 22:46
  • @EricWofsey: Thanks for giving me actual input, I will try to rewrite. First, please note that in the OP, the functions are assumed continuous. My claim was that if $f,g$ and $f+g$ were periodic with periods $p_1, p_2, p$ respectively, then $p_1|p , p_2|p$ and $lcm(p_1,p_2)|p$. Do you agree with this last claim? Of course, an adjustment is made when the periods are not integers; then you want to find $k$ so that $kp_1, kp_2$ are integers. But in the OP , the functions $f,g$ are assumed to be continuous. – Gary. Jul 26 '15 at 22:52
  • IOW, for f,g both continuous and periodic , h=f+g repeats precisely when f,g simultaneously repeat. – Gary. Jul 26 '15 at 23:56