Maths WorkshopMaths problems with full solutions
Exercise 1258Calculus › Single-variable calculus › Continuity › Functional equationsOlympiadAdded 4 Nov 2026

f(x + f(y)) = f(x) + y on the rationals

#injectivity#involution#Cauchy equation on Q

Statement

Find all functions f:Q→Qf:\mathbb{Q}\to\mathbb{Q} such that f(x+f(y))=f(x)+yf(x+f(y))=f(x)+y for all rational x,yx,y.

Hint

Put x=0x=0 to see that ff is injective, then put y=0y=0.

Show solutionHide solution

Solution

Let c=f(0)c=f(0).

Injectivity. x=0x=0: f(f(y))=c+yf(f(y))=c+y. If f(y1)=f(y2)f(y_1)=f(y_2) then f(f(y1))=f(f(y2))f(f(y_1))=f(f(y_2)), so y1=y2y_1=y_2.

c=0c=0. y=0y=0: f(x+c)=f(x)f(x+c)=f(x). By injectivity x+c=xx+c=x, so c=0c=0. Hence f(f(y))=yf(f(y))=y (ff is an involution).

Additivity. Replace yy by f(y)f(y) in the equation: f(x+f(f(y)))=f(x)+f(y)f(x+f(f(y)))=f(x)+f(y), i.e.
f(x+y)=f(x)+f(y).f(x+y)=f(x)+f(y).

Solving on Q\mathbb{Q}. As in the Cauchy problem, f(q)=qaf(q)=qa for every rational qq, where a=f(1)∈Qa=f(1)\in\mathbb{Q}. Now f(f(1))=1f(f(1))=1 gives a⋅a=1a\cdot a=1, so a=±1a=\pm1.

Answer. f(x)=xf(x)=x and f(x)=−xf(x)=-x. Check: for f(x)=−xf(x)=-x, f(x+f(y))=−(x−y)=y−x=f(x)+yf(x+f(y))=-(x-y)=y-x=f(x)+y ✓.

Remark. Over R\mathbb{R} without regularity, the same argument shows that ff is an *additive involution*, and there are exotic ones, so the problem on R\mathbb{R} needs an extra hypothesis (continuity, for example).

Lesson. Injectivity from f(f(y))=…f(f(y))=\ldots is the first thing to look for; then show an involution and replace yy by f(y)f(y) to simplify.