Skip to content

Functional Equations

Updated · Equations updated; Sections updated; Examples or practice updated; Explanations expanded What changed?
  1. — Equations updated; Sections updated; Examples or practice updated; Explanations expanded

A functional equation gives a relation involving unknown function values and asks for all functions that satisfy it. Both the domain and codomain matter. A function on the integers can behave differently from a function on the reals, and continuity cannot be assumed unless it is given or proved.

A complete solution has two parts: derive a list of possible functions, then substitute every candidate into the original equation. Trying f(x)=xf(x)=x or f(x)=x2f(x)=x^2 can suggest an answer, but it does not prove that other functions are impossible.

For an equation in two variables, write P(x,y)P(x,y) for the assertion at the inputs x,yx,y. This makes it easier to track which substitutions justify each step.


Inputs such as 00 and 11 often turn products or powers into simpler expressions. Before dividing by f(0)f(0) or f(1)f(1), check whether it could be zero.

Example. Find all functions f:R→Rf:\mathbb R\to\mathbb R satisfying f(x+y)=f(x)+f(y)+2xyf(x+y)=f(x)+f(y)+2xy and f(1)=1f(1)=1, assuming ff is continuous.

Putting x=y=0x=y=0 gives f(0)=0f(0)=0. The cross term 2xy2xy suggests removing a square. Define g(x)=f(x)−x2g(x)=f(x)-x^2. Then

g(x+y)=g(x)+g(y),g(1)=0.g(x+y)=g(x)+g(y),\qquad g(1)=0.

Additivity gives g(n)=0g(n)=0 for integers and then g(m/n)=0g(m/n)=0 for rationals with n≠0n\ne0. For any real xx, choose rationals qk→xq_k\to x. Continuity gives g(x)=lim⁡g(qk)=0g(x)=\lim g(q_k)=0. Thus f(x)=x2f(x)=x^2.

Finally, (x+y)2=x2+y2+2xy(x+y)^2=x^2+y^2+2xy and f(1)=1f(1)=1, so the candidate works.

Without continuity or another suitable regularity condition, an additive function on R\mathbb R need not be linear. On Q\mathbb Q, additivity alone does force g(q)=qg(1)g(q)=qg(1). Keep this distinction in mind whenever an argument starts by checking integers and rationals.

Constant candidates can be checked quickly by substituting f(x)=cf(x)=c into the full equation. Do this before an argument that assumes the function takes at least two values.


A function is injective if f(a)=f(b)f(a)=f(b) implies a=ba=b. It is surjective onto its codomain if every target value occurs. Injectivity lets us remove an outer ff from an equality; surjectivity lets us choose an input giving a desired function value.

Example. A function f:R→Rf:\mathbb R\to\mathbb R satisfies f(f(x))=xf(f(x))=x. Prove that it is injective and surjective.

If f(a)=f(b)f(a)=f(b), apply ff to both sides:

a=f(f(a))=f(f(b))=b.a=f(f(a))=f(f(b))=b.

For any real target tt, the input f(t)f(t) satisfies f(f(t))=tf(f(t))=t, so every real number is attained. Both claims follow directly from the equation.

This equation does not force f(x)=xf(x)=x. For example, f(x)=−xf(x)=-x also works. Proving a useful property of the function is different from classifying it.


If an equation has both xx and yy, compare P(x,y)P(x,y) and P(y,x)P(y,x). The difference may eliminate the complicated part. Another useful move is to choose inputs so that two function arguments become equal.

Example. Find all functions f:R→Rf:\mathbb R\to\mathbb R satisfying

f(x+y)+xf(y)=f(x)+yf(x+y)+xf(y)=f(x)+y

for all real x,yx,y.

Set x=0x=0. We get f(y)=f(0)+yf(y)=f(0)+y, so write f(t)=t+cf(t)=t+c. Substituting this candidate into the original equation leaves

x+y+c+x(y+c)=x+c+y,x+y+c+x(y+c)=x+c+y,

which requires x(y+c)=0x(y+c)=0 for every x,yx,y. Taking x=1x=1 would force y=−cy=-c for every real yy, which is impossible. There are no solutions.

A necessary formula found from a special input may fail elsewhere. This is why verification is part of the solution.

Example. Find all functions f:R→Rf:\mathbb R\to\mathbb R satisfying f(x+y)=f(x−y)+2yf(x+y)=f(x-y)+2y.

Choose y=xy=x so that one argument becomes zero:

f(2x)=f(0)+2x.f(2x)=f(0)+2x.

Every real input can be written as 2x2x, so f(t)=t+cf(t)=t+c for a real constant cc. Conversely,

f(x−y)+2y=x−y+c+2y=x+y+c=f(x+y),f(x-y)+2y=x-y+c+2y=x+y+c=f(x+y),

so every such function works.


If the equation contains f(f(x))f(f(x)), compute f(f(f(x)))f(f(f(x))) in two ways: apply ff to the original relation, and substitute f(x)f(x) for xx. This can produce a shift relation that is easier to use.

Example. Find all strictly increasing functions f:Z→Zf:\mathbb Z\to\mathbb Z satisfying f(f(n))=n+2f(f(n))=n+2.

The two evaluations of the triple iterate give

f(n+2)=f(f(f(n)))=f(n)+2.f(n+2)=f(f(f(n)))=f(n)+2.

Strict increase and integer outputs imply

f(n)<f(n+1)<f(n+2)=f(n)+2.f(n)<f(n+1)<f(n+2)=f(n)+2.

The only integer strictly between the endpoints is f(n)+1f(n)+1, so f(n+1)=f(n)+1f(n+1)=f(n)+1. Hence f(n)=n+cf(n)=n+c for an integer cc. Substitution gives n+2c=n+2n+2c=n+2, so c=1c=1. The function f(n)=n+1f(n)=n+1 is strictly increasing and satisfies the original equation.

A constant term can obscure an otherwise familiar relation. If the equation resembles additivity but includes a fixed offset, try replacing ff by g(x)=f(x)+cg(x)=f(x)+c. If it contains a cross term 2xy2xy, subtract a quadratic. The purpose is to isolate the part of the function whose behavior is still unknown.

This is different from assuming a candidate formula. The substitution is reversible, so solving the new equation solves the old one. Write down the reverse conversion to avoid losing a constant when you return to ff.

Example. Find every function f:Z→Zf:\mathbb Z\to\mathbb Z satisfying f(m+n)=f(m)+f(n)+1f(m+n)=f(m)+f(n)+1 and f(1)=4f(1)=4.

Set g(n)=f(n)+1g(n)=f(n)+1. Then g(m+n)=g(m)+g(n)g(m+n)=g(m)+g(n) and g(1)=5g(1)=5. Repeated addition gives g(n)=5ng(n)=5n for positive integers. Also g(0)=0g(0)=0 and g(−n)=−g(n)g(-n)=-g(n), so the formula holds for every integer.

Thus f(n)=5n−1f(n)=5n-1. Substitution gives 5(m+n)−1=(5m−1)+(5n−1)+15(m+n)-1=(5m-1)+(5n-1)+1, and the initial condition holds. The candidate is verified on the entire domain.

On the integers, an additive function is determined by its value at one. On the rationals, division extends this conclusion. On the reals, a further argument is necessary; knowing a formula on a dense set does not determine an arbitrary discontinuous function.


An additive real function that is nonnegative on nonnegative inputs is increasing in the weak sense. If y≥xy\ge x, then

f(y)−f(x)=f(y−x)≥0.f(y)-f(x)=f(y-x)\ge0.

Monotonicity is enough to extend the rational formula to all real inputs. Suppose f(1)=cf(1)=c. Choose rationals r<x<sr<x<s as close to xx as desired. Then cr=f(r)≤f(x)≤f(s)=cscr=f(r)\le f(x)\le f(s)=cs. Letting the rational bounds approach xx forces f(x)=cxf(x)=cx.

The important point is where the order condition comes from. Some equations express a value at a square as another square, automatically proving nonnegativity. This can eliminate pathological additive functions without an explicit continuity assumption.

Example. Find every function f:R→Rf:\mathbb R\to\mathbb R satisfying

f(x2+y)=f(x)2+f(y)f(x^2+y)=f(x)^2+f(y)

for all real x,yx,y.

Set x=0x=0 to obtain f(0)2=0f(0)^2=0, so f(0)=0f(0)=0. Then y=0y=0 gives f(x2)=f(x)2≥0f(x^2)=f(x)^2\ge0. Every nonnegative real number is a square, hence f(t)≥0f(t)\ge0 for t≥0t\ge0.

For t≥0t\ge0, choose x=tx=\sqrt t. The equation becomes f(y+t)=f(y)+f(t)f(y+t)=f(y)+f(t). Taking y=−ty=-t proves f(−t)=−f(t)f(-t)=-f(t). Consequently the same addition rule extends to negative increments, so ff is additive on all the reals.

The nonnegativity just proved makes ff monotone. Therefore f(x)=cxf(x)=cx. Finally, f(1)=f(1)2f(1)=f(1)^2 gives c=c2c=c^2, hence c=0c=0 or 11.

Both f(x)=0f(x)=0 and f(x)=xf(x)=x satisfy the original equation. These are the complete solutions, with no continuity assumption needed.

The solution has a useful order of operations: first obtain a special value, then a sign restriction, then a simpler functional law, and only afterward classify the function. Guessing a line at the start would miss the reason no other functions survive.


Additive and Multiplicative Functions Together

Section titled “Additive and Multiplicative Functions Together”

A function may satisfy more than one structural relation. If

f(x+y)=f(x)+f(y),f(xy)=f(x)f(y),f(x+y)=f(x)+f(y),\qquad f(xy)=f(x)f(y),

the product relation constrains f(1)f(1) and the sum relation propagates it to integers and rationals. Squares then provide the order condition needed on the reals.

Example. Classify all real-valued functions on R\mathbb R satisfying both displayed relations.

Multiplicativity at one gives f(1)=f(1)2f(1)=f(1)^2. If f(1)=0f(1)=0, then f(x)=f(x⋅1)=f(x)f(1)=0f(x)=f(x\cdot1)=f(x)f(1)=0 for every xx.

Otherwise f(1)=1f(1)=1. Additivity gives f(q)=qf(q)=q for rational qq. For t≥0t\ge0, write t=u2t=u^2; multiplicativity gives f(t)=f(u)2≥0f(t)=f(u)^2\ge0. Thus additivity makes ff monotone, and rational bounds force f(x)=xf(x)=x for every real xx.

Both the zero function and the identity function work. The proof also identifies which condition rules out the discontinuous additive possibilities: multiplicativity forces positivity through squares.

This method should not be applied to a function on an arbitrary field as though order were available. Over the complex numbers, nonnegative inputs and rational bracketing do not have the same meaning. Domain information is part of the argument, not introductory decoration.


Surjectivity Before Choosing a Special Output

Section titled “Surjectivity Before Choosing a Special Output”

A common mistake is to write “choose tt such that f(t)=0f(t)=0” without proving zero is in the range. Sometimes the original equation does prove surjectivity, but that proof must come first. Isolate a function value equal to an expression that ranges over the full codomain.

Example. Find all continuous functions f:R→Rf:\mathbb R\to\mathbb R satisfying

f(x+f(y))=f(x)+y.f(x+f(y))=f(x)+y.

Let c=f(0)c=f(0). Setting x=0x=0 gives f(f(y))=c+yf(f(y))=c+y, proving surjectivity. Choose tt with f(t)=0f(t)=0. The original equation at y=ty=t becomes f(x)=f(x)+tf(x)=f(x)+t, so t=0t=0. Hence f(0)=0f(0)=0 and f(f(y))=yf(f(y))=y.

Now every real uu equals f(y)f(y) for some yy. Since f(u)=yf(u)=y, the original equation becomes

f(x+u)=f(x)+f(u).f(x+u)=f(x)+f(u).

Thus ff is additive. Continuity implies f(x)=axf(x)=ax, and the double-iterate relation gives a2=1a^2=1. The two candidates f(x)=xf(x)=x and f(x)=−xf(x)=-x both satisfy the equation, so both are solutions.

Without continuity, this argument reaches additive involutions rather than only those two lines. The regularity assumption is used at one specific step, and the proof should make that dependence visible.


Comparing Different Routes to the Same Input

Section titled “Comparing Different Routes to the Same Input”

Associativity can produce a relation even when swapping the visible variables does not. If an equation supplies f(x+y)f(x+y), compute f(x+y+z)f(x+y+z) by grouping (x+y)+z(x+y)+z and x+(y+z)x+(y+z). If it supplies composition, compare different evaluations of a triple iterate.

For polynomial-looking equations, match arguments before simplifying outputs. Solving an auxiliary equation such as A(x,y)=B(x,y)A(x,y)=B(x,y) can make two unknown function values cancel. The substitution may look unusual, but it is motivated by the terms you want to eliminate.

Another useful maneuver is to replace xx by −x-x or yy by −y-y after determining f(0)f(0). This can reveal oddness, evenness, or the value of f(−x)f(-x) in terms of f(x)f(x). Check whether negative inputs belong to the domain; for a positive-real domain, reciprocals or ratios may play the corresponding role.

A strong functional-equation solution distinguishes established identities from guesses throughout. It is fine to test linear or quadratic candidates during exploration, but the written argument must explain why the equation forces that form and why every proposed function works for every allowed input.


An equation can turn addition in the input into multiplication in the output. For continuous real functions, the basic classification is exponential, but zero and sign cases must be settled before taking logarithms.

Example. Find all continuous functions f:R→Rf:\mathbb R\to\mathbb R satisfying f(x+y)=f(x)f(y)f(x+y)=f(x)f(y).

At zero, f(0)=f(0)2f(0)=f(0)^2. If f(0)=0f(0)=0, then f(x)=f(x)f(0)=0f(x)=f(x)f(0)=0 for all xx.

Otherwise f(0)=1f(0)=1. The relation f(x)f(−x)=1f(x)f(-x)=1 shows that no value is zero. Also f(x)=f(x/2)2f(x)=f(x/2)^2, so every value is positive. It is now legitimate to define g(x)=ln⁡f(x)g(x)=\ln f(x).

The new function is continuous and additive, hence g(x)=cxg(x)=cx. Thus f(x)=ecxf(x)=e^{cx} for an arbitrary real constant cc. Every such exponential satisfies the equation, as does the zero function.

Taking logarithms before establishing positivity would leave a gap. The equation itself supplies that positivity, and the proof should use it explicitly.


A period relation alone leaves many functions possible. The equation f(x+1)=f(x)f(x+1)=f(x) admits every one-periodic function, so it does not force constancy or linearity.

Two incommensurable periods behave differently with continuity. Suppose one and 2\sqrt2 are periods. Integer combinations are periods, including nonzero periods arbitrarily close to zero: the fractional-part pigeonhole argument supplies integers p,qp,q with q2−pq\sqrt2-p arbitrarily small.

For any real xx and small positive period δ\delta, choose an integer multiple kδk\delta within δ\delta of xx. Periodicity gives f(kδ)=f(0)f(k\delta)=f(0). As the available periods tend to zero, those multiples approach xx, and continuity gives f(x)=f(0)f(x)=f(0).

Thus the function is constant. The decisive extra condition is continuity; a function can otherwise be constant on each coset of the additive subgroup generated by the periods while taking different values on different cosets. This illustrates why a dense set of controlled inputs still needs a regularity argument to control every real input.