Problem

Source: JMO/6, USAMO/4 2016

Tags: USAJMO, USA(J)MO, 2016 USAJMO, 2016 USAJMO Problem 6, function, algebra, Hi



Find all functions $f:\mathbb{R}\rightarrow \mathbb{R}$ such that for all real numbers $x$ and $y$, $$(f(x)+xy)\cdot f(x-3y)+(f(y)+xy)\cdot f(3x-y)=(f(x+y))^2.$$