Let $f \in C^0([0,1], \mathbb{R}_+^*)$
Compare $\int_0 ^1 \ln f \, dx$ and $\ln(\int_0^1 f \, dx)$
I think I have to use the Riemann sum so that's what I've tried:
$\frac{1}{n}\sum_{k=1}^n \ln f(\frac{k}{n}) \rightarrow \int_0^1\ln f(x) dx$
$\ln (\frac{1}{n}\sum_{k=1}^n f(\frac{k}{n})) \rightarrow \ln \int_0^1 f(x) dx$
So now I should be able to compare both sums and then conclude. I'm now sure how to compare them though. Any idea?
Consider any grid $\{a_1,\ldots,a_n\}$ over $[0,1]$. Then
$$ \frac{1}{n} \sum \log a_i = \log (\sqrt[n]{\Pi a_i}) \le \log (\frac{1}{n}\sum a_i) $$
Where the inequality follows from the AM-GM and $\log$ being a monotonically increasing function.