Find $f: \mathbb{R} \to \mathbb{R}$ which satisfies:
$f\small(0)\normalsize=0, f\small(1)\normalsize=2015. \\ (x-y)(f\small(f(x)^2\small)\normalsize-f\small(f(y)^2\small)\normalsize)=(f\small(x)\normalsize-f\small(y)\normalsize)(f\small(x)^2\normalsize-f\small(y)^2\normalsize)$
My Attempt:
\begin{align} &f \not\equiv c. \\ \Rightarrow \; & \color{blue} {\exists \ t_k \text{ s.t. } f(t_k) \neq k.} & \tag{1} \label{1} \\ & \color{red} {\exists y_1, y_2 \text{ s.t. } f(y_1) \neq f(y_2).} \tag{2} \label{2} \\ \ \\ &\text{let } f(a)=f(b), f(x) \neq f(a) \text{ by } \color{red}{(\ref 2)}. \\ P(x, a): \; & (x-a)(f\small(f(x)^2)\normalsize-f(f\small(a)^2\normalsize))=(f(x)-f(a))(f(x)^2-f(a)^2). \\ P(x, b): \; & (x-b)(f\small(f(x)^2)\normalsize-f(f\small(b)^2\normalsize))=(f(x)-f(b))(f(x)^2-f(b)^2). \\ & f(x) \neq f(a), f(x) \neq f(b). \\ \therefore \; & (f(x)-f(a))(f(x)^2-f(a)^2) = (f(x)-f(b))(f(x)^2-f(b)^2) \neq 0. \\ \Rightarrow \; & (x-a)(f\small(f(x)^2)\normalsize-f\small(f(a)^2)\normalsize)=(x-b)(f\small(f(x)^2)\normalsize - f\small(f(b)^2)\normalsize). \\ & f\small(f(x)^2)\normalsize - f\small(f(a)^2)\normalsize) = f\small(f(x)^2)\normalsize - f\small(f(b)^2)\normalsize) \ \Rightarrow \ x-a=x-b, a=b. \\ \therefore \; & \color{green}{f(a)=f(b) \Rightarrow a=b.} \label{3} \tag{3} \end{align}