Let $f$ be a continuous periodic function on $\mathbb{R},$ such that $0 \not\equiv f \geq 0.$
Prove $\int_1^\infty \frac{f(x)}{x}$ diverges.
My thoughts:
I tried applying the Limit Comparison Test with $\frac{1}{x}:$
$$\lim_{x\to \infty}\frac{\frac{f(x)}{x}}{\frac{1}{x}}=\lim_{x\to \infty} f(x)$$
Continuity and periodicity of $f$ implies $\lim_{x\to \infty}f(x)$ does not exist, so I got stuck.
Next I tried the Comparison Test with $\frac{1}{x},$ but couldn't manipulate the inequality to achieve $\frac{1}{x}\leq \frac{f(x)}{x}.$
Any help appreciated.
Let $T > 0$ be a period of $f$, and let $C := \int_0^T f(x)\, dx$. By the assumptions on $f$ we have that $C > 0$.
Let $n\in\mathbb{N}$ and let us compute $$ \int_1^{1+nT} \frac{f(x)}{x}\, dx = \sum_{k=1}^n \int_{1+(k-1)T}^{1+kT} \frac{f(x)}{x}\, dx \geq \sum_{k=1}^n \int_{1+(k-1)T}^{1+kT} \frac{f(x)}{1+(k-1)T}\, dx = \sum_{k=1}^n \frac{C}{1+(k-1)T}. $$ As $n\to +\infty$, the last term goes to $+\infty$ (since the corresponding series is divergent).