Write β₯β
β₯ for the Euclidean norm, β£β
β£ for the absolute value, and dEβ for the Euclidean distance, a metric by Euclidean Distance is a Metric on Rn; claims 2 and 5 of Elementary Properties of the Euclidean Norm on Rn give dEβ(u,v)=β₯uβvβ₯ and β₯ΞΌuβ₯=β£ΞΌβ£β₯uβ₯. Order arithmetic is taken from Elementary Order Arithmetic in an Ordered Field (claim 1 strict compatibility with addition, claim 2 mixed transitivity, claim 5 product of positive elements, claim 7 inverse of a positive element, claim 8 halving, claim 10 strict compatibility with multiplication by a positive element) and from Elementary Arithmetic in an Ordered Field (claim 3 translation, claim 5 multiplication by a nonnegative element); the field axioms of the field R and the vector space axioms of Euclidean Space Rn is a Real Vector Space are used for rearrangement.
Let x,yβU and let tβR satisfy 0β€t and tβ€1. Put ΞΈ=1βt, so that 0β€ΞΈ and ΞΈβ€1 by translation, put h=yβx, and put
J={ΟβR:Β x+ΟhβU}.
Step 1: 0,1βJ. Indeed x+0h=xβU and x+1h=x+(yβx)=yβU.
Step 2: J is order-convex. Let Ο1β,Ο2ββJ and ΟβR with Ο1ββ€Οβ€Ο2β. If Ο1β=Ο2β then Ο=Ο1ββJ by antisymmetry of β€. Otherwise Ο1β<Ο2β, so 0<Ο2ββΟ1β and
ΞΌ=(ΟβΟ1β)(Ο2ββΟ1β)β1
satisfies 0β€ΞΌ and ΞΌβ€1, by translation and multiplication by the positive element (Ο2ββΟ1β)β1. Since Ο1β+ΞΌ(Ο2ββΟ1β)=Ο, we get
x+Οh=ΞΌ(x+Ο2βh)+(1βΞΌ)(x+Ο1βh),
which lies in U because U is convex and x+Ο1βh,x+Ο2βhβU. Hence ΟβJ.
Step 3: every point of J is an interior point of J. Let ΟβJ. By Euclidean Openness Agrees with Metric Openness on Rn the set U is metric-open, so there is rβR with 0<r such that every zβRn with dEβ(x+Οh,z)<r lies in U. Put Ο=r(β₯hβ₯+1)β1, which is positive because β₯hβ₯+1 is positive, the norm being nonnegative. If ΟβR satisfies β£ΟβΟβ£<Ο then
dEβ(x+Οh,x+Οh)=β₯(ΟβΟ)hβ₯=β£ΟβΟβ£β₯hβ₯β€β£ΟβΟβ£(β₯hβ₯+1)<Ο(β₯hβ₯+1)=r,
so ΟβJ. Taking u=Οβ21βΟ and v=Ο+21βΟ, which satisfy β£uβΟβ£<Ο and β£vβΟβ£<Ο by halving, gives u,vβJ with u<Ο<v.
Step 4: the slice. Let g:JβR and g1β:JβR be given by
g(Ο)=f(x+Οh),g1β(Ο)=i=1βnββxiββfβ(x+Οh)hiβ.
By step 3 every ΟβJ is an interior point of J, so claims 1 and 2 of Derivatives of the Slice of a Function Along a Line, applied with p=x, show that g is differentiable at Ο with gβ²(Ο)=g1β(Ο) and that g1β is differentiable at Ο with
g1β²β(Ο)=hβ
(D2f(x+Οh)h),
where zβ
zβ² is the dot product and the product is the matrix-vector product.
Step 5: nonnegativity of g1β²β. By Matrix-Vector Product, the identity 0a=0, which follows from 0a+0a=(0+0)a=0a+0 and claim 2 of Additive Cancellation and Elementary Additive Identities in a Field, and claim 3 of Properties of Finite Sums with the factor 0, every coordinate of 0nβh is 0 and hence hβ
(0nβh)=0. Applying the hypothesis at the point x+ΟhβU and reading The Positive Semidefinite Ordering on Symmetric Matrices at the point h gives
0=hβ
(0nβh)β€hβ
(D2f(x+Οh)h)=g1β²β(Ο)(ΟβJ).
Step 6: conclusion. The hypotheses of A Real Function with Nonnegative Second Derivative is Convex on an Interval hold for J, g and g1β, so, applied with the points 0,1βJ of step 1 and with ΞΈ,
g((1βΞΈ)0+ΞΈ1)β€(1βΞΈ)g(0)+ΞΈg(1),
that is, f(x+ΞΈh)β€(1βΞΈ)f(x)+ΞΈf(y). Since ΞΈ=1βt we have 1βΞΈ=t and
x+ΞΈh=x+(1βt)(yβx)=tx+(1βt)y,
so f(tx+(1βt)y)β€tf(x)+(1βt)f(y). As x,yβU and t were arbitrary, this is the defining condition of Convex Real-Valued Function on a Convex Subset of Rn, so f is convex on U.