TITLE: Multiple Choice question about a continuous function
QUESTION [5 upvotes]: If $f \colon \mathbb R\to\mathbb R$ is a continuous function, which of the following statements implies that $f(0)=0$?
(A) $\int_0^1 f(x)^n \,dx\to 0$ as $n\to\infty$
(B) $\int_0^1 f\left(\frac xn\right) \,dx\to 0$ as $n\to\infty$
(C) $\int_0^1 f(nx) \,dx\to 0$ as $n\to\infty$
(D) $\int_0^1 f(x+n) \,dx\to 0$ as $n\to\infty$  
I came across the above problem and do not know how to tackle it. Can someone point me in the right direction? Thanks in advance for your time.

REPLY [5 votes]: EDIT: upon your request, I'll add a further discussion.
I'll start with (B), which is both true and also harder than the rest of the cases. Note that after the substitution I mentioned we have
$$n \int_0^{1/n} f(x)dx.$$
Now, since $f(x)$ is continuous, we can write $|f(x) - f(0)| < \epsilon$ for every $\epsilon > 0$ as soon as $x < \delta$ for some $\delta > 0$. In particular, pick $n$ big enough, so that $1/n < \delta$. Using this we can write
$$\left|n \int_0^{1/n} \left(f(x) - f(0) \right) dx \right| 
\leq  n \int_0^{1/n} |f(x) - f(0)| dx
 \leq n {1 \over n}  \epsilon = \epsilon.$$
Therefore the limit of integrals in the OP equals $f(0)$ and in particular vanishes if and only if $f(0) = 0$.
For (C), my substitution leads to
$${1 \over n} \int_0^n f(x)dx$$
and one can think of this as an average over the integral of length $n$. Therefore for this to vanish, it's sufficient that $f(x)$ decays sufficiently quickly (for simplicity take $f(x) = e^{-x}$, but anything subconstant works as well) and so it is certainly not necessary that $f(0) = 0$.  Case (D) can be treated similarly. Again, it's enough that the function decays sufficiently quickly.
The case (A) is a little bit different but note that it's only important whether $f(x) <1$ or $f(x) > 1$ for $x \in (0,1)$ (why?).

For (A) take e.g. $f(x) = 1 - x$. Using this as inspiration, try to find all functions for which (A) fails.
For the rest of the cases, use substitutions and notice that the integrals can always be expressed in terms of the original function $f$.
(B) substitute $x = ny$;
(C) substitute $y = nx$;
(D) substitute $y = x + n$.