Problem

Source: BMO SL 2023 A3

Tags: algebra, BMO Shortlist, functional equation



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