Mathwords logoMathwords

Karamata's Inequality — Definition, Formula & Example

Karamata's inequality is a rule about two lists of numbers with the same total. If one list majorizes the other, you can apply any convex function to every entry and add the results, and the majorizing list will always give the larger (or equal) sum. Majorizing means that, after both lists are sorted from largest to smallest, every running total of the first list is at least as large as the matching running total of the second.

Let f:I→Rf: I \to \mathbb{R} be convex on an interval II. Let x1≥x2≥⋯≥xnx_1 \ge x_2 \ge \cdots \ge x_n and y1≥y2≥⋯≥yny_1 \ge y_2 \ge \cdots \ge y_n be points of II. Suppose ∑i=1kxi≥∑i=1kyi\sum_{i=1}^{k} x_i \ge \sum_{i=1}^{k} y_i for k=1,…,n−1k = 1, \dots, n-1 and ∑i=1nxi=∑i=1nyi\sum_{i=1}^{n} x_i = \sum_{i=1}^{n} y_i. This condition is written x≻yx \succ y (x majorizes y). Then ∑i=1nf(xi)≥∑i=1nf(yi)\sum_{i=1}^{n} f(x_i) \ge \sum_{i=1}^{n} f(y_i). If ff is concave, the inequality reverses. If ff is strictly convex, equality holds only when xx is a rearrangement of yy.

Key Formula

x≻y   and f convex⟹∑i=1nf(xi)  ≥  ∑i=1nf(yi)x \succ y \;\text{ and } f \text{ convex} \quad\Longrightarrow\quad \sum_{i=1}^{n} f(x_i) \;\ge\; \sum_{i=1}^{n} f(y_i)
Where:
  • xi,yix_i, y_i = Entries of the two lists, each sorted from largest to smallest, all in the interval I
  • x≻yx \succ y = x majorizes y: every running total of x is at least the matching running total of y, and the full totals are equal
  • ff = A convex function on the interval I
  • nn = The number of entries in each list

Worked Example

Problem: Let x=(5,3,1)x = (5, 3, 1) and y=(4,3,2)y = (4, 3, 2). Check that xx majorizes yy. Then verify Karamata's inequality for the convex function f(t)=t2f(t) = t^2.
Step 1: Both lists are already sorted from largest to smallest. Compare running totals. The first two must satisfy ≥, and the full totals must be equal. Both conditions hold, so x≻yx \succ y.
5≥4,5+3=8≥7=4+3,5+3+1=9=4+3+25 \ge 4, \qquad 5+3 = 8 \ge 7 = 4+3, \qquad 5+3+1 = 9 = 4+3+2
Step 2: Apply f(t)=t2f(t) = t^2 to each entry and add the results for each list.
∑f(xi)=25+9+1=35,∑f(yi)=16+9+4=29\sum f(x_i) = 25 + 9 + 1 = 35, \qquad \sum f(y_i) = 16 + 9 + 4 = 29
Step 3: Compare the two sums. The majorizing list gives the larger sum, as Karamata's inequality predicts. The inequality is strict because xx is not a rearrangement of yy and t2t^2 is strictly convex.
35≥2935 \ge 29
Answer: Since x≻yx \succ y and t2t^2 is convex, Karamata's inequality gives 52+32+12≥42+32+225^2 + 3^2 + 1^2 \ge 4^2 + 3^2 + 2^2, that is, 35≥2935 \ge 29.

Why It Matters

Karamata's inequality is a standard tool in olympiad and Putnam-style problems. Many classic inequalities reduce to it once you spot a majorization, including Jensen's inequality and the AM-GM inequality. In economics, the same partial-sum condition defines Lorenz-curve dominance, which is used to rank income distributions.

Common Mistakes

Mistake: Assuming that a list with a wider range automatically majorizes another list with the same total.
Correction: You must check every running total of the sorted lists. Take x=(8,3,1)x = (8, 3, 1) and y=(6,6,0)y = (6, 6, 0). Both sum to 12, and xx has the wider range. However, 8+3=11<12=6+68 + 3 = 11 < 12 = 6 + 6, so xx does not majorize yy. The conclusion then fails for the convex function f(t)=max⁡(1−t,0)f(t) = \max(1 - t, 0), which gives a sum of 0 for xx and 1 for yy.

Related Terms