Problem

Source: Switzerland - 2017 Swiss MO Final Round p2

Tags: algebra, functional, functional equation



Find all functions f : $R \to R $such that for all $x, y \in R$: $$f(x + yf(x)) = f(xf(y)) - x + f(y + f(x)).$$