In mathematics, the rearrangement inequality states that for every choice of real numbers and every permutation of x1,. . ., xn. If the numbers are different, meaning that then the lower bound is attained only for the permutation which reverses the order, i.e. σ = n − i + 1 for all i = 1, ..., n, and the upper bound is attained only for the identity, i.e. σ = i for all i = 1, ..., n. Note that the rearrangement inequality makes no assumptions on the signs of the real numbers.
The lower bound follows by applying the upper bound to Therefore, it suffices to prove the upper bound. Since there are only finitely many permutations, there exists at least one for which is maximal. In case there are several permutations with this property, let σ denote one with the highest number of fixed points. We will now prove by contradiction, that σ has to be the identity. Assume that σ is the identity. Then there exists a j in such that σ ≠ j and σ = i for all i in. Hence σ > j and there exists a k in with σ = k. Now Therefore, Expanding this product and rearranging gives hence the permutation which arises from σ by exchanging the values σ and σ, has at least one additional fixed point compared to σ, namely at j, and also attains the maximum. This contradicts the choice of σ. If then we have strict inequalities at,, and, hence the maximum can only be attained by the identity, any other permutation σ cannot be optimal.
Observe first that implies hence the result is true if n = 2. Assume it is true at rank n-1, and let Choose a permutation σ for which the arrangement gives rise a maximal result. If σ were different from n, say σ = k, there would exist j < n such that σ = n. But by what has just been proved. Consequently, it would follow that the permutation τ coinciding with σ, except at j and n, where τ = k and τ = n, gives rise a better result. This contradicts the choice of σ. Hence σ = n, and from the induction hypothesis, σ = i for every i < n. The same proof holds if one replace strict inequalities by non strict ones.
Generalization
A Generalization of the Rearrangement inequality states that for all real numbers and any choice of functions such that the inequality holds for every permutation of.