Math Core

Module 1.5 · Algebra

Inequalities and optimization

Many AIME problems ask for "the minimum value" or "the largest possible value." Calculus is rarely the fastest route. Instead, a classical inequality gives a bound, and then you show the bound is actually reached. Both halves matter: a bound you can't achieve is not an answer.

AM-GM

The AM-GM inequality

For nonnegative reals x1,…,xnx_1, \dots, x_n,

x1+x2+⋯+xnn≥x1x2⋯xnn,\frac{x_1 + x_2 + \dots + x_n}{n} \ge \sqrt[n]{x_1x_2\cdots x_n},

with equality exactly when x1=x2=⋯=xnx_1 = x_2 = \dots = x_n.

The two-variable case is just a square being nonnegative: x+y−2xy=(x−y)2≥0x + y - 2\sqrt{xy} = (\sqrt x - \sqrt y)^2 \ge 0.

AM-GM is useful in two directions.

  • Fixed product, minimize a sum. If xyxy is constant, x+y≥2xyx + y \ge 2\sqrt{xy} is a constant lower bound.
  • Fixed sum, maximize a product. If x+yx + y is constant, xy≤(x+y2)2xy \le \left(\dfrac{x+y}{2}\right)^2.

The skill is splitting terms so the equality case can happen. To maximize x2y3x^2y^3 given x+y=5x + y = 5, don't apply AM-GM to xx and yy. Split xx into two equal halves and yy into three equal thirds, so that the five pieces x2,x2,y3,y3,y3\dfrac x2, \dfrac x2, \dfrac y3, \dfrac y3, \dfrac y3 still add to a constant and can all be equal.

Cauchy-Schwarz

For reals ai,bia_i, b_i,

(a1b1+a2b2+⋯+anbn)2≤(a12+⋯+an2)(b12+⋯+bn2),(a_1b_1 + a_2b_2 + \dots + a_nb_n)^2 \le (a_1^2 + \dots + a_n^2)(b_1^2 + \dots + b_n^2),

with equality when the vectors (ai)(a_i) and (bi)(b_i) are proportional. Geometrically it says a dot product is at most the product of the lengths. A very handy form for fractions (sometimes called Engel's form or Titu's lemma) is

u12v1+u22v2+⋯+un2vn≥(u1+u2+⋯+un)2v1+v2+⋯+vn(vi>0).\frac{u_1^2}{v_1} + \frac{u_2^2}{v_2} + \dots + \frac{u_n^2}{v_n} \ge \frac{(u_1 + u_2 + \dots + u_n)^2}{v_1 + v_2 + \dots + v_n} \qquad (v_i > 0).

Other tools

  • Completing the square. A quadratic in several variables can be written as a sum of squares plus a constant. The constant is the minimum.
  • The discriminant. If a+b=sa + b = s and ab=pab = p are real, then a,ba, b are roots of t2−st+pt^2 - st + p, so s2≥4ps^2 \ge 4p. This turns "how large can cc be?" into a quadratic inequality in cc.
  • Geometry. x2+a2\sqrt{x^2 + a^2} is the length of a segment. A sum of such lengths is a broken path, and the shortest path is a straight line.

Common mistake

Always check the equality case. For example, AM-GM gives x+1x≥2x + \dfrac{1}{x} \ge 2, but if the problem requires x≥3x \ge 3, equality (x=1x = 1) is impossible, and the true minimum is 3+133 + \dfrac13. If your equality conditions contradict each other or the constraints, the bound is not attained.

Worked examples

Worked example: Fixed product

Find the minimum of x+36xx + \dfrac{36}{x} for x>0x > 0.

By AM-GM, x+36x≥236=12x + \dfrac{36}{x} \ge 2\sqrt{36} = 12, with equality when x=36xx = \dfrac{36}{x}, that is, x=6x = 6. The minimum is 1212.

Worked example: Splitting terms

Positive reals x,yx, y satisfy x+y=3x + y = 3. Find the maximum of xy2xy^2.

Split yy in half: x+y2+y2=3x + \dfrac y2 + \dfrac y2 = 3. By AM-GM on these three terms,

1=x+y2+y23≥xy243,1 = \frac{x + \frac y2 + \frac y2}{3} \ge \sqrt[3]{\frac{xy^2}{4}},

so xy2≤4xy^2 \le 4. Equality needs x=y2x = \dfrac y2, which with x+y=3x + y = 3 gives x=1x = 1, y=2y = 2, and indeed 1⋅4=41 \cdot 4 = 4. The maximum is 44.

Worked example: Cauchy-Schwarz

Real numbers x,yx, y satisfy x2+y2=25x^2 + y^2 = 25. Find the maximum of 3x+4y3x + 4y.

By Cauchy-Schwarz, (3x+4y)2≤(32+42)(x2+y2)=25⋅25(3x + 4y)^2 \le (3^2 + 4^2)(x^2 + y^2) = 25 \cdot 25, so 3x+4y≤253x + 4y \le 25. Equality needs (x,y)(x, y) proportional to (3,4)(3, 4): (x,y)=(3,4)(x, y) = (3, 4) gives 9+16=259 + 16 = 25. The maximum is 2525.

Worked example: How large can one variable be?

Real numbers a,b,ca, b, c satisfy a+b+c=6a + b + c = 6 and ab+bc+ca=9ab + bc + ca = 9. Find the largest possible value of cc.

Then a+b=6−ca + b = 6 - c and ab=9−c(a+b)=9−c(6−c)ab = 9 - c(a + b) = 9 - c(6 - c). Since a,ba, b are real, (a+b)2≥4ab(a + b)^2 \ge 4ab:

(6−c)2≥4(9−6c+c2)  ⟺  36−12c+c2≥36−24c+4c2  ⟺  3c2−12c≤0.(6 - c)^2 \ge 4(9 - 6c + c^2) \iff 36 - 12c + c^2 \ge 36 - 24c + 4c^2 \iff 3c^2 - 12c \le 0.

So 0≤c≤40 \le c \le 4. At c=4c = 4: a+b=2a + b = 2 and ab=1ab = 1, so a=b=1a = b = 1, which works. The maximum is 44.

Practice

Practice 1

Find the minimum value of x2+5x+49x\dfrac{x^2 + 5x + 49}{x} over all positive real xx.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Positive real numbers x,yx, y satisfy 3x+4y=483x + 4y = 48. Find the maximum possible value of xyxy.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Positive real numbers x,y,zx, y, z satisfy xyz=9xyz = 9. Find the minimum value of 2x+3y+4z2x + 3y + 4z.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Find the minimum value of (a+b+c)(1a+4b+9c)(a + b + c)\left(\dfrac1a + \dfrac4b + \dfrac9c\right) over positive reals a,b,ca, b, c.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Real numbers x,y,zx, y, z satisfy x2+y2+z2=9x^2 + y^2 + z^2 = 9. Find the maximum possible value of 2x+3y+6z2x + 3y + 6z.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Find the minimum value of x2+2xy+3y2−6x−2y+50x^2 + 2xy + 3y^2 - 6x - 2y + 50 over all real x,yx, y.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Positive reals x,yx, y satisfy x+y=5x + y = 5. Find the maximum possible value of x2y3x^2y^3.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Find the minimum value of x2+9+(24−x)2+16\sqrt{x^2 + 9} + \sqrt{(24 - x)^2 + 16} over all real xx.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 9

Real numbers a,b,ca, b, c satisfy a+b+c=12a + b + c = 12 and ab+bc+ca=45ab + bc + ca = 45. Find the largest possible value of abcabc.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Real contest practice

  • 1983 AIME, Problem 9: a minimum found by AM-GM, where you must check that the equality case is reachable.
  • 2016 AIME II, Problem 15: the largest possible value of one variable, found from the equality case of Cauchy-Schwarz.
  • 2024 AIME I, Problem 7: maximizing the real part of a complex expression, which reduces to maximizing acos⁡θ+bsin⁡θa\cos\theta + b\sin\theta.