Problem

Source: 2021 EGMO P2

Tags: EGMO, functional equation, EGMO 2021, Hi



Find all functions $f:\mathbb{Q}\to\mathbb{Q}$ such that the equation \[f(xf(x)+y) = f(y) + x^2\]holds for all rational numbers $x$ and $y$. Here, $\mathbb{Q}$ denotes the set of rational numbers.