Problem

Source: 2017 Moldova TST, day 2, problem 1.

Tags:



Find all continuous functions $f : R \rightarrow R$ such, that $f(xy)= f\left(\frac{x^2+y^2}{2}\right)+(x-y)^2$ for any real numbers $x$ and $y$