Suppose $f:[a,b]\to \mathbb{R}$ is continuous and positive. Show that $$\lim_{n\to \infty}\left[ \int_a^bf(x)^n\,dx \right]^{1/n}=\max_{x\in[a,b]}f(x).$$
My progress: A simpler version of the problem is to suppose $x_1, \dotsc, x_m$ are positive numbers, and show that $$\lim_{n\to\infty}\left( x_1^n + \dotsb + x_m^n \right)^{1/n} = \max_i x_i.$$ This we can do by showing that $\log \left( x_1^n + \dotsb + x_m^n \right)^{1/n} \to \log (\max_i x_i)$. $$\log \left( x_1^n + \dotsb + x_m^n \right)^{1/n} = \frac{1}{n}\log \left( x_1^n + \dotsb + x_m^n \right) = \frac{1}{n}\left( n\log\left( \max_i x_i \right) + \log \left( \left(\frac{x_1}{\max_i x_i} \right)^n + \dotsb + \left(\frac{x_M}{\max_i x_i} \right)^n \right)\right)\\ = \log\left(\max_i x_i\right) + \frac{1}{n}\log\left(\text{bounded}\right)\to \log\left( \max_i x_i\right).$$
Now with the case of a function being integrated, if we tried the same argument, letting $M= \max_{x\in [a,b]}f(x)$, we'd have $$\log \left( \left(\int_a^b f(x)^n\,dx \right) ^{1/n}\right) = \log M + \frac{1}{n}\log \left(\int_a^b (f(x)/M)^n \, dx \right),$$ and now the task is to show that the second term goes to zero.
I see that it goes to zero if $\{x\mid f(x)=M\}$ has positive measure, since then the integral is bounded below by the measure of that set. How can we show the second term goes to zero otherwise?