Quadratic inequalities and classical bounds including the triangle, AM-GM, Cauchy-Schwarz, and rearrangement inequalities.
MathematicsInequalities
throughout our mathematical journey, equalities are always the very basics of most conclusion, and that is also which we start to learn math for. However, inequalities are not such a know thing as equalities. Inequalities have many tricky characteristics so that we have to take with care, or things could go wrong. This chapter covers the fundamentals of inequality as a crucial tool for problem-solving in Computer Science.
Inequality basics
We all know about inequalities, and the first thing to clarify is the relationship between sizes. How to determine the size relationship between certain numbers? Since the basis for comparing “numbers” with each other corresponds to one, it is stipulated on the number line that the points increase from left to right, and therefore the numbers they represent increase in turn. Listed in ascending order, that is:
Let a,b be two real numbers, and the points on the number line are denoted as A,B respectively. If A is to the right of B, we say a>b; if A is to the left of B, we say a<b; if A coincides with B, we say a=b.
Thus, for any two real numbers, one and only one of the following three situations must hold:
a>b;a=b;a<b.
The above relationship is also known as the one-dimensional coordinate law.
a>ba<ba=b⇔a−b>0⇔a−b<0⇔a−b=0
Where the symbol "⇔" (double arrow), read as “if and only if,” means that the truth of two propositions depends on each other. That is to say, if one proposition is true, then the other proposition is also true; conversely, if one proposition is false, then the other proposition is also false.
Based on the derivation of inequalities, in most cases, the above principles are sufficient. The following mathematical laws involve the geometric and algebraic meanings of the sizes of real numbers and the relationship between them. They are the basis for comparing the sizes of two real numbers and for proving inequalities by comparison. Let’s review some basic properties of inequalities that are the foundation for our further study.
Symmetry: a>b if and only if b<a.
Transitivity: If a>b and b>c, then a>c.
Addition (Subtraction): If a>b, then a+c>b+c.
Multiplication (Division): If a>b and c>0, then ac>bc; if a>b and c<0, then ac<bc.
Exponentiation: If a>b, then an>bn, where n is a positive integer, and n≥2.
Root Extraction (Power Root): If a>b>0, then na>nb, where n is a positive integer, and n≥2.
If a>b and c>d, then a+c>b+d.
If a>b>0 and c>d>0, then ac>bd.
Exercises
Exercise
Explain the following statement.
If a>b, then ca>cb;
If ac<bc, then a<b;
If a<b, then a1>b1;
If ac2>bc2, then a>b;
If a>b, then an>bn.
Solution:
If c>0, multiplying both sides of a>b by the positive number c1 preserves the inequality, hence ca>cb. If c<0, the direction of the inequality would be reversed, which is not given in the condition, hence we assume c>0.
Dividing both sides of ac<bc by c (assuming c=0), we get a<b because division by a positive number preserves the inequality, and division by a negative number reverses it.
Taking the reciprocal of both sides of a<b reverses the inequality because a and b are on opposite sides of the fraction line, hence a1>b1 (assuming a,b>0 to avoid division by zero).
Dividing both sides of ac2>bc2 by c2 (assuming c=0) preserves the inequality, hence a>b because c2 is positive regardless of whether c is positive or negative.
Raising both sides of a>b to a power n (assuming n is a positive integer) preserves the inequality because both a and b are raised to the same power, hence an>bn.
Exercise
Given the inequality a>b>0, c<d<0, f<0, show that: a−cf>b−df.
Proof
Since a>b>0 and c<d<0, then a−c>b−d because subtracting a smaller negative number is the same as adding a larger positive number. Given that f<0, when dividing by a larger positive number, the result is smaller because a negative number divided by a positive number yields a negative result, and the further away the divisor is from zero, the smaller the quotient.
Therefore: a−cf>b−df.
Solving Quadratic Inequality
Recall that, when we solve Quadratic equations, we use discriminant to solve equations, which is also applicable to inequalities. For a quadratic inequality of the form ax2+bx+c>0 or ax2+bx+c<0 (where a>0), the solution set can be determined by the discriminant Δ=b2−4ac:
If Δ>0, the quadratic equation ax2+bx+c=0 has two distinct real roots x1 and x2, and x1<x2. The solution set for y=ax2+bx+c being greater than zero (when y=0) is for values of x either less than x1 or greater than x2, and the solution set for ax2+bx+c<0 is {x∣x1<x<x2}.
If Δ=0, then ax2+bx+c=0 has one real root, specifically x1=x2=−2ab. The solution set for y=ax2+bx+c being greater than zero is all x except x=−2ab, and there is no solution set where ax2+bx+c<0.
If Δ<0, then ax2+bx+c=0 has no real roots, and the parabola y=ax2+bx+c does not intersect the x-axis. The solution set for ax2+bx+c>0 is all real numbers, and there is no solution set where ax2+bx+c<0.
Figure pending: Quadratic function graphs based on the discriminant.
Example
Solve the following quadratic inequalities:
4x2+6x+2<0;
4x2+4x+1<0;
−3x2+x−6<0.
Solution:
The discriminant Δ=62−4×4×2=4>0, so the quadratic equation 4x2+6x+2=0 has two real roots x1=−1, x2=−21. Hence, the solution set for the inequality is x∈(−∞,−1)∪(−21,∞).
The discriminant Δ=42−4×4×1=0, so the quadratic equation 4x2+4x+1=0 has one real double root. Therefore, the inequality has no solution set.
The discriminant Δ=12−4×(−3)×(−6)=−71<0, so the quadratic equation −3x2+x−6=0 has no real roots. Therefore, the solution set for the inequality 3x2−x+6>0 is all real numbers, and thus the solution set for the given inequality is also all real numbers.
important Inequalities
In this part, we explore two fundamental inequalities in mathematics: the Triangle Inequality and the Arithmetic-Geometric Mean (AGM) Inequality. Each section provides a comprehensive overview, including detailed proofs and corollaries.
The Triangle Inequality
The Triangle Inequality is a fundamental relation in geometry and analysis, asserting that the sum of the lengths of any two sides of a triangle must be greater than or equal to the length of the remaining side.
Definition
For any real numbers a and b, the Triangle Inequality is given by: ∣a+b∣≤∣a∣+∣b∣
Proof
The proof of the Triangle Inequality considers the sign of a and b:
Case 1: If a and b have the same sign, the inequality follows directly.
Case 2: If a and b have opposite signs, assume a>0 and b<0. Then, ∣a+b∣≤a−b=∣a∣+∣b∣.
Thus, the Triangle Inequality is proven.
Remark
This important inequality will also be seen in other chapters.
We also have the following conclusion by preliminary algebra: ∣a+b∣⩽∣a∣+∣b∣⇔∣a+b∣2⩽(∣a∣+∣b∣)2⇔(a+b)2⩽∣a∣2+2∣a∣∣b∣+∣b∣2⇔a2+2ab+b2⩽a2+2∣a∣∣b∣+b2⇔ab⩽∣a∣∣b∣⇔ab⩽∣ab∣. The quality holds only when ab≥0.
Geometric Explanation of Triangular Inequality
Consider a and b are random numbers on a number axis:
If ab≥0, then they are both in the same half-axis (both positive or negative). In this case, the distance between a and −b is the sum of the distance from both points to the origin of the number axis.
Now consider ab<0, either of them is positive, and the other is negative. In this case, the distance between a and −b is shorter than the sum of the distance from both points to the origin of the number axis.
Figure pending: Triangular Inequality: ab < 0
We also have:
Theorem
For a,b,c∈R, ∣a−c∣≤∣a−b∣+∣b−c∣.
Figure pending: AGM when x2 = 0
As we increase the x2 value, the GM curve rise up, and the intersection moves on the right direction, remaining on the AM curve. Below is the visualization for x2=5. There is no any overlap between graphs except the intersection (5,5).
Figure pending: AGM when x2 = 5
Problem
Where will the intersection go if we have x2=10 for this model?
Now, I think everything is clear, but only things so far. From now on, we will extend the understanding of function graph to a new dimension, in the 3 dimension space. Functions in the 3D space is extremely important for multi-variable calculus, and learning linear algebra also requires us to abstract numbers in more than 3 dimension, but goes up to n dimension space. But don’t worry, the discussion here only involve simple concepts.
We have three variables: x1,x2,y, where y is the value of AM or GM from x1 and x2. Coincidently, we have three coordinate axis in a 3D space. In the three-dimensional coordinate system, we assign two preimages x1, x2 to x and y axis, and the mean to the z axis. In this way we can get two function graphs, or surface, in the real sense, in the coordinate, which look like in the figure below.
Figure pending: AGM 3D Visualization
The plane in blue represents the set of all possible arithmetic mean derived from all combinations of x1 and x2 with x1,x2∈[0,10], and the other surface, almost below the AM plane, is exactly the geometric mean curve that has a similar definition to the former. This is quite different from the functions we have known, since they are only a line or a curve in the Cartesian coordinate, yet in the 3D coordinate, function could be surface. We will explore more about multi-variable functions in the future.
It is noticeable that the two surfaces are actually independent. They intersect in a line that go across the space. That specific line is actually a set of all the ordered pairs (x1,x2) where x1=x2. We can actually relate it to the graph in the Cartesian coordinate. If we change the view point to the front of the curves shaped in the 3D space, we see something like this picture.
Figure pending: AGM 3D Visualization (Front)
Isn’t this quite similar to the 2D graph? Actually, the first image is exactly a horizontal cross-section of the 3D function graph, and the intersection in the 2D graph changes as the position of intersection line changes. These explain AGM inequality’s geometric meaning.
Conclusions of AGM inequality
AGM inequality has brought us to these conclusions:
Corollary
If x,y>0, then x+y2xy≤xy≤2x+y. Equality holds in each inequality only when x=y.
Proof
Proposition AGM yields xy≤2x+y. We obtain the other inequality from this by multiplying both sides by the positive number x+y2xy, leading to: xy⋅x+y2xy≤2x+y⋅x+y2xy, which simplifies to: x+y2xy≤xy. Thus, we have shown that x+y2xy≤xy≤2x+y, with equality if and only if x=y.
The expression x+y2xy is the harmonic mean of x and y. It arises in the study of average rates. For example, consider traveling a distance d at rate r1 in time t1 and making the return trip at rate r2 in time t2. The harmonic mean gives us the average rate r for the full trip.
Assuming we travel the same distance d for both trips, we have: r1t1r2t2=d=d
The average rate r for the full trip is computed as follows: r=t1+t22d=r1d+r2d2d=r1r2r1r2(t1+t2)2d=r1+r22r1r2
The other important corollary of AGM inequality is:
Corollary
a2+b2≥2ab
Proof
a2+b2≥2ab⟺a2+b2−2ab≥0⟺(a−b)2≥0.
Exercises
Exercise
Prove that for any triangle with sides a, b, and c, the following inequality holds: b+ca+a+cb+a+bc>1
Proof
Given a triangle with sides a, b, and c, we know that for any triangle, the sum of the lengths of any two sides is greater than the length of the third side. Therefore, a<b+c, b<a+c, and c<a+b.
Now, consider the inequality b+ca>a+b+ca. This is true because b+c>a implies that the denominator of the left-hand side is smaller than that of the right-hand side while keeping the numerator constant.
Similarly, we can show that a+cb>a+b+cb and a+bc>a+b+cc.
Adding these three inequalities, we get: b+ca+a+cb+a+bc>a+b+ca+b+c
Simplifying the right-hand side, we obtain: b+ca+a+cb+a+bc>1
Thus, the inequality is proven.
Exercise
Given ε>0, if ∣x−a∣<4ε and ∣y−b∣<6ε, prove that:
∣2x+3y−2a−3b∣<ε.
Hint: Rearrange it in a form that is good for using triangle inequality.
Prove for any real numbers a,b,c,d that: ∣a−b∣+∣b−c∣+∣c−d∣+∣d−a∣≥∣a−c∣+∣b−d∣
Proof
Application of the Triangle Inequality: The triangle inequality states that for any real numbers x,y,z: ∣x−y∣≤∣x−z∣+∣z−y∣ We can apply this inequality to certain terms in our original problem. For example, consider ∣a−c∣ and ∣b−d∣.
Separate Applications of the Triangle Inequality: For ∣a−c∣, we have: ∣a−c∣≤∣a−b∣+∣b−c∣ For ∣b−d∣, we have: ∣b−d∣≤∣b−c∣+∣c−d∣
Combining Inequalities: Adding the above two inequalities, we get: ∣a−c∣+∣b−d∣≤∣a−b∣+2∣b−c∣+∣c−d∣
Simplification and Rearrangement: Notice that 2∣b−c∣ appears on the right side of the inequality. However, since ∣b−c∣ is non-negative, we can remove one ∣b−c∣ and the inequality still holds. Hence, we have: ∣a−c∣+∣b−d∣≤∣a−b∣+∣b−c∣+∣c−d∣ This is the reverse of the inequality in our original problem, so we can conclude: ∣a−b∣+∣b−c∣+∣c−d∣+∣d−a∣≥∣a−c∣+∣b−d∣
Conclusion: Therefore, the original inequality is proved.
Exercise
Prove that for any real numbers x,y,z, the following inequality holds: ∣x+y+z∣≤∣x∣+∣y∣+∣z∣
Proof
We will use the triangle inequality which states that for any real numbers a and b: ∣a+b∣≤∣a∣+∣b∣
First, apply the triangle inequality to x and y: ∣x+y∣≤∣x∣+∣y∣
Now, let a=x+y and b=z, and apply the triangle inequality again: ∣(x+y)+z∣≤∣x+y∣+∣z∣
Substitute the first inequality into the second one: ∣x+y+z∣≤∣x∣+∣y∣+∣z∣
This completes the proof.
Exercise
Prove that for any sequence of real numbers x1,x2,…,xn, the following inequality holds: ∣x1+x2+…+xn∣≤∣x1∣+∣x2∣+…+∣xn∣
Proof
We will prove this by induction on the number of terms n.
Base case (n=1): For a single real number x1, the inequality trivially holds as: ∣x1∣=∣x1∣
Inductive step: Assume the inequality holds for some n=k, i.e., ∣x1+x2+…+xk∣≤∣x1∣+∣x2∣+…+∣xk∣ Now, consider the case when n=k+1. By the triangle inequality, we have: ∣x1+x2+…+xk+xk+1∣≤∣x1+x2+…+xk∣+∣xk+1∣
Using the induction hypothesis, we can then write: ∣x1+x2+…+xk+xk+1∣≤(∣x1∣+∣x2∣+…+∣xk∣)+∣xk+1∣∣x1+x2+…+xk+xk+1∣≤∣x1∣+∣x2∣+…+∣xk∣+∣xk+1∣
This completes the inductive step and thus, by the principle of mathematical induction, the inequality holds for all positive integers n.
Exercise
Let a, b, c be positive real numbers. Prove the inequality: (a+b+c)(a2+b2+c2)>9abc.
Proof
By the Arithmetic Mean-Geometric Mean Inequality (AM-GM Inequality), we have: 3a2+b2+c2≥3a2b2c2,3a+b+c≥3abc.
Cubing both sides of the inequalities, we get: (a2+b2+c2)3≥27a2b2c2,(a+b+c)3≥27abc.
Multiplying the resulting inequalities, we obtain: (a2+b2+c2)3(a+b+c)3≥(27a2b2c2)(27abc).
Taking the cube root of both sides, we arrive at: (a2+b2+c2)(a+b+c)≥9abc.
Note that the inequality is strict when a, b, c are positive real numbers, thus: (a2+b2+c2)(a+b+c)>9abc.
Exercise
Given non-negative real numbers a,b,c such that a+b+c=1, we want to prove that: a2+b2+c2≥31.
Proof
We will use the Arithmetic Mean-Geometric Mean Inequality (AM-GM Inequality) which states that for any non-negative real numbers x,y,z, the following holds: 3x+y+z≥3xyz.
Applying this to a,b,c, we have: 3a+b+c≥3abc⇒31≥3abc.
Cubing both sides of the inequality yields: 271≥abc.
Now, by AM-GM applied to a2,b2,c2, we get: 3a2+b2+c2≥3a2b2c2.
Since a2b2c2 is the square of abc, it follows that: 3a2+b2+c2≥(abc)32.
Given 271≥abc, we have: (abc)32≤(271)32=91.
Therefore, we can conclude that: 3a2+b2+c2≥91.
Multiplying through by 3, we obtain the desired inequality: a2+b2+c2≥31.
Hence, we have proved that a2+b2+c2≥31 as required.
Exercise
Consider the function f(x,y,z)=yx+zy+xz for all positive real numbers x,y, and z. Find the minimal value of the function.
Proof
For (x,y,z) positive real numbers, we have f(x,y,z)=yx+zy+xz can be rewritten as f(x,y,z)=6⋅(61⋅yx+61⋅zy+61⋅xz+61⋅yx+61⋅zy+61⋅xz) Setting x1=yx,x2=x3=21⋅zy,x4=x5=x6=31⋅xz, and applying the AM-GM inequality for n=6, we get f(x,y,z)≥6⋅6x1⋅x2⋅x3⋅x4⋅x5⋅x6=6⋅62⋅2⋅3⋅3⋅31⋅yx⋅zy⋅xz which simplifies to f(x,y,z)≥6⋅622⋅331=22/3⋅31/2 Further, we know that the two sides are equal exactly when all the terms of the mean are equal. Thus, f(x,y,z)=22/3⋅31/2 when yx=21⋅zy=31⋅xz All the points (x,y,z), satisfying these conditions lie on a half-line starting at the origin and are given by, (x,y,z)=(t,233t,233t) with t>0.
Cauchy-Schwarz Inequality
Cauchy-Schwarz inequality is another important inequality that is used for mathematical proofs.
Theorem
Let a1,…,an and b1,…,bn be real numbers. Then (a1b1+a2b2)2≤(a12+a22)(b12+b22)
Proof
(a_1 + a_2)(b_1^2 + b_2^2) - (a_1b_1 + a_2b_2)^2 \geq 0$$ $$\Leftrightarrow a_1^2b_1^2 + a_2^2b_2^2 + a_1^2b_2^2 + a_2^2b_1^2 - a_1^2b_1^2 - a_2^2b_2^2 - 2a_1a_2b_1b_2 \geq 0$$ $$\Leftrightarrow a_1^2b_2^2 - 2a_1a_2b_1b_2 + a_2^2b_1^2 \geq 0$$ $$\Leftrightarrow (a_1b_2 - a_2b_1)^2 \geq 0$$ Hence, the equality holds if an only if when $a_1b_2=a_2b_1$.
This is not a difficult proof, but it does not show all the implications of the inequality, especially in geometry. Let’s take a look at how we can derive its vector form.
In the inequality of the inner product in vector space, let α and β be the directed line segments determined by vectors a and b respectively, with terminal coordinates a1,a2 and b1,b2, and let α=(a1,a2),β=(b1,b2), Then, α and β are not both zero, and the angle between them is denoted as ⟨α,β⟩, with the convention that 0≤⟨α,β⟩≤π. The cos⟨α,β⟩ is called the cosine of the angle (inner product) between vectors α and β, denoted as α⋅β, and α⋅β=a1b1+a2b2,∣α∣=α⋅α=a12+a22,∣β∣=β⋅β=b12+b22, Therefore, cos⟨α,β⟩=a12+a22b12+b22a1b1+a2b2,cos2⟨α,β⟩=(a12+a22b12+b22a1b1+a2b2)2≤1, which implies (a12+a22)(b12+b22)≥(a1b1+a2b2)2, and since a12+a22b12+b22≥∣a1b1+a2b2∣.
It is evident that cos2⟨α,β⟩=1 implies ⟨α,β⟩=0 or π, which corresponds to vectors α and β being parallel or anti-parallel. When the angle is 0, vectors A and B are in the same direction, which is the condition for equality.
Theorem
Assume that α=(a1,a2) and β=(b1,b2) are two planar vectors, then ∣α∣∣β∣≥∣α⋅β∣ and$$\sqrt{a_1^2 + a_2^2} \sqrt{b_1^2 + b_2^2} \geq |a_1b_1 + a_2b_2|
It is noticeable that when we take a2=b2=0, we have ∣a1∣+∣b1∣≥∣a1+b1∣ which is exactly the triangle inequality for vector that we have discussed earlier.
Rearrangement Inequality
This section introduces Rearrangement Inequality, whose direct conclusions are the QM-AM-GM-HM inequality.
We start with an example. Suppose there are four boxes containing $10, $20, $50 and $100 bills, respectively. You may take 2 bills from one box, 3 bills from another, 4 bills from another, and 5 bills from the remaining box. What is the maximum amount of money you can get?
Clearly, you’d want to take as many bills as possible from the box with largest-value bills! So you would take 5 $100 bills, 4 $50 bills, 3 $20 bills, and 2 $10 bills, for a grand total of 5 \cdot \100 + 4 \cdot $50 + 3 \cdot $20 + 2 \cdot $10 = $780.$
Suppose instead that your arch-nemesis (who isn’t very good at math) is picking the bills instead, and he asks you how many bills he should take from each box. In this case, to minimize the amount of money he gets, you’d want him to take as many bills as possible from the box with lowest-value bills. So you tell him to take 5 $10 bills, 4 $20 bills, 3 $50 bills, and 2 $100 bills, for a grand total of 5 \cdot \10 + 4 \cdot $20 + 3 \cdot $50 + 2 \cdot $100 = $480.$
The maximum is attained when the number of bills taken and the denominations are similarly sorted as in Eq. eq4.3 and the minimum is attained when they are oppositely sorted as in eq4.4. The Rearrangement Inequality formalizes this observation.
Theorem
Rearrangement Let x1,x2,…,xn and y1,y2,…,yn be real numbers (not necessarily positive) with x1≤x2≤…≤xn,andy1≤y2≤…≤yn, and let σ be a permutation of {1,2,…,n}. (That is, σ sends each of 1,2,…,n to a different value in {1,2,…,n}.) Then the following inequality holds: x1yn+x2yn−1+…+xny1≤x1yσ(1)+x2yσ(2)+…+xnyσ(n)≤x1y1+x2y2+…+xnyn.
Proof
We prove the inequality on the right by induction on n. The statement is obvious for n=1. Suppose it true for n−1. Let m be an integer such that σ(m)=n. Since xn≥xmandyn≥yσ(n), we have 0≤(xn−xm)(yn−yσ(n))⟹xmyn+xnyσ(n)≤xmyσ(n)+xnyn.
By the induction hypothesis, x1yσ(1)+…+xmyn+…+xnyσ(n−1)≤x1y1+…+xmym+…+xnyn−1.
Thus the RHS is at most x1y1+…+xn−1yn−1+xnyn, as needed. To prove the LHS, apply the above with −yi instead of yi (noting that negating an inequality reverses the sign).
Remark
The equality holds if and only if a1=a2=⋯an or b1=b2=⋯bn
Exercises
Exercise
Prove that for any real numbers a, b, c, and d, the following inequality holds: a2+b2+c2+d2≥ab+bc+cd+da.
Proof
Consider the sequences (a,b,c,d) and (b,c,d,a). By the Cauchy-Schwarz inequality, we have: (a2+b2+c2+d2)(b2+c2+d2+a2)≥(ab+bc+cd+da)2.(a2+b2+c2+d2)2≥(ab+bc+cd+da)2a2+b2+c2+d2≥ab+bc+cd+da. This completes the proof.
Exercise
In mathematics, the QM-AM-GM-HM inequalities, also known as the mean inequality chain, state the relationship between the harmonic mean, geometric mean, arithmetic mean, and quadratic mean (also known as root mean square). It follows that: 0<x11+x21+⋯+xn1n≤nx1x2⋯xn≤nx1+x2+⋯+xn≤nx12+x22+⋯+xn2 The right part of the inequality is a direct conclusion from Cauchy-Schwarz inequality. Prove it by substituting special values to fit the relation.
Proof
Cauchy-Schwarz inequality states that: (a12+a22+⋯+an2)(b12+b22+⋯+bn2)≥(a1b1+a2b2+⋯+anbn)2 where all terms are real numbers. Let b1=b2=⋯=bn=1, we have: (x12+x22+⋯+xn2)(1+1+⋯+1)≥(x1+x2+⋯+xn)2
\frac{x_{1}^{2}+x_{2}^{2}+\cdots+x_{n}^{2}}{n} \geq\left(\frac{x_{1}+x_{2}+\cdots+x_{n}}{n}\right)^{2}$$ $$\sqrt{\frac{x_{1}^{2}+\cdots+x_{n}^{2}}{n}} \geq \frac{x_{1}+\cdots+x_{n}}{n}$$ This completes the proof.
If you are interested in the complete proof, check this link.
Exercise
Prove that for arbitrary real ak,bk,ck we have $$\left(\sum_{k=1}^{n} a_{k} b_{k} c_{k}\right)^{4} \leq\left(\sum_{k=1}^{n} a_{k}^{4}\right)\left(\sum_{k=1}^{n} b_{k}^{2}\right)^{2}\left(\sum_{k=1}^{n} c_{k}^{4}\right)
Solution
By using Cauchy-Schwartz inequality twice, we have:
Prove that, let a,b,c be positive real numbers such that a+b+c=1. Then the following inequality holds: a1+b1+c1≥9.
Proof
By applying the Cauchy-Schwarz inequality to the sequences (a,b,c) and (a1,b1,c1), we have: ((a)2+(b)2+(c)2)((a1)2+(b1)2+(c1)2)≥(a⋅a1+b⋅b1+c⋅c1)2 Simplifying both sides of the inequality gives us: (a+b+c)(a1+b1+c1)≥(1+1+1)2 Given that a+b+c=1, substituting this into the inequality yields: 1⋅(a1+b1+c1)≥32 Therefore, we have: a1+b1+c1≥9. This completes the proof.
Exercise
We have proven the Cauchy-Schwarz inequality for planar vectors, can you expand theorem CSvector to 3D vectors? Hint: Express your solution in the form of Eq. CSvec. No extra thinking is needed.
Solution:
In the 3D space, we have
Corollary
Assume that α=(a1,a2,a3) and β=(b1,b2,b3) are two 3D vectors: a12+a22+a32b12+b22+b32≥∣a1b1+a2b2+a3b3∣.
Proof
In the inequality of the inner product in vector space, let α and β be the directed line segments determined by vectors a and b respectively, with terminal coordinates a1,a2,a3 and b1,b2,b3, and let α=(a1,a2,a3),β=(b1,b2,b3), Then, α and β are not both zero, and the angle between them is denoted as ⟨α,β⟩, with the convention that 0≤⟨α,β⟩≤π. The cos⟨α,β⟩ is called the cosine of the angle (inner product) between vectors α and β, denoted as α⋅β, and α⋅β=a1b1+a2b2+a3b3,∣α∣=α⋅α=a12+a22+a32,∣β∣=β⋅β=b12+b22+b32, Therefore, cos⟨α,β⟩=a12+a22+a32b12+b22+b32a1b1+a2b2+a3b3,cos2⟨α,β⟩=(a12+a22+a32b12+b22+b32a1b1+a2b2+a3b3)2≤1, which implies (a12+a22+a32)(b12+b22+b32)≥(a1b1+a2b2+a3b3)2, and since a12+a22+a32b12+b22+b32≥∣a1b1+a2b2+a3b3∣. which completes the proof.
Exercise
We have shown that the Cauchy-Schwarz inequality still works in the 3-dimensional space, why not try to show that it holds for all vectors in the n-dimension space? Think about the strategy to be used and show your meticulous proof for nD vector. Hint: We are actually trying to find a generalized form of the inequality. Try to express it in an open form (summation).
Solutions:
Theorem
We consider vectors in n-dimentional space. Let a=(a1,a2,…,an) and b=(b1,b2,…,bn) be two n-dimensional vectors. Then the following inequality holds: (∑i=1naibi)2≤(∑i=1nai2)(∑i=1nbi2)
Proof
We will prove the Cauchy-Schwarz inequality for n-dimensional vectors using mathematical induction.
Base Case: For n=1, we have: (a1b1)2≤(a12)(b12) which is obviously true, as both sides are equal.
Inductive Step: Assume the inequality holds for n=k, that is: (∑i=1kaibi)2≤(∑i=1kai2)(∑i=1kbi2) We need to show that it also holds for n=k+1: (∑i=1k+1aibi)2≤(∑i=1k+1ai2)(∑i=1k+1bi2)
By the inductive hypothesis, we have: (∑i=1kaibi)2≤(∑i=1kai2)(∑i=1kbi2)
It remains to show that the additional terms also satisfy the inequality: 2ak+1bk+1∑i=1kaibi+ak+12bk+12≤bk+12∑i=1kai2+ak+12∑i=1kbi2+ak+12bk+12
This is equivalent to showing: ∑i=1k(ak+1bi−aibk+1)2≥0 Which is true since it is a sum of squares.
Hence, by mathematical induction, the inequality holds for all n-dimensional vectors.
Remark: If this is not quite clear for you, here’s the explanation:
Cancel ak+12bk+12 on both sides, we have: 2ak+1bk+1i=1∑kaibi≤ak+12i=1∑kbi2+bk+12i=1∑kai2 Moving the terms on the same side of the inequality sign: ak+12i=1∑kbi2+bk+12i=1∑kai2−2ak+1bk+1i=1∑kaibi≥0 This is an interesting expression since the coefficients and the terms of the summation can all fit the terms of sum of square: (a±b)2=a2+b2±2ab. we can expand LHS as: LHS=ak+12(b12+b22+⋯+bk2)+bk+12(a12+a22+⋯+ak2)−2ak+1bk+1(a1b1+a2b2+⋯+akbk)
Fitting it into sum of square formula (a±b)2=a2+b2±2ab with a=ak+1bi and b=aibk+1.
We have: ∑i=1k(ak+1bi−aibk+1)2=LHS
Exercise
Having proven the generalized Cauchy-Schwarz Inequality by using vector properties, you must have built up some confidence. These problems that seem tricky are actually easy to prove. Now we have one last proof for Cauchy-Schwarz Inequality (it’s true I promise, no more proof for this inequality.). Since we have proved the generalized form by using vector, recall that we also prove it by pure algebra analysis in theorem CSineq. Now, prove the generalized form without using vector, and think about the similarity and difference of the two proofs.
solution:
Proof
The equality holds if and only if b1a1=b2a2=…=bnan (assuming bi=0 for all i; if bj=0, then aj=0, for j=1,2,…,n).
Case 1: If all ai=0, the inequality obviously holds.
Case 2: If not all ai=0, consider the following quadratic in x: f(x)=(a1x+b1)2+(a2x+b2)2+…+(anx+bn)2 It is clear that for all x, f(x)≥0 since it is a sum of squares.
Expanding f(x), we get: f(x)=(a12+a22+…+an2)x2+2(a1b1+a2b2+…+anbn)x+(b12+b22+…+bn2) The discriminant Δ of this quadratic is: Δ=4(a1b1+a2b2+…+anbn)2−4(a12+a22+…+an2)(b12+b22+…+bn2) For f(x)≥0 to hold for all x, the discriminant Δ must be less than or equal to zero. This leads to: (a1b1+a2b2+…+anbn)2−(a12+a22+…+an2)(b12+b22+…+bn2)≤0 Hence, the inequality is proven. Equality holds if and only if the numbers are proportional.
Exercise
Prove Minkowski’s inequality: (∑k=1n(ak+bk)2)1/2≤(∑k=1nak2)1/2+(∑k=1nbk2)1/2 Which basic inequality do you find that is related to this?
Taking the square root on both sides, we obtain (∑k=1n(ak+bk)2)1/2≤(∑k=1nak2)1/2+(∑k=1nbk2)1/2
Remark:
The inequality can also be written as (∑i=1n∣xi+yi∣p)1/p≤(∑i=1n∣xi∣p)1/p+(∑i=1n∣yi∣p)1/p Where when p=1, we get triangle inequality.
Exercise
If one did not know the Cauchy Schwarz inequality, but knew Lagrange’s identity, then how could one derive the Cauchy-Schwarz inequality.
Lagrange’s identity:
Let a1,…,an and b1,…,bn be real numbers. Then (∑k=1nak2)(∑k=1nbk2)−(∑k=1nakbk)2=∑i=1n−1∑j=i+1n(aibj−ajbi)2
Prove this identity with summation form of generalized Cauchy-Schwarz inequality. Hint: Loosely speaking, Lagrange’s identity says that the left-hand side in the Cauchy- Schwarz inequality is off from the right-hand side of the Cauchy-Schwarz inequality by the error term.
Proof
Cauchy Inequality states that: (∑i=1naibi)2≤(∑i=1nai2)(∑i=1nbi2) Assuming the Cauchy-Schwarz inequality is true, we aim to demonstrate Lagrange’s Identity. The inequality gives us the left-hand side of the identity directly. To arrive at the right-hand side, we need to show the existence of an error term which is the sum of squares of the differences between the products of the components of a and b.
Consider the expression ∑i=1n−1∑j=i+1n(aibj−ajbi)2, which expands to include all combinations of the product differences. Each term is of the form ai2bj2−2aibiajbj+aj2bi2, and when summed over all i and j, the middle terms −2aibiajbj combine to give us −2(∑k=1nakbk)2, which is the term we subtract on the left-hand side of the identity to obtain the equality.
Thus, by rearranging the terms and recognizing that the right-hand side sum is always non-negative, we establish Lagrange’s Identity as an equality.
The complete working is below. =======(i=1∑nai2)(i=1∑nbi2)i=1∑nj=1∑nai2bj2(i=1∑naibi)2+1≤i<j≤n∑(aibj−ajbi)2i=1∑nj=1∑naiajbibj+1≤i<j≤n∑(ai2bj2−2aiajbibj+aj2bi2)i=1∑nj=1∑naiajbibj+1≤i<j≤n∑(ai2bj2+aj2bi2−2aiajbibj)i=1∑nai2bi2+i=1∑nj=i∑aiajbibj+1≤i<j≤n∑(ai2bj2+aj2bi2−2aiajbibj)i=1∑nai2bi2+1≤i<j≤n∑(ai2bj2+aj2bi2−2aiajbibj)(i=1∑nai2)(i=1∑nbi2)=(i=1∑naibi)2+1≤i<j≤n∑(aibj−ajbi)2
Exercise
Consider the function f(x)=x2+1(x+k)2 where k is a positive whole number. Show that f(x)≤k2+1.
Hint: Try to fit Cauchy-Schwarz inequality. There are more than one method.
Proof
We aim to show that x2+1(x+k)2≤k2+1 for all x∈R and k∈Z+. This is equivalent to proving (x+k)2≤(k2+1)(x2+1) Starting with the left-hand side and applying the distributive property, we have (x+k)2=x2+2kx+k2 We can rewrite the right-hand side as (k2+1)(x2+1)=k2x2+x2+k2+1 Combining the two, we want to show that x2+2kx+k2≤k2x2+x2+k2+1 which simplifies to 0≤k2x2−2kx+1 Notice that this can be written as a square of a binomial: 0≤(kx−1)2 Since the square of any real number is non-negative, the inequality holds true for all x. Hence, the original inequality is proven.\
\
Below is how you can construct a new inequality to prove it.\
\
Firstly, we utilize the vector dot product form of the Cauchy-Schwarz Inequality over the real numbers. To apply the vector dot product form, we identify corresponding elements for two vectors. Let’s choose vectors a and b:
a=[xk],b=[1x1]
The Cauchy-Schwarz Inequality is stated as:
(a⋅b)2≤(a⋅a)(b⋅b)
Applying this to our case:
(x⋅1+k⋅x1)2≤(x2+k2)(12+(x1)2)
(xx+k)2≤(x2+k2)(1+x21)
(x2(x+k)2)≤(x2+k2)(x2x2+1)
x2+1(x+k)2≤k2+1
Therefore, we have proved the given inequality f(x)=x2+1(x+k)2≤k2+1 using the Cauchy-Schwarz Inequality.
Exercise
For a,b,c>0 prove that
aabbcc≥abbcca.
aabbcc≥(abc)3a+b+c.
Proof
Since ln is an increasing function, we take the ln of both sides to find that the inequalities are equivalent to alna+blnb+clncalna+blnb+clnc≥blna+clnb+alnc≥3a+b+c(lna+lnb+lnc).
Exercise
Chebyshev inequality is an important conclusion about random variables. It states that: Let a1,a2,…,an;b1,b2,…,bn be real numbers arranged in ascending order for ai and in descending order for bi, such that:
If a1≤a2≤…≤an and b1≥b2≥…≥bn, then na1b1+a2b2+…+anbn≥(na1+a2+…+an)(nb1+b2+…+bn)
If a1≤a2≤…≤an but b1≤b2≤…≤bn, then na1b1+a2b2+…+anbn≤(na1+a2+…+an)(nb1+b2+…+bn)
Proof
For (1) where a1≤a2≤…≤an, and b1≥b2≥…≥bn, we have the following:
Adding these n inequalities together, we obtain: n(a1b1+a2b2+…+anbn)≥(a1+a2+…+an)(b1+b2+…+bn).
After dividing by n2, it follows that: na1b1+a2b2+…+anbn≥(na1+a2+…+an)(nb1+b2+…+bn).
This holds especially if a1=a2=…=an and b1=b2=…=bn, which is trivial.
For (2) where the sequences are oppositely sorted, the proof is similar.
Exercise
Suppose a1,a2,…,an>0 and let s=a1+…+an. Prove that s−a1a1+…+s−anan≥n−1n
Proof
The left-hand side of the inequality can be seen as the average of n fractions where the numerators are the ai‘s and the denominators are s−ai‘s.
Since the sum of the numerators equals the sum of the ai‘s and the sum of the denominators is n(s−ns)=(n−1)s, we can apply Chebyshev’s Inequality because it states that if a1≤…≤an and b1≤…≤bn, then the arithmetic mean of the products aibi is greater than or equal to the product of the arithmetic means of ai and bi.
By rearranging the terms, we can match the ai‘s with the inverses of denominators in a way that corresponds to the conditions of Chebyshev’s Inequality:
∑i=1nai⋅s−ai1≥n1∑i=1nai⋅n1∑i=1ns−ai1.
This simplifies to:
s−a1a1+…+s−anan≥(n−1)ss=n−1n.
Therefore, we have shown that:
s−a1a1+…+s−anan≥n−1n.
This completes the proof.
Exercise
Prove the following for x,y,z>0:
yx2+xy2≥x+y.
y2x2+z2y2+x2z2≥zx+xy+yz.
z2xy+x2yz+y2zx≥yx+zy+xz.
Proof
Without loss of generality, x≥y. Then x2≥y2 and y1≥x1, i.e., (x2,y2) and (y1,x1) are similarly sorted. Thus yx2+xy2≥xx2+yy2=x+y.
Letting a=yx, b=zy, c=xz, the inequality is equivalent to a2+b2+c2≥ab+bc+ca. This is true by the rearrangement inequality applied to the similarly sorted sequences (a,b,c) and (a,b,c).
Let a=x1y1/31z1/31, b=y1z1/31x1/31, and c=z1x1/31y1/31. Then the inequality to prove becomes a3+b3+c3≥a2b+b2c+c2a which was proved in problem 1.
Comments