1. Definition of convexity Definition 1.1. We say that a function f : [ a , b ] → R f:[a,b]\to \mathbb{R} f : [ a , b ] → R is convex if for any α ∈ ( 0 , 1 ) \alpha\in (0,1) α ∈ ( 0 , 1 ) the following inequality holds:
f ( α x 1 + ( 1 − α ) x 2 ) ≤ α f ( x 1 ) + ( 1 − α ) f ( x 2 ) f(\alpha x_1+(1-\alpha)x_2) \leq \alpha f(x_1)+(1-\alpha)f(x_2) f ( α x 1 + ( 1 − α ) x 2 ) ≤ α f ( x 1 ) + ( 1 − α ) f ( x 2 )
for any x 1 , x 2 ∈ [ a , b ] x_1,x_2 \in [a,b] x 1 , x 2 ∈ [ a , b ] .
Fig1. Visualization of convex function Remark 1.1. The point α x 1 + ( 1 − α ) x 2 \alpha x_1+(1-\alpha)x_2 α x 1 + ( 1 − α ) x 2 is the internal section of the points x 1 , x 2 x_1,x_2 x 1 , x 2 . The convexity of a function is equivalent to saying that the segment connecting any two points on its graph is always above the graph itself.
Remark 1.2. We also define concavity of a function by saying that a function f f f is concave if − f -f − f is convex.
Example 1.1 . The functions f ( x ) = x , ∣ x ∣ , x 2 , e x f(x)=x, |x|, x^2, e^x f ( x ) = x , ∣ x ∣ , x 2 , e x are examples of convex functions on R \mathbb{R} R .
Graph of some convex functions We can prove easily that f ( x ) = x f(x)=x f ( x ) = x is convex since for α ∈ ( 0 , 1 ) \alpha\in (0,1) α ∈ ( 0 , 1 ) ,
f ( α x 1 + ( 1 − α ) x 2 ) = α x 1 + ( 1 − α ) x 2 = α f ( x 1 ) + ( 1 − α ) f ( x 2 ) . f(\alpha x_1+(1-\alpha)x_2)=\alpha x_1+(1-\alpha)x_2
= \alpha f(x_1)+(1-\alpha)f(x_2). f ( α x 1 + ( 1 − α ) x 2 ) = α x 1 + ( 1 − α ) x 2 = α f ( x 1 ) + ( 1 − α ) f ( x 2 ) .
where ≤ \leq ≤ is just = = = .
f ( x ) = ∣ x ∣ f(x)=|x| f ( x ) = ∣ x ∣ is convex since for α ∈ ( 0 , 1 ) \alpha\in (0,1) α ∈ ( 0 , 1 ) ,
f ( α x 1 + ( 1 − α ) x 2 ) = ∣ α x 1 + ( 1 − α ) x 2 ∣ ≤ α ∣ x 1 ∣ + ( 1 − α ) ∣ x 2 ∣ = α f ( x 1 ) + ( 1 − α ) f ( x 2 ) . \begin{align*}
f(\alpha x_1+(1-\alpha)x_2)&=|\alpha x_1+(1-\alpha)x_2|\\
&\leq \alpha |x_1|+(1-\alpha)|x_2|\\
&= \alpha f(x_1)+(1-\alpha)f(x_2).
\end{align*} f ( α x 1 + ( 1 − α ) x 2 ) = ∣ α x 1 + ( 1 − α ) x 2 ∣ ≤ α ∣ x 1 ∣ + ( 1 − α ) ∣ x 2 ∣ = α f ( x 1 ) + ( 1 − α ) f ( x 2 ) .
f ( x ) = x 2 f(x)=x^2 f ( x ) = x 2 is convex since for α ∈ ( 0 , 1 ) \alpha\in (0,1) α ∈ ( 0 , 1 ) ,
α f ( x 1 ) + ( 1 − α ) f ( x 2 ) − f ( α x 1 + ( 1 − α ) x 2 ) = α x 1 2 + ( 1 − α ) x 2 2 − ( α x 1 + ( 1 − α ) x 2 ) 2 = α x 1 2 + ( 1 − α ) x 2 2 − α 2 x 1 2 − ( 1 − α ) 2 x 2 2 − 2 α ( 1 − α ) x 1 x 2 = α ( 1 − α ) ( x 1 − x 2 ) 2 ≥ 0 \begin{align*}
&\alpha f(x_1)+(1-\alpha)f(x_2)-f(\alpha x_1+(1-\alpha)x_2)\\
&=\alpha x_1^2+(1-\alpha)x_2^2-(\alpha x_1+(1-\alpha)x_2)^2\\
&=\alpha x_1^2+(1-\alpha)x_2^2-\alpha^2 x_1^2-(1-\alpha)^2x_2^2-2\alpha(1-\alpha)x_1x_2\\
&=\alpha(1-\alpha)(x_1-x_2)^2\\
&\geq 0
\end{align*} α f ( x 1 ) + ( 1 − α ) f ( x 2 ) − f ( α x 1 + ( 1 − α ) x 2 ) = α x 1 2 + ( 1 − α ) x 2 2 − ( α x 1 + ( 1 − α ) x 2 ) 2 = α x 1 2 + ( 1 − α ) x 2 2 − α 2 x 1 2 − ( 1 − α ) 2 x 2 2 − 2 α ( 1 − α ) x 1 x 2 = α ( 1 − α ) ( x 1 − x 2 ) 2 ≥ 0
2. Differentiability and convexity Theorem 2.1. Let f : ( a , b ) → R f:(a,b)\to \mathbb{R} f : ( a , b ) → R be a twice differentiable function on ( a , b ) (a,b) ( a , b ) . Then f f f is convex on ( a , b ) (a,b) ( a , b ) if and only if f ′ ′ ( x ) ≥ 0 f''(x)\geq 0 f ′′ ( x ) ≥ 0 for all x ∈ ( a , b ) x\in (a,b) x ∈ ( a , b ) .
With this theorem, we immediately see that f ( x ) = e x f(x)=e^x f ( x ) = e x is convex since f ′ ′ ( x ) = e x > 0 f''(x)=e^x>0 f ′′ ( x ) = e x > 0 for all x ∈ R x\in \mathbb{R} x ∈ R .
Proof.
1) First we will show that f f f being convex implies f ′ ′ ( x ) ≥ 0 f''(x)\geq 0 f ′′ ( x ) ≥ 0 .
To do so, we will first prove that
f ′ ′ ( x ) = lim h → 0 f ( x + h ) + f ( x − h ) − 2 f ( x ) h 2 … ( ∗ ) f''(x)=\lim_{h\to 0}\frac{f(x+h)+f(x-h)-2f(x)}{h^2} \quad \dots (*) f ′′ ( x ) = h → 0 lim h 2 f ( x + h ) + f ( x − h ) − 2 f ( x ) … ( ∗ )
This holds by using Taylor expansion,
f ( x + h ) = f ( x ) + h f ′ ( x ) + h 2 2 f ′ ′ ( x ) + o ( h 2 ) , … ( 1 ) f ( x − h ) = f ( x ) − h f ′ ( x ) + h 2 2 f ′ ′ ( x ) + o ( h 2 ) , … ( 2 ) \begin{align*}
f(x+h)&=f(x)+hf'(x)+\frac{h^2}{2}f''(x)+o(h^2), \quad \dots (1)\\
f(x-h)&=f(x)-hf'(x)+\frac{h^2}{2}f''(x)+o(h^2), \quad \dots (2)\\
\end{align*} f ( x + h ) f ( x − h ) = f ( x ) + h f ′ ( x ) + 2 h 2 f ′′ ( x ) + o ( h 2 ) , … ( 1 ) = f ( x ) − h f ′ ( x ) + 2 h 2 f ′′ ( x ) + o ( h 2 ) , … ( 2 )
where lim h → 0 o ( h 2 ) h 2 = 0 \lim_{h\to 0}\frac{o(h^2)}{h^2}=0 lim h → 0 h 2 o ( h 2 ) = 0 , and adding ( 1 ) , ( 2 ) (1), (2) ( 1 ) , ( 2 ) to get
f ( x + h ) + f ( x − h ) = 2 f ( x ) + h 2 f ′ ′ ( x ) + o ( h 2 ) \begin{align*}
f(x+h)+f(x-h)&=2f(x)+h^2f''(x)+o(h^2)
\end{align*} f ( x + h ) + f ( x − h ) = 2 f ( x ) + h 2 f ′′ ( x ) + o ( h 2 )
Thus we get our claim ( ∗ ) (*) ( ∗ ) .
Since by convexity,
f ( x ) = f ( x + h 2 + x − h 2 ) ≤ 1 2 f ( x + h ) + 1 2 f ( x − h ) , \begin{align*}
f(x)=f\Big(\frac{x+h}{2}+\frac{x-h}{2}\Big)\leq \frac{1}{2}f(x+h)+\frac{1}{2}f(x-h)
\end{align*}, f ( x ) = f ( 2 x + h + 2 x − h ) ≤ 2 1 f ( x + h ) + 2 1 f ( x − h ) ,
so
f ( x + h ) + f ( x − h ) − 2 f ( x ) ≥ 0. \begin{align*}
f(x+h)+f(x-h)-2f(x)\end{align*}\geq 0. f ( x + h ) + f ( x − h ) − 2 f ( x ) ≥ 0.
Hence
f ′ ′ ( x ) = lim h → 0 f ( x + h ) + f ( x − h ) − 2 f ( x ) h 2 ≥ 0. f''(x)=\lim_{h\to 0}\frac{f(x+h)+f(x-h)-2f(x)}{h^2}\geq 0. f ′′ ( x ) = h → 0 lim h 2 f ( x + h ) + f ( x − h ) − 2 f ( x ) ≥ 0.
2) Next we prove the opposite; f ′ ′ ( x ) ≥ 0 f''(x)\geq 0 f ′′ ( x ) ≥ 0 implies convexity of f f f convex.
Let t = α x 1 + ( 1 − α ) x 2 t=\alpha x_1+(1-\alpha)x_2 t = α x 1 + ( 1 − α ) x 2 . Then by Taylor theorem, there exist c 1 , c 2 c_1, c_2 c 1 , c 2 such that
f ( x 1 ) − f ( t ) = ( x 1 − t ) f ′ ( t ) + 1 2 ( x 1 − t ) 2 f ′ ′ ( c 1 ) , … ( 4 ) f ( x 2 ) − f ( t ) = ( x 2 − t ) f ′ ( t ) + 1 2 ( x 2 − t ) 2 f ′ ′ ( c 2 ) , … ( 5 ) \begin{align*}
f(x_1)-f(t)&=(x_1-t)f'(t)+\frac{1}{2}(x_1-t)^2f''(c_1), \quad \dots (4)\\
f(x_2)-f(t)&=(x_2-t)f'(t)+\frac{1}{2}(x_2-t)^2f''(c_2), \quad \dots (5)\\
\end{align*} f ( x 1 ) − f ( t ) f ( x 2 ) − f ( t ) = ( x 1 − t ) f ′ ( t ) + 2 1 ( x 1 − t ) 2 f ′′ ( c 1 ) , … ( 4 ) = ( x 2 − t ) f ′ ( t ) + 2 1 ( x 2 − t ) 2 f ′′ ( c 2 ) , … ( 5 )
Computing α × ( 4 ) + ( 1 − α ) × ( 5 ) \alpha\times (4)+(1-\alpha)\times (5) α × ( 4 ) + ( 1 − α ) × ( 5 ) , we get
α f ( x 1 ) − α f ( t ) + ( 1 − α ) f ( x 2 ) − ( 1 − α ) f ( t ) = α ( x 1 − t ) f ′ ( t ) + 1 2 α ( x 1 − t ) 2 f ′ ′ ( c 1 ) + ( 1 − α ) ( x 2 − t ) f ′ ( t ) + 1 2 ( 1 − α ) ( x 2 − t ) 2 f ′ ′ ( c 2 ) \begin{align*}
&\alpha f(x_1)-\alpha f(t)+(1-\alpha)f(x_2)-(1-\alpha) f(t)\\
&=\alpha(x_1-t)f'(t)+\frac{1}{2}\alpha(x_1-t)^2f''(c_1)+(1-\alpha)(x_2-t)f'(t)+\frac{1}{2}(1-\alpha)(x_2-t)^2f''(c_2)
\end{align*} α f ( x 1 ) − α f ( t ) + ( 1 − α ) f ( x 2 ) − ( 1 − α ) f ( t ) = α ( x 1 − t ) f ′ ( t ) + 2 1 α ( x 1 − t ) 2 f ′′ ( c 1 ) + ( 1 − α ) ( x 2 − t ) f ′ ( t ) + 2 1 ( 1 − α ) ( x 2 − t ) 2 f ′′ ( c 2 )
The LHS is
α f ( x 1 ) + ( 1 − α ) f ( x 2 ) − f ( t ) \begin{align*}
&\alpha f(x_1)+(1-\alpha)f(x_2)- f(t)\\
\end{align*} α f ( x 1 ) + ( 1 − α ) f ( x 2 ) − f ( t )
and the RHS is
α ( x 1 − t ) f ′ ( t ) + 1 2 α ( x 1 − t ) 2 f ′ ′ ( c 1 ) + ( 1 − α ) ( x 2 − t ) f ′ ( t ) + 1 2 ( 1 − α ) ( x 2 − t ) 2 f ′ ′ ( c 2 ) = [ α x 1 + ( 1 − α ) x 2 − t ] ⏟ = 0 f ′ ( t ) + 1 2 α ( x 1 − t ) 2 f ′ ′ ( c 1 ) + 1 2 ( 1 − α ) ( x 2 − t ) 2 f ′ ′ ( c 2 ) = 1 2 α ( x 1 − t ) 2 f ′ ′ ( c 1 ) ⏟ ≥ 0 + 1 2 ( 1 − α ) ( x 2 − t ) 2 f ′ ′ ( c 2 ) ⏟ ≥ 0 ≥ 0 \begin{align*}
&\alpha(x_1-t)f'(t)+\frac{1}{2}\alpha(x_1-t)^2f''(c_1)+(1-\alpha)(x_2-t)f'(t)+\frac{1}{2}(1-\alpha)(x_2-t)^2f''(c_2)\\
&=\underbrace{[\alpha x_1+(1-\alpha) x_2-t]}_{=0}f'(t)+\frac{1}{2}\alpha(x_1-t)^2f''(c_1)+\frac{1}{2}(1-\alpha)(x_2-t)^2f''(c_2)\\
&=\frac{1}{2}\alpha(x_1-t)^2\underbrace{f''(c_1)}_{\geq 0}+\frac{1}{2}(1-\alpha)(x_2-t)^2\underbrace{f''(c_2)}_{\geq 0}\\
&\geq 0
\end{align*} α ( x 1 − t ) f ′ ( t ) + 2 1 α ( x 1 − t ) 2 f ′′ ( c 1 ) + ( 1 − α ) ( x 2 − t ) f ′ ( t ) + 2 1 ( 1 − α ) ( x 2 − t ) 2 f ′′ ( c 2 ) = = 0 [ α x 1 + ( 1 − α ) x 2 − t ] f ′ ( t ) + 2 1 α ( x 1 − t ) 2 f ′′ ( c 1 ) + 2 1 ( 1 − α ) ( x 2 − t ) 2 f ′′ ( c 2 ) = 2 1 α ( x 1 − t ) 2 ≥ 0 f ′′ ( c 1 ) + 2 1 ( 1 − α ) ( x 2 − t ) 2 ≥ 0 f ′′ ( c 2 ) ≥ 0
Hence we obtain
α f ( x 1 ) + ( 1 − α ) f ( x 2 ) − f ( t ) ≥ 0 \begin{align*}
&\alpha f(x_1)+(1-\alpha)f(x_2)- f(t)\geq 0
\end{align*} α f ( x 1 ) + ( 1 − α ) f ( x 2 ) − f ( t ) ≥ 0
or equivalently,
f ( α x 1 + ( 1 − α ) x 2 ) ≤ α f ( x 1 ) + ( 1 − α ) f ( x 2 ) f(\alpha x_1+(1-\alpha)x_2) \leq \alpha f(x_1)+(1-\alpha)f(x_2) f ( α x 1 + ( 1 − α ) x 2 ) ≤ α f ( x 1 ) + ( 1 − α ) f ( x 2 )
as desired.
□
Remark 2.1. If f f f is a differentiable convex function, then
f ( y ) ≥ f ( x ) + ( y − x ) f ′ ( x ) \begin{align*}
f(y)\geq f(x)&+(y-x)f'(x)
\end{align*} f ( y ) ≥ f ( x ) + ( y − x ) f ′ ( x )
for any x , y x,y x , y .
This holds from Taylor theorem
f ( y ) = f ( x ) + ( y − x ) f ′ ( x ) + 1 2 ( y − x ) 2 f ′ ′ ( ∃ c ) \begin{align*}
f(y)&=f(x)+(y-x)f'(x)+\frac{1}{2}(y-x)^2f''(^{\exist}c)
\end{align*} f ( y ) = f ( x ) + ( y − x ) f ′ ( x ) + 2 1 ( y − x ) 2 f ′′ ( ∃ c )
and f ′ ′ ( c ) ≥ 0 f''(c)\geq 0 f ′′ ( c ) ≥ 0 by the convexity.
Alternately, one can show directly from the definition of convexity. For t ∈ ( 0 , 1 ) t\in (0,1) t ∈ ( 0 , 1 ) ,
f ( t y + ( 1 − t ) x ) ≤ t f ( y ) + ( 1 − t ) f ( x ) \begin{align*}
f\Big(ty+(1-t)x\Big)\leq tf(y)+(1-t)f(x)
\end{align*} f ( t y + ( 1 − t ) x ) ≤ t f ( y ) + ( 1 − t ) f ( x )
so we
f ( x + t ( y − x ) ) − f ( x ) t ≤ f ( y ) − f ( x ) \begin{align*}
\frac{f\Big(x+t(y-x)\Big)-f(x)}{t}\leq f(y)-f(x)
\end{align*} t f ( x + t ( y − x ) ) − f ( x ) ≤ f ( y ) − f ( x )
Take limit as t → 0 t\to 0 t → 0 . Then the LHS becomes
lim t → 0 f ( x + t ( y − x ) ) − f ( x ) t = ( y − x ) f ′ ( x ) \begin{align*}
\lim_{t\to 0}\frac{f\Big(x+t(y-x)\Big)-f(x)}{t}=(y-x)f'(x)
\end{align*} t → 0 lim t f ( x + t ( y − x ) ) − f ( x ) = ( y − x ) f ′ ( x )
Hence we obtain
( y − x ) f ′ ( x ) ≤ f ( y ) − f ( x ) \begin{align*}
(y-x)f'(x)\leq f(y)-f(x)
\end{align*} ( y − x ) f ′ ( x ) ≤ f ( y ) − f ( x )
which is equivalent to what we want to prove.
3. Jensen inequality Theorem 3.1. Let f : [ a , b ] → R f:[a,b]\to \mathbb{R} f : [ a , b ] → R be a convex function. Then for any α 1 , α 2 , ⋯ , α n ∈ ( 0 , 1 ) \alpha_1,\alpha_2,\cdots,\alpha_n \in (0,1) α 1 , α 2 , ⋯ , α n ∈ ( 0 , 1 ) such that ∑ i = 1 n α i = 1 \sum_{i=1}^n\alpha_i=1 ∑ i = 1 n α i = 1 and any x 1 , x 2 , ⋯ , x n ∈ [ a , b ] x_1,x_2,\cdots ,x_n\in [a,b] x 1 , x 2 , ⋯ , x n ∈ [ a , b ] , the following inequality holds.
f ( ∑ i = 1 n α i x i ) ≤ ∑ i = 1 n α i f ( x i ) … ( J ) \begin{align*}
f\Big(\sum_{i=1}^n\alpha_i x_i\Big) \leq \sum_{i=1}^n\alpha_i f(x_i)\quad \dots (J)
\end{align*} f ( i = 1 ∑ n α i x i ) ≤ i = 1 ∑ n α i f ( x i ) … ( J )
Proof. We will prove by induction. First ( J ) (J) ( J ) holds n = 2 n=2 n = 2 by the definition of convexity; i.e., for α 1 + α 2 = 1 \alpha_1+\alpha_2=1 α 1 + α 2 = 1 ,
f ( α 1 x 1 + α 2 x 2 ) ≤ α 1 f ( x 1 ) + α 2 ( x 2 ) \begin{align*}
f(\alpha_1 x_1+\alpha_2 x_2) \leq \alpha_1 f(x_1)+\alpha_2 (x_2)
\end{align*} f ( α 1 x 1 + α 2 x 2 ) ≤ α 1 f ( x 1 ) + α 2 ( x 2 )
Suppose that ( J ) (J) ( J ) holds up to n = k n=k n = k . We will prove that it also holds for n = k + 1 n=k+1 n = k + 1 .
Take α 1 , α 2 , ⋯ , α k + 1 ∈ ( 0 , 1 ) \alpha_1,\alpha_2,\cdots,\alpha_{k+1} \in (0,1) α 1 , α 2 , ⋯ , α k + 1 ∈ ( 0 , 1 ) such that ∑ i = 1 k + 1 α i = 1 \sum_{i=1}^{k+1}\alpha_i=1 ∑ i = 1 k + 1 α i = 1 .
Let A : = ∑ i = 1 k α i A:=\sum_{i=1}^{k}\alpha_i A := ∑ i = 1 k α i . Then
f ( ∑ i = 1 k + 1 α i x i ) = f ( ∑ i = 1 k α i x i + α k + 1 x k + 1 ) = f ( A ∑ i = 1 k α i A x i + α k + 1 x k + 1 ) ≤ A f ( ∑ i = 1 k α i A x i ) + α k + 1 f ( x k + 1 ) … use ( J ) for n = 2 ≤ A ⋅ α i A f ( ∑ i = 1 k x i ) + α k + 1 f ( x k + 1 ) … use ( J ) for n = k by induction hypothesis = ∑ i = 1 k + 1 α i f ( x i ) \begin{align*}
f\Big(\sum_{i=1}^{k+1}\alpha_i x_i\Big)
&= f\Big(\sum_{i=1}^{k}\alpha_i x_i+\alpha_{k+1} x_{k+1}\Big)\\
&= f\Big(A\sum_{i=1}^{k}\frac{\alpha_i}{A} x_i+\alpha_{k+1} x_{k+1}\Big)\\
&\leq Af\Big(\sum_{i=1}^{k}\frac{\alpha_i}{A} x_i\Big)+\alpha_{k+1} f(x_{k+1})\quad \dots \text{use }(J) \text{ for } n=2\\
&\leq A\cdot \frac{\alpha_i}{A}f\Big(\sum_{i=1}^{k} x_i\Big)+\alpha_{k+1} f(x_{k+1})\quad \dots \text{use }(J) \text{ for } n=k \text{ by induction hypothesis}\\
&= \sum_{i=1}^{k+1}\alpha_i f(x_i)
\end{align*} f ( i = 1 ∑ k + 1 α i x i ) = f ( i = 1 ∑ k α i x i + α k + 1 x k + 1 ) = f ( A i = 1 ∑ k A α i x i + α k + 1 x k + 1 ) ≤ A f ( i = 1 ∑ k A α i x i ) + α k + 1 f ( x k + 1 ) … use ( J ) for n = 2 ≤ A ⋅ A α i f ( i = 1 ∑ k x i ) + α k + 1 f ( x k + 1 ) … use ( J ) for n = k by induction hypothesis = i = 1 ∑ k + 1 α i f ( x i )
Hence ( J ) (J) ( J ) is proved.
□
Special case. Take α 1 , α 2 , ⋯ , α n = 1 n \alpha_1,\alpha_2,\cdots,\alpha_n =\frac{1}{n} α 1 , α 2 , ⋯ , α n = n 1 , which satisfy ∑ i = 1 n α i = 1 \sum_{i=1}^n\alpha_i=1 ∑ i = 1 n α i = 1 . Then for any convex function f : [ a , b ] → R f:[a,b]\to \mathbb{R} f : [ a , b ] → R , the following holds.
f ( 1 n ∑ i = 1 n x i ) ≤ 1 n ∑ i = 1 n f ( x i ) \begin{align*}
f\Big(\frac{1}{n}\sum_{i=1}^nx_i\Big) \leq \frac{1}{n}\ \sum_{i=1}^n\ f(x_i)
\end{align*} f ( n 1 i = 1 ∑ n x i ) ≤ n 1 i = 1 ∑ n f ( x i )
for any x 1 , x 2 , ⋯ , x n ∈ [ a , b ] x_1,x_2,\cdots ,x_n\in [a,b] x 1 , x 2 , ⋯ , x n ∈ [ a , b ] .
4. Applications Theorem 4.1. For any a 1 , a 2 , … , a n ≥ 0 a_1,a_2,\dots,a_n \geq 0 a 1 , a 2 , … , a n ≥ 0 , the following inequality holds
1 n ∑ i = 1 n a i ≥ ∏ i = 1 n a i n … ( AM-GM ) \frac{1}{n}\sum_{i=1}^n a_i\geq \sqrt[n]{\prod_{i=1}^n a_i}\quad \dots (\text{AM-GM}) n 1 i = 1 ∑ n a i ≥ n i = 1 ∏ n a i … ( AM-GM )
Proof. WLOG, assume that a 1 , a 2 , … , a n > 0 a_1,a_2,\dots,a_n > 0 a 1 , a 2 , … , a n > 0 , since ( AM-GM ) (\text{AM-GM}) ( AM-GM ) immediately holds if any of a i a_i a i 's is 0.
Consider the function f : ( 0 , ∞ ) → R , f ( x ) = − ln x f:(0,\infty)\to \mathbb{R}, f(x)=-\ln x f : ( 0 , ∞ ) → R , f ( x ) = − ln x , which is convex since f ′ ( x ) = − 1 x , f ′ ′ ( x ) = 1 x 2 > 0 f'(x)=-\frac{1}{x},f''(x)=\frac{1}{x^2} >0 f ′ ( x ) = − x 1 , f ′′ ( x ) = x 2 1 > 0 . Hence by the Jensen inequality,
f ( 1 n ∑ i = 1 n x i ) ≤ 1 n ∑ i = 1 n f ( x i ) ⇔ − ln ( 1 n ∑ i = 1 n x i ) ≤ − 1 n ∑ i = 1 n ln ( x i ) = − ln ∏ i = 1 n a i n ⇔ 1 n ∑ i = 1 n a i ≥ ∏ i = 1 n a i n \begin{align*}
f\Big(\frac{1}{n}\sum_{i=1}^nx_i\Big)
&\leq \frac{1}{n}\ \sum_{i=1}^n\ f(x_i)\\
\Leftrightarrow
-\ln\Big(\frac{1}{n}\sum_{i=1}^nx_i\Big)
&\leq -\frac{1}{n}\ \sum_{i=1}^n\ln(x_i)=-\ln\sqrt[n]{\prod_{i=1}^n a_i}\\
\Leftrightarrow
\frac{1}{n}\sum_{i=1}^n a_i&\geq \sqrt[n]{\prod_{i=1}^n a_i}
\end{align*} f ( n 1 i = 1 ∑ n x i ) ⇔ − ln ( n 1 i = 1 ∑ n x i ) ⇔ n 1 i = 1 ∑ n a i ≤ n 1 i = 1 ∑ n f ( x i ) ≤ − n 1 i = 1 ∑ n ln ( x i ) = − ln n i = 1 ∏ n a i ≥ n i = 1 ∏ n a i
□
4.2. Weighted AM-GM inequality Theorem 4.2. For any a 1 , a 2 , … , a n ≥ 0 a_1,a_2,\dots,a_n \geq 0 a 1 , a 2 , … , a n ≥ 0 and λ 1 , λ 2 , ⋯ , λ n ∈ ( 0 , 1 ) \lambda_1,\lambda_2,\cdots,\lambda_n \in (0,1) λ 1 , λ 2 , ⋯ , λ n ∈ ( 0 , 1 ) such that ∑ i = 1 n λ i = 1 \sum_{i=1}^n\lambda_i=1 ∑ i = 1 n λ i = 1 , the following inequality holds
∑ i = 1 n λ i a i ≥ ∏ i = 1 n a i λ i \sum_{i=1}^n \lambda_i a_i\geq \prod_{i=1}^n a_i^{\lambda_i} i = 1 ∑ n λ i a i ≥ i = 1 ∏ n a i λ i
Proof. The proof is the same as in AM-GM inequality. Consider the function f : ( 0 , ∞ ) → R , f ( x ) = − ln x f:(0,\infty)\to \mathbb{R}, f(x)=-\ln x f : ( 0 , ∞ ) → R , f ( x ) = − ln x , which is convex. Hence by the Jensen inequality,
f ( ∑ i = 1 n λ i x i ) ≤ ∑ i = 1 n λ i f ( x i ) ⇔ − ln ( ∑ i = 1 n λ i x i ) ≤ − ∑ i = 1 n λ i ln ( x i ) = − ln ∏ i = 1 n a i λ i ⇔ ∑ i = 1 n λ i a i ≥ ∏ i = 1 n a i λ i \begin{align*}
f\Big(\sum_{i=1}^n\lambda_ix_i\Big)
&\leq \sum_{i=1}^n\lambda_i f(x_i)\\
\Leftrightarrow
-\ln\Big(\sum_{i=1}^n\lambda_i x_i\Big)
&\leq -\sum_{i=1}^n\lambda_i \ln(x_i)=-\ln\prod_{i=1}^n a_i^{\lambda_i }\\
\Leftrightarrow
\sum_{i=1}^n \lambda_i a_i&\geq \prod_{i=1}^n a_i^{\lambda_i}
\end{align*} f ( i = 1 ∑ n λ i x i ) ⇔ − ln ( i = 1 ∑ n λ i x i ) ⇔ i = 1 ∑ n λ i a i ≤ i = 1 ∑ n λ i f ( x i ) ≤ − i = 1 ∑ n λ i ln ( x i ) = − ln i = 1 ∏ n a i λ i ≥ i = 1 ∏ n a i λ i
□
4.3. Young's inequality Theorem 4.3. If a , b ≥ 0 a,b\ge 0 a , b ≥ 0 , and p , q > 1 p,q>1 p , q > 1 such that 1 p + 1 q = 1 \frac{1}{p}+\frac{1}{q}=1 p 1 + q 1 = 1 , then
a p p + b q q ≥ a b \frac{a^p}{p}+\frac{b^q}{q}\geq ab p a p + q b q ≥ ab
Equality holds if and only if a p = b q a^p=b^q a p = b q
Proof. Use the weighted AM-GM with λ 1 = 1 p , λ 2 = 1 q , a 1 = a p , a 2 = b q \lambda_1=\frac{1}{p}, \lambda_2=\frac{1}{q}, a_1=a^p, a_2=b^q λ 1 = p 1 , λ 2 = q 1 , a 1 = a p , a 2 = b q as follows.
λ 1 a 1 + λ 2 a 2 ≥ a 1 λ 1 a 2 λ 2 ⇔ a p p + b q q ≥ ( a p ) 1 p ( b q ) 1 q ⇔ a p p + b q q ≥ a b \begin{align*}
\lambda_1a_1+\lambda_2a_2 &\geq a_1^{\lambda_1}a_2^{\lambda_2} \\
\Leftrightarrow
\frac{a^p}{p}+\frac{b^q}{q}&\geq (a^p)^{\frac{1}{p}}(b^q)^{\frac{1}{q}}\\
\Leftrightarrow
\frac{a^p}{p}+\frac{b^q}{q}&\geq ab
\end{align*} λ 1 a 1 + λ 2 a 2 ⇔ p a p + q b q ⇔ p a p + q b q ≥ a 1 λ 1 a 2 λ 2 ≥ ( a p ) p 1 ( b q ) q 1 ≥ ab
□
4.4. Hölder's inequality Theorem 4.4. For any a 1 , a 2 , … , a n ≥ 0 , b 1 , b 2 , … , b n ≥ 0 a_1,a_2,\dots,a_n \geq 0,b_1,b_2,\dots,b_n \geq 0 a 1 , a 2 , … , a n ≥ 0 , b 1 , b 2 , … , b n ≥ 0 and p , q > 1 p,q>1 p , q > 1 such that 1 p + 1 q = 1 \frac{1}{p}+\frac{1}{q}=1 p 1 + q 1 = 1 , the following inequality holds
∑ i = 1 n a i b i ≤ ( ∑ i = 1 n a i p ) 1 / p ( ∑ i = 1 n b i q ) 1 / q \sum_{i=1}^n a_ib_i\leq \Big(\sum_{i=1}^na_i^p\Big)^{1/p}\Big(\sum_{i=1}^nb_i^q\Big)^{1/q} i = 1 ∑ n a i b i ≤ ( i = 1 ∑ n a i p ) 1/ p ( i = 1 ∑ n b i q ) 1/ q
Equality holds if and only if
a 1 p b 1 q = a 2 p b 2 q = ⋯ = a n p b n q . \frac{a_1^p}{b_1^q}=\frac{a_2^p}{b_2^q}=\cdots=\frac{a_n^p}{b_n^q}. b 1 q a 1 p = b 2 q a 2 p = ⋯ = b n q a n p .
Proof. Consider the function f : ( 0 , ∞ ) → R , f ( x ) = x p , ( p > 0 ) f:(0,\infty)\to \mathbb{R}, f(x)=x^p, (p>0) f : ( 0 , ∞ ) → R , f ( x ) = x p , ( p > 0 ) , which is convex since f ′ ′ ( x ) = p ( p − 1 ) x p − 2 > 0 f''(x)=p(p-1)x^{p-2} > 0 f ′′ ( x ) = p ( p − 1 ) x p − 2 > 0 . Hence by the Jensen inequality, for x 1 , x 2 , ⋯ , x n > 0 , m 1 , m 2 , ⋯ , m n > 0 x_1,x_2,\cdots, x_n>0, m_1,m_2,\cdots, m_n>0 x 1 , x 2 , ⋯ , x n > 0 , m 1 , m 2 , ⋯ , m n > 0 we have
f ( ∑ i = 1 n m i x i ∑ i = 1 n m i ) ≤ ∑ i = 1 n m i f ( x i ) ∑ i = 1 n m i ⇔ ( ∑ i = 1 n m i x i ∑ i = 1 n m i ) p ≤ ∑ i = 1 n m i x i p ∑ i = 1 n m i ⇔ ( ∑ i = 1 n m i x i ) p ≤ ( ∑ i = 1 n m i ) p − 1 ∑ i = 1 n m i x i p ⇔ ∑ i = 1 n m i x i ≤ ( ∑ i = 1 n m i ) p − 1 p ( ∑ i = 1 n m i x i p ) 1 / p … ( ∗ ) \begin{align*}
f\Big(\frac{\sum_{i=1}^nm_ix_i}{\sum_{i=1}^nm_i}\Big)
&\leq \frac{\sum_{i=1}^nm_if(x_i)}{\sum_{i=1}^nm_i}\\
\Leftrightarrow
\Big(\frac{\sum_{i=1}^nm_ix_i}{\sum_{i=1}^nm_i}\Big)^p
&\leq \frac{\sum_{i=1}^nm_ix_i^p}{\sum_{i=1}^nm_i}\\
\Leftrightarrow
\Big(\sum_{i=1}^nm_ix_i\Big)^p
&\leq \Big(\sum_{i=1}^nm_i\Big)^{p-1}\sum_{i=1}^nm_ix_i^p\\
\Leftrightarrow
\sum_{i=1}^nm_ix_i
&\leq \Big(\sum_{i=1}^nm_i\Big)^{\frac{p-1}{p}}\Big(\sum_{i=1}^nm_ix_i^p\Big)^{1/p}\quad \dots (*)\\
\end{align*} f ( ∑ i = 1 n m i ∑ i = 1 n m i x i ) ⇔ ( ∑ i = 1 n m i ∑ i = 1 n m i x i ) p ⇔ ( i = 1 ∑ n m i x i ) p ⇔ i = 1 ∑ n m i x i ≤ ∑ i = 1 n m i ∑ i = 1 n m i f ( x i ) ≤ ∑ i = 1 n m i ∑ i = 1 n m i x i p ≤ ( i = 1 ∑ n m i ) p − 1 i = 1 ∑ n m i x i p ≤ ( i = 1 ∑ n m i ) p p − 1 ( i = 1 ∑ n m i x i p ) 1/ p … ( ∗ )
Taking m i : = b i q , x i = a i b i 1 − q m_i:=b_i^q, x_i=a_ib_i^{1-q} m i := b i q , x i = a i b i 1 − q , then m i x i = a i b i , m i x i p = a i p m_ix_i=a_ib_i,m_ix_i^p=a_i^p m i x i = a i b i , m i x i p = a i p , and as p − 1 p = 1 − 1 p = 1 q \frac{p-1}{p}=1-\frac{1}{p}=\frac{1}{q} p p − 1 = 1 − p 1 = q 1 , ( ∗ ) (*) ( ∗ ) becomes
∑ i = 1 n a i b i ≤ ( ∑ i = 1 n b i q ) 1 / q ( ∑ i = 1 n a i p ) 1 / p \sum_{i=1}^n a_ib_i\leq \Big(\sum_{i=1}^nb_i^q\Big)^{1/q}\Big(\sum_{i=1}^na_i^p\Big)^{1/p} i = 1 ∑ n a i b i ≤ ( i = 1 ∑ n b i q ) 1/ q ( i = 1 ∑ n a i p ) 1/ p
as desired.
□
5. Applications to problem solving Problem 5.1. Let A , B , C A, B, C A , B , C be the internal angles of a triangle; i.e., A , B , C > 0 A, B, C>0 A , B , C > 0 and A + B + C = π A+B+C=\pi A + B + C = π . Show that
sin A + sin B + sin C ≤ 3 3 2 \sin A+\sin B+\sin C \leq \frac{3\sqrt{3}}{2} sin A + sin B + sin C ≤ 2 3 3
cos A 2 + cos B 2 + cos C 2 ≤ 3 3 2 \cos \frac{A}{2}+\cos \frac{B}{2}+\cos \frac{C}{2} \leq \frac{3\sqrt{3}}{2} cos 2 A + cos 2 B + cos 2 C ≤ 2 3 3
tan A 2 + tan B 2 + tan C 2 ≥ 3 \tan \frac{A}{2}+\tan \frac{B}{2}+\tan\frac{C}{2} \geq \sqrt{3} tan 2 A + tan 2 B + tan 2 C ≥ 3
Solution. 1. Since 0 < A , B , C < π 0< A, B, C<\pi 0 < A , B , C < π , consider the function f ( x ) = − sin x , x ∈ ( 0 , π ) f(x)=-\sin x, x\in (0,\pi) f ( x ) = − sin x , x ∈ ( 0 , π ) which is convex, since f ′ ( x ) = − cos x , f ′ ′ ( x ) = sin x > 0 f'(x)=-\cos x, f''(x)=\sin x>0 f ′ ( x ) = − cos x , f ′′ ( x ) = sin x > 0 . Thus by the Jensen inequality, we have
f ( A + B + C 3 ) ≤ f ( A ) + f ( B ) + f ( C ) 3 ⇔ − sin ( A + B + C 3 ) ≤ − sin A + sin B + sin C 3 ⇔ sin A + sin B + sin C ≤ 3 sin ( A + B + C 3 ) = 3 sin π 3 = 3 3 2 \begin{align*}
f\Big(\frac{A+B+C}{3}\Big)&\leq \frac{f(A)+f(B)+f(C)}{3}\\
\Leftrightarrow
-\sin\Big(\frac{A+B+C}{3}\Big)&\leq -\frac{\sin A+\sin B+\sin C}{3}\\
\Leftrightarrow
\sin A+\sin B+\sin C&\leq 3\sin\Big(\frac{A+B+C}{3}\Big)=3\sin\frac{\pi}{3}=\frac{3\sqrt{3}}{2}\\
\end{align*} f ( 3 A + B + C ) ⇔ − sin ( 3 A + B + C ) ⇔ sin A + sin B + sin C ≤ 3 f ( A ) + f ( B ) + f ( C ) ≤ − 3 sin A + sin B + sin C ≤ 3 sin ( 3 A + B + C ) = 3 sin 3 π = 2 3 3
2. Since 0 < A , B , C < π 0< A, B, C<\pi 0 < A , B , C < π , then 0 < A / 2 , B / 2 , C / 2 < π / 2 0 < A/2, B/2, C/2<\pi/2 0 < A /2 , B /2 , C /2 < π /2 . We consider the function f ( x ) = − cos x , x ∈ ( 0 , π / 2 ) f(x)=-\cos x, x\in (0,\pi/2) f ( x ) = − cos x , x ∈ ( 0 , π /2 ) which is convex, since f ′ ( x ) = sin x , f ′ ′ ( x ) = cos x > 0 f'(x)=\sin x, f''(x)=\cos x>0 f ′ ( x ) = sin x , f ′′ ( x ) = cos x > 0 . Thus by the Jensen inequality, we have
f ( A / 2 + B / 2 + C / 2 3 ) ≤ f ( A / 2 ) + f ( B / 2 ) + f ( C / 2 ) 3 ⇔ − cos ( A + B + C 6 ) ≤ − cos ( A / 2 ) + cos ( B / 2 ) + cos ( C / 2 ) 3 ⇔ cos A 2 + cos B 2 + cos C 2 ≤ 3 cos ( A + B + C 6 ) = 3 cos π 6 = 3 3 2 \begin{align*}
f\Big(\frac{A/2+B/2+C/2}{3}\Big)&\leq \frac{f(A/2)+f(B/2)+f(C/2)}{3}\\
\Leftrightarrow
-\cos\Big(\frac{A+B+C}{6}\Big)&\leq -\frac{\cos(A/2)+\cos (B/2)+\cos (C/2)}{3}\\
\Leftrightarrow
\cos \frac{A}{2}+\cos \frac{B}{2}+\cos \frac{C}{2}&\leq 3\cos\Big(\frac{A+B+C}{6}\Big)=3\cos\frac{\pi}{6}=\frac{3\sqrt{3}}{2}\\
\end{align*} f ( 3 A /2 + B /2 + C /2 ) ⇔ − cos ( 6 A + B + C ) ⇔ cos 2 A + cos 2 B + cos 2 C ≤ 3 f ( A /2 ) + f ( B /2 ) + f ( C /2 ) ≤ − 3 cos ( A /2 ) + cos ( B /2 ) + cos ( C /2 ) ≤ 3 cos ( 6 A + B + C ) = 3 cos 6 π = 2 3 3
3. Similarly, consider the function f ( x ) = tan x , x ∈ ( 0 , π / 2 ) f(x)=\tan x, x\in (0,\pi/2) f ( x ) = tan x , x ∈ ( 0 , π /2 ) which is convex, since f ′ ( x ) = 1 + tan 2 x , f ′ ′ ( x ) = 2 ( 1 + tan 2 ) tan x > 0 f'(x)=1+\tan^2 x, f''(x)=2(1+\tan^2)\tan x>0 f ′ ( x ) = 1 + tan 2 x , f ′′ ( x ) = 2 ( 1 + tan 2 ) tan x > 0 . Thus by the Jensen inequality, we have
f ( A / 2 + B / 2 + C / 2 3 ) ≤ f ( A / 2 ) + f ( B / 2 ) + f ( C / 2 ) 3 ⇔ tan ( A + B + C 6 ) ≤ tan ( A / 2 ) + tan ( B / 2 ) + tan ( C / 2 ) 3 ⇔ tan A 2 + tan B 2 + tan C 2 ≥ 3 cos ( A + B + C 6 ) = 3 tan π 6 = 3 \begin{align*}
f\Big(\frac{A/2+B/2+C/2}{3}\Big)&\leq \frac{f(A/2)+f(B/2)+f(C/2)}{3}\\
\Leftrightarrow
\tan\Big(\frac{A+B+C}{6}\Big)&\leq \frac{\tan(A/2)+\tan (B/2)+\tan (C/2)}{3}\\
\Leftrightarrow
\tan \frac{A}{2}+\tan \frac{B}{2}+\tan \frac{C}{2}&\geq 3\cos\Big(\frac{A+B+C}{6}\Big)=3\tan\frac{\pi}{6}=\sqrt{3}\\
\end{align*} f ( 3 A /2 + B /2 + C /2 ) ⇔ tan ( 6 A + B + C ) ⇔ tan 2 A + tan 2 B + tan 2 C ≤ 3 f ( A /2 ) + f ( B /2 ) + f ( C /2 ) ≤ 3 tan ( A /2 ) + tan ( B /2 ) + tan ( C /2 ) ≥ 3 cos ( 6 A + B + C ) = 3 tan 6 π = 3
Remark. The reason the angles are halved in problem 2 & 3 is because the function f ( x ) = cos x , tan x f(x)=\cos x, \tan x f ( x ) = cos x , tan x change sign in ( 0 , π ) (0,\pi) ( 0 , π ) , and we do not have convexity in the whole interval ( 0 , π ) (0,\pi) ( 0 , π ) , but only in ( 0 , π / 2 ) (0,\pi/2) ( 0 , π /2 ) .
Problem 5.2. Show that the triangle of maximum area that can be inscribed in any given circle is an equilateral triangle.
Solution. Write A , B , C A, B, C A , B , C be the internal angles of a triangle A B C ABC A BC . Then its area is given by
S Δ A B C = 1 2 A B × A C sin A S_{\Delta ABC}=\frac{1}{2}AB \times AC\sin A S Δ A BC = 2 1 A B × A C sin A
By the sine law, we know that
B C sin A = A C sin B = A B sin C = 2 R \frac{BC}{\sin A}=\frac{AC}{\sin B}=\frac{AB}{\sin C}=2R sin A BC = sin B A C = sin C A B = 2 R
where R R R is the radius of the circumscribed circle. So
A B = 2 R sin C , A C = 2 R sin B . AB=2R\sin C, AC=2R\sin B. A B = 2 R sin C , A C = 2 R sin B .
Thus
S Δ A B C = 2 R 2 sin A sin B sin C . S_{\Delta ABC}=2R^2\sin A\sin B\sin C. S Δ A BC = 2 R 2 sin A sin B sin C .
By AM-GM inequality, we have that
sin A sin B sin C ≤ ( 1 ) ( sin A + sin B + sin C 3 ) 3 \begin{align*}
\sin A\sin B\sin C\stackrel{(1)}{\leq} \Big( \frac{\sin A+\sin B+\sin C}{3}\Big)^3
\end{align*} sin A sin B sin C ≤ ( 1 ) ( 3 sin A + sin B + sin C ) 3
and from Problem 5.1. we have proved that sin A + sin B + sin C ≤ ( 2 ) 3 3 2 \sin A+\sin B+\sin C \stackrel{(2)}{\leq} \frac{3\sqrt{3}}{2} sin A + sin B + sin C ≤ ( 2 ) 2 3 3 , so together we have
S Δ A B C ≤ 2 R 2 ( 3 3 / 2 3 ) 3 = 3 3 4 R 2 . S_{\Delta ABC}\leq 2R^2\Big(\frac{3\sqrt{3}/2}{3}\Big)^3=\frac{3\sqrt{3}}{4}R^2. S Δ A BC ≤ 2 R 2 ( 3 3 3 /2 ) 3 = 4 3 3 R 2 .
S Δ A B C S_{\Delta ABC} S Δ A BC reaches its maximum 3 3 4 R 2 \frac{3\sqrt{3}}{4}R^2 4 3 3 R 2 when ( 1 ) , ( 2 ) (1),(2) ( 1 ) , ( 2 ) become equality. This happens if and only if A = B = C = π / 3 A=B=C=\pi/3 A = B = C = π /3 ; i.e., the triangle A B C ABC A BC is equilateral.