Problem

Source: INAMO 2015 Shortlist A4

Tags: functions, algebra, functional equation, function



Determine all functions $f: \mathbb{R} \times \mathbb{R} \to \mathbb{R}$ such that \[ f(x,y) + f(y,z) + f(z,x) = \max \{ x,y,z \} - \min \{ x,y,z \} \]for every $x,y,z \in \mathbb{R}$ and there exists some real $a$ such that $f(x,a) = f(a,x) $ for every $x \in \mathbb{R}$.