Suppose x,y>0 have A:=d(x)>0 and B:=d(y)>0. Applying the right-hand inequality 2f(u)+v≥uf(v) to u=fm(x)=x+mA and v=fn(y)=y+nB (using f(u)=x+(m+1)A and f(v)=y+(n+1)B) and rearranging gives (x+mA−y+(n+1)B)2≥B−A. If B>A, then for every m,n≥1 the numbers x+mA and y+(n+1)B must stay at distance at least B−A>0; however, as m→∞ the sequence x+mA goes to ∞ with consecutive gaps x+(m+1)A−x+mA→0, so for large n it passes within less than B−A of y+(n+1)B, a contradiction. Hence B≤A, and by symmetry A=B. Thus there is a single constant D≥0 such that f(x)∈{x,x+D} for every x>0.