Problem

Source: 8th European Mathematical Cup, Senior Category, Q4

Tags: functional equation, algebra



Find all functions $f:\mathbb{R}\to \mathbb{R}$ such that $$f(x)+f(yf(x)+f(y))=f(x+2f(y))+xy$$for all $x,y\in \mathbb{R}$. Proposed by Adrian Beker