Problem

Source: 21st Philippine Mathematical Olympiad 2019 p1

Tags: functional equation, algebra



Find all functions $f : R \to R$ such that $f(2xy) + f(f(x + y)) = xf(y) + yf(x) + f(x + y)$ for all real numbers $x$ and $y$.