Problem

Source:

Tags: algebra, functional equation



Let $A$ be a finite set of functions $f: \Bbb{R}\to \Bbb{R.}$ It is known that: If $f, g\in A$ then $f (g (x)) \in A.$ For all $f \in A$ there exists $g \in A$ such that $f (f (x) + y) = 2x + g (g (y) - x),$ for all $x, y\in \Bbb{R}.$ Let $i:\Bbb{R}\to \Bbb{R}$ be the identity function, ie, $i (x) = x$ for all $x\in \Bbb{R}.$ Prove that $i \in A.$