Functional Equations PDF
Functional Equations PDF
Functional Equations PDF
Pang-Cheng, Wu
September 9, 2018
Contents
Preface 5
0 Preliminaries 7
0.1 Notations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1 Basic Concepts 9
1.1 What are functional equations ? . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2 Assertion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3 Injectivity and Surjectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.4 Cauchy’s Functional Equation . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.5 Establishing Inequalities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.6 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.6.1 2014 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.6.2 2015 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.6.3 2016 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.6.4 2017 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2 Cauchy FE 27
2.1 Taiwanese Transformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.2 Variation and Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2.3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2.4 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3 Double Counting 39
3.1 Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3.2 Three variables method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.3 Double Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3.4 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3
4 Calculus (Supplement) 51
4.1 Do You Know How to Count? . . . . . . . . . . . . . . . . . . . . . . . . . . 51
4.2 Construction of Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.3 Limit and Continuity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.4 Differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.5 Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
4.6 Ordinary Differential Equation . . . . . . . . . . . . . . . . . . . . . . . . . . 62
4.7 Lebesgue Monotone Differentiable Theorem . . . . . . . . . . . . . . . . . . 63
4.8 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
6 Polynomial 85
6.1 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
6.2 Factorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
6.3 Irreducibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.4 Polynomial Functional Equation . . . . . . . . . . . . . . . . . . . . . . . . . 91
6.4.1 Naive Method: Compare the Coefficients . . . . . . . . . . . . . . . . 91
6.4.2 Bounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
6.4.3 Taiwanese Transformation . . . . . . . . . . . . . . . . . . . . . . . . 92
6.5 n − m | P (n) − P (m) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
7 Appendix 95
7.1 A. Removed Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
7.2 B. Removed Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Preface
In the past, I learned a lot from AoPS. Many users generously shared their solutions and
even the ideas. They also kindly helped me to resolve my doubts. I hope to be such a user,
so I began this project: LaTeXing a handout about functional equation.
I referred some handouts (not only about FE) and I found out a common phenomenon: full
of solutions, no motivations. As a past contestant of IMO, I think it’s much important to
learn the way of thinking. Therefore, I tried my best to illustrate my ideas.
Of course, the goal of this handout is to investigate common and useful techniques for
solving functional equations. In chapter 1, we briefly introduce the basic skills: substitution,
injective, surjective, inequality; In the next 3 chapters, we’ll study special methods for R+
functional equations. After, the readers may have the ability to bash R+ FEs by Three
Variables Method or using calculus. Then, we back to functional equations with discrete
domains: Z, N and polynomial functional equations. I deeply grateful to and would like to
thank my friends, especially
• YaWNeeT: Complete chapter 4 (I’m not familiar with this method, in fact).
Pang-Cheng, Wu
September 9, 2018
5
Chapter 0
Preliminaries
0.1 Notations
• N : the set of all positive integers
• N0 : defined by N0 = N ∪ {0}
7
Chapter 1
Basic Concepts
Solving functional equations is a main part in Olympiad Algebra. We will first introduce
the basic ideas. For example, apply injectivity to reduce the equation. Or establish some
inequalities to find the value of given point. Then, we’re going to solve problems in past
contests. Finally, we’ll learn supplement materials, which are used to bash.
2x − 5y = 8
3x + 9y = −12
2f (1) − 5f (2) = 8
3f (1) + 9f (2) = −12
In fact, when the domain of f is a finite subset A of N, it’s just a system of equations
with variables {f (a)}a∈A . So, it’s nature to consider finding all functions with particular
properties as a generalization. Here is an example,
9
As dealing with systems of equations, we want to choose several suitable equations and
solve. For instance, for f (0), the simplest identity is
2f (0) − 5f (0) = 8
f (x) + xf (1 − x) = x
for all x ∈ R
f (a) + af (1 − a) = a
f (1 − a) + (1 − a) f (a) = 1 − a
a2
Direct to get f (a) = 1−a+a2
. It’s over? No, we should verify our answer. As following:
x2 x (1 − x)2
f (x) + xf (1 − x) = +
1 − x + x2 1 − (1 − x) + (1 − x)2
x2 x − 2x2 + x3
= +
1 − x + x2 1 − x + x2
=x
Remark 1. The question, now, is why we need to check our answer. That’s because, in
most problems, we won’t find all identities in which a given variable appears. The value may
contradicts to other equations.
• If the variables ( f (something) ) in the chosen equation are known, go to the next step.
Otherwise, back to Step 1.
p
Therefore, we can find a function g : N → N defined by g (x) = 3
f (x) (why) Then g
satisfies the following equation
for all x, y ∈ N. If we know the values of g (1) and g (2), it’s easy to show g is the identity
map by mathematical induction. As the previous example suggested, when one encounters
the relation between h (x) , h (y) , h (xy) , h (x + y) for some function h, it’s quite useful to get
h (1) , h (2) by taking the following assertions:
Example 7. (2015 Baltic Way) Find all functions f : R → R satisfying for all reals x, y,
Then, take x = 0, y = 1:
f (0) = 2f (0) + f (f (1))
√
So f (0) = 0. It follows that for a ≥ 0, f (a) = 0 by setting (x, y) = ( a, 0)
Finally, since f (f (b)) = 0 for all b ∈ R (why) , f (c) = −f (−1) c for all negatives c (why)
1.3 Injectivity and Surjectivity
Sometimes, it’s not clear to show, after assertion, what f should be. Perhaps, there are
too many f , we aren’t sure that whether f (a) appears in equations. Therefore, we hope to
reduce the numbers of f . There are two ways: injectivity and surjectivity.
f (something 1) = f (something 2)
becomes useful.
f (f (n)) = f (f (n + 2) + 2) = n
f (f (n)) = f (f (n + 2) + 2) → f (n) = f (n + 2) + 2
Then, by mathematical induction, f (2m) = 1 − 2m for all m ∈ Z Now, given an odd integer
k, write k = 2l + 1. Our goal is to find the value of f (2l + 1). However, note that
It follows that
In the previous remark, we see a standard way for proving injectivity: contradiction
method. Although the following example can be solved by exchanging x, y, we still give a
proof with injectivity.
Example 9. Find all functions f : Z → Z such that
f (x + f (y)) = f (x) + y
for all x, y ∈ Z
In other words, f is injective. As mentioned before, to use the injectivity, it suffices to choose
an equation of the form
f (something 1) = f (something 2)
Indeed, one may assert y = 0 and get
f (x + f (0)) = f (x)
It follows that f (0) = 0. We then see f (f (y)) = y by taking x = 0 in the equation. Plugging
back to the equation,
f (x + y) = f (x) + f (y)
In particular, f (x + 1) = f (x) + f (1), which implies
f (x) = xf (1)
Most of them do not satisfy the original equation, the only possibilities are
Proof. Use the contradiction method, again. Suppose f is not injective, then there are two
elements a, b such that f (a) = f (b). So we have
g (f (a)) = g (f (b)) → a = b
f (g (x) + y) = g (x + f (y))
for all x, y in R
Solution. Since g is injective, we tend to fix LHS. Thus, set y = −g (x) to get
x + f (−g (x)) = c, ∀x ∈ R
This equation, in particular, shows that f is surjective. Now, the original condition tells us
g is also surjective. Let a be a real number with g (a) = 0. Then
f (x + y − a) = x + f (y) − a
Indeed, for every surjective function, we can replace f (something) to an arbitrary number
whenever something can be any number of the codomain.
Sometimes, it’s not obvious that a function is injective because the condition is compli-
cate. However, if we know that the function is surjective, then we can reduce the condition
to a simpler form. Then, maybe it’s possible to show the injectivity.
Example 11. (2002 A1) Find all functions f from reals to reals such that
f (f (x) + y) = 2x + f (f (y) − x)
for all x, y in R
Solution. Since there is already a term ”2x”, which is a surjective function. So if we want
to show f is surjective, we may hope x is ”free”. Therefore, one should choose a suitable y
such that one of the terms f (f (x) + y) and f (f (y) − x) is a constant.
So f is surjective. Now, suppose that a, b are reals such that f (a) = f (b). Then,
Example 12. (2015 Swiss) Find all functions f : R → R such that for arbitrary x, y ∈ R,
P (0, c) → (c + 2) f (0) = c
It follows that f (0) = 0. From here, one can easily find the desired function f is
f (x) = −x, ∀x ∈ R
1.4 Cauchy’s Functional Equation
So far, one may observe that the domains of functional equations are usually ”R”. Thus, I
would like to introduce a result of real functions.
Definition 4. A function f : A → B is called additive if
f (a1 + a2 ) = f (a1 ) + f (a2 )
holds for all a1 , a2 , a1 + a2 ∈ A
We consider the situation that A = B = R. By using induction, it’s easy to check
f (n) = nf (1)
for all n ∈ Z. (ref. example 9) For rationals, we have
p 1 p
f = f (p) = f (1)
q q q
The first equality follows from f (nx) = nf (x), which can be proved by induction, also. Now,
we may expect that f (x) = xf (1) for all x ∈ R. However, it’s false! (why?) Fortunately,
we have a criterion.
Theorem 1. Anyone of following conditions implies an additive f : R → R must be linear.
• f is continuous on some interval
• f is bounded on some interval
• f is monotonic on some interval
Proof. For the first one, notice that if f is continuous at one point, then f is continuous
everywhere. Next, for any real r, choose a sequence of rationals {an }n≥1 converging to that
number. Since f is continuous,
f (rx) = lim f (an x) = lim an f (x) = rf (x)
n→∞ n→∞
For the second one, suppose there is a real r s.t. f (r) 6= rf (1). WLOG f is increasing and
f (r) > rf (1). Choose a rationals q so that ff (1)
(r)
> q > r then
Example 13. Find all functions f : R → R such that for all reals x, y, we have
Solution. The original equation is complicate, especially the term f (xf (y) + yf (x)). To
kick it out, we may hope to have f (0) = 0 (why) This is indeed the case,
implies f (0) = 0. Next, subtract P (x, 0) and P (y, 0) from P (x, y), we have the following
Then, compare
we see that f (−x) = ±f (x) holds for all x. Assume f (a) = f (−a) = 0 for some a
Q (b, −b) → 0 = 2f b2
so b2 = 0. In other words, b = 0. From here, one can conclude that f must be odd. Finally,
add two equations Q (x, y) and Q (x, −y),
f (x + y)2 + f (x − y)2 = 2f x2 + 2f y 2
g (x + y) + g (x − y) = 2g (x) + 2g (y)
2. Notice that g (x) ≤ 2x2 . Try to prove that g (x) = g (1) x2 holds for all x ∈ R
We return to an application of the theorem.
By using the surjectivity of x2015 , we get f (f (x)) = x and thus, f is bijective. Now,
and then
One should be able to determine the value of a (hope so) Thus, we have
We claim that f is linear: Given any real number x. We have, for any rational number q,
Since q can be arbitrary, f (x2014 ) = f (1) f (x)2014 (why) In particular, the second condition
in the theorem is fulfilled. The conclusion follows.
Example 15. (2017 CSP) Find all functions f : R+ → R such that
x
f (x) − f (x + y) = f f (x + y)
y
P (b, a − b) → f (b) = 0
We have
x
f (x) f y
+1
P (x, y) , P (y, x) → = y
f (y) f x
+1
and thus,
x 1 x
f y
+1 f (x) f (2x) 2
f y
+1
x y
y
= = = y
⇔f f =1
2f x
+2 2f (y) f (y) 2f x
+1 y x
1
f (x) = , ∀x ∈ R+
x
1.5 Establishing Inequalities
Sometimes, it’s not straightforward to find a proof of f (a) = b for some given a, b. Instead,
we try to prove the following inequalities:
f (x + 5) ≤ f (x) + 5
f (x) + 5 ≤ f (x + 5) ≤ f (x) + 5
Because the condition is already an inequality, it’s very straightforward to come up with
such a solution.
f (x) + f (y) ≥ 2f (x + y)
Example 17. (2017 OAO Shortlist) Find all functions f : N → N such that
n
X 1
=1
i=1
fi (n)
n f (n)
X 1 X 1
i
= 1 = i
i=1
f (n) i=1
f (f (n))
From above, we get that f (n) > n − 1 (why). In other words, f (n) ≥ n for all n ∈ N.
Therefore,
n n
X 1 X 1
1= i
≤ =1
i=1
f (n) i=1
n
It follows that f (n) = n must hold for all natural n, which is clearly a solution of the
functional equation.
Exercise. (Socrates) Find all functions f : N → N such that for each positive integer n,
there exists a positive integer k with
k
X
f i (n) = kn
i=1
To establish an inequality, we should take large numbers into consideration. For instance,
Example 18. (2014 Taiwan) Find all increasing functions f : N → N satisfying f (2) = 7,
(x + 1) (y + 1) = xy + x + y + 1
Let g (n) := f (n) + 1, we then have g (mn) = g (m) g (n) holds for all m, n ∈ N. Now,
y 1 1 3y
nx > 2y ⇔ log2 n > ⇔ g (n) = g (nx ) x > g (2y ) x = 2 x
x
This gives the lower-bound of g (n), namely n3 . A similar argument gives g (n) ≤ n3
Note that whenever the codomain of the function is R+ or N, we have a trivial inequality.
Example 19. (2016 Poland) Find all functions f : R+ → R+ such that
2f (f (f (x))) + 5f (f (x)) = f (x) + 6x
holds for all x ∈ R+
Solution. If one does not familiar to recurrence, take a look: https: // en. wikipedia.
org/ wiki/ Recurrence_ relation . Given any x ∈ R. Let ai = f i (x). Then conditions
P (x) , P (f (x)) , · · · becomes
2ai+3 + 5ai+2 = ai+1 + 6ai
for all i ∈ N0 . To get the general formula of ai , we should solve
2x3 + 5x2 − x − 6 = 0
i
The roots are 1, −2, − 32 , ai = b + c (−2)i + d − 32 If b or c is not zero, then ai < 0 for some
integer i (why) This means the sequence {ai }i≥0 is constant. In other words, f (x) = x. Note
that the choice of x can be arbitrary, we conclude the answer to this problem is
f (x) = x, ∀x ∈ R+
In most problems, one needs to establish the recurrence.
Example 20. (Socrates) Determine all functions f : R+ → R+ such that
f (f (x) + y) + f (x + y) = 2x + 2f (y)
holds for all x, y ∈ R+
Solution. We have the following equations:
P (x, f (1)) → f (f (x) + f (1)) + f (x + f (1)) = 2x + 2f (f (1))
P (x, 1) → f (f (x) + 1) + f (x + 1) = 2x + 2f (1)
P (1, x) → f (x + f (1)) + f (x + 1) = 2 + 2f (x)
P (1, f (x)) → f (f (x) + f (1)) + f (1 + f (x)) = 2 + 2f ((x))
So,
f (f (x)) = 2x − f (x) + (f (f (1)) + f (1) − 2)
Denote f (f (1)) + f (1) − 2 by c, then
f (f (x)) = 2x − f (x) + c
A simple induction gives
1 c 1 c
f n (x) = f (x) + 2x + nc − + (−2)n x − f (x) +
3 3 3 3
The remains are easy.
1.6 Exercise
To get a better feeling, I strongly suggest that the readers do lots of functional equations
because we usually come up with a great idea due to our experience.
1.6.1 2014
Problem 1. (Baltic Way) Find all functions f defined on all reals and taking real values
such that
f (f (y)) + f (x − y) = f (xf (y) − x)
Problem 2. (ELMO) Find all triples (f, g, h) of injective functions from the set of real
numbers to itself satisfying
f (f (x)) = (x − 1) f (x) + 2
f (x)2
xf (2f (y) − x) + y 2 f (2x − f (y)) = + f (yf (y))
x
f (f (x)) = f (x)
for all x, y ∈ R
Problem 9. (Turkey) Find all the functions f : R → R such that
1.6.3 2016
Problem 10. (Balkan) Find all injective functions f : R → R such that for every real
number x and every positive integer n,
X n
i (f (x + i + 1) − f (f (x + i))) < 2016
i=1
f a2 − f b2 ≤ (f (a) + b) (a − f (b))
1.6.4 2017
Problem 16. (Belarus) Find all functions f : R+ → R+ satisfying the following equation
f (x + f (xy)) = xf (1 + f (y))
Problem 17. (Greece) Find all functions f, g : R → R such that g (1) = −8 and
Problem 20. (Turkey) Given a real number a, try to find all functions f : R → R so that
for every x, y ∈ R
Chapter 2
Cauchy FE
In chapter one, we have introduced some terminologies. Recall the statement of theorem 1:
For an additive f : R → R, any of the following conditions guarantees that f is linear.
• f is continuous on some interval
• f is bounded on some interval
• f is monotonic on some interval
We’re not contented because additivity and others are strong conditions.
f (x + y) = f (x) f (y)
g (x + y) = g (x) + g (y)
f (x) = ax , ∀x ∈ R
27
Exercise. Find all continuous functions f : R → R so that
f x2 = f (x)2 ≥ 0
for all x, y ∈ R
f (x + y) = f (x) + f (y) + a
Solution. Why we want to transform the function? Because we hope to show that f is
linear by using Theorem 1! Thus, after guessing the answer to the FE, we should apply the
corresponded transformation. In this example, one may guess
f (x) = cx − a, ∀x ∈ R
for some constant c ∈ R are the only functions satisfying the conditions. So, we tend to
define g : R+ → R such that
g (x) = f (x) + a
Then the identity becomes
g (x + y) = g (x) + g (y)
which is trivail?
Another example,
f (x + y + d) = f (x) + f (y)
holds for x, y ∈ R
Solution. This is similar to the previous one. First of all, one need to guess the answer.
Assume that f is linear:
f (x) = ax + b
ax + ay + ad + b = LHS = RHS = ax + ay + 2b ⇔ b = ad
In other words,
f (x) = cx + cd = c (x + d) , ∀x ∈ R
Exercise. Given two real numbers a, b. Find all continuous functions f : R → R such that
f (x + y + a) = f (x) + f (y) + b
Before the next subsection, I would like to summary our previous work. (under a suitable
situation i.e., bounded)
Solution. Notice that if f is a solution, then−f is also satisfies the conditions. So, let’s
assume that f (1) = 1. We’ll calculate f x21+x in two different ways.
1 1 1 1 1 1
f 2
=f −f = − = 2
x +x x x+1 f (x) f (x) + 1 f (x) + f (x)
Example 25. (2008 Korea) Find all additive functions f : R → R such that
1 f (x)
f = 2 , ∀x ∈ R∗
x x
Solution. This one looks very similar to the previous. We still assume f (1) = 1 and
1
calculate the same expression f x2 +x .
(2x + 1) f (x) − x2
1 1 1 f (x) f (x) + 1
f =f −f = 2 − =
2
x +x x x+1 x (x + 1)2 (x2 + x)2
It equals to
f (x2 + x) f (x2 ) + f (x)
=
(x2 + x)2 (x2 + x)2
which is equivalent to
f x2 + x2 = 2xf (x)
Now, it’s not obvious to show f is the identity. So we tend to calculate another expression
2 !
2f x1
1 2 1 2 1
f x+ = f x + 2 + 2 = 2xf (x) − x + 2 + − 2
x x x x
From early result, it must equal to
1 1 1
2 x+ f x+ − x2 − 2 − 2
x x x
After reduction, we find that f (x) = x, ∀x ∈ R
Sometimes, we have a partial Cauchy’s condition.
Example 26. Find all continuous functions f : R → R such that
f (x + y) = f (x) + f (y) , ∀x ∈ R and y ∈ R+
Solution. For any a, b ∈ R, choose a large c > 0 with a + b + 2c, b + 2c > 0, we have
f (a + b + 2c) = f (a + b) + f (2c)
On the other hand,
f (a + b + 2c) = f (a) + f (b + 2c) = f (a) + f (b) + f (2c)
Thus, f is additive and must be linear.
To derive the Cauchy’s condition from a partial Cauchy’s condition, we usually take
another sufficiently nice number and count a specify expression in two different ways.
Example 27. Find all continuous functions f : R → R so that
f (x + y) = f (x) + f (y)
for all x, y ∈ R satisfying |x − y| ≤ 1.
Solution. I’ll show that f (x + y) = f (x) + f (y) for all |x − y| ≤ 2. Indeed,
x+z y+z
2f = f (x) + f (z) , 2f = f (y) + f (z)
2 2
x+y
where z = 2
.Now, notice that
x+z y+z x + y + 2z
2f + 2f = 2f = 2f (2z) = 4f (z)
2 2 2
Therefore,
f (x) + f (y) = 4f (z) − 2f (z) = 2f (z) = f (x + y)
One can use induction to establish the Cauchy’s condition.
As the previous example suggests, extending several times may be much easier
Solution. I’ll use induction to prove that f is ”almost” additive. Given a small , we claim
By the condition, it’s true for w ∈ (z, z + z 2 ). Suppose it’s true for w ∈ z, z + n2 z 2
Consider w ∈ z + n2 z 2 − , z + n+1 2
2
z . Note that
r r
n+1 2 n+1 2 n+1 2
z+ z ++w < z+ z ++z+ z < 2z + nz 2
2 2 2
Thus, r !
n+1 2
f z+ z + + f (w) = 2f (a)
2
r !
n+1 2 z++w
f (z + ) + 2f (a) = f z+ z + + 2f
2 2
z++w
As the result, f (z + ) + f (w) = 2f 2
= f (z + + w), as desired.
We have already proved that f (x) + f (y) = f (x + y) for large x, y ∈ R+ . Thus, f (x) = cx
for all large x ∈ R+ . Finally, because f (2x) = 2f (x) , ∀x ∈ R+ , we get f (x) = cx, ∀x ∈ R+
In fact, in these examples, we just extend the ”size” of a particular set. Formally, let
S0 ⊂ S1 ⊂ S2 ⊂ · · · ⊂ Sk = R × R
and it’s easy to extend Si−1 to Si . We can modify our set S0 . For instance, consider
This method is used whenever a nice property holds for sufficient large numbers.
Example 29. (2014 Iran) Find all functions f : R+ → R+ st for all positive reals x, y,
y x+1
f +f = f (y)
f (x + 1) xf (y)
x+1
= y =⇒ yf (y) ≤ 1, ∀y ∈ R+
xf (y)
which is equivalent to
(x + 1) f (x + 1) ≥ yf (y)
Therefore, we have
1
f (x) = , ∀x > 1
x
According to above, we hope to have
y x+1
> 1 and >1
f (x + 1) xf (y)
1 x
We know the first one implies y > f (x + 1) = x+1
. Under this condition, if y ≥ x+1
x+1 y (x + 1)
> ≥1
xf (y) x
1
f (x) = , ∀x ∈ R+
x
Remark 6. There are some related problems. See the following link:
f (x + y) = f (x) + f (y)
and when
f (x + y) = f (x) + f (y) + 1
happens. Notice the second condition is equivalent to
1
f (x) = cx, ∀x ∈ [0, )
2
for some constant c. Now, one should be able to extend this result to the following
If f (0) = 1, then
f (x + 1) = f (x) + 1
by setting y = 0. In particular, f (1) = 2 and the condition can be rewritten as follows.
Consequently,
1 1
f y+ − f (y) = f − f (0)
x x
which means f − 1 is additive (replace x1 by 0, the identity still holds) and thus, f is multi-
plicative (why?). According to the corollary, f is linear and so
f (x) = x + 1, ∀x ∈ R
In the above partial solution, it’s natural to divide the problem into two cases. That’s because
if f (0) 6= 1, then we can get a useful identity, immediately. This case is left as an exercise
for the readers.
2.4 Exercise
Problem 21. Find all f : R+ → R+ such that
f (f (x + y)) − f (y) − f (x − y) = y
Show that
f (x + y) = f (x) + f (y) , ∀x, y ∈ R
Problem 27. (2014 Iran) Find all continuous functions f : R≥0 → R≥0 such that
and f (−1) 6= 0.
Problem 32. (2013 Brazil) Find all the injective functions f : R∗ → R∗ such as
Problem 33. (2016 EMC) Determine all functions f : R → R such that equality
f x + yf x2 = f (x) + xf (xy)
Double Counting
3.1 Switching
Basically, LHS and RHS, in the equation, must hold the same properties. For instance,
if LHS is an increasing function of x, then RHS is also an increasing function of x. In
particular, if LHS is symmetric w.r.t the variables, then so is RHS. If this is the case, we
simply exchange the variables and observe what would happened.
Solution. Notice that the left hand side is already symmetric. Switch x, y, we see that
We now want to choose y that minimizes the number of uncertain values. After solving
y 2 − y = 0 ⇔ y = 0, 1
f (x) = 0, ∀x ∈ R or f (x) = x2 , ∀x ∈ R
39
Indeed, switching the variables is equivalent to comparing P (x, y) , P (y, x). We usually
get a simple identity, which is much easier to solve the function. The only bad news is: In
most of the problems, LHS and RHS aren’t symmetric.
To deal with this situation, we can assert a special form to one of the variables.
Example 35. Find all functions f : N → N so that
Solution. As the previous comment, to make LHS become symmetric, substitute f (y) for
y, then we get
f (f (x) + f (y)) = x + f (f (y))
Now, the LHS is symmetric and we can switch x and y (Hooray!)
This means
f (f (z)) = z + c, ∀z ∈ N
for some constant c (why) Recall, in chapter one, I have mentioned: Always use the little
result to get another identity. In this example,
So f is eventually linear. Like what we do in chapter three: for any given x, take a sufficient
large y, we can see that x, f (x) satisfy the same linear equation and we conclude that f is
linear. The rest is easy.
Remark 8. In chapter one, we solve this FE by using the injectivity.
Example 36. Find all functions f : R → R satisfying the following equation
This identity isn’t very useful. Thus, we need to find another one. Rewrite the condition
Replace x by f (x),
must hold. And thus, f must be linear (why) Assume f (x) = ax + b, we have
f (x) = x + 1, ∀x ∈ R
Example 37. (2016 Iran) Find all functions f : N → N such that for all a, b ∈ N, we have
As the result,
f (f (n)) = n + c
for some constant c. Note that f has fixed point:
Although this trick is useful, there are still many problems can’t be solved in this way.
For example,
Example 38. (Based on: 2014 Romania) Find all functions f : R+ → R+ such that
Fortunately, if we modify our trick a little bit, the previous FE becomes trivial.
3.2 Three variables method
As the previous discussion, we hope to find a more useful trick. Our idea is simple! Usually,
we got stuck after switching variables because there are many restrictions. Consequently, we
introduce a ”free” variable in order to ignore the restrictions.
As the result,
f (x + y) = x + g (y) , ∀x, y ∈ R+
f (x + 3f (y + z)) = f (x) + f (y + z) + 2 (y + z)
We hope that there is another way to calculate LHS. According to the condition, we tend to
replace z by 3f (z):
We conclude that
f (x + 6z) = f (x) + 6f (z)
holds for all x, y ∈ R+ . Now,
f (x + z) = f (x) + f (z) + c
f (x) = x, ∀x ∈ R+
Remark 10. Because we want to calculate an expression in two different ways, we usually
”iterate” our condition. Besides, since we exchange two variables, we usually need to deal
with something like Cauchy FE and get the additivity.
Example 41. (Socrates) Find all functions f : R+ → R+ such that
After simplification,
f (x + y + 2z) + 2z = f (x) + y + 2f (z)
By switching the variables, we see that f is linear and thus,
f (x) = x, ∀x ∈ R+
Remark 11. In fact, we can solve this problem by switching x, y directly. We have
Thus,
f (x) + f (f (x)) = 2x + c
for some constant c. According to Example 20, we conclude that
f (x) = x, ∀x ∈ R+
Solution. The solution is due to Andreas Dwi Maryanto Gunawan, from Indonesia.
For any positive reals z, we have that
f (x + f (y)) + z = f (x + y) + f (y) + z
f (f (x + f (y)) + z) = f (f (x + y) + f (y) + z)
Again, we have
⇒ f (x + y + z) + f (y) = f (x + 2y + z)
The rest is a routine work.
for some functions g, h. Then we can try to compare P (x, y + g (z)) and P (x + h (y, z) , y)
So f (24 ) = 1, which is absurd! Thus, we conclude that there is not such a function.
Remark 13. If we apply the following transformation: Let g : log S → log S defined by
Consequently,
And so,
2g (d) = g (4d) = g (2d) + c = g (d) + 2c → g (d) = 2c
It follows that g ≡ 0, which is impossible!
Of course, we need to have some identities to ”open” the terms. Notice that we, initially,
have only the condition. Therefore, we usually use the given condition to do the trick.
f (f (f (. . . f (f (q)) . . . )))
| {z }
n
It follows that
f (a (n + 1 − a) q) = f (nq)
holds for all a ∈ {1, 2, · · · , n}. In particular,
f a a2 − a + 1 − a q = f a2 − a q → f (q) = f (mq) , ∀m ∈ N
0
by simple substitution. Now, for any x, y ∈ Q+ , write x, y as qr , qr0 , respectively. Then
Remark 14. Since we expect the only function is constant, we may want to show that for
any x, y ∈ Q+, there are some a < n ∈ N and q ∈ Q+ such that
(
x = a (n − a) q
y = nq
This is not so obvious. The readers can try to give it a proof or a counter example.
In most situations, it suffices to find out ”short” (because we hope to get a simple result)
identities in the beginning.
Example 45. (Socrates) Find all functions f : R+ → R+ so that
f x3 − f y 3 = (x − y) f x2 + f (xy) + f y 2 , ∀x, y ∈ R+
f x3 − f z 3 = f x3 − f y 3 + f y 3 − f z 3
Therefore, we have
x2 − 1 f x4 + f x2 + 1 = x2 − x f x4 + f x3 + f x2
+ (x − 1) f x2 + f (x) + 1
After simplification,
f x4 = x (x − 1) f x2 + x2 − x + 1 f (x) + x (x − 1)
3 4
Our idea is to calculate f (x12 ) in two ways. Since (x4 ) = x12 = (x3 ) , it follows
f x12 = h x3 , f x3 , f x6
= h x3 , g x, f (x) , f x2 , g x2 , f x2 , f x4
= h x3 , g x, f (x) , f x2 , g x2 , f x2 , h x, f (x) , f x2
and
f x12 = g x4 , f x4 , f x8
= g x4 , h x, f (x) , f x2 , h x2 , f x2 , f x4
= g x3 , h x, f (x) , f x2 , h x2 , f x2 , h x, f (x) , f x2
f x2 + f (x) = x2 + x, ∀x ∈ R+
Finally,
f x3 = (x − 1) f x2 + f (x) + 1 + 1 = (x − 1) x2 + x + 1 + 1 = x3
Usually, we use two operations which are commute to realize our idea.
3.4 Exercise
We begin with standard exercises.
f (x + f (y)) = x + f (f (y))
f (x + 2f (y)) = f (x + y) + y, ∀x, y ∈ R+
Problem 41. (Own) Find all functions f : N → N satisfying that for all a, b ∈ N,
f (x + f (y)) + x = f (x + f (x)) + y
Problem 44. (2017 Iran) Find all functions f : R+ × R+ → R+ that satisfy the following
conditions: for all positive reals x, y, z,
f (f (x, y) , z) = x2 y 2 f (x, z)
and
f (x, 1 + f (x, y)) ≥ x2 + xyf (x, x)
Problem 45. (2010 A5) Determine all functions f : Q+ → Q+ which satisfy the following
equation for all x, y ∈ Q+ :
f f (x)2 y = x3 f (xy)
Problem 47. (2005 A2) Find all functions f : R+ → R+ which have the property:
Problem 49. (2013 USA) Find all functions f : N → N that satisfy the equation
for all a, b, c ≥ 2
Chapter 4
Calculus (Supplement)
In this chapter, we’ll fulfill some weird imaginations. I believe that for many people, at
least for me, when they first know what a functional equation is, they will claim that only
continuous functions or polynomials can be the solution. Yet, this imagination will be broken
as soon as they learned some weird solutions, e.g. solutions of Cauchy functional equation.
However, most of the functional equations have ”regular” solutions, and the word ”regular”
may refer to continuous or differentiable. Therefore, I’ll state some definitions, theorems
and properties in calculus and demonstrate how to obtain these properties in a functional
equation. Also, the proves of those theorems and properties can be easily found in any
calculus textbook, which means I’ll omit the proves here. In addition, Since this technique
is about calculus, we always need to derive some inequalities from the equation, and hence
it only works on some R+ functional equations and few R functional equations.
Answer. First we notice that if each set is finite, they have the same size iff there is a
bijection between two sets; if one is larger then the other, there is a injection from the
smaller one to the larger one. So we want to generalize this to the infinite case.
51
Property. For any sets A, B, C, we have
1. |A| = |A|
• |N| = |Z|
• |N| = |N × N|
• |N| = |Q|,
Theorem 2. |R|
|N|
Proof. Although we don’t actually know what real numbers are, and the construction will
be derived in the next section, we’ll first assume real numbers to be a integer plus a decimal
part, but we say that 999... after some digit is same plus 1 in the previous digit. For example,
2.999 . . . = 3
In fact, we can prove that the size of real numbers in (0, 1] is (strictly) larger than N. Let’s
assume the statement is false, which means that we can label the real numbers in (0, 1] by
integers. Assume the i-th number is ai , and write it in decimal system with infinite decimal
(not end in 000...). Next, we can choose a real number x ∈ (0, 1] such that the i-th digit is
different from the i-th digit of ai , and x is not a finite decimal. Therefore, x was not counted,
and we get a contradiction!
4.2 Construction of Numbers
Before learning calculus, we should first know what the numbers we’re familiar with are, so
in this section, I’ll first introduce the construction of integers, rational numbers, and real
numbers, and deal with some basic properties of them.
1. 1 is a positive integer.
2. For every positive integer a, there is a unique successor a0 , which is also a positive
integer.
3. Two positive integers are equivalent iff their successors are equivalent.
5. For any statement about positive integers, if one can prove that it’s true for 1, and for
n0 under the assumption that it’s true for n, then the statement is true for N
1. x ∼ x
2. x ∼ y ⇒ y ∼ x
3. x ∼ y, y ∼ z ⇒ x ∼ z
Definition 10. Let S := {(a, b)|a, b ∈ Z, b 6= 0}, and we define an equivalent relation ∼ by
(a, b) ∼ (c, d) ⇔ ad − bc = 0
Theorem 3. (Completeness of real numbers) All real-valued Cauchy sequence {an } converges
in R , i.e. there is a real number a such that limn→∞ an = a
Definition 15. We say that a real-valued function f (x) converges to a when x tends to b if
Remark 16. From 0 < |x − b| < δ in the previous definition, we should notice that f (b)
does not necessarily equal a.
Property. The limit does not necessarily exist, but once it exists, it must be unique.
Property. If both limn→∞ an and limn→∞ bn exist, then
lim an , lim cn
n→∞ n→∞
exist and are equal, then limn→∞ bn exists and equals the others.
Similarly, we also have the functional version of the previous properties, and their proofs
are almost the same.
Property. Let b ∈ [−∞, ∞], if both limx→b f (x), limx→b g(x) exist, then
3. Moreover, if limx→b g(x) 6= 0, then limx→b f (x) ÷ limx→b g(x) = limx→b f (x) ÷ g(x)
Theorem 5. (Squeeze Theorem) Let b ∈ [−∞, ∞], if f (x) ≤ g(x) ≤ h(x), and
exist and are equal, then limx→b g(x) exists and equals the others.
After understanding the definition of limit, we can define least upper bound and greatest
lower bound, and take limits of them in order to understand more about a function or
sequence.
Definition 16. Given a set S ⊆ R, we say that S has an upper bound if there exists M ∈ R,
such that for all x ∈ S, x ≤ M , and M is called an upper bound of S; similarly we can
define a lower bound of S, and if S has both upper and lower bound, we say S is bounded.
Property. A non-decreasing sequence with an upper bound must converge; similarly a non-
increasing sequence with lower bound must converge.
Definition 17. Given a set S ⊆ R, if S has an upper bound, then among all upper bounds
of S, there is a smallest one, and this value is called the least upper bound ( supremum )
of S, denoted by sup S; similarly we can define the greatest lower bound ( infimum ) of S,
denoted by inf S.
Definition 18. Define the limit superior ( lim sup ) as the following:
or in other words, the limit of f (x) when x tends to x0 is f (x0 ). We say f (x) is continuous
on a set if f (x) is continuous at all points in the set.
Property. Polynomials, rational functions, exponential function, logarithm, and trigono-
metric functions are continuous at all points where they can be defined.
Property. If both f (x), g(x) are continuous functions, then f (g(x)) is continuous at all
points wherever it’s well-defined.
Theorem 6. (Intermediate Value Theorem) If f is continuous on [a, b], then for any given
y between f (a) and f (b), there must exist a c ∈ [a, b] such that f (c) = y.
Property. A continuous function f on [a, b] must reach its supremum.
Theorem 7. (Bolzano Weierstrass Theorem)Given an infinite sequence a1 , a2 , ..., where
ai ∈ [a, b] holds for all i, then we can find a subsequence ai1 , ai2 , ... which converges.
Theorem 8. A non-decreasing (or non-increasing) function on (a, b) ⊆ R is continuous at
all but countable points.
xf (x + y) (yf (x) + 1) = 1
Proof. First, for all a < b, we can always find 0 < c < a. By choosing (x, y) = (c, a −
c), (c, b − c), we can obtain f (a) > f (b). Therefore, f is a decreasing function, so we can
apply theorem 8. In other words, f is continuous on all but countable points. In particular,
there is at least one point t such that f is continuous at t. Given any r > t, by taking
y = r − t, we can obtain
1 1
lim f (x + r − t) = lim = = f (r)
x→t x→t x(yf (x) + 1) t(yf (t) + 1)
Hence, f is continuous at r. Similarly, we can prove that f (r) is continuous for all r < t.
Therefore, we have
1 1
f (x) = lim+ f (x + y) = lim+ =
y→0 y→0 x(yf (x) + 1) x
Proof. If lim supx→0+ f (x) is not zero or doesn’t exist, then we can find t, k > 0 and a
sequence a1 , a2 , ... such that
1. limn→∞ an = 0
3. f (t) < 2k
By choosing (a, b, c) = (t, an , an ), we can get a contradiction as long as n large enough. On
the other hand, lim inf x→0+ f (x) ≥ 0, hence by combining this with the previous result, we
proved that limx→0+ f (x) = 0 Given f (a) > ε > 0, we can set (a, b, c) = (a, δ, x), where
δ is small enough such that f (δ) < ε. As a result, for all x ∈ (a − δ, a + δ), we have
f (x) ∈ (f (a) − ε, f (a) + ε), which means f is continuous.
If there exists (a, b, x0 ) with x0 ≥ a + b and f (x0 ) ≤ |f (a) − f (b)|, by intermediate value
theorem we can obtain that for all x ≥ a + b, we have f (x) ≤ |f (a) − f (b)|. By taking
y ≥ 2a + 2b, and let w ∈ {a, b} be the one which its f -value is larger, we can plug in (w, w, y)
and get a contradiction from the fact that w, w, y can’t form a triangle but f (w), f (w), f (y)
can. Hence f (a + b) ≥ f (a) + f (b)
By plugging in ((a, b, a + b − ε)), we can get that f (a + b − ε) < f (a) + f (b). Let ε → 0, since
f is a continuous function, we obtain that f (a + b) ≤ f (a) + f (b). Therefore, f is additive,
and by combining this with f ≥ 0 we can get that f (x) = cx for some constant c, which is
indeed a solution.
Example 48. (2016 APMO) Find all functions f : R+ → R+ such that for all x, y, z ∈ R+ ,
1. limn→∞ an = 0
2. limn→∞ f (an ) = ∞
We can WLOG assume that all an < 1 by forgetting first few terms. By plugging y =
1 − x, z = an in the original equation we can get
It tells us that f ((1, f (an ))) bounded by 2f (1). By taking n goes to infinite, we can get that
f ((1, ∞)) is bounded by 2f (1). On the other hand, if we take x > 1, y > 1 and z very large
in the original equation, RHS is smaller than 4f (1), but LHS can be arbitrary large, hence
we get a contradiction!
As a result, such sequence an don’t exist. In other words, lim supx→0+ f (x) exists. Assume
lim supx→0+ f (x) = k, and we can find a sequence xn > 0 such that
1. limn→∞ xn = 0
2. limn→∞ f (xn ) = k
xn
By plugging in x = y = 2
and by taking n → ∞, we can obtain that
a−b b − af (z)
x= ,y =
1 − f (z) 1 − f (z)
Also, because of limz→0 f (z) = 0 we can choose z very small and f (z) very small, and obtain
a contradiction! Therefore, f is an increasing function.
We can take z → 0 and let g(x) = limh→0+ f (x+h), hence we have that f (x+y) = g(x)+g(y).
Moreover, take y as y + ε and let ε → 0+ , we have that g(x + y) = g(x) + g(y). Join with
the fact that g ≥ 0, we obtain that g(x) = cx and hence f (x) = cx. Finally, we can get that
c = 1 and check it’s indeed a solution.
4.4 Differentiation
Differentiation is a method to understand what happens to a function near some point, and
its definition is just the limit of the slope of its secant lines.
Definition 21. A real-valued function f (x) is said to be differentiable at x0 if
f (x) − f (a)
lim
x→a x−a
df
exists and we denote the value by dx
(x0 ) or f 0 (x0 ), which is the derivative of f (x) at x0
Property. If f is differentiable at x0 , then f is continuous at x0
Property. If both f, g are differentiable, then
1. (f ± g)0 = f 0 ± g 0
2. (f g)0 = f 0 g + g 0 f
f 0 g−g 0 f
3. Moreover, if g(x0 ) 6= 0, then( fg )0 = g2
Property. If f is differentiable at x0 , and g is differentiable at f (x0 ), then
Property. If f and g are the inverse function of each other, f is differentiable at x0 and
f 0 (x0 ) 6= 0, then g is differentiable at f (x0 ) and
1
g 0 (f (x0 )) =
f 0 (x 0)
4.5 Integration
Here, integral means Riemann integral , but actually we follow the definition of Darboux.
Definition 22. Define S to be a partition of [a, b] if S = {x0 , ..., xn |a = x0 < x1 < ... <
xn = b}, and |S| means maxni=1 (xi − xi−1 ), which is the length of the greatest interval in S
Definition 23. Define U (f, S) := Σni=1 fi (xi − xi−1 ), where fi is the least upper bound of f in
[xi−1 , xi ], and similarly we can define L(f, S) by changing the least upper bound into greatest
lower bound. Furthermore, we can define U (f ) := inf S U (f, S), and L(f ) := supS L(f, S)
Definition 24. A real-valued function f on [a, b] is said to be (Riemann) integrable if
U (f ) = L(f )
Property. If f is integrable on both [a, b], [b, c], then f is integrable on [a, c] and
Z b Z c Z c
f (x)dx + f (x)dx = f (x)dx
a b a
Ra Rb
Definition 26. If b > a, then b
f (x)dx := − a
f (x)dx
Theorem 10. (Mean Value Theorem of Integration) If f is a continuous function on [a, b],
then there exists c ∈ [a, b] such that
Z b
1
f (c) = f (x)dx
b−a a
Property. If an O.D.E. is of the form an u(n) + ... + a1 u0 + a0 u = 0, where u(k) means the
k-th derivative of u, and let x1 , ..., xr be all solutions of an xn + ... + a1 x + a0 = 0, where xi
has multiplicity mi , then all solutions of the previous O.D.E. are of the form
then we can find out u, while we should notice that there is a constant difference after the
indefinite integral.
4.7 Lebesgue Monotone Differentiable Theorem
In this section, I’m going to talk about Lebesgue monotone differentiable theorem. However,
it’s a strong theorem and its proof is too complex. Therefore, I won’t prove it here and will
instead demonstrate the usage of it.
Property. The union of countably many arbitrary measure zero sets is still measure zero,
which tells us an arbitrary countable set is measure zero.
Definition 28. We say that a property holds almost everywhere (a.e.) if it fails to hold only
on a measure zero set.
Property. Let S = (a, b) − (a measure zeor set) ⊆ R, where a, b might be ±∞. Then S is
dense in (a, b)
Proof. If there exists f (a) < 1, then we can choose (x, y) = (a, 1−fa(a) ) and get that f (a) = 1,
which gives a contradiction!
Hence, for all x, we have that f (x) ≥ 1. Therefore, f is an increasing function. Moreover,
we can rewrite the equation as (1):
f (y) − 1
lim+
y→0 y
exists. Let’s assume the value is c, hence we have that
f (x + yf (x)) − f (x)
lim+ =c
y→0 yf (x)
b−a
holds for all x. Also, if we plug x = a, y = f (a)
in (1), where b > a, we can get that
f (b) − f (a)
lim− =c
a→b b−a
Hence, f is differentiable on R+ , and
f 0 (x) = c
Therefore, f (x) = cx + d, and we can check which pairs of c, d satisfy the original equation.
Example 50. Given a positive integer n ≥ 2, find all f : R+ → R+ satisfying that for all
x, y ∈ R+ ,
n−1
X
n n
f (x ) − f (y ) = (x − y) f (xk y n−1−k )
k=0
Proof. First, it can be easily observed from the original equation that f is a decreasing
function. If f is bounded above, i.e.
Note that for arbitrary x, if R.H.S. exists and does not equal 1, then f 0 (x) also exists because
−1
we can obtain f 0 (x) by composing L.H.S. with t−1 . Note that for the case R.H.S. goes to
0
+∞, f (x) = 0 still exists. However, we have
f (y) f (y) f (y) f (a + y) f (y)
lim lim = lim lim = lim
y→∞ f (a + y) y→∞ f (b + y) y→∞ f (a + y) y→∞ f (a + b + y) y→∞ f (a + b + y)
f (y) f (y)
if both limy→∞ f (a+y)
and limy→∞ f (b+y)
exist. Also, the last term must be greater then 1
f 0 (a)−1 f 0 (b)−1
since f 0 (a), f 0 (b) ≤ 0 and f 0 (a)
to prove f 0 (x) exists it’s
, f 0 (b) > 1. Hence, for arbitrary x,
0 0
enough to find a, b such that a + b = x and both f (a) and f (b) exist.
Suppose f 0 exists on a set S with R \ S measure zero, then for any x, (0, x) ∩ S ∩ (x − S) is
non-empty since (R \ S) ∪ (R \ (x − S)) is still measure zero. Take any a ∈ (0, x) ∩ S ∩ (x − S),
and set b = x − a we can conclude that f 0 (x) exists. Next, let
f 0 (x) − 1
g(x) = log ,
f 0 (x)
and we can get that g : R+ → (0, ∞] satisfies the Cauchy equation. Note that we don’t need
and we can’t subtract ∞ from ∞, but we can still say that g satisfies the Cauchy equation.
However, it’s easy to check g can’t take both finite and infinite value. Moreover, we can
conclude that g(x) = rx for some r might be ∞. Therefore,
f 0 (x) − 1
log = rx.
f 0 (x)
By solving the ODE above, we can conclude that
1
f (x) = x − log(erx − 1)
r
if r ∈ (0, ∞) and f (x) = constant if r = ∞, and the second case is invalid. Also, we can
check that the functions in the first case are solutions!
4.8 Problems
Problem 50. Find all functions f : R+ → R+ satisfying that for all x, y ∈ R+ ,
f (y)f (xf (y)) = f (x + y)
Problem 51. Find all functions f : R → R satisfying that for all x, y ∈ R,
f (x2 + f (x)y) = f (x)2 + xf (y)
Chapter 5
Recently, there are more and more functional equations in integers. For those problems,
our previous ideas may not be enough to derive a complete solution. For instance, a linear
function f (x) = ax + b is surjective if f : R → R, but it’s not necessarily surjective when
f : Z → Z. Therefore, we are going to study such problems in details.
Example 52. (2015 Canada) Find all functions f : N → N such that for all n ∈ N,
Solution. It’s easy to see that f (1) = 1. Suppose we have proved f (k) = k for all k < n,
we must have f (m) ≥ n for all m ≥ n. That’s because if f (m) = k for some k < n,
67
Example 53. (Base on: 2015 Mexico) Find all functions f : N → N such that
f (a + b + ab) = f (ab)
Solution. It’s natural to guess the answer is the constant function. Note that we have
Notice our inductive step doesn’t work for k = 2, that’s why we need to bash f (2). To find
the number k that we need to bash f (1) , . . . , f (k) for induction, one can do the inductive
step first and use the constraints to find out k.
We demonstrate this idea in the next example.
Solution. Stick to one of our principles, substitute zeros for variables whenever it’s possible.
Set x = y = 0, we have
f (2f (0)) + 2f (0) = 0
f (f (x)) = xf (1)
It’s easy to check that f ≡ 0 when f (1) = 0. For the other case, f is injective and thus,
f (1) should be 1 (why). So far, the only useful identity (for induction) is
f (f (x) + 1) + 2f (x) = 2x + f (x + 1)
IDEA: If f (x) = x, the above equation gives nothing. However, if f (x + 1) = x + 1,
f (f (x) + 1) + 2f (x) = 3x + 1
where P (i) means that f (i) = i holds. So it seems that we need P (2) and the corre-
sponding equation (y = 2 in the original condition)
From above, we require P (3) and 2k ≥ k + 3. That’s because we hope to get P (2k + 2)
by setting x = k + 1. In summary, it suffices to bash P (3) , . . . , P (6)
To get the value of f (3), one should notice that 4f (3) = 3f (4), combines this fact with
2
f (f (3) + 1) + f (3) ≥ 3 + 4 = 7 > 6
3
f (5) + 2f (6) = 17
Let’s left this exercise as the end of the section. Try induction!
a | b −→ a | b − ka
for some functions g, h. Then, we may have h (m, f (m)) = 0 whenever g is unbounded for
a fixed m. See the following problem.
If there exists a s.t f (a) 6= a2 , then f is bdd. Obviously, f (1) is 1 (why). So, in particular,
n + f (1) | f (n) − n2
⇐⇒ n + f (1) | f (n) − 1
It follows f ≡ 1. In conclusion,
(
f (x) = x2 , ∀x ∈ N
f (x) = 1, ∀x ∈ N
Example 56. (2013 N1) Find all functions f : Z>0 → Z>0 such that
m2 + f (n) | mf (m) + n
m2 + f (m) | mf (m) + m
−→ m2 + f (m) ≤ mf (m) + m
The second small fact is also useful. The reason is, once we have
f (p) | pk
We have only few possibilities for f (p). Then we plug p into one variable of the condition
to determine the other values.
By our assumption, f (p) = 1 or p. Notice that for sufficient large p, f (p) = 1. Otherwise,
p2 + f (n) | p + n
m2 + p | mf (m) + p
=⇒ m2 + p | mf (m) − m2
Consequently, f (m) = m, ∀m ∈ N
a + f (b) | a2 f (a) + b3
p + 1 | p2 f (p) + 1
It remains two cases f (p) = p or p3 However, if f (q) = q 3 for some prime q, then
a + q 3 | a2 f (a) + q 3
d (f (x)) = x, ∀x ∈ N
and
f (xy) | (x − 1) y xy−1 f (x) , ∀x, y ∈ N
5.2.2 Euler Theorem
Solve FEs in integers as FEs in reals, we sometimes get
(
f (cn) = cf (n)
f (n + d) = f (n) + e
if d | ck − 1. Notice that if c, d are co-prime, we can apply Euler theorem to find such a k
and thus, it’s easy to conclude
en
f (n) = , ∀n ∈ N
d
Theorem 14. (Euler) If n and a are co-prime positive integers, then
aφ(n) ≡ 1 mod n
f (n + c) = f (n) + 2014
We want to compare P (n, m) and P (n, m + kc) for some k. Notice that m is ”wrapped”
in two f , we need that k is a multiple of c.
C ≡ ci (mod mi ), ∀i
p | (p − 1)! + 1 ⇔ p is a prime
2, 4, pa or 2pa
{x, f (x) , . . . }, x = 1, 2, . . .
Example 59. (2017 Taiwan) Find all injective functions f : N → N such that
Solution. Obviously, the pre-image of 1 is an empty set (why) and one shall notice that
f f (n)−1 (n) = 2n
for all n ∈ N. Indeed, just set a = b = n into the condition and use the injectivity of f . In
particular, there is an integer c such that f (c) = 2. Then
So c = 1. From here, by induction, it’s easy to see that 1 is an ancestor of any power of 2.
Now, for any positive integer n, take a natural integer m so that f (n + m) is a power of 2
(why we can make such a choice?) Then, by our condition,
IDEA: As we solve combinatorics, we shall work for small cases: For k = 1, It’s quite
clear that m is an ancestor of n whenever m < n. So if f (n) 6= n for some n ∈ N, then
we’ll have that the recursive chain of n is a non-trivial cycle i.e
However, this is impossible because every recursive chain is unbounded. Now, for k = 2:
If n > m such that n ≡ m (mod 2), then n is a posterity of m. Similar to the previous
case, we should have
f (n) 6≡ n (mod 2), ∀n ∈ N
Consider a partition of N:
A = {1, 3, 5, . . . } = {2m − 1 | m ∈ N}
B = {2, 4, 6, . . . } = {2m | m ∈ N}
Then f maps A to B and maps B to A. It seems fine at the first sight. But it implies
n ∈ A −→ f 2 (n) ∈ A
Combine with the fact that f n (n) = n + 2, we conclude that f contains a cycle (why),
which is again absurd.
Solution. Since f is multiplicative, it suffices to determine f (p) for all primes p. As usual,
consider the recursive chain of p,
If f (p) = p, then we have nothing to do. If f (p) 6= p, then all the elements in the chain must
be distinct (why). Moreover, f p−1 (p) should be a multiple of p. That’s because the recursive
chains of p and f p−1 (p) are the same i.e.
p−1 (p)+p−2
{f p−1 (p) , f p (p) , . . . , f f (p)} = {p, f (p) , . . . , f p−1 (p)}
However, we have f (p) is a multiple of p, again. Thus, f (p) = p holds for all p.
{x, f (x) , . . . }
One could consider the minimal s ∈ N s.t f s (x) = x to get some useful results.
Exercise. (2018 Japan) Let S = {1, 2, . . . , 999} . Consider a function f : S → S such that
for any n ∈ S,
f n+f (n)+1 (n) = f nf (n) (n) = n
1. Establish a v2 relation
Solution. First of all, it’s easy to see that f (0) = 1. Suppose that f (a) = 2, then
f (2x + a) = 2f (x)
as desired. Next, we try to show that f (2ka) = 2k + 1. Suppose not, let l to be an integer
such that f (l) = 2l + 1, then take (x, y) = ((2n − 1) a, l) in the condition:
We hope that v2 (2n (2k + 1) a − l − 2ka) > n so we choose n = v2 (l − 2ka). So far, we get
f (2ka) = 2k + 1, ∀k ∈ Z
v2 (f (x)) = v2 (x)
x−f (x)
Now, substitute 2
for y. After simplification, one shall have
x − f (x)
f x+f = 2x − f (x)
2
Notice that 2x − f (x) = f (f (x)). By injectivity, x + f x−f2(x) = f (x). Take v2 on
both side,
x − f (x) x − f (x)
v2 (f (x) − x) = v2 f = v2
2 2
From here, it’s easy to get f (x) = x for all x ∈ Z
If f (Z) contains only even integers, then f (x) = −2x, ∀x ∈ Z
Apply Taiwanese transformation, define g : Z → Z by f (x) = −2g (x). Then we can
rewrite our previous results
and 2
x + g (x)
RHS = (x + g (x − g (x))) (g (x) + g (g (x) − x)) ≤
2
So we must have
x + g (x − g (x)) = g (x) + g (g (x) − x)
which means
g (x) − x
g (x − g (x)) = , ∀x ∈ Z
2
Again, by g (2x) = 2g (x),
v2 (g (x − g (x))) ≥ v2 (g (x − g (x)))
Remark 19. This problem can be solved without using v2 , sad. Anyway, if one has
f (px + q) = pf (x)
for some prime p and q ∈ Z, then one could consider to establish a vp relation.
5.5 Problems
Problem 52. Find all functions f : Z → Z such that for all a, b, c ∈ Z,
f (m + n) f (m − n) = f m2
Problem 54. (2012 IMO) Find all functions f : Z → Z such that for all a, b, c ∈ Z with
a + b + c = 0, we have
Problem 55. (2014 A6) Find all functions f : Z → Z such that or all n ∈ Z,
n2 + 4f (n) = f (f (n))2
for m, n ∈ N
Problem 57. (2011 N3) Let n ≥ 1 be an odd integer. Determine all functions f : Z → Z
so that
f (x) − f (y) | xn − y n
holds for all x, y ∈ Z
Problem 58. (2016 Turkey) Find all functions f : N → N such that for all m, n ∈ N,
and
m + n | f (m) + f (n)
Problem 59. (2012 A5) Let f : N → N be a function. Suppose that for every n ∈ N there
exists a k ∈ N such that f 2k (n) = n + k, and let kn be the smallest such k. Prove that the
sequence k1 , k2 , . . . is unbounded.
Problem 60. (2007 N5) Find all surjective functions f : N → N such that for m, n ∈ N
and every prime p,
p | f (m + n) ⇔ p | f (m) + f (n)
f (x + f (x) + y) + f (x − f (x) − y) = f (x + y) + f (x − y)
f (g (x) + y) = g (f (y) + x)
Problem 63. (2015 N6) Consider a function f : N → N with the following two properties
f n (m)−m
1. If m, n ∈ N, then n
∈N
Problem 64. (2018 China) Let M, a, b, r be non-negative integers with a, r ≥ 2, and suppose
there exists a function f : Z → Z satisfying the following conditions:
Problem 65. (2013 A5) Find all the functions f : Z≥0 → Z≥0 satisfying the relation
f (f (f (n))) = f (n + 1) + 1
Problem 66. (2018 Kazakhstan) Does there exist a function f : N → N such that
Problem 68. (2011 Iran) Suppose that f : N → N is a function for which the expression
is always a perfect square for all a, b ∈ N. Prove that f (a) = a for all a ∈ N
Polynomial
In the chapter, we are going to discuss some problems about polynomials. The first type is
polynomial functional equation, there are two general ideas to solve such problems:
1. Consider the root with absolute value α. Show that if α 6= c for some constant c, then
we could generate infinitely many distinct roots
2. Guess the solution and apply Taiwanese transformation. After that, rewrite the equa-
tion and compare the coefficients.
The second type is about Z[x], we usually use n − m | P (n) − P (m), which follows by
x − y | xn − y n = (x − y) xn−1 + · · · + y n−1
But, as usual, we should review some basic knowledges about polynomials (one variable).
6.1 Terminology
Roughly speaking, a polynomial is a special function of the form
an xn + an−1 xn−1 + · · · + a0
for some positive integer n (called degree) and ”coefficients” a0 ∼ an . For example,
are polynomials of the variable x. If the coefficients of a polynomial are all integers, then
we’ll say it an integral polynomial. For convenience, we use the notation Z[x] to represent
the set of all integral polynomials. Similarly, we have rational polynomials Q[x], complex
polynomials C[x], very complex polynomials QAQ[x], etc.
85
6.2 Factorization
Just like what we did to integers, we want to ”factorize” polynomials.
Definition 31. A polynomial P (x) is factorizable in K if there are two non-constant poly-
nomials Q (x) , R (x) ∈ K[x] such that
holds for all x. (Here K can be Z, Q, R, C or anything you want) Moreover, we say that P
is divided by Q and R
For complex polynomials, this issue is not so complex. That’s because we have
Theorem 18. (Fundamental theorem of algebra) Every polynomial P (x) with complex co-
efficients has a complex root.
(x − α) | P (x)
it’s easy to see that every polynomial P (x) with complex coefficients has exactly deg (P )
complex roots. So every complex polynomial can be split into linear factors:
(x − α1 ) (x − α2 ) . . . (x − αn )
And for real polynomials, we need a small fact: If β is a complex root of P ∈ R[x], then β
is also a root of P . It turns out that every real polynomial can be split into
(x − α1 ) . . . (x − αn ) x2 + β1 x + γ1 . . . x2 + βm x + γm
Back to Q[x], Z[x]. In fact, we have no general answer, but one could provide partial results.
q
Theorem 20. If p
is a root of P ∈ Z[x] and
(px − q) | P (x)
Furthermore, we know that P (x) = (px − q) Q (x) for some Q (x) ∈ Z[x]. Finally, compare
the coefficients, it’s easily to see p | an and q | a0
Surprisingly, they are essentially the same.
Theorem 21. (Gauss) If a polynomial P ∈ Z[x] is irreducible over Q, then it’s also irre-
ducible over Z. That is, if
(an , an−1 , . . . , a0 ) = 1
Proof. WLOG, assume that P is a primitive polynomial. Then, choose four positive integers
pA , qA , pB , qB such that A = pqAA Ã, B = pqBB B̃. In addition, Ã, B̃ are primitive (How?). So
If pA pB 6= 1, one can find a prime p and i, j so that ci and dj aren’t divided by p while
ci−1 , . . . , c0 , dj−1 , . . . , d0 are divided by p. This is also based on the fact Ã, B̃ are primitive.
However, it follows that
(x − α1 ) (x − α2 ) . . . (x − αn )
Then it suffices to show (b − αi ) > 1 for every i. When |x| > b − 1 with Re (x) > 0,
b−1
≥ 1− 2 xn > 0
x −x
This is not easy to solve. Anyway, there are still some advantages. Perhaps we could
determine the leading coefficient and the constant term by the naive method.
6.4.2 Bounding
Example 67. Find all polynomials P ∈ R[x] such that
P (x) P (x + 2) = P x2
Solution. If P is non-constant, consider any root α of P . Simply plug α into the equation,
P α2 = P (α) P (α + 2) = 0
P (x) P (x + 2) = P x2
Solution. Again, we ignore the constant answers. Notice that the leading coefficient an of
P satisfies (compare the coefficient of x2 deg(p) )
a2deg(P ) = adeg(P )
So it must be 1 (it can’t be zero, of course). Suppose that deg (P ) = n, we hope to show
P (x) = (x − 1)n under this assumption. Define Q (x) = P (x) − (x − 1)n , then it satisfies
n
(Q (x) + (x − 1)n ) (Q (x + 2) + (x + 1)n ) = Q x2 + x2 − 1
After reduction,
This equation will never happen. Because the degree (as a polynomial) of LHS is
Moreover, this method seems that it works when a family of answers exists.
Exercise. (2017 Taiwan) Find all polynomials P with real coefficients which satisfy
P (x) P (x + 1) = P x2 − x + 3
∀x ∈ R
6.5 n − m | P (n) − P (m)
This lemma is quite trivial and quite important. Let’s see how it works.
Example 69. Find all polynomials P (x) ∈ Z[x] satisfying for all positive integers n,
P (n) | 2n − 1
Solution. If P is not constant, choose any n ∈ N so that |P (n) | > 1. Find an arbitrary
prime p so that p | P (n). Since p | P (n + p)−P (n), we get that p | P (n + p). In particular,
p | 2n − 1, p | 2n+p − 1
Example 70. (2016 ELMO) Find all polynomials P (x) ∈ Z[x] such that
n | P (2n )
n | P (a)
n | P (2mn )
2mn ≡ a (mod n)
n | P (2m )
Remark 22. For many integral polynomial problems with divisibility conditions, it’s common
to take a prime that divides LHS. Then, use our crucial lemma n − m | P (n) − P (m) and
the well-known Fermat’s little theorem
ap ≡ a (mod p)
Exercise. Find all polynomials P (x) ∈ Z[x] such that
P (p) | (p − 1)! + 1
Exercise. (2018 TSTST) Determine all functions θ : Z[x] → Z so that for any p, q ∈ Z[x],
• θ (p + 1) = θ (p) + 1
Example 71. (IMO 2006) Given n ∈ N and a non-constant, integral polynomial P (x).
Prove that the polynomial
Q (x) := P (P (. . . P (x) . . .))
| {z }
n
It follows P (ai ) − P (ai+1 ) have same signs. Therefore, P (ai ) = ai + c for some constant c.
So a1 , . . . , ak are distinct roots of P − c, the conclusion follows.
Remark 23. Like FEs with divisibility conditions, don’t be hesitate to replace | by ≤
Chapter 7
Appendix
holds.
Problem 73. (2015 India) Find all functions f : N0 → N0 such that
f m2 + mf (n) = mf (m + n)
95
Problem 75. (2015 MEMO) Find all surjective functions f : N → N such that for all
positve integers a and b, exactly one of the following equations is true
f (a) = f (b)
for all m, n ∈ N
Problem 77. (2016 Korea) Determine all functions f : R → R satisfying the following
for all x, y, z ∈ R
Problem 78. (2016 MEMO) Find all functions f : R → R such that
f a3 + f b3 + f c3 ≥ 3f (abc)
2. If a + b + c ≤ 0, then
f a3 + f b3 + f c3 ≤ 3f (abc)
7.2 B. Removed Examples
In the beginning of this project, I planned to use shortlist problems to demonstrate some
ideas. But I finally realized that it’s better to leave them as simulation tests for the readers.
Example 72. (2014 A2) Determine all functions f : Z → Z satisfying
n2 + 4f (n) = f (f (n))2
for all n ∈ Z
Example 74. (2015 A2) Determine all functions f : Z → Z with the property that
Thus, α = β, as desired. The injectivity implies that f (x2 ) = f (x)2 , it follows that
1
f (x) = , ∀x ∈ R+
x
which is indeed a solution!
Example 77. (2016 A7) Find all functions f : R → R such that f (0) 6= 0 and
Solution. Because there is a strange condition f (0) 6= 0, I tend to find out f (0),
Since f (0)2 > 0, we get max{2f (0) , f (0)} < 0. So f (0) < 0 and thus, f (0) = −1. Now,
because we know the value of f (0), we tend to assert some zeros to variables
Replace x by −x,
Always remember to determine the special values. The above implies f (1) = −1 or 0
We first consider the case that f (1) = 0: In this situation, f (−1) = 0 or f (−1) = −2. We
claim that f (−1) = 0 is impossible. Suppose on the contrary, f (−1) = 0
+ f (x)2 − f (x − 2)2 = 4f (x + 1) + 4f (x − 1)
So f (b + y + 1) + f (b − y + 1) = 0. Similarly, we have
f (−b + y + 1) + f (−b − y + 1) = 0
and one can see that f is periodic. However, f can’t be eventually periodic (why) On the
other hand, consider f is not periodic and f (−b) = −2, then
f (b − 1) = −1, f (2b − 2) = 2
Then,
P (x, b − 1) , P (x, 1 − b) → f (x + b − 1)2 = f (x − 1 + b)2
P (x, 2b − 2) → f x2 + (2b − 2)2 = f x2
which is again a contradiction. From this result, we have
f (x + 1) − f (x − 1) = 2
In other words, f (2x) = 2f (x) + 1 whenever x ≥ 0. But we have a relation between f (x)
and f (−x), namely f (x) + f (−x) = −2. We get f (2x) = 2f (x) + 1. Finally
f (x + y) + f (x − y) = 2f (x) ⇔ (f (x + y) + 1) + (f (x − y) + 1) = (f (2x) + 1)
As the result, the function g = f + 1 satisfies the condition of theorem 1 (why) and it follows
Next, let’s consider the case that f (1) = −1: We still want to know f (2) , f (−2),
P (x, 2) → f x2 = f x2 + 4
From
P (x, y) , P (x, −y) → f (x + y)2 − f (x − y)2 = 2f (x) (f (y) − f (−y))
Given any y > 0, choose a sufficient large x with f (x) = −1 (how) then we get
f (−y − 4) = f (−y)
Clearly, if f (0) = 0, then f ≡ 0. So we consider the case that f (0) 6= 0. To get a simple
expression, we solve the equation
x
x + y = xy ⇔ x 6= 1 and y =
x−1
Then
x x
P x, →f f (x) f = 0, ∀x 6= 0
x−1 x−1
In particular, f (x) 6= 0 whenever x 6= 1
It follows that f (1) = 0 and f (0) = ±1. Assume f (0) = −1
P (x, 1) → f (x + 1) = f (x) + 1
Apply ”Taiwanese Transformation”: g = f + 1, the condition becomes
g (g (x) g (y) − g (x) − g (y)) + g (x + y) = g (xy)
Since g (x + 1) = g (x) + 1,
Q (x, y) : g (g (x) g (y)) + g (x + y) = g (xy + x + y)
To avoid complicate calculation, substitute 1, −1 for y:
g (g (x)) + g (x + 1) = g (2x + 1) → g (g (x)) + g (x) = g (2x)
g (−g (x)) + g (x − 1) = g (−1) → g (−g (x)) = −g (x)
Combine those results, we have g (−2g (x)) = −2g (x) and thus,
Q (x, −2) → g (−2g (x)) + g (x − 2) = g (−x − 2) → g is odd
Consequently, g (g (x)) = g (x) and g (nx) = ng (x) , ∀n ∈ N by easy induction. Note that
Q (nx, ny) → ng (g (x) g (y)) + g (x + y) = g (nxy + x + y)
Now, consider any two reals a < b, we hope to find m and x, y such that
x + y = a
x + y + mxy = a+b2
x + y + 2mxy = b
That is,
b−a
x + y = a, xy =
2m
We just need show the discriminant is non-negative. The discriminant is
4 (b − a)
a2 − >0
2m
Take m be a sufficient large integer, we get the desired result and so g is Cauchy! From
Q (x, y), we have
g (g (x) g (y)) = g (xy)
Finally, assume g (α) = g (β), then g (α − β) = 0 → α − β = 0 (notice that g is injective at
the point 0) and g (x) = x. In other words,
f (x) = x − 1, ∀x ∈ R
The case that f (0) = 1 can be solved in a similar way and get another solution:
f (x) = 1 − x, ∀x ∈ R