Problem

Source: Singapore Open MO Round 2 2023 P4

Tags: algebra



Find all functions $f: \mathbb{Z} \to \mathbb{Z}$, such that $$f(x+y)((f(x) - f(y))^2+f(xy))=f(x^3)+f(y^3)$$for all integers $x, y$.