Let $f(x)$ be a continuous function on $[0,\infty)$.
I want to find $f$ such that $\int_0^{\infty} f(x) \left(\frac{x^2}{1+x^2} \right)^n dx =\infty$ for all integers $n \geq1$.
Let $g_n(x) = \left(\frac{x^2}{1+x^2} \right)^n$, then I know $g_n(x) \rightarrow 0$ and $g_n(x)= \left(\frac{x^2}{1+x^2}\right)^n = \left( \frac{1}{1+\frac{1}{x^2}}\right)^n \leq 1$ is bounded.
but since $f(x)$ is bounded $\int_0^{\infty} f(x) g_n(x) dx \leq \int_0^{\infty} f(x) dx$ and since $f$ is continuous it is integrable, so it seems $<\infty$. Contradiction...
Is $f$ be continuous condition that should be relaxed? Or am I doing something wrong?