Maths Olympiad Prep

Library / /73 of 106

Algebra Difficulty 8.6 Shortlist Prove it IMO

Assume that a function f:RRf: \mathbb{R} \rightarrow \mathbb{R} satisfies the following condition:
For every x,yRx, y \in \mathbb{R} such that (f(x)+y)(f(y)+x)>0(f(x)+y)(f(y)+x)>0, we have f(x)+y=f(y)+xf(x)+y=f(y)+x.
Prove that f(x)+yf(y)+xf(x)+y \leqslant f(y)+x whenever x>yx>y.

Solutions — 2

Solution 1

Define g(x)=xf(x)g(x)=x-f(x). The condition on ff then rewrites as follows:
For every x,yRx, y \in \mathbb{R} such that ((x+y)g(x))((x+y)g(y))>0((x+y)-g(x))((x+y)-g(y))>0, we have g(x)=g(y)g(x)=g(y).
This condition may in turn be rewritten in the following form:
If g(x)g(y)g(x) \neq g(y), then the number x+yx+y lies (non-strictly) between g(x)g(x) and g(y)g(y).
Notice here that the function g1(x)=g(x)g_{1}(x)=-g(-x) also satisfies ()(*), since
g1(x)g1(y)g(x)g(y)(x+y) lies between g(x) and g(y)x+y lies between g1(x) and g1(y) \begin{gathered} g_{1}(x) \neq g_{1}(y) \Longrightarrow \quad g(-x) \neq g(-y) \quad \Longrightarrow \quad-(x+y) \text{ lies between } g(-x) \text{ and } g(-y) \\ \Longrightarrow \quad x+y \text{ lies between } g_{1}(x) \text{ and } g_{1}(y) \end{gathered}
On the other hand, the relation we need to prove reads now as
g(x)g(y) whenever x<y \begin{equation*} g(x) \leqslant g(y) \quad \text{ whenever } x<y \tag{1} \end{equation*}
Again, this condition is equivalent to the same one with gg replaced by g1g_{1}.
If g(x)=2xg(x)=2 x for all xRx \in \mathbb{R}, then (*) is obvious; so in what follows we consider the other case. We split the solution into a sequence of lemmas, strengthening one another. We always consider some value of xx with g(x)2xg(x) \neq 2 x and denote X=g(x)X=g(x).

Lemma 1. Assume that X<2xX<2 x. Then on the interval (Xx;x](X-x ; x] the function gg attains at most two values - namely, XX and, possibly, some Y>XY>X. Similarly, if X>2xX>2 x, then gg attains at most two values on [x;Xx)[x ; X-x) - namely, XX and, possibly, some Y<XY<X.

Proof. We start with the first claim of the lemma. Notice that Xx<xX-x<x, so the considered interval is nonempty.
Take any a(Xx;x)a \in(X-x ; x) with g(a)Xg(a) \neq X (if it exists). If g(a)<Xg(a)<X, then ()(*) yields g(a)a+xg(x)=Xg(a) \leqslant a+x \leqslant g(x)=X, so aXxa \leqslant X-x which is impossible. Thus, g(a)>Xg(a)>X and hence by (*) we get Xa+xg(a)X \leqslant a+x \leqslant g(a).
Now, for any b(Xx;x)b \in(X-x ; x) with g(b)Xg(b) \neq X we similarly get b+xg(b)b+x \leqslant g(b). Therefore, the number a+ba+b (which is smaller than each of a+xa+x and b+xb+x ) cannot lie between g(a)g(a) and g(b)g(b), which by (*) implies that g(a)=g(b)g(a)=g(b). Hence gg may attain only two values on ( Xx;xX-x ; x ], namely XX and g(a)>Xg(a)>X.
To prove the second claim, notice that g1(x)=X<2(x)g_{1}(-x)=-X<2 \cdot(-x), so g1g_{1} attains at most two values on (X+x,x](-X+x,-x], i.e., X-X and, possibly, some Y>X-Y>-X. Passing back to gg, we get what we need.

Lemma 2. If X<2xX<2 x, then gg is constant on (Xx;x)(X-x ; x). Similarly, if X>2xX>2 x, then gg is constant on (x;Xx)(x ; X-x).

Proof. Again, it suffices to prove the first claim only. Assume, for the sake of contradiction, that there exist a,b(Xx;x)a, b \in(X-x ; x) with g(a)g(b)g(a) \neq g(b); by Lemma 1 , we may assume that g(a)=Xg(a)=X and Y=g(b)>XY=g(b)>X.
Notice that min{Xa,Xb}>Xx\min \{X-a, X-b\}>X-x, so there exists a u(Xx;x)u \in(X-x ; x) such that u<min{Xa,Xb}u<\min \{X-a, X-b\}. By Lemma 1, we have either g(u)=Xg(u)=X or g(u)=Yg(u)=Y. In the former case, by (*) we have Xu+bYX \leqslant u+b \leqslant Y which contradicts u<Xbu<X-b. In the second case, by (*) we have Xu+aYX \leqslant u+a \leqslant Y which contradicts u<Xau<X-a. Thus the lemma is proved.

Lemma 3. If X<2xX<2 x, then g(a)=Xg(a)=X for all a(Xx;x)a \in(X-x ; x). Similarly, if X>2xX>2 x, then g(a)=Xg(a)=X for all a(x;Xx)a \in(x ; X-x).

Proof. Again, we only prove the first claim.
By Lemmas 1 and 2, this claim may be violated only if gg takes on a constant value Y>XY>X on ( Xx,xX-x, x ). Choose any a,b(Xx;x)a, b \in(X-x ; x) with a<ba<b. By (*), we have
Yb+xX \begin{equation*} Y \geqslant b+x \geqslant X \tag{2} \end{equation*}
In particular, we have Yb+x>2aY \geqslant b+x>2 a. Applying Lemma 2 to aa in place of xx, we obtain that gg is constant on (a,Ya)(a, Y-a). By (2) again, we have xYb<Yax \leqslant Y-b<Y-a; so x,b(a;Ya)x, b \in(a ; Y-a). But X=g(x)g(b)=YX=g(x) \neq g(b)=Y, which is a contradiction.

Now we are able to finish the solution. Assume that g(x)>g(y)g(x)>g(y) for some x<yx<y. Denote X=g(x)X=g(x) and Y=g(y)Y=g(y); by ( * ), we have Xx+yYX \geqslant x+y \geqslant Y, so Yyx<yXxY-y \leqslant x<y \leqslant X-x, and hence (Yy;y)(x;Xx)=(x,y)(Y-y ; y) \cap(x ; X-x)=(x, y) \neq \varnothing. On the other hand, since Yy<yY-y<y and x<Xxx<X-x, Lemma 3 shows that gg should attain a constant value XX on ( x;Xxx ; X-x ) and a constant value YXY \neq X on (Yy;y)(Y-y ; y). Since these intervals overlap, we get the final contradiction.

Solution 2

As in the previous solution, we pass to the function gg satisfying (*) and notice that we need to prove the condition (1). We will also make use of the function g1g_{1}.
If gg is constant, then (1) is clearly satisfied. So, in the sequel we assume that gg takes on at least two different values. Now we collect some information about the function gg.

Claim 1. For any cRc \in \mathbb{R}, all the solutions of g(x)=cg(x)=c are bounded.

Proof. Fix any yRy \in \mathbb{R} with g(y)cg(y) \neq c. Assume first that g(y)>cg(y)>c. Now, for any xx with g(x)=cg(x)=c, by (*) we have cx+yg(y)c \leqslant x+y \leqslant g(y), or cyxg(y)yc-y \leqslant x \leqslant g(y)-y. Since cc and yy are constant, we get what we need.
If g(y)<cg(y)<c, we may switch to the function g1g_{1} for which we have g1(y)>cg_{1}(-y)>-c. By the above arguments, we obtain that all the solutions of g1(x)=cg_{1}(-x)=-c are bounded, which is equivalent to what we need.
As an immediate consequence, the function gg takes on infinitely many values, which shows that the next claim is indeed widely applicable.

Claim 2. If g(x)<g(y)<g(z)g(x)<g(y)<g(z), then x<zx<z.

Proof. By (*), we have g(x)x+yg(y)z+yg(z)g(x) \leqslant x+y \leqslant g(y) \leqslant z+y \leqslant g(z), so x+yz+yx+y \leqslant z+y, as required.

Claim 3. Assume that g(x)>g(y)g(x)>g(y) for some x<yx<y. Then g(a){g(x),g(y)}g(a) \in\{g(x), g(y)\} for all a[x;y]a \in[x ; y].

Proof. If g(y)<g(a)<g(x)g(y)<g(a)<g(x), then the triple ( y,a,xy, a, x ) violates Claim 2. If g(a)<g(y)<g(x)g(a)<g(y)<g(x), then the triple (a,y,x)(a, y, x) violates Claim 2. If g(y)<g(x)<g(a)g(y)<g(x)<g(a), then the triple (y,x,a)(y, x, a) violates Claim 2. The only possible cases left are g(a){g(x),g(y)}g(a) \in\{g(x), g(y)\}.

In view of Claim 3, we say that an interval II (which may be open, closed, or semi-open) is a Dirichlet interval* if the function gg takes on just two values on II.
Assume now, for the sake of contradiction, that (1) is violated by some x<yx<y. By Claim 3, [x;y][x ; y] is a Dirichlet interval. Set
r=inf{a:(a;y]r=\inf \{a:(a ; y] is a Dirichlet interval }\} and s=sup{b:[x;b)s=\sup \{b:[x ; b) is a Dirichlet interval }\}.
Clearly, rx<ysr \leqslant x<y \leqslant s. By Claim 1, rr and ss are finite. Denote X=g(x),Y=g(y)X=g(x), Y=g(y), and Δ=(yx)/2\Delta=(y-x) / 2.
Suppose first that there exists a t(r;r+Δ)t \in(r ; r+\Delta) with f(t)=Yf(t)=Y. By the definition of rr, the interval ( rΔ;yr-\Delta ; y ] is not Dirichlet, so there exists an r(rΔ;r]r^{\prime} \in(r-\Delta ; r] such that g(r){X,Y}g\left(r^{\prime}\right) \notin\{X, Y\}.
The function gg attains at least three distinct values on [r;y]\left[r^{\prime} ; y\right], namely g(r),g(x)g\left(r^{\prime}\right), g(x), and g(y)g(y). Claim 3 now yields g(r)g(y)g\left(r^{\prime}\right) \leqslant g(y); the equality is impossible by the choice of rr^{\prime}, so in fact g(r)<Yg\left(r^{\prime}\right)<Y. Applying (*) to the pairs ( r,yr^{\prime}, y ) and ( t,xt, x ) we obtain r+yYt+xr^{\prime}+y \leqslant Y \leqslant t+x, whence rΔ+y<r+yt+x<r+Δ+xr-\Delta+y<r^{\prime}+y \leqslant t+x<r+\Delta+x, or yx<2Δy-x<2 \Delta. This is a contradiction.

Thus, g(t)=Xg(t)=X for all t(r;r+Δ)t \in(r ; r+\Delta). Applying the same argument to g1g_{1}, we get g(t)=Yg(t)=Y for all t(sΔ;s)t \in(s-\Delta ; s).
Finally, choose some s1,s2(sΔ;s)s_{1}, s_{2} \in(s-\Delta ; s) with s1<s2s_{1}<s_{2} and denote δ=(s2s1)/2\delta=\left(s_{2}-s_{1}\right) / 2. As before, we choose r(rδ;r)r^{\prime} \in(r-\delta ; r) with g(r){X,Y}g\left(r^{\prime}\right) \notin\{X, Y\} and obtain g(r)<Yg\left(r^{\prime}\right)<Y. Choose any t(r;r+δ)t \in(r ; r+\delta); by the above arguments, we have g(t)=Xg(t)=X and g(s1)=g(s2)=Yg\left(s_{1}\right)=g\left(s_{2}\right)=Y. As before, we apply (*) to the pairs (r,s2)\left(r^{\prime}, s_{2}\right) and (t,s1)\left(t, s_{1}\right) obtaining rδ+s2<r+s2Yt+s1<r+δ+s1r-\delta+s_{2}<r^{\prime}+s_{2} \leqslant Y \leqslant t+s_{1}<r+\delta+s_{1}, or s2s1<2δs_{2}-s_{1}<2 \delta. This is a final contradiction.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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