Olympiad Maths Prep

Track / Stage 9 / 23 of 80 #1903 of 2000

Problem 1903

IMO P2/P5; hard shortlist
Algebra Difficulty 9.1 Prove it 2022 China Team Selection Test · China · 2022

Find all functions f:RRf: \mathbb{R} \to \mathbb{R} such that, for any real numbers x,yx, y, the following two multisets are equal
{f(xf(y)+1),f(yf(x)1)}={xf(f(y))1,yf(f(x))+1}. \{f(xf(y) + 1), f(yf(x) - 1)\} = \{xf(f(y)) - 1, yf(f(x)) + 1\}.

*Remark: {a,b}={c,d}\{a, b\} = \{c, d\} are equal as multisets if a=ca = c and b=db = d, or a=da = d and b=cb = c.*

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Solution: All functions satisfying (*) are f(x)=xf(x) = x and f(x)=xf(x) = -x. It is easy to verify that these two functions satisfy (*).
In what follows, all sets are multisets. Take x=y=0x = y = 0 in (*) gives {f(1),f(1)}={1,1}\{f(1), f(-1)\} = \{1, -1\}. First consider the case when f(1)=1f(1) = 1. We want to show that f(x)=xf(x) = x for any xRx \in \mathbb{R}.
*Step 1:* Prove that f(n)=nf(n) = n for nZn \in \mathbb{Z}.
We first show that f(0)=0f(0) = 0. Take x=0x = 0 in (*), we have {f(1),f(yf(0)1)}={1,yf(f(0))+1}\{f(1), f(yf(0) - 1)\} = \{-1, yf(f(0)) + 1\}. If f(0)0f(0) \neq 0, take y=2f(0)y = \frac{2}{f(0)}; then the LHS is {1,1}\{1, 1\}, which cannot contain the 1-1 on the RHS. So f(0)=0f(0) = 0.
Next, we prove inductively f(n)=nf(n) = n for nNn \in \mathbb{N}. The case n=1n = 1 is known. Assume that f(m)=mf(m) = m holds for mnm \le n. Take x=1x = 1 and y=ny = n in (*), we deduce
{f(n+1),f(n1)}={n1,n+1} \{f(n + 1), f(n - 1)\} = \{n - 1, n + 1\}
From this, we deduce that f(n+1)=n+1f(n + 1) = n + 1, completing the inductive proof. Using a similar argument but taking x=1x = 1 and y=ny = -n proves that f(n)=nf(-n) = -n for nNn \in \mathbb{N}. This completes Step 1.
*Step 2:* Prove that ff is a bijection.
ff is surjective because when setting y=1y = 1 in (*), the RHS contains xf(f(1))1=x1xf(f(1)) - 1 = x - 1, which can take an arbitrary real number. By the form of its LHS, all real numbers are in the image of ff.
Next, we prove f(y0)=0f(y_0) = 0 implies y0=0y_0 = 0. Suppose not, namely y00y_0 \neq 0. Then taking y=y0y = y_0 in (*) gives
{f(1),f(y0f(x)1)}={1,y0f(f(x))+1}. \{f(1), f(y_0f(x) - 1)\} = \{-1, y_0f(f(x)) + 1\}.
We must have 1=f(1)=y0f(f(x))+11 = f(1) = y_0f(f(x)) + 1. So f(f(x))=0f(f(x)) = 0 holds for all xx. This contradicts with f(1)=1f(1) = 1.
We next prove the injectivity of ff. If y1y2y_1 \neq y_2 satisfy f(y1)=f(y2)0f(y_1) = f(y_2) \neq 0. Taking respectively y=y1y = y_1 and y=y2y = y_2 in (*) gives
{f(xf(y1)+1),f(y1f(x)1)}={xf(f(y1))1,y1f(f(x))+1}, \{f(xf(y_1) + 1), f(y_1f(x) - 1)\} = \{xf(f(y_1)) - 1, y_1f(f(x)) + 1\},
{f(xf(y2)+1),f(y2f(x)1)}={xf(f(y2))1,y2f(f(x))+1}. \{f(xf(y_2) + 1), f(y_2f(x) - 1)\} = \{xf(f(y_2)) - 1, y_2f(f(x)) + 1\}.

Note that the first elements on both sides of the two equations are the same, respectively.
If some x0Rx_0 \in \mathbb{R} satisfies f(x0f(y1)+1)x0f(f(y1))1f(x_0f(y_1) + 1) \neq x_0f(f(y_1)) - 1, then
y1f(f(x0))+1=f(xf(y1)+1)=f(xf(y2)+1)=y2f(f(x0))+1 y_1f(f(x_0)) + 1 = f(xf(y_1) + 1) = f(xf(y_2) + 1) = y_2f(f(x_0)) + 1
From this, we get y1f(f(x0))=y2f(f(x0))y_1f(f(x_0)) = y_2f(f(x_0)), thus f(f(x0))=0f(f(x_0)) = 0, which implies x0=0x_0 = 0.
So if x0x \neq 0, then f(xf(y1)+1)=xf(f(y1))1f(xf(y_1) + 1) = xf(f(y_1)) - 1. From this, we deduce that f(x)=ax+bf(x) = ax + b for some a,bRa, b \in \mathbb{R} and any x1x \neq 1 is a linear function. But f(n)=nf(n) = n for nZn \in \mathbb{Z} implies that a=1a = 1 and b=0b = 0. So f(x)=xf(x) = x is injective.
Step 3: Prove that for any nZn \in \mathbb{Z} and yRy \in \mathbb{R}, we have
f(f(nf(y)))=ny(1) f\left(f\left(\frac{n}{f(y)}\right)\right) = \frac{n}{y} \qquad (1)
It is enough to consider the case when n0n \neq 0 and y0y \neq 0. Taking x=nf(y)x = \frac{n}{f(y)} in ()(*) gives
{n+1,f(yf(nf(y))1)}={nf(f(y))f(y)1,yf(f(nf(y)))+1}.(2) \left\{n + 1, f\left(yf\left(\frac{n}{f(y)}\right) - 1\right)\right\} = \left\{n\frac{f(f(y))}{f(y)} - 1, yf\left(f\left(\frac{n}{f(y)}\right)\right) + 1\right\}. \quad (2)
Similarly, substituting yy for xx and nf(y)\frac{n}{f(y)} for yy in ()(*) gives
{n1,f(yf(nf(y))+1)}={nf(f(y))f(y)+1,yf(f(nf(y)))1}.(3) \left\{n - 1, f\left(yf\left(\frac{n}{f(y)}\right) + 1\right)\right\} = \left\{n\frac{f(f(y))}{f(y)} + 1, yf\left(f\left(\frac{n}{f(y)}\right)\right) - 1\right\}. \quad (3)
If there exists some y0R{0}y_0 \in \mathbb{R} \setminus \{0\} such that ny0f(f(nf(y0)))n \neq y_0f\left(f\left(\frac{n}{f(y_0)}\right)\right), then combining (2) and (3) gives
n+1=nf(f(y0))f(y0)1,n1=nf(f(y0))f(y0)+1. n + 1 = n \frac{f(f(y_0))}{f(y_0)} - 1, \quad n - 1 = n \frac{f(f(y_0))}{f(y_0)} + 1.
Taking the differences of the two equations gives 2=22 = -2, which is a contradiction.
Step 4: For αQ\alpha \in \mathbb{Q} and yRy \in \mathbb{R}, prove that f(αy)=αf(y)f(\alpha y) = \alpha f(y).
We may assume that α0\alpha \neq 0 and y0y \neq 0. Substituting f(mf(y))f\left(\frac{m}{f(y)}\right) with mZ{0}m \in \mathbb{Z} \setminus \{0\} for yy in (1) gives
f(f(nf(f(mf(y)))))=nf(mf(y)). f\left(f\left(\frac{n}{f\left(f\left(\frac{m}{f(y)}\right)\right)}\right)\right) = \frac{n}{f\left(\frac{m}{f(y)}\right)}.
Plugging (1) into the denominator of the LHS gives
f(f(nmy))=nf(mf(y)). f\left(f\left(\frac{n}{m}y\right)\right) = \frac{n}{f\left(\frac{m}{f(y)}\right)}.
In the above equality, substituting tf(y)\frac{t}{f(y)} with tZ{0}t \in \mathbb{Z} \setminus \{0\} for yy gives
nt/my=f(f(nmtf(y)))=nf(mf(tf(y))). \frac{nt/m}{y} = f\left(f\left(\frac{n}{m}\frac{t}{f(y)}\right)\right) = \frac{n}{f\left(\frac{m}{f\left(\frac{t}{f(y)}\right)}\right)}.

This is equivalent to f(mf(tf(y)))=mtyf(\frac{m}{f(\frac{t}{f(y)})}) = \frac{m}{t}y. Taking ff on both sides gives
mtf(y)=f(f(mf(tf(y))))=f(mty). \frac{m}{t} f(y) = f\left(f\left(\frac{m}{f(\frac{t}{f(y)})}\right)\right) = f\left(\frac{m}{t}y\right).
This completes Step 4.
Step 5: Prove that f(y+a)=f(y)+af(y+a) = f(y) + a for all yRy \in \mathbb{R} and aQa \in \mathbb{Q}.
Taking x=1rQ{0}x = \frac{1}{r} \in \mathbb{Q} \setminus \{0\} in (*) gives
{f(1rf(y)+1),f(1ry1)}={1rf(f(y))1,1ry+1}. \{f(\frac{1}{r}f(y) + 1), f(\frac{1}{r}y - 1)\} = \{\frac{1}{r}f(f(y)) - 1, \frac{1}{r}y + 1\}.
Using Step 4 and multiplying both sides by rr gives
{f(f(y)+r),f(yr)}={f(f(y))r,y+r}.(4) \{f(f(y) + r), f(y - r)\} = \{f(f(y)) - r, y + r\}. \quad (4)
We want to prove that f(yr)=f(f(y))rf(y-r) = f(f(y)) - r. Suppose that there exist some y0Ry_0 \in \mathbb{R} and r0R{0}r_0 \in \mathbb{R} \setminus \{0\} such that f(y0r0)=y0+r0f(y_0 - r_0) = y_0 + r_0. Taking y=y0r0y = y_0 - r_0 and r=2r0r = -2r_0 in (4) gives
{f(f(y0r0)2r0),f(y0r0+2r0)}={f(f(y0r0))+2r0,y03r0}. \{f(f(y_0 - r_0) - 2r_0), f(y_0 - r_0 + 2r_0)\} = \{f(f(y_0 - r_0)) + 2r_0, y_0 - 3r_0\}.
This is the same as
{y0+r0,f(y0+r0)}={f(y0+r0)+2r0,y03r0}. \{y_0 + r_0, f(y_0 + r_0)\} = \{f(y_0 + r_0) + 2r_0, y_0 - 3r_0\}.
Since y0+r0y03r0y_0 + r_0 \neq y_0 - 3r_0, we must have y0+r0=f(y0+r0)+2r0y_0 + r_0 = f(y_0 + r_0) + 2r_0, i.e. f(y0+r0)=y0r0f(y_0 + r_0) = y_0 - r_0. But then the two sides of the equality becomes {y0+r0,y0r0}={y0+r0,y03r0}\{y_0 + r_0, y_0 - r_0\} = \{y_0 + r_0, y_0 - 3r_0\}. They are obviously not equal, giving a contradiction.
So f(yr)=f(f(y))rf(y - r) = f(f(y)) - r must hold for all yRy \in \mathbb{R} and rQ{0}r \in \mathbb{Q} \setminus \{0\}. Taking two different values of rr and taking the difference gives f(y+a)=f(y)+af(y + a) = f(y) + a for all yRy \in \mathbb{R} and aQa \in \mathbb{Q}.
Step 6: Prove that f(y)=yf(y) = y for yRy \in \mathbb{R}.
Combining Step 5 and (4) gives
{f(f(y))+r,f(y)r}={f(f(y))r,y+r}. \{f(f(y)) + r, f(y) - r\} = \{f(f(y)) - r, y + r\}.
Taking the sum of the two elements on both sides of the equality, we deduce that f(f(y))+f(y)=f(f(y))+yf(f(y)) + f(y) = f(f(y)) + y, i.e. f(y)=yf(y) = y.
Now we consider the case when f(1)=1f(1) = -1. We aim to prove that f(x)=xf(x) = -x (xRx \in \mathbb{R}).
Step 1: Prove that f(n)=nf(n) = -n (nZn \in \mathbb{Z}).

Taking y=1y = 1 and respectively x=1,1x = 1, -1 in (*) gives
{f(0),f(2)}={0,2},{f(2),f(0)}={2,0}. \{f(0), f(-2)\} = \{0, 2\}, \quad \{f(2), f(0)\} = \{-2, 0\}.
From this, we deduce that f(0)=0f(0) = 0, f(2)=2f(2) = -2, f(2)=2f(-2) = 2.
Next, we inductively prove that f(n)=nf(n) = -n. When n=1,2|n| = 1, 2, this is already proved. Suppose that we have proved this when nn0|n| \le n_0 (n02n_0 \ge 2). Taking y=1y = 1 and x=n0,n0x = n_0, -n_0 in (*) gives
{f(n0+1),f(f(n0)1)}={n01,f(f(n0))+1},{f(n0+1),f(f(n0)1)}={n01,f(f(n0))+1} \begin{aligned} \{f(-n_0 + 1), f(f(n_0) - 1)\} &= \{n_0 - 1, f(f(n_0)) + 1\}, \\ \{f(n_0 + 1), f(f(-n_0) - 1)\} &= \{-n_0 - 1, f(f(-n_0)) + 1\} \end{aligned}
We deduce from this that f(n0+1)=n01f(n_0 + 1) = -n_0 - 1 and f(n01)=n0+1f(-n_0 - 1) = n_0 + 1. This completes the induction in Step 1.
Step 2: Prove that f(x)=xf(x) = -x holds for all xRx \in \mathbb{R}.
First, as in the f(1)=1f(1) = 1 case, we can prove that ff is surjective.
For a nonzero integer nn and zR{0}z \in \mathbb{R}\{0\}, taking x=nf(z)x = \frac{n}{f(z)}, y=zy = z, and taking x=zx = z, y=nf(z)y = \frac{n}{f(z)} in (*), we obtain
{n1,f(zf(nf(z))1)}={nf(f(z))f(z)1,zf(f(nf(z)))+1},(5){n+1,f(zf(nf(z))+1)}={nf(f(z))f(z)+1,zf(f(nf(z)))1}. \begin{aligned} \{-n-1, f\left(zf\left(\frac{n}{f(z)}\right) - 1\right)\} &= \{n\frac{f(f(z))}{f(z)} - 1, zf\left(f\left(\frac{n}{f(z)}\right)\right) + 1\}, & (5) \\ \{-n+1, f\left(zf\left(\frac{n}{f(z)}\right) + 1\right)\} &= \{n\frac{f(f(z))}{f(z)} + 1, zf\left(f\left(\frac{n}{f(z)}\right)\right) - 1\}. \end{aligned}
If for some z=z0R{0}z = z_0 \in \mathbb{R}\{0\} we have f(f(z0))f(z0)f(f(z_0)) \ne f(z_0), then by (5), we deduce that
n1=zf(f(nf(z)))+1,n+1=zf(f(nf(z)))1. -n-1 = zf\left(f\left(\frac{n}{f(z)}\right)\right) + 1, \quad -n+1 = zf\left(f\left(\frac{n}{f(z)}\right)\right) - 1.
Taking the difference of the two equalities gives 2=22 = -2. This is a contradiction!
So f(f(z0))=f(z0)f(f(z_0)) = -f(z_0). But ff is surjective. So f(x)=xf(x) = -x holds for all xR{0}x \in \mathbb{R}\{0\}. Moreover, f(0)=0f(0) = 0 is known. This completes the proof of f(x)=xf(x) = -x when f(1)=1f(1) = -1.
Combining the above two cases, the needed functions are f(x)=xf(x) = x (xRx \in \mathbb{R}) and f(x)=xf(x) = -x (xRx \in \mathbb{R}).

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.