Problem

Source: IMOC 2023 A2

Tags: algebra



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