Problem

Source: Baltic Way 2010

Tags: function, algebra proposed, algebra



Let $\mathbb{R}$ denote the set of real numbers. Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that \[f(x^2)+f(xy)=f(x)f(y)+yf(x)+xf(x+y)\] for all $x,y\in\mathbb{R}$.