Let $f : (-1,1) \rightarrow ℝ $ be a function which is continuous at 0. Suppose that $f(x^2)=f(x) $ for all $x \in (-1,1) $.Prove that $f(x) = f(0)$.
I am not sure how to do this proof.
My attempt: when $x = -1, x^2 = 1$ and when $x=1, x^2 = 1$ so for $f(x^2)=f(x)$, $ x$ has to equal $0$
is this correct?
or you can do this by proof by contradiction?