Introduction to Inequalities
1Introduction
Inequalities are one of the fundamental topics not only in algebra but in mathematics as a whole, with many practical applications. Let's take, for example, the following question:
We have a square piece of paper with a side length of 12 cm. We want to create an open box by cutting identical squares from each of the four corners and folding up the sides. What is the largest possible volume of the box?
This problem is not very simple, but we will learn its most elegant solution. We will continuously build upon generally useful techniques from previous posts, such as factorization, completing the square, ordering, etc.
2Theory
In this post, we will focus on the most basic methods. The absolute foundation of practically all algebra is the manipulation of expressions, so we will start there. Then we will look at inequalities that utilize the positivity of squares. Subsequently, we will introduce the famous AM-GM inequality, even with a proof. Finally, as an interesting point, we will show several more non-traditional but still simple problems where interesting conditions from the problem statement are cleverly used.
2.1Basic Manipulations
Many examples can be solved simply by using common manipulations such as expanding, factorizing, and the like. We will start with such problems and add more methods in the following sections.
Example 1
Given real numbers , , , satisfying . Order the numbers
by size.
✓Solution
Let's try to calculate . We have
Since and , then . Similarly, let's calculate
Since and , then . We don't even need to calculate the difference , and we already have .
Try it out on a problem from the school round A:
Exercise 1
69-CSMO-A-S-1Suppose that distinct real numbers , , , satisfy the inequalities
If is the largest of these four numbers, which of them is the smallest?
✓Solution
Let's rearrange the given inequalities. The first inequality is equivalent to
The second inequality is equivalent to
We know that is the largest number, so , , and .
- From , it follows that . For to hold, it must be that , so .
- From , it follows that . For to hold, it must be that , so .
We thus obtained the relationships and . Since we know that , we have the ordering . Therefore, the smallest of these four numbers is .
The next example shows that it pays to know the formulas we presented in the first part.
Example 2
Prove that for real numbers with a non-negative sum, the following holds:
Also determine when equality occurs.
✓Solution
Notice that the left side can be factorized using a known formula as . The right side can be factorized as . It therefore makes sense to move everything to the left side and factorize. We get:
We see that the left side is the product of two non-negative numbers (assumption) and (square), so their product is also non-negative. Equality occurs precisely when or .
It is important to mention that the manipulations were equivalent and we can reverse the procedure – in mathematics, we always start from valid assumptions and use them to prove new things. Alternatively, we can write the proof in reverse, starting with and arriving at through manipulations. However, this often looks less natural than proceeding from the inequality to be proved towards a valid statement with a note about the equivalence of the steps.
Try these exercises to practice basic factorizations. Notice that the following exercise is a generalization of the previous example. Repeating the procedure from it will not be possible, but it is not difficult to come up with something else :)
Exercise 2
Given positive real numbers , and natural numbers , . Prove that the inequality holds
and find all cases of equality.
✓Solution
We move all terms to one side and try to factorize:
This inequality holds for all positive and natural .
- If , then and , so we have the product of two non-negative numbers.
- If , then and , so we have the product of two non-positive numbers.
Equality occurs precisely when or , which for positive and natural means . Since the manipulations were equivalent, we are done.
Exercise 3
61-CSMO-B-II-2For all real numbers , , such that , prove the inequality
✓Solution
We prove the equivalent inequality . Let's rearrange the terms on the left side so that we can use the difference of squares formula twice:
We factorize the first bracket as . We factorize the second bracket as:
Substituting back into the inequality, we have:
Since , we can factor out in front of the bracket:
This last inequality holds because from the assumption , it follows that and . The product of two negative numbers is positive. Since all manipulations were equivalent, the original inequality is proven.
Note. The problem can also be solved by expanding the expression and subsequently rearranging to . However, the method using the double difference of squares is more elegant because it avoids directly expanding three terms.
A slightly harder but still manageable example is this one. Note that we have integers here:
Problem 1
71-CSMO-C-II-1Prove that for any integers , , the inequality holds
Also determine when equality occurs.
1Hint
It makes sense to move everything to one side and factorize.
2Hint
After successfully performing the factorization, it should suffice to prove , i.e., . Here we must use the fact that are integers, so is also an integer.
✓Solution
We expand the expressions on the left side, move the term from the right side to the left, and factorize:
Let . Since and are integers, is also an integer. We want to prove . The expression is the product of two consecutive integers.
- If , then , and therefore .
- If , then .
- If , then both and are negative, so their product is positive.
In all cases, , so the inequality holds for all integers .
Equality occurs precisely when , which is satisfied for or . Substituting , we get that equality holds precisely when (i.e., ) or (i.e., ).
2.2Positive Squares
Another very common group of problems are those that use the obvious fact that for every real number , holds, with equality occurring only for . By substituting , we can derive the inequality from this, which can be equivalently rewritten as . This may not be immediately obvious at first glance. We can derive more and more inequalities with similar games. Let's first review this very famous example:
Example 3
Prove that for all real numbers , , , the following holds
✓Solution
The inequality looks suspiciously similar to the inequality from the introduction: . Indeed, when we write this inequality for the pairs of variables as well and add them up, we have
which is actually
i.e., our inequality to be proved multiplied by two. Equality occurs precisely when equality occurs in our partial inequalities, i.e., when , , , in short .
This procedure is very famous and common. It is often presented by multiplying the original inequality by two and rearranging it to
which is an equivalent inequality. The trick with multiplying by two (or even something else) is generally useful.
However, we will show another less common but straightforward solution.
Alternative solution. The plan is to move everything to one side and look at the inequality as a quadratic inequality in the variable . Then we can complete the square:
We obtained the sum of a square and a positive multiple of a square, so the inequality is proven. Since the manipulations were equivalent, we can reverse the procedure, and thus the original inequality is proven.
From this form, it is not entirely immediately obvious that equality occurs for . To find this, we must solve the system
But this is easy; the second equation gives us , and the first then gives , so indeed is the only case of equality.
Now it's your turn:
Exercise 4
For real numbers , , prove the inequality
and find all cases of equality.
✓Solution
The inequality is equivalent to the inequality where we move all terms to the left side:
We can modify the expression on the left side by completing the square. We split into :
This is equivalent to
We thus have a sum of squares, which are non-negative. Equality occurs precisely for .
Exercise 5
For real numbers , , prove the inequality
and find all cases of equality.
✓Solution
We multiply out both sides of the inequality, move all terms to the left side, rearrange the terms, and find squares:
We thus have a sum of squares, which are non-negative. All manipulations were equivalent, so the proof is complete.
Equality occurs precisely when and . Substituting into the second equality, we have , i.e., . Thus, either , which gives , or , i.e., , which gives . The only two possible cases of equality are or .
Such basic things are sufficient to solve a problem from the regional round of category A:
Problem 2*
74-CSMO-A-II-1Given two distinct real numbers , such that the expressions and have the same value. Prove that .
1Hint
The first step is to unlock the condition . Move everything to the left side and factorize.
2Hint
From the condition, using the formula , we can derive , so thanks to , we have . Now try to complete to a square; this can actually be done in two ways.
✓Solution
From the problem statement, we have . Moving terms to one side and factorizing gives
Since , it must hold that , and thus
We complete to a square as and . These expressions give us:
- Since , we have .
- Since , then , so , thus .
2.3AM-GM Inequality
In this section, we will look at the most famous named inequality, namely the inequality between the arithmetic and geometric mean, abbreviated as the AM-GM inequality. We have already encountered it in the form
which is a consequence of . We will show that this simple inequality can be generalized into something non-trivial.
The arithmetic mean concerns the sum, the geometric mean the product. Before we reveal the exact statement of AM-GM and its proof, the preparation is the following example:
Example 4
Think through and formally prove that if we have two positive numbers whose sum is given, then the closer these numbers are to each other, the larger their product is.
✓Solution
Let be the mean of our numbers and their distance from the mean. Then our numbers are equal to and . Their product is equal to .
Since the sum of the numbers is fixed, their mean is also fixed. The distance between our numbers is obviously . The smaller the distance, the smaller , and thus also , so the larger their product is, which was to be proved.
This will help us in the proof of the general AM-GM inequality:
Theorem 1
AM-GM InequalityGiven an integer . Prove that for any non-negative real numbers , the following holds
Proof
The inequality is obvious if any of the numbers is zero. Let's assume they are all non-zero.
Our tactic will be as follows: we fix the sum of the variables and thus also their arithmetic mean , and we prove that they have the largest product precisely when they are all equal to . We will carry out the proof by contradiction.
Suppose first that we have at least two variables that are not equal to the mean . If all variables different from were smaller than , then the sum of all variables would obviously be smaller than . Similarly, it cannot hold that all variables different from are larger than , in which case the sum would be too large. Necessarily, we have one variable smaller than and another larger than .
According to the claim from the previous exercise, if we bring these two variables closer to each other while preserving their sum, we increase their product, and thus increase the product of all variables. We do this increase by replacing the variable closer to with and replacing the other variable so that the sum is preserved (see figure). By this, we have achieved that we preserved the sum, increased the product, and also decreased the number of variables different from . By finite repetition of this algorithm, we reach a state where we have at least variables equal to .
If exactly of them are equal to , then we obtain the value of the last one by subtracting the sum of the others from the sum of all variables. The sum of all is (since is the mean and is their count), while the sum of the others is (since they are all equal to ). We see that the last variable must also be equal to , which is a contradiction.
Note. There are very many different proofs of this famous inequality with varying levels of technicality. However, we believe that this one is the most intuitive in the sense that it best explains what is actually happening.
Good perspectives on how to look at the AM-GM inequality:
- We estimate the sum from below by the product:
- We estimate the product from above by the sum:
These perspectives help us not to worry about averages – we don't need an explicitly written average of and to use the AM-GM inequality on and .
Example 5
Prove that for positive real numbers , , , the inequality holds
✓Solution
We use AM-GM on the pairs , , , getting
Multiplying these inequalities, we have the required inequality.
Finally, it is time to reveal the solution to the motivational problem from the introduction:
Example 6
The Box ProblemWe have a square piece of paper with a side length of 12 cm. We want to create an open box by cutting identical squares from each of the four corners and folding up the sides. What is the largest possible volume of the box?
✓Solution
Let denote the side of the square we cut from the corner. Then our box has a base in the shape of a square with side and height . Its volume is therefore , and our goal is to maximize this expression. We have the product of three things: , , . If we estimated them directly, the sum of these things would be in the estimate – that won't help us much, and in fact, we won't solve the problem with it (equality won't occur in the correct case). However, if we used AM-GM on , , , then the 's cancel out. We can artificially create this 4:
Equality occurs precisely when all estimated terms are equal, i.e., when , which gives . We therefore need to cut a square with side , and in the end, we get a box with dimensions .
Note. Generally for a square with side , we have .
Several problems for practice:
Exercise 6
Prove that for a positive real number and a natural number , the following holds
✓Solution
We use the AM-GM inequality on positive numbers: and numbers equal to . From the AM-GM inequality, it holds:
which is an inequality equivalent to ours. Equality occurs precisely when , which for positive means .
Exercise 7
Prove that for positive real numbers with a product of 1, the following holds
✓Solution
For each , we can use the AM-GM inequality on the pair of positive numbers and :
We multiply these inequalities together and get
which was to be proved. Equality occurs when for all .
A memorable consequence of the AM-GM inequality is the inequality
valid for positive . It often appears for as well, when it means
i.e., the sum of a positive number and its reciprocal is at least 2.
Exercise 8
Prove that for positive real numbers , , , the inequality holds
✓Solution
We split the fractions on the left side and suitably rearrange the terms:
Using the inequality for each bracket, we then have
Thus the inequality is proven. Equality occurs precisely when , and , i.e., .
Exercise 9
65-CSMO-A-S-2Positive real numbers , , , satisfy the equalities
Prove the inequality and find the smallest possible value of the expression .
✓Solution
Multiplying the given equalities, we have:
For a positive number , the known inequality holds. Substituting, we get
Thus the first part is proven. Equality occurs precisely when .
Now we seek the smallest possible value of the expression . We use the already derived relationship for :
We use the AM-GM inequality on the positive numbers and :
so together we have
The smallest possible value is . This value is achieved when equality occurs in the used AM-GM inequality, i.e., when , or , . It suffices to choose, for example, and (both are positive real numbers) for this value to be reached.
2.4Combining Conditions and Estimates
Finally, let's discuss a very general concept: Inequalities are often difficult because solving them requires combining many different conditions and estimates. These estimates can be quite simple, but seeing them is challenging – such problems are very popular precisely because, instead of knowledge of difficult inequalities, they test algebraic imagination. A good way to train is to see and try as much as possible. In this section, we will have a small demonstration of problems with non-traditional conditions.
Example 7
Positive real numbers and satisfy . Prove that also holds.
✓Solution
Let's multiply the condition from the problem statement by positive , we have . Now it suffices to prove that , i.e., . For this, it would suffice to prove that . But we can quickly see this from the condition: gives us due to the positivity of , which after dividing by positive gives , which we wanted to prove.
Note. The solution written this way shows the thought process leading to the solution. In a competition, we could write the solution like this:
Since , then , which thanks to gives . Then after multiplying by positive gives , which thanks to gives , so altogether , so we are done.
We see that we actually used only very clear considerations and combined them in various ways with the condition from the problem statement. Similar fun can be performed in these problems as well; you can try.
Problem 3
63-CSMO-C-II-3For positive real numbers , , , holds. Prove that then also holds.
1Hint
First analyze the inequality to be proved; isn't there a factorization?
2Hint
The inequality to be proved is equivalent to , which can be rearranged to . It therefore suffices to justify that is neither the smallest nor the largest number among . Try by contradiction and analyze two cases.
✓Solution
The inequality to be proved is equivalent to the inequality
which we can modify by factorization:
This inequality holds precisely when lies between and , i.e., when it is not the largest among . Let's try to prove by contradiction that this is not the case, for which we finally use the condition, which we write as
- If is the largest among , then thanks to the positivity of , also holds, so , so , so , which gives . Analogously, however, we derive , which is a contradiction.
- The case where is the smallest among is analogous, only all signs in the previous case are reversed.
Since both possibilities lead to a contradiction, the original assumption is incorrect, and the proof is complete.
Problem 4
68-CSMO-C-II-4Real numbers , , , all greater than , satisfy the condition . Prove that the following holds
1Hint
Forget about the inequality to be proved – the key is to understand how the size limits relate to the condition.
2Hint
Try applying , to the condition, specifically estimate the expression from below. What does the resulting inequality tell us about ?
✓Solution
From the problem statement, we know that and . Using these estimates in the condition, we get:
From the inequality , it immediately follows that , i.e., . Since is positive, it thus also holds that . By symmetry, we also have and . Adding these inequalities, we have .
3What to Remember
3.1Useful Inequalities
It is good to remember these inequalities even in your sleep.
- [Sum of squares is at least the sum of mixed terms] For real :
- [Sum of two reciprocals is at least ] For positive
- [Different forms of AM-GM for two terms] For positive
- [Different forms of general AM-GM] For positive :
3.2Proving Techniques
It's about playing.
- Factorization is very powerful.
- We complete squares because they are positive.
- A sum can be estimated from below with AM-GM; one can play with the addends in various ways.
- A product can be estimated from above with AM-GM; one can play with the factors in various ways.
- We play with conditions; often a lot of interesting things can be extracted from them.
4What Next
Inequalities can be studied for a very long time. There are many other methods and known inequalities. However, we have already built a series of techniques and procedures that can be used for practically all problems in the Czech-Slovak Olympiad (including those in the national round). Sometimes in the next part, we will cover even more :)
For those interested in further study, I recommend the PraSe series Conquering Inequalities. The first chapter is certainly accessible to everyone. The second is a bit harder (approximately national round level), as is the introduction to the third. From the section SOS form
, however, methods begin that are very interesting but nowadays not so applicable in competitions (where the effort is to give problems that cannot be killed
by knowledge but are rather about creativity). However, it definitely doesn't hurt to know about them.
5Problems
Diverse problems where the covered concepts are sufficient for all of them, although as is usual with inequalities, the solution can be arbitrarily hard to see. Good luck :)
Problem 5
Given non-negative real numbers and . Prove the inequality
1Hint
One way to make the problem nicer is to use the substitution , . Thanks to it, we don't have square roots. On the left, we then have . Something interesting can be done with this expression.
2Hint
The expression can be factorized using the technique of completing the square; complete to a square. Subsequently, the entire inequality will make sense.
✓Solution
We use the substitution and for non-negative , where at least one is positive. The inequality rewrites to
We factorize the left side by completing the square and subsequently using the difference of squares formula:
Substituting into the inequality, we get
The expression is non-negative. In the case where it is zero (i.e., when ), the inequality holds.
Let it be non-zero then; we can divide the inequality by it. Subsequently, we finish the inequality with equivalent manipulations:
The last inequality is obviously true. Since the manipulations were equivalent, the original inequality is proven.
Note. The substitution , was not necessary, but it makes the solution more discoverable
, since powers are nicer than roots.
Problem 6
66-CPSJ-I-3Prove that for all real numbers , , the following holds
For which integers , does equality occur?
1Hint
The inequality looks like the AM-GM inequality – on the right, we have twice the product. But on the left, we don't have a sum, but a product. Let's expand the left side: . Let's try to rewrite this cleverly.
2Hint
The trick is to complete to a square, thereby creating , which is the expression from the right side. What happens to the rest of the left side?
✓Solution
After expanding the left side and completing and to a square, we get:
The inequality to be proved is thus equivalent to
which, after moving everything to the left side, is obviously a square
This inequality obviously holds. Equality occurs precisely when , i.e., . This is a bit of number theory. An elegant solution consists of adding 1 to both sides and factorizing, whereby we get:
The product of integers and is in four cases:
- and , which gives .
- and , which gives .
- and , which gives .
- and , which gives .
Note. The trick on the left side is actually a special case of the identity
which is in turn a special case of the Lagrange identity
.
Problem 7
Find all integers for which the inequality
holds for all real numbers .
1Hint
The inequality is similar to , and indeed a similar method of proof works. Try to produce as many squares as possible.
2Hint
The trick is to complete to a square as and similarly the others. However, we will create a large surplus of terms. Express exactly how many there are. Let's not forget that the goal is not to prove the inequality, but to reveal when it holds.
✓Solution
We move all terms to the left side and modify them by completing the square for :
The first term is a sum of squares, so it is always non-negative.
For the inequality to hold for all , the coefficient at must also be non-negative – for if it were negative, we could choose for and . This would make the first sum equal to 0, but the second term would be negative, leading to a contradiction. It must therefore hold that , from which , and thus .
Since we know from the problem statement that , all integers satisfy the condition. For these values of , the coefficient is non-negative, and therefore the entire right side is a sum of non-negative expressions, so the inequality holds.
Problem 8
70-CPSJ-I-4Find the smallest possible value that the expression
can take, where and are positive real numbers satisfying .
1Hint
We modify the expression as . appeared here, so we can use . It is sufficient to estimate only the rest of the expression, which needs one more step.
2Hint
After using , we have , so we are estimating . Can't we estimate in such a way that we produce in some way?
✓Solution
Let denote the examined expression. We modify it and use the condition :
Using the AM-GM inequality , we get
The substitution leads to the quadratic expression . We search for its minimum by completing the square:
The minimum is and is achieved for . We must verify if this value is attainable under the condition . But for this, it suffices to set .
Problem 9
57-CSMO-A-II-4Prove that for non-negative real numbers , satisfying the relationship , the following holds
1Hint
The inequality to be proved looks like the inequality for three terms. We have terms , , there. What remains for us to prove after the application?
2Hint
It holds that , so it suffices to prove , which after cubing gives , i.e., . We haven't used the condition yet.
✓Solution
For , the inequality obviously holds. Let . We use the AM-GM inequality for the numbers , and :
To prove the original inequality , it thus suffices to prove
Since both sides of the inequality are non-negative, we can cube them:
Since , we can divide the inequality by it and get the equivalent inequality
We prove this inequality using the condition and the AM-GM inequality:
so we are done. Equality occurs when equality occurs in both used AM-GM inequalities:
- (from the first AM-GM), which for gives .
- (from the second AM-GM), which after substituting gives , and thus (since ).
Equality occurs precisely when and .