This seemingly straightforward problem has been giving me a lot of trouble.
For $f$ and $g$, which are positive and continuous functions on $[1,\infty)$, show that if $$L = \lim_{x\to\infty} \frac{f(x)}{g(x)}$$ is a real number, then $$L = \lim_{x\to\infty} \frac{\int_x^\infty f}{\int_x^\infty g}$$
The intuition is rather clear, but the position of $x$ in the second limit statement is throwing me off. Any help is greatly appreciated.
For any $\epsilon\gt0$, there is an $N$ so that for $x\ge N$, we have $$ (L-\epsilon)g(x)\le f(x)\le g(x)(L+\epsilon)\tag{1} $$ Thus, for $x\ge N$, we have $$ (L-\epsilon)\int_x^\infty g(x)\,\mathrm{d}x\le\int_x^\infty f(x)\,\mathrm{d}x\le(L+\epsilon)\int_x^\infty g(x)\,\mathrm{d}x\tag{2} $$ Therefore, assuming the integrals converge, $$ L-\epsilon\le\lim_{x\to\infty}\frac{\int_x^\infty f(x)\,\mathrm{d}x}{\int_x^\infty g(x)\,\mathrm{d}x}\le L+\epsilon\tag{3} $$ Since $(3)$ is true for any $\epsilon\gt0$, we have $$ \lim_{x\to\infty}\frac{\int_x^\infty f(x)\,\mathrm{d}x}{\int_x^\infty g(x)\,\mathrm{d}x}=L\tag{4} $$