Problem

Source: Rioplatense Olympiad L3 2019

Tags: algebra, function



Find all functions $f:\mathbb{R}\rightarrow \mathbb{R}$ such that $f(f(x)^2+f(y^2))=(x-y)f(x-f(y))$