Problem

Source: 2020 Korea National Olympiad P1

Tags: function, algebra, functional equation



Determine all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $$x^2f(x)+yf(y^2)=f(x+y)f(x^2-xy+y^2)$$for all $x,y\in\mathbb{R}$.