MathLabs

Problem 1

Let Z\mathbb{Z} be the set of integers. Determine all functions f ⁣:Z→Zf\colon\mathbb{Z}\to\mathbb{Z} such that, for all integers aa and bb, f(2a)+2f(b)=f(f(a+b)).f(2a) + 2f(b) = f(f(a + b)).
Step 2 of 7: Compare two substitutions
In plain words

Two different pairs give two expressions for the same quantity f(f(x)).

P(0,x),P(x,0) ⟹ f(2x)=2f(x)−f(0)P(0,x),P(x,0)\ \Longrightarrow\ f(2x)=2f(x)-f(0)
Detailed analysis

Comparing P(0, x) and P(x, 0), both equal f(f(x)): the first gives f(0) + 2f(x), and the second gives f(2x) + 2f(0). Setting these equal and rearranging shows f(2x) equals 2f(x) minus f(0).