Proof. First bound \(e^{sX}\) by a line. The function \(x \mapsto e^{x}\) is convex, and for \(0 \le X \le 1\) the number \(sX\) is the weighted average \((1 - X) \cdot 0 + X \cdot s\), so
\[
\begin{aligned}
e^{sX}
&\le (1 - X) e^{0} + X e^{s}
&& \text{(convexity of the exponential)} \\
&= 1 - X + X e^{s}
&& \text{(} e^{0} = 1 \text{)}
\end{aligned}
\]
Take the expectation of both sides, which preserves the inequality:
\[
\begin{aligned}
{\mathbb{E}\mathopen{}\left[e^{sX}\right]\mathclose{}}
&\le 1 - {\mathbb{E}\mathopen{}\left[X\right]\mathclose{}} + {\mathbb{E}\mathopen{}\left[X\right]\mathclose{}} e^{s}
&& \text{(linearity of expectation)} \\
&= 1 - \mu+ \mu e^{s}
&& \text{(definition of } \mu\text{)}
\end{aligned}
\]
The number \(1 - \mu+ \mu e^{s}\) is a weighted average of \(1\) and \(e^{s}\) with weights \(1 - \mu\) and \(\mu\), so it is positive. Multiply by the constant \(e^{-s\mu}\) and write the result as an exponential:
\[
\begin{aligned}
{\mathbb{E}\mathopen{}\left[e^{s(X - \mu)}\right]\mathclose{}}
&= e^{-s\mu} {\mathbb{E}\mathopen{}\left[e^{sX}\right]\mathclose{}}
&& \text{(} e^{-s\mu} \text{ is a constant)} \\
&\le e^{-s\mu} \mathopen{}\left(1 - \mu+ \mu e^{s}\right)\mathclose{}
&& \text{(the bound above)} \\
&= e^{L(s)}
&& \text{(define } L(s) \stackrel{\text{def}}{=}-s\mu+ \log\mathopen{}\left(1 - \mu+ \mu e^{s}\right)\mathclose{} \text{)}
\end{aligned}
\]
It remains to show \(L(s) \le s^2/8\). Write
\[
p(s) \stackrel{\text{def}}{=}\frac{\mu e^{s}}{1 - \mu+ \mu e^{s}},
\]
which lies in \([0, 1]\). The first derivative of \(L\) is
\[
\begin{aligned}
L'(s)
&= -\mu+ \frac{\mu e^{s}}{1 - \mu+ \mu e^{s}}
&& \text{(chain rule for the logarithm)} \\
&= -\mu+ p(s)
&& \text{(definition of } p \text{)}
\end{aligned}
\]
The derivative of \(p\) is
\[
\begin{aligned}
p'(s)
&= \frac{\mu e^{s}\mathopen{}\left(1 - \mu+ \mu e^{s}\right)\mathclose{} - \mu e^{s} \cdot \mu e^{s}}{\mathopen{}\left(1 - \mu+ \mu e^{s}\right)\mathclose{}^2}
&& \text{(quotient rule)} \\
&= \frac{\mu e^{s}\mathopen{}\left(1 - \mu\right)\mathclose{}}{\mathopen{}\left(1 - \mu+ \mu e^{s}\right)\mathclose{}^2}
&& \text{(the } \mu^2 e^{2s} \text{ terms cancel)} \\
&= p(s)\mathopen{}\left(1 - p(s)\right)\mathclose{}
&& \text{(} 1 - p(s) = \tfrac{1 - \mu}{1 - \mu+ \mu e^{s}} \text{)}
\end{aligned}
\]
so \(L''(s) = p'(s) = p(s)\mathopen{}\left(1 - p(s)\right)\mathclose{}\). Completing the square gives
\[
\begin{aligned}
p(s)\mathopen{}\left(1 - p(s)\right)\mathclose{}
&= \frac{1}{4} - \mathopen{}\left(p(s) - \frac{1}{2}\right)\mathclose{}^2
&& \text{(complete the square)} \\
&\le \frac{1}{4}
&& \text{(a square is not negative)}
\end{aligned}
\]
At \(s = 0\), \(L(0) = 0 + \log 1 = 0\) and \(L'(0) = -\mu+ \mu= 0\). By Taylor’s theorem with the Lagrange remainder, there is a number \(\xi\) between \(0\) and \(s\) with
\[
\begin{aligned}
L(s)
&= L(0) + L'(0)\, s + \frac{L''(\xi)}{2} s^2
&& \text{(Taylor's theorem)} \\
&= \frac{L''(\xi)}{2} s^2
&& \text{(} L(0) = L'(0) = 0 \text{)} \\
&\le \frac{s^2}{8}
&& \text{(} L''(\xi) \le \tfrac{1}{4} \text{)}
\end{aligned}
\]
Therefore \({\mathbb{E}\mathopen{}\left[e^{s(X - \mu)}\right]\mathclose{}} \le e^{L(s)} \le e^{s^2/8}\).