Problem

Source: 2024 Turkey TST P2

Tags: function, functional equation



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