Why $\sin(x)+\sin(\pi x)$ is not periodic? Why $\sin(x)+\sin(\pi x)$ is not periodic?
There is an answer here which tries to explain it, but I somehow do not get it. 
If we assume that $T>0$ is a period of $\sin(x)+\sin(\pi x)$, then 
$$\sin(x)+\sin(\pi x)=\sin(x+T)+\sin(\pi (x +T))$$
Apparently one needs to differentiate the equation above two times to get:
$$\sin(x)+\pi^2 \sin(\pi x)=\sin(x+T)+ \pi^2 \sin(\pi (x +T))$$
and then what?
 A: Then you subtract the equations to get $\sin \pi x = \sin ( \pi x + \pi T)$.
Putting that in your first equation you get $\sin x = \sin (x + T)$. Therefore, $T = 2n \pi$ for some integer $n$. On the otherhand, $\sin \pi x = \sin ( \pi x + \pi T)$ gives you $\sin x = \sin (x + \pi T)$ (replace $x$ by $\frac x  \pi$ ). This means that $\pi T = 2k \pi$ for some integer $k$. So, $T = 2k$, an integer. But from before we had that $T = 2n \pi$, which is an irrational number. So, this is a contradiction.
A: Suppose $f(x)=\sin(x)+\sin(\pi x)$ is periodic with period $T$. Then its derivative $f'(x)=\cos(x)+\pi\cos(\pi x)$ has period $T$ as well and the same for $f''(x)=-\sin(x)-\pi^2\sin(\pi x)$
Thus you have, evaluating $f(0)=f(T)$ and $f''(0)=f''(T)$,
$$
\begin{cases}
\sin(T)+\sin(\pi T)=0\\[4px]
\sin(T)+\pi^2\sin(\pi T)=0
\end{cases}
$$
which entails $\sin(\pi T)=0$ and $\sin(T)=0$. Since $\pi$ is irrational, this is impossible.
A: Other answers have explained this using proofs ,contradictions, etc.
This post is not an explanation, rather a technique to determine the period length if it exists.
In the question, the period length of sin(πx) is 2, while that of sin(x) is 2π. As we know LCM of rational and irrational numbers do not exist.This is because LCM must be an integral multiple. If LCM existed we could have said that an integral multiple of fundamental period is given by the LCM of the two fundamental periods. Since LCM doesnot exist we can say that the given function is not periodic.
