Observe that for all x∈[0,1]:
esx=exs+(1−x)⋅0⩽xes+(1−x)e0=xes+(1−x)
by the convexity of the exponential function. Thus:
i=1∑naiesxi⩽i=1∑nai(xies+(1−xi))=esi=1∑naixi+i=1∑nai−i=1∑naixi=1+(es−1)i=1∑naixi
Since by hypothesis, ∑i=1nai=1. Applying the inequality 1+x⩽ex to this last expression:
1+(es−1)i=1∑naixi⩽exp((es−1)i=1∑naixi)
We obtain:
i=1∑naiesxi⩽exp((es−1)i=1∑naixi)
The desired result is obtained by taking the logarithm of both sides of this inequality.