Problem

Source: Pan-American Girls’ Mathematical Olympiad, P3

Tags:



Let $\mathbb{R}$ be the set of real numbers. Determine all functions $f: \mathbb{R}\longrightarrow \mathbb{R}$ so that the equality $$f(x+yf(x+y)) +xf(x)= f(xf(x+y+1))+y^2$$is true for any real numbers $x,y$.