Proof-Theorem-Lemma Template

Definition

A function ƒ:ℝ→ℝ f with hook colon the real numbers right arrow the real numbers is convex if for all x,y∈ℝ x comma y is a member of the real numbers and 0≤λ≤1 0 is less than or equal to lamda is less than or equal to 1

ƒ⁢(λ⁢x+(1-λ)⁢y)≤λ⁢ƒ⁡(x)+(1-λ)⁢ƒ⁡(y) f with hook times open paren lamda x plus open paren 1 minus lamda close paren times y close paren is less than or equal to lamda f with hook of x plus open paren 1 minus lamda close paren times f with hook of y

Lemma

For all real numbers x,y x comma y

(x-y)2≥0 open paren x minus y close paren squared is greater than or equal to 0

Proof

Expanding the square

(x-y)2=x2-2⁢x⁢y+y2 open paren x minus y close paren squared equals x squared minus 2 x y plus y squared

Since a square of a real number is always non-negative,

(x-y)2≥0 open paren x minus y close paren squared is greater than or equal to 0

Lemma

For any real numbers x,y x comma y

(x+y)2≥4⁢x⁢y open paren x plus y close paren squared is greater than or equal to 4 x y

Proof

Start from the identity

(x+y)2=x2+2⁢x⁢y+y2 open paren x plus y close paren squared equals x squared plus 2 x y plus y squared

Rewrite the expression

(x+y)2-4⁢x⁢y=x2-2⁢x⁢y+y2=(x-y)2 open paren x plus y close paren squared minus 4 x y equals x squared minus 2 x y plus y squared equals open paren x minus y close paren squared

Using the previous lemma

(x-y)2≥0 open paren x minus y close paren squared is greater than or equal to 0

we obtain

(x+y)2≥4⁢x⁢y open paren x plus y close paren squared is greater than or equal to 4 x y

Theorem

For any real numbers x1,x2,…,xn x sub 1 comma x sub 2 comma dot dot dot comma x sub n

(∑i=1nxi)2≤n⁢∑i=1nxi2 open paren the sum from i equals 1 to n of x sub i close paren squared is less than or equal to n the sum from i equals 1 to n of x sub i squared

Proof

Start from the expansion

(∑i=1nxi)2=∑i=1nxi2+2⁢∑i<jxi⁢xj open paren the sum from i equals 1 to n of x sub i close paren squared equals the sum from i equals 1 to n of x sub i squared plus 2 the sum over i is less than j of x sub i x sub j

Using the inequality

2⁢xi⁢xj≤xi2+xj2 2 x sub i x sub j is less than or equal to x sub i squared plus x sub j squared

we obtain

2⁢∑i<jxi⁢xj≤∑i<j(xi2+xj2) 2 the sum over i is less than j of x sub i x sub j is less than or equal to the sum over i is less than j of open paren x sub i squared plus x sub j squared close paren

Substituting this into the original expression gives

(∑i=1nxi)2≤n⁢∑i=1nxi2 open paren the sum from i equals 1 to n of x sub i close paren squared is less than or equal to n the sum from i equals 1 to n of x sub i squared

Corollary

For any real numbers x1,x2,…,xn x sub 1 comma x sub 2 comma dot dot dot comma x sub n

1n⁢∑i=1nxi2≥(1n⁢∑i=1nxi)2 1 over n the sum from i equals 1 to n of x sub i squared is greater than or equal to open paren 1 over n the sum from i equals 1 to n of x sub i close paren squared