1.Completing the square and the trivial inequality
Every real number squared is nonnegative. For any real , , with equality exactly when . This trivial inequality drives most of the optimisation on the AMC 12: a quadratic expression has a smallest or largest value because one of its pieces is a square that cannot go negative. The method is always the same. Rewrite the expression as a sum of squares plus a constant. The extreme value is then read off directly, because it is the constant, reached when every square is zero.
The tool that makes this rewriting possible is completing the square. For the start of a quadratic , add and subtract to get . Therefore . The square is at least , so the smallest value of the whole expression is , attained when . Completing the square therefore finds both the optimal value and the place where it occurs.
The same idea works with several variables, where each variable gets its own square. Completing the square in and in separately gives and , so . Both squares are nonnegative and vanish at , so the minimum is .
A closely related fact is , which is just rearranged. Its equality case is the template for every AM-GM argument later in this topic. The logic of equality matters as much as the inequality itself: a bound of the form expression constant is only useful once you know exactly when equality holds, since that is where the optimum lives.
Practice problems usually hide the square. You must recognise or inside a larger expression, and that takes practice with the pattern . Multiply out a guess and compare coefficients. Note , so the minimum is , not . The constant left over after completing the square is the answer, not the original constant term.
Negative leading coefficients flip the direction of the inequality, which is the most common sign error. For instance , so this expression has a maximum, not a minimum, and the maximum is at . Before applying the square trick, check the sign of the squared coefficient and decide whether you are bounding from below or from above.
- , with equality if and only if
- , with equality if and only if
Spot it: The expression is quadratic in one or more variables and you need its minimum, its maximum, or its range.
- Completing the square with the wrong shift: for the shift is , not .
- Reporting the constant term as the optimum instead of the constant left after completing the square.
- Ignoring the sign of the leading coefficient, so a maximum is reported as a minimum.
Find the minimum value of over all real numbers and .