Problem

Source: 2018 Taiwan TST Round 2, Day 2, Problem 2

Tags: algebra



Find all functions $ f: \mathbb{Z} \to \mathbb{Z} $ such that $$ f\left(x+f\left(y\right)\right)f\left(y+f\left(x\right)\right)=\left(2x+f\left(y-x\right)\right)\left(2y+f\left(x-y\right)\right) $$holds for all integers $ x,y $