Let denote the set of real numbers. Determine all functions such that holds for all real numbers and .
Let $\mathbb{R}$ denote the set of real numbers. Determine all functions $f : \mathbb{R} \to \mathbb{R}$ such that
$$f(x)f(y) = xf(f(y-x)) + xf(2x) + f(x^2)$$
holds for all real numbers $x$ and $y$.
Izvor: Srednjoeuropska matematička olimpijada 2016, ekipno natjecanje, problem 2