Problem

Source: Baltic Way 2014, Problem 4

Tags: functional equation, algebra, Baltic Way



Find all functions $f$ defined on all real numbers and taking real values such that \[f(f(y)) + f(x - y) = f(xf(y) - x),\] for all real numbers $x, y.$