We are given a functional equation over the rational numbers:
Find all functions f:Q→Q such that
f(1)=2, and
f(xy)=f(x)f(y)−f(x+y)+1 for all x,y∈Q.
We are to find all such functions.
Step 1: Understand the functional equation
We have:
f(xy)=f(x)f(y)−f(x+y)
and f(1)=2.
This is a functional equation involving both multiplication and addition in the arguments, so it's a mix of multiplicative and additive behavior. We need to find all rational-to-rational functions satisfying this.
Step 2: Try small values — plug in x=0
Let’s try x=0. Plug into (1):
f(0⋅y)=f(0)f(y)−f(
Simplify:
f(0)=f(y)(f(0)−1)+1(2)
This must hold for all y∈Q. The right-hand side depends on y unless f(0)−1=0, because otherwise varies with , while the left-hand side is constant.
So, for this to be true for all y, we consider two cases:
Case 1: f(0)−1=0
Then f(y) must be constant, because equation (2) expresses f(y) linearly in terms of constants.
But from (2):
f(0)=f(y)(f(0)−1)+1⇒
Wait — solving for f(y):
f(y)(f(0)−1)=f(0)−1⇒f(y)=
So f is constant: f(y)=1 for all y.
But we are given f(1)=2, contradiction.
Hence, this case is impossible.
Case 2: f(0)−1=0⇒f(0)=1
Then equation (2) becomes:
f(0)=0⋅f(y)+1⇒1=1
which is true.
✅ So we conclude:
f(0)=1
Step 3: Try y=1
We know f(1)=2. Let’s plug y=1 into the original equation:
f(x⋅1)=f(x)f(1)−f(x
Simplify:
f(x)=2f(x)−f(x+
This is a huge simplification!
This recurrence tells us that f increases by 1 when the argument increases by 1. So f is linear on integers, at least.
Step 4: Use the recurrence f(x+1)=f(x)+1
We know f(0)=1, so:
- f(1)=f(0)+1=2 ✅ matches given
- f(2)=f
Now go backwards:
- f(0)=f(−1+1)=f(−1)+1⇒
So for all integers n, f(n)=n+1
✅ So on Z, f(n)=n+1
Step 5: Try to extend to rationals
Let’s suppose f(x)=x+1 for all x∈Q. Let’s test whether this satisfies the original equation.
Let f(x)=x+1. Then:
Left-hand side: f(xy)=xy+1
Right-hand side:
f(x)f(y)−f(x+y)+1=(
Compute:
(x+1)(y+1)=xy+x+y+1
Then:
xy+x+y+1−(x+y+
Which equals LHS.
✅ So f(x)=x+1 satisfies the functional equation.
Also, f(1)=1+1=2 ✅
So this is a solution.
Now, is it the only solution?
We need to prove uniqueness.
Step 6: Use the recurrence to find f on rationals
We have f(x+1)=f(x)+1. This implies that f(x+n) for any integer .
Now, let’s try to compute f at rational values.
Let x=qp∈Q, with p,q.
We want to determine f(qp).
Let’s first try x=y=0 in original equation:
f(0⋅0)=f(0)f(0)−f(0+
We know f(0)=1, so check:
1=12−1+1=1−1+1=
Now try x=2,y=21, but we don’t know f(1/2 yet.
Let’s try to find f at x=n1.
Let’s suppose x=y=1. Then:
f(1⋅1)=f(1)f(1)−f(1
Good.
Try x=2,y=2:
f(4)=f(2)f(2)−f(4)+1? Wait, no:
Wait: f(xy)=f(x)f(y)−f(x+y)+1
So f(4)=f(2)f(2)−f(4)+1? No:
x=2,y=2: f(4)=f(2)f(2)−
Wait, that would give:
f(4)=3⋅3−f(4)+1=
But from earlier, f(4)=4+1=5 ✅
Consistent.
Now let’s try to compute f at 21
Let x=y=21
Then:
f
We don’t know either value yet.
But we know f(1/2+1)=f(1/2)+1, from the recurrence f(x+
So f is determined on Z+r once we know f(r)
Let’s try to use x=2,y=21
Then:
f(2⋅21
We know f(1)=2, and f(5/2)=f(1/2+2)=, because , so adding 1 twice.
So:
2=3f(2
Then:
2=2f(21)−
Now, if f(x)=x+1, then f(1/2)=1/2+1= ✅ matches.
Now compute f(1/4) using earlier equation (4):
f(1/4)=(3/2)2−1=9/4−1=5/4
And f(1/4)=1/4+1=5/4 ✅ again matches.
Try another: let x=3,y=1/3
Then f(3⋅1/3)=f(1)=2
RHS: f(3)f(1/3)−f(3+1/3)+1=4⋅
But f(10/3)=f(1/3+3)=f(1/3)+3
So:
2=4f(1/3)−
And 1/3+1=4/3 ✅
So it seems that f(r)=r+1 for all tested rationals.
Let’s now prove that f(x)=x+1 is the only solution.
Step 7: Prove that f(x)=x+1 for all x∈Q
We already know:
- f(n)=n+1 for all n∈Z
- f(x for all
Let x∈Q. Write x=qp, ,
We want to show f(p/q)=p/q+1
Let a=f(1/q). Then since f(x+1)=f(x)+1, we have:
f(qk)=f(
Wait, more carefully:
f(x+1)=f(x)+1⇒f(x+n)= for integer
So f(qk)=f(? No:
Actually, f(qk)=f( — not helpful.
Better: define a=f(1/q). Then:
f\left(\frac{2}{q}\right) = f\left(\frac{1}{q} + 1\right) ??? No, $ \frac{2}{q} = \frac{1}{q} + \frac{1}{q} $, not $ +1 $
But we can use the recurrence: $ f(x + 1) = f(x) + 1 $, so adding 1 increases $ f $ by 1.
But to get from $ 1/q $ to $ 2/q $, we add $ 1/q $, not 1.
So we need another idea.
Let’s use the functional equation with $ x = y = 1/q $
Then:
f\left(\frac{1}{q^2}\right) = f\left(\frac{1}{q}\right)^2 - f\left(\frac{2}{q}\right) + 1
\tag{5}
Not immediately helpful.
But here’s a better idea: use $ x = q, y = \frac{1}{q} $
Then:
f\left(q \cdot \frac{1}{q}\right) = f(q) f\left(\frac{1}{q}\right) - f\left(q + \frac{1}{q}\right) + 1
\Rightarrow f(1) = f(q) f\left(\frac{1}{q}\right) - f\left(q + \frac{1}{q}\right) + 1
We know:
- $ f(1) = 2 $
- $ f(q) = q + 1 $ (since $ q \in \mathbb{Z} $)
- $ f\left(q + \frac{1}{q}\right) = f\left(\frac{1}{q}\right) + q $ because $ f(x + n) = f(x) + n $ for integer $ n $
So:
2 = (q+1) f\left(\frac{1}{q}\right) - \left(f\left(\frac{1}{q}\right) + q\right) + 1
= (q+1)a - (a + q) + 1 \quad \text{where } a = f(1/q)
Simplify:
2 = (q+1)a - a - q + 1 = q a - q + 1
\Rightarrow q a = 2 + q - 1 = q + 1
\Rightarrow a = \frac{q + 1}{q} = 1 + \frac{1}{q}
So:
f\left(\frac{1}{q}\right) = 1 + \frac{1}{q}
Now, for any integer $ p $, we have:
f\left(\frac{p}{q}\right) = f\left(\frac{1}{q} + \frac{1}{q} + \cdots + \frac{1}{q}\right) \quad \text{(p times)?} \quad \text{No — unless } p > 0
Butwecanuse:
f\left(\frac{p}{q}\right) = f\left(\frac{1}{q} + (p-1)\cdot\frac{1}{q}\right)
Still not helpful directly.
But note: $ f(x + 1) = f(x) + 1 $, so $ f $ is determined by its value on $ [0,1) \cap \mathbb{Q} $, but more importantly:
Since $ f\left(\frac{1}{q}\right) = 1 + \frac{1}{q} $, then for any integer $ p $:
f\left(\frac{p}{q}\right) = f\left(\frac{1}{q} + (p-1)\cdot\frac{1}{q}\right)
Wait—no,wecan’taddfunctionvalues.Bu
f\left(\frac{p}{q}\right) = f\left(\frac{1}{q} + (p-1)\cdot\frac{1}{q}\right)
But we don’t have additivity.
However, we **do** know that $ f(x + n) = f(x) + n $ for integer $ n $
So, for any rational $ r $, $ f(r + n) = f(r) + n $
Now, write $ \frac{p}{q} = \frac{1}{q} + \frac{p-1}{q} $ — not helpful.
But observe:
We have $ f(1/q) = 1 + 1/q $
Now, $ f(2/q) = f(1/q + 1/q) $ — can’t split.
But let’s use the recurrence: $ f(x+1) = f(x)+1 $, so:
$ f(p/q) = f(p/q - n + n) = f(p/q - n) + n $
But better: since $ f(k) = k + 1 $, and we can use the same trick as before.
Let’s do it generally.
Let $ x = p, y = \frac{1}{q} $, with $ p \in \mathbb{Z} $
Then:
f\left(p \cdot \frac{1}{q}\right) = f(p) f\left(\frac{1}{q}\right) - f\left(p + \frac{1}{q}\right) + 1
\Rightarrow f\left(\frac{p}{q}\right) = (p+1)\left(1 + \frac{1}{q}\right) - f\left(p + \frac{1}{q}\right) + 1
But $ f\left(p + \frac{1}{q}\right) = f\left(\frac{1}{q}\right) + p = \left(1 + \frac{1}{q}\right) + p $
So:
f\left(\frac{p}{q}\right) = (p+1)\left(1 + \frac{1}{q}\right) - \left(p + 1 + \frac{1}{q}\right) + 1
Compute:
First term: $ (p+1)(1 + 1/q) = (p+1) + \frac{p+1}{q} $
Then subtract: $ p + 1 + \frac{1}{q} $
So:
f\left(\frac{p}{q}\right) = \left[(p+1) + \frac{p+1}{q}\right] - \left[p + 1 + \frac{1}{q}\right] + 1
= \frac{p+1}{q} - \frac{1}{q} + 1 = \frac{p}{q} + 1
✅ So $ f\left(\frac{p}{q}\right) = \frac{p}{q} + 1 $
Therefore, for **all** $ x \in \mathbb{Q} $, $ f(x) = x + 1 $
---
### Step 8: Conclusion
We have shown:
- $ f(x) = x + 1 $ satisfies the functional equation and $ f(1) = 2 $
- Any function satisfying the equation must satisfy $ f(x+1) = f(x) + 1 $
- Using that and the functional equation, we derived $ f(p/q) = p/q + 1 $ for all rationals
- Therefore, **this is the only solution**
---
### ✅ Final Answer:
\boxed{f(x) = x + 1 \quad \text{for all } x \in \mathbb{Q}}