Let $f : [0,1] \to \mathbb{R}$ be a continuous function such that $$\int_0^1\!{f(x)^2\, \mathrm{dx}}= \int_0^1\!{f(x)^3\, \mathrm{dx}}= \int_0^1\!{f(x)^4\, \mathrm{dx}}$$ Determine all such functions $f$.
So far, I've managed to show that $\int_0^1\!{f(x)^t\, \mathrm{dx}}$ is constant for $t \geq 2$. Help would be appreciated.
Note that $$\int_0^1 f(x)^2 (1 - f(x))^2 \; dx = \int_0^1 \left(f(x)^2 - 2 f(x)^3 + f(x)^4\right) \; dx = 0$$ so $f(x)(1-f(x))$ must always be $0$. Since $f$ is continuous, the only solutions are $f(x)=0$ and $f(x)=1$.