We all know the very famous Cauchy-Schwaz inequality (of the integral form):
Let f and g be real functions continuous in [a,b]. Then the following equality holds:
(∫abf(x)g(x)dx)2≤∫ab(f(x))2dx∫ab(g(x))2dx
The purpose of this blog is to prove an enhanced version of this inequality, which is stated as follows:
Let f,g∈L2[a,b], 0<m≤f≤M, and ∫abg(x)dx=0. Prove that
(∫abf(x)g(x)dx)2≤(M+mM−m)2∫ab(f(x))2dx∫ab(g(x))2dx
Step 1: Substract k from f
From the vanilla C-S inequality, we know that if f and g are linear, i.e., f=kg, the equality holds. However in this problem, we know that there does not exist such k that f=kg because f>0 and g has non-positive values in [a,b]. This suggests us that, to reach its minimum value as much as possible, we should manage to push f to be as linear as g as possible. To this end, we can substract a constant k, from f, so that f and g can hold the same sign at any given input x∈[a,b].
So what should we choose for k. An intuitive choice is the average of f, i.e., k=b−a1∫abf(x)dx, which lies within the minimum value m and maximum value M.
A more important property of substracting a constant number k from f is, it does not change the value of ∫abf(x)g(x)dx as ∫abg(x)dx=0 is given. Then it follows that:
(∫abf(x)g(x)dx)2=(∫ab(f(x)−k)g(x)dx)2≤⎣⎢⎡∫abf(x)2dx−b−a1(∫abf(x)dx)2⎦⎥⎤∫abg(x)2dx
The last inequality applies the standard C-S inequality.
Now all we need to do is to prove that:
∫abf(x)2dx−b−a1(∫abf(x)dx)2≤(M+mM−m)2∫abf(x)2dx
Step 2: Discriminant of a quadratic equation
Rearranging the above inequality, we have:
4Mm(b−a)∫abf(x)2dx≤((M+m)∫abf(x)dx)2
It is clear that if we treat B=(M+m)∫abf(x)dx, A=∫abf(x)2dx and C=Mm(b−a), we obtain the discriminant of a quadratic equation:
B2−4AC≥0
We can construct such quadratic equation:
p(y)=(∫abf(x)2dx)y2+((M+m)∫abf(x)dx)y+Mm(b−a)
Then B2−4AC is equivalent to fact that there exists at least one point on p(y) where p(y)≤0. The last of our work is to find such point.
Step 3: Find a point
The easiest way to find such point that the value of p(y) on that point is non-positive is by trying some common values. For example, when y=0, p(0)=Mm(b−a)>0. When y=1, we have:
p(1)=∫abf(x)2dx+(M+m)∫abf(x)dx+Mm(b−a)=∫ab(f(x)2+(M+m)f(x)+Mm)dx=∫ab(f(x)+M)(f(x)+m)dx
It is a nice form but still not what we expect as the result is positive. However, if we change the sign of B, that is to turn B to −B: B=−(M+m)∫abf(x)dx, the new p(1) will become:
p(1)=∫ab(f(x)−M)(f(x)−m)dx≤0
This is exactly what we want: a value on p(y) that is non-positive. Now p(y) is:
p(y)=(∫abf(x)2dx)y2−((M+m)∫abf(x)dx)y+Mm(b−a)
and p(1)≤0 implies the discriminant B2−4AC≥0, which closes our proof.