Problem

Source:

Tags: function, algebra, functional equation



Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a function such that $$\displaystyle{f(f(x)) = \frac{x^2 - x}{2}\cdot f(x) + 2-x,}$$for all $x \in \mathbb{R}.$ Find all possible values of $f(2).$