Suppose that $f$ is a continuous, non-negative function on the interval $[0,1]$. Let $M$ be the maximum of $f$ on the interval. Prove that $$\lim_{n \to \infty}\bigg[\int_0^1f(t)^n \text{dt}\bigg]^{1/n}=M$$
We wrote out some simple examples to show it worked for functions such as $x^2$. We are having trouble finding how to create a general proof. Thanks for any help!
Hint: Let $x_0$ be such that $f(x_0) = M$. Fix $\epsilon > 0$. There exists a $\delta > 0$ such that $f(x) > M - \epsilon$ whenever $x \in (x_0-\delta,x_0 + \delta)$. Conclude that $$ \lim_{n \to \infty}\bigg[\int_0^1f(t)^n \text{dt}\bigg]^{1/n}\geq M - \epsilon $$ However, $\epsilon$ was arbitrary.