Problem

Source: Iran Third Round MO 1998, Exam 3, P3

Tags: algebra, functional equation



Find all functions $f : \mathbb R \to \mathbb R$ such that for all $x, y,$ \[f(f(x) + y) = f(x^2 - y) + 4f(x)y.\]