Involution-like functional equation $f(f(x))=ax+b$

129 Views Asked by At

Consider the following functional equation: $$f(f(x))=ax+b$$ where $f$ is defined on the whole $\mathbb{R}$.

Questions:

  1. If $b \neq 0$, what are the solutions?
  2. If $a=1, b =0$ (ie. $f$ is an involution on $\mathbb{R}$), although $f(x)=\frac{1}{kx} (\text{where } k>0)$ is a solution on the domain $\mathbb{R}_{>0}$, I wonder if we insist $f$ must be well-defined on the whole $\mathbb{R}$, would the only possible solutions left be linear functions of form $g(x)=cx+d$.