I was wondering if there is a continuous function $f:[0,1]\to\mathbb R$ satisfying $$f(x)^2=f\left(x^2\right)\text,$$ for all $x\in[0,1]$, $f(0)=1$ and $ f(1)=0$.
Clearly, some easy functions like polynomials are not satisfied. I guess there is a way to construct an example since it only needs a continuous function.