Can anyone help me with this? I want to know how to solve it.
Let $f:\mathbb R \longrightarrow \mathbb R$ be a continuous function with period $P$. Also suppose that $$\frac{1}{P}\int_0^Pf(x)dx=N.$$ Show that $$\lim_{x\to 0^+}\frac 1x\int_0^x f\left(\frac{1}{t}\right)dt=N.$$
Using the function $g(t)=f\left(\frac P{2\pi}t\right)$, we can assume that $f$ is $2\pi$-periodic. If $P_n$ is a sequence of trigonometric polynomial which converges uniformly to $f$, then $$\left|\frac 1x\int_0^xf\left(\frac 1t\right)dt-\frac 1{2\pi}\int_0^{2\pi}f(t)dt\right|\leq 2\sup_{s\in\mathbb R}|f(s)-P_n(s)|+\left|\frac 1x\int_0^xP_n\left(\frac 1t\right)dt-\frac 1{2\pi}\int_0^{2\pi}P_n(t)dt\right|,$$ so, by linearity, it's enough to show the result when $f$ is of the form $e^{ipt}$, where $p\in\mathbb Z$. It's clear if $p=0$, so we assume $p\neq 0$. We have $\int_0^{2\pi}f(t)dt=\frac 1p(e^{i2\pi p}-1)=0$ and $$\frac 1x\int_0^xf\left(\frac 1t\right)dt=\frac 1x\int_{1/x}^{+\infty}\frac{e^{ips}}{s^2}dx=\int_1^{+\infty}\frac{e^{ip\frac yx}}{y^2}dy,$$ so \begin{align*} \frac 1x\int_0^xf\left(\frac 1t\right)dt&=\left[\frac x{ip}\frac{e^{ip\frac yx}}{y^2}\right]_1^{+\infty}-\frac x{ip}\int_1^{+\infty}\frac{e^{ip\frac yx}}{y^3}(-2)dy\\ &=-\frac x{ip}e^{ip/x}+2\frac x{ip}\int_1^{+\infty}\frac{e^{ip\frac yx}}{y^3}dy, \end{align*} and finally $$\left|\frac 1x\int_0^xf\left(\frac 1t\right)dt\right|\leq \frac x{|p|}\left(1+2\int_1^{+\infty}t^{-3}dt\right)=2\frac x{|p|},$$ which gives the result.