Problem

Source: 2022 Nigerian MO Round 3/Problem 2

Tags:



If $f:\mathbb{R} \rightarrow \mathbb{R}$ satisfies $f(x^2 +f(y))=y+xf(x)$ for all $x,y \in \mathbb{R}$, find $f(x)$.