From an SNS exam:
Let $f: [0,1] \rightarrow [0,1]$ such that $f(x) \leq 2 \int_0^x f(t) dt$. How can I show that $f(x)$ is identically $0$ in its domain?
My attempt: for every $t$ in $[0,1]$ consider $x_{max,t}$ such that the maximum value of $f$ in $[0,t]$ if $f(x_{max,t})$. Now, for the geometric meaning of the integral, $\int_0^t f(x)dx \leq x_{max}$ so $f(t) \leq 2x_{max,t}$. How can I conclude?
As mentioned in the comments, this is a special case of Grönwall's inequality. One can proceed directly as follows:
Define $g:[0, 1] \to \Bbb R$ as $$ g(x) = e^{-2x} \int_0^x f(t) \, dt \, . $$ Then $g$ is non-negative with $g(0) = 0$ and decreasing: $$ g'(x) = e^{-2x} \left( f(x) - 2 \int_0^x f(t) \, dt \right) \le 0 \, . $$ It follows that $g$ (and consequently $f$) is identically zero on the interval.
Note that the upper bound for $f$ is not needed for this conclusion, only the non-negativity.