Problem

Source: Iran 3rd round-2017-Algebra final exam-P1

Tags: algebra, functional equation



Let $\mathbb{R}^{\ge 0}$ be the set of all nonnegative real numbers. Find all functions $f:\mathbb{R}^{\ge 0} \to \mathbb{R}^{\ge 0}$ such that $$ x+2 \max\{y,f(x),f(z)\} \ge f(f(x))+2 \max\{z,f(y)\}$$for all nonnegative real numbers $x,y$ and $z$.