Let $S\subseteq\Bbb R$. Assume a function $f: S\to S$ has these properties:
With a $90^\circ$ counter-clockwise rotation of its graph around the origin, we get the same graph $\Gamma_f$ again. Prove that the function must be bijective.
I've seen the parametric formula: $$x'=x\cos\theta-y\sin\theta$$ $$y'=x\sin\theta+y\cos\theta$$ In my case:$$\theta=\frac{\pi}{2}$$
My first attempt was to find the properties of a function that satisfies this condition: $f(x)=y\in\Gamma_f \wedge f(-y)=x\in\Gamma_f,$ but it didn't help me. I'm not sure if I understand what "the same" means in this task.

