A random variable $X$ is sub-gaussian with parameter $\sigma^2$ if for all $ \lambda \in \mathbb{R}$, we have that $$\mathbb{E} e^{\lambda(X - \mathbb{E} X)} \leq e^{\lambda^2\sigma^2/2}$$
I want to show that if a r.v. $X$ satisfies the tail bound: for all $t \geq 0$, we have $$P(X - \mathbb{E} X \geq t) \leq e^{-t^2/2\sigma^2} \text{ and } P(X - \mathbb{E} X \leq -t) \leq e^{-t^2/2\sigma^2}$$ then $X$ is sub-gaussian with parameter $c \cdot \sigma^2$ for some constant $c$.
My idea was to use that for a nonnegative random variable $Z$ we have that $\mathbb{E} Z = \int_0^{\infty} P(Z \geq t) \,dt$ and apply this to $Z = e^{\lambda(X - \mathbb{E} X)}$, but this gave a messy integral that I couldn't easily bound with what I wanted, and also only used the first half of the tail bound.