Problem

Source: IMOC SL A1

Tags: algebra, functional equation, IMOC



Find all functions $f:\mathbb{R}\to\mathbb{R}$ such that for all $x,y\in\mathbb{R}$, $$f(xy+f(x))=f(xf(y))+x$$