Let $f$ be a function on a set $X$. Prove that $$f(X-f(X))=f(X)-f(f(X)),$$where for a set $S$, the notation $f(S)$ means $\{f(a) | a \in S\}$.
Source: 2016 Thailand October Camp 2.3
Tags: function, functional equation, algebra
Let $f$ be a function on a set $X$. Prove that $$f(X-f(X))=f(X)-f(f(X)),$$where for a set $S$, the notation $f(S)$ means $\{f(a) | a \in S\}$.