Cauchy-Schwarz and AM-GM Inequalities
What you will get from this section. You will learn two useful forms of the Cauchy-Schwarz inequality and the two-variable AM-GM inequality. More importantly, you will learn the kinds of expressions that should make you think of using them. Neither inequality is difficult to prove in the forms we need. In fact, both ultimately come from the very familiar fact that a square cannot be negative.
TMUA Relevance Score: 3/10
Cauchy-Schwarz inequality
For our purposes, we will discuss the following form of the Cauchy-Schwarz inequality:
Proof
The proof is based on the fact that a square is always non-negative. We consider the difference of the two sides:
which is a square and is therefore greater than or equal to . So
Note that equality occurs exactly when , so when , or when the pairs and are proportional.
The general Cauchy-Schwarz inequality
Cauchy-Schwarz extends to any number of real numbers. For real numbers ,
Equality occurs when the two lists of numbers are proportional.
We will not prove the general result here, but it is included here for completeness.
Example 1
Suppose . Find the greatest possible value of .
Cauchy-Schwarz gives
where the last step uses . Hence
The upper bound is attained when is a positive multiple of , which is clearly possible by inspection, without needing to find the exact values of and . Therefore the greatest possible value of is .
Remark: This problem can alternatively be solved geometrically as finding the largest for which the line still meets the circle . This occurs when the line is tangent to the circle.
Example 2
For positive real numbers and , prove that
Apply Cauchy-Schwarz to the pairs
We obtain
This example illustrates the flexibility of the Cauchy-Schwarz inequality: it can be applied with many different choices of , , and , which is what makes it useful in a wide range of inequality problems.
Example 3
For , show that
Apply Cauchy-Schwarz to the pairs and :
Therefore
Both sides are non-negative, so taking square roots gives
Example 4
The point has coordinates . Find the shortest distance from to the line
Let be any point on the line. Its distance from is
Since ,
By Cauchy-Schwarz,
Hence
so
Equality occurs when is proportional to , so the bound can be attained.
Therefore the shortest distance from to the line is .
Remark: This problem can, of course, also be solved by finding the line through perpendicular to the given line and then finding their point of intersection. Here, Cauchy-Schwarz did the heavy lifting without us having to approach the problem geometrically.
AM-GM inequality
Here is the AM-GM inequality for two positive real numbers and ,
The name AM-GM simply refers to the fact that the arithmetic mean is at least as large as the geometric mean .
Proof
Since , both and are real. Therefore
Expanding gives
Equality occurs when , so when .
The general AM-GM inequality
AM-GM extends to any number of positive real numbers. For ,
Equality occurs when .
Again, we will not prove the general result here, but it is included here for completeness.
Example 5
For all positive real numbers and , the inequality
holds. Find the greatest possible value of the constant .
Viewing as a polynomial in , notice that is a root, so is a factor, and we can factorise the left-hand side:
Since , we may divide by the positive quantity to obtain
By AM-GM,
Therefore
Equality occurs when , which for positive and gives . Therefore the greatest possible value of is .
Example 6
Positive real numbers , , and satisfy
Find the maximum possible value of .
Using the three-variable AM-GM inequality,
Since ,
Cubing both sides gives
Equality occurs when . Since their sum is , equality occurs at
Therefore the maximum possible value of is .
Cauchy-Schwarz or AM-GM?
There is some overlap between what these inequalities can do, and occasionally a problem can be solved using either one. However, as a rough guide:
- Think Cauchy-Schwarz when you see two sums of squares together with a linear combination, or when an expression can be rearranged into that structure.
- Think AM-GM when you see positive quantities whose sum or product is fixed, especially expressions such as .
Do not try to force either inequality into every optimisation problem. Completing the square, factorisation, or ordinary quadratic reasoning may still be simpler.
Summary
The two-variable Cauchy-Schwarz inequality for all real numbers is
The two-variable AM-GM inequality for is
The general Cauchy-Schwarz inequality for all real numbers is
The general AM-GM inequality for is
For AM-GM, equality occurs when all the numbers are equal. For Cauchy-Schwarz, equality occurs when the two lists of numbers are proportional.