Overview

Functional Equation, often abbreviated as FE, is a famous topic in math olympiads nowadays. This page is for those who have no experience with FEs.

resource: https://web.evanchen.cc/handouts/FuncEq-Intro/FuncEq-Intro.pdf

What is functional equation?

Let us define what a function means.

For sets XX and YY, A function is an assignment of a value in YY for each xXx\in X; We write it as f(x)Yf(x)\in Y

Almost 90% of the FEs in olympiad goes as follows:

Let XX, YY be sets. Find all functions f ⁣:XYf\colon X\rightarrow Y such that (some equation)

Here XX and YY can be anything, but most of the time it's Z>0\mathbb{Z_{>0}}, Z\mathbb{Z}, or R\mathbb{R}.

common mistake

Beginners in FE are often surprised how vast this definition is. Note that ff can be anything as long as it's from AA to BB. Yes, anything. We introduce few common pitfalls about the definition of functions:

  • ff does not need to be a polynomial.
  • ff does not need to be differentiable.
  • ff does not need to be continuous.

So think ff as an arrow rather than a manipulation. And indeed there's some problem that have a ``strange'' solution which seems like it came out of nowhere. Let us show some examples: some (real olympiad!) problem have solutions with

f(x)={whatever odd if x=11x>1 odd2x>1 even,f(x)= \begin{cases} \text{whatever odd} \qquad \text{ if $x=1$} \\ 1 \qquad \text{$x>1$ odd} \\ 2 \qquad \text{$x>1$ even} \end{cases},
f(n)={n+1n evenn+5n1(mod4)n3n3(mod4).,f(n) = \begin{cases} n+1 & n \text{ even} \\ n+5 & n \equiv 1 \pmod 4 \\ n-3 & n \equiv 3 \pmod 4. \end{cases},
f(x)={+1xS1xSf(x) = \begin{cases} +1 & x\notin S \\ -1 & x\in S \end{cases}

where SS is any subset of (,23)(-\infty, -\frac 23).

These are often called as ``monster FE'', and we'll cover this in another module.

Still in other words, ff is just an assignment. Some examples are:

  • Once you get f(x)=±xf(x)=\pm x for all xXx\in X, it is possible that a sign changes depending on the value of xx. It might be x|x|, or even the third one in the monster example!
  • You get f(x)=xf(x)=x for all x>1x>1, but somehow feel stuck from there. It might suddenly be f(1)=0f(1)=0 works?

injectivity and surjectivity

Let us introduce new words: In what follows, let f ⁣:XYf\colon X\rightarrow Y be a function.

  • A function ff is called injective if f(a)=f(b)    a=bf(a)=f(b)\implies a=b for all a,bXa, b\in X. In other words, ff is one-to-one.
  • A function ff is called surjective if for all yYy\in Y there exist xXx\in X such that f(x)=yf(x)=y. Thus, f(x)f(x) passes through every element of YY as xx moves.
  • A function is called bijective if it's both injective and surjective.

To understand this more clearly, consider for an integer mm that X={1,2,,m}X=\{1, 2, \dots, m\} and Y={1,2,3,4,5}Y=\{1, 2, 3, 4, 5\} for example.

  1. Show that if ff is injective then m5m\le 5 and for m=4m=4 give a monster (i.e. random) example of injective ff.
  2. Show that if ff is surjective then m5m\ge 5 and similarly give a monster example of surjective ff.
  3. Conclude that if ff is bijective then m=5m=5, thus we must have X=Y|X|=|Y|! (However note that this is not true for infinity sets XX and YY where X|X| and Y|Y| are not finite.)

More description about injectivity and surjectivity:

  • If ff is injective, it means we can take away ff covered from both sides, e.g. f(f(x)+1)=f(f(x+1)1)    f(x)+1=f(x+1)1f(f(x)+1)=f(f(x+1)-1)\implies f(x)+1=f(x+1)-1.
  • If ff is surjective, it is useful to assume that f(u)=0f(u)=0 (or 11 or whatever) for some uu. Sometimes it cancels out a lot of things inserting uu.

Example

TODO

Practice Problems

StatusSourceProblem NameDifficultyTags

Module Progress:

Join the AoPS Community!

Stuck on a problem, or don't understand a module? Join the AoPS community and get help from other math contest students.