I have two questions in one.
(1) Let $f(x)=\frac{s(x)}{r(x)}$. If $s(x)$ and $r(x)$ are polynomials of same degree, prove that if $f(x)$ is periodic, it must be constant for all $-\infty<x<\infty$
I'm struggling with the proof. I know that given $f(x)$ is periodic, $\frac{s(x)}{r(x)}=\frac{s(x+p)}{r(x+p)}$. Clearly the antiderivative of $f(x)$ I can take to be constant on $x$ to $x+p$, but that doesn't help me with understanding the importance of the same degree polynomials.
(2) Let $f(x)=\frac{s(x)}{r(x)}$. Now if $s(x)$ and $r(x)$ have non-equal degree, show $f(x)$ cannot be periodic.
Please help me understand the importance of our polynomial degrees. Thanks
Hint
If $r(x)$ and $s(x)$ are polynomials of the same degree then, what can you say about $\lim_{x\to \infty} \frac{r(x)}{s(x)}?$ Isn't it a real number? Now, can a non-constant periodic function have limit as $x\to \infty?$
If $r(x)$ and $s(x)$ are polynomials of different degree then $\lim_{x\to \infty} \frac{r(x)}{s(x)}=\pm \infty$ if the degree of $r$ is bigger than the degree of $s.$ Can a periodic function satisfy that? If the degree of $r$ is smaller than the degree of $s$ $\lim_{x\to \infty} \frac{r(x)}{s(x)}=0.$ Can a non-constant periodic function satisfy that? Can it be constant?