Maths WorkshopMaths problems with full solutions
Exercise 3Calculus › Single-variable calculus › Continuity › Functional equationsL1Added 2 Nov 2026

Cauchy's equation f(x + y) = f(x) + f(y)

#functional equations#density#rational numbers

Statement

Find all continuous functions f:R→Rf:\mathbb{R}\to\mathbb{R} such that f(x+y)=f(x)+f(y)f(x+y)=f(x)+f(y) for all real x,yx,y.

Hint

Work step by step: first integers, then rationals, then all real numbers by density. Set a=f(1)a=f(1).

Show solutionHide solution

Solution

Step 1: basic values. Taking x=y=0x=y=0 gives f(0)=2f(0)f(0)=2f(0), so f(0)=0f(0)=0. Taking y=−xy=-x gives 0=f(x)+f(−x)0=f(x)+f(-x), so ff is odd.

Step 2: integers. By induction f(nx)=nf(x)f(nx)=nf(x) for every integer n≥1n\ge1, and by oddness for every integer nn. With x=1x=1: f(n)=naf(n)=na.

Step 3: rationals. Let pq\frac pq with p∈Zp\in\mathbb{Z}, q≥1q\ge1. Then q f ⁣(pq)=f(p)=paq\,f\!\left(\frac pq\right)=f(p)=pa, so f ⁣(pq)=a pqf\!\left(\frac pq\right)=a\,\frac pq.

Step 4: all reals. The functions x↦f(x)x\mapsto f(x) and x↦axx\mapsto ax are continuous and agree on Q\mathbb{Q}. By the problem *A continuous function that vanishes on the rationals* they agree everywhere.

Answer. f(x)=axf(x)=ax with a=f(1)a=f(1). Conversely every such function works.

Remark. Without continuity there are many weird (non-measurable) solutions, built with the axiom of choice. So here a single hypothesis, continuity, turns a "vast" family of solutions into just the lines through the origin.