Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Is there any function $f$ which would satisfy $f(x)=f(x+1)$ and $f(-1/x)=f(x)$ for every $x$ or at least positive $x$? For the widest possible domains of $x$?

If I could turn this functional equation into differential equations, I could use some approximate analytic method to get the solution.

Thanks in advance.

In a more general case, is the a function $g$ so $ f \left( \frac{ax+b}{cx+d} \right) = g(x)$?

For real $a$, $b$, $c$ and $d$?

share|cite|improve this question
I think you want to ask: "Find all the function satisfy..." instead of asking "is there any function which satisfy..." since there are many functions satisfying the functional equation you stated, e.g. constant functions. – Paul Dec 16 '11 at 23:22
@Jose Garcia: You would want to impose additional conditions on $f$ relevant to your needs. For example, continuity everywhere is too strong, for then only the constant functions work. – André Nicolas Dec 17 '11 at 0:12
What you are asking for is a modular form of weight $0$. You may want to look here ( for more details. – user17762 Jun 26 '12 at 21:18

5 Answers 5

up vote -13 down vote accepted

The general solution of $f(x)=f(x+1)$, according to, should be $f(x)=\Theta(x)$, where $\Theta(x)$ is an arbitrary periodic function with unit period.

The general solution of $f(-\frac{1}{x})=f(x)$, according to, should be $f(x)=\Phi(x,-\frac{1}{x})$, where $\Phi(x,-\frac{1}{x})$ is any symmetric function of $x$ and $-\frac{1}{x}$.

So the function $f(x)$ that satisfly $f(x)=f(x+1)$ and $f(-\frac{1}{x})=f(x)$ is the intersection of the above two general solutions.

share|cite|improve this answer
Is it really interesting ? – Lierre Jun 24 '12 at 9:09
(-1) "The general solution of $f(−1/x)=f(x)$, according to [...], should be $f(x)=\Phi(x,−1/x)$, where $\Phi(x)$ is any symmetric function of $x$ and $−1/x$." -- This is as empty as a statement can be. – TMM Jun 26 '12 at 21:27
I am not sure why this was accepted by the OP. While the answer is correct, it is vacuous. – Eric Naslund Jul 1 '12 at 20:36
Captain obvious nervously smoking in aside – Norbert Jul 4 '12 at 0:32

A very simple solution to these functional equations is any constant function of the form $f(x)=c$ for some constant $c$. Let f(x)=3. Then $f(x+1)=f(x)=f(-1/x)=3$.

share|cite|improve this answer
May I ask why this was downvoted? If this answer does not respond to the question appropriately, I will remove it. – analysisj Dec 16 '11 at 23:42
Your answer is correct, I can not understand why anyone would have downvoted it. – Arjang Dec 16 '11 at 23:59

I'm not sure if this is of interest, but if, instead of real $x$, you consider $z$ in the complex upper half plane, then the two linear fractional transformations $$ z\to z+1,\quad z\to -1/z $$ generate the modular group. I.e., writing the linear fractional transformations as matrices, they generate $\text{PSL}_2(\mathbb Z)$. The classical $j$ invariant is an example of a function invariant under the modular group

share|cite|improve this answer
This neat property of the Klein invariant also makes for a good numerical algorithm for evaluating it... – J. M. Dec 17 '11 at 5:52


You have



$$f(x)=f\left(\frac{-1}{x}\right)=f\left(\frac{-1}{x}+1\right)=\dots =f\left(\frac{-1}{\frac{-1}{\frac{-1}{x}+1}+1}\right)=f(x-1),$$

and so you can even explicitly shift to the left. One can actually construct any continued fraction and so you see that the function takes the same value on all rational values (even for only a finite number of operations for each number).

Due to $f(x)=f(x\pm 1)$ you have a grid with gap distance $1$ at the right of any starting value. There the function always take the same value, i.e. $f(n)=f(0)$ for all integers. Now consider $n=-2$, then $f(1/2)=f(-2)=f(0-2)=f(0),$ and consequently also $f(1/2+n)=f(0)$. So the grid really only has distance $1/2$. We can go on and collect more point with that value. Look at numbers with bigger absolute values, like $-3:\ f(1/3)=f(-3)=f(0)$. Obviously $f(1/n)=f(0)$ for any $n$. And so in general we have $f(1/n+m)=f(0)$ for all integers $n$ and $m$. Therefore also $f(1/(1/n+m))=f(0)$, and so $f(1/(1/n+m)+k)=f(0)$ and so on.

Sidenote: The first condition is obviously periodicity. And regarding the other condition, notice that whenever you have an operation $g$ with $g(g(x))=x$, like it is the case for $g(x)=-\frac{1}{x}$ or in fact all real functions that can be mirrored w.r.t. the $45°$ axis, then for any function $f$, the function $$\hat{f}(x):=f(x)+f(g(x))$$ fulfills $$\hat{f}(g(x))=f(g(x))+f(g(g(x)))=f(g(x))+f(x)=\hat{f}(x)$$

Actually, via the identity


all functions have a part which fullfills the relation, except the ones which fulfill the anti-relation $f(g(x))=-f(x)$ for which that part is zero.

share|cite|improve this answer
(+1) I like the first part of your answer. – TMM Jun 26 '12 at 21:30

As stopple noted, the transformations $z \to z+1$ and $z \to -1/z$ generate the modular group. For any two rationals $r$ and $s$ there is a transformation in this group that takes $r$ to $s$, and thus $f(r) = f(s)$. In particular, if $f$ is continuous that says $f$ is constant.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.