Question 6Find all functions $f \colon \mathbb{R} \to \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. $$ Proposed by Titu Andreescu.