Math 2.0

Real functions Classical inequalities Theorem

Rearrangement inequality

Builds on Permutation

Statement

Let x1≤x2≤⋯≤xnx_1 \le x_2 \le \dots \le x_n and y1≤y2≤⋯≤yny_1 \le y_2 \le \dots \le y_n be real numbers, and let σ\sigma be a permutation of {1,…,n}\set{1, \dots, n}. Then ∑i=1nxiyn+1−i≤∑i=1nxiyσ(i)≤∑i=1nxiyi.\sum_{i=1}^{n} x_i y_{n+1-i} \le \sum_{i=1}^{n} x_i y_{\sigma(i)} \le \sum_{i=1}^{n} x_i y_i.

Remarks

Proof idea: suppose i<ji < j but yσ(i)>yσ(j)y_{\sigma(i)} > y_{\sigma(j)}. Swapping the two values changes the sum by (xj−xi)(yσ(i)−yσ(j))≥0(x_j - x_i)(y_{\sigma(i)} - y_{\sigma(j)}) \ge 0. Repeated swaps sort σ\sigma into the identity without decreasing the sum, which gives the upper bound. The lower bound follows by applying the upper bound to −yn≤⋯≤−y1-y_n \le \dots \le -y_1.

Example: with x=(1,2,3)x = (1, 2, 3) and y=(4,5,6)y = (4, 5, 6), the sums range from 1⋅6+2⋅5+3⋅4=281 \cdot 6 + 2 \cdot 5 + 3 \cdot 4 = 28 to 1⋅4+2⋅5+3⋅6=321 \cdot 4 + 2 \cdot 5 + 3 \cdot 6 = 32.

Mathlib states a form as Monovary.sum_smul_comp_perm_le_sum_smul.

Going deeper

For a student

The rearrangement inequality gives quick proofs of several classical inequalities. Averaging it over the cyclic shifts of yy gives Chebyshev's sum inequality. Applied to suitable sequences it also gives the AM–GM inequality and the Cauchy–Schwarz inequality in special cases.

Reading path

To understand this page from the ground up, read these 2 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Permutation definition
  2. Rearrangement inequality statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Rearrangement_inequality
About this page
Tag6E9TAF8HCY
URIm2://6E9TAF8HCY
Kindstatement, theorem
WritingW0 stub
MSC26D15
StatusThis copy of the site has no build data. Run m2 status 6E9TAF8HCY.
AboutPermutation
UsesPermutation
Same as
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.