Problem

Source: Turkey Team Selection Test 2018 P2

Tags: functional equation, TST, Turkey, 2018



Find all $f:\mathbb{R}\to\mathbb{R}$ surjective functions such that $$f(xf(y)+y^2)=f((x+y)^2)-xf(x) $$for all real numbers $x,y$.