$f:[0,1]\to \mathbb{R}$ is a continuous function such that $$\int_0^1 f(x)^2dx=\int_0^1 f(x)^3dx =\int_0^1 f(x)^4dx$$ Find all such $f$
My approach: Clearly $f=0,1$ are solutions (and only possible constant functions). Now let $f$ to be a non constant function. By CS inequality we have, $$\int_0^1 f(x)^2dx \times \int_0^1 f(x)^4dx \ge ( \int_0^1 f(x)^3dx )^2$$ Equality holds here.So $\int_0^t f(x)dx =k \int_0^t f(x)^2dx$ for all $t\in (0,1]$ for some $k$ . I don't know what to do from here Please help.