The question is: Show that for the Harmonic Oscillator, $$\langle0|e^{ikx}|0\rangle~=~e^{-\frac{k^2}{2}\langle0|x^2|0\rangle}.$$
My attempt at a solution uses coherent states: $$\langle0|e^{ikx}|0\rangle=\langle0|e^{ik\frac{(a+a^{\dagger})}{\sqrt{2}}}$|0\rangle=$$
$$\langle0|e^{ika}e^{ika^{\dagger}}e^{\frac{-k^2[a,a^{\dagger}]}{2}}|0\rangle=$$
\begin{equation}e^{\frac{-k^2}{2}}\langle0|e^{-\alpha^* a}e^{\alpha a^{\dagger}}|0\rangle\end{equation}
Defining the coherent state $\beta\rangle=e^{\frac{ika^{\dagger}}{\sqrt{2}}}$ which means that the associated bra would be $\langle\beta|=e^{\frac{-ika}{\sqrt{2}}}$ where a is still the lowering operator. the equation above reduces to $\langle-\beta|\beta\rangle$, which, using the formula for inner products of coherent states, I get \begin{equation}\langle-\beta|\beta\rangle=e^{-\frac{|(-\beta^*)}{2}^2|-\frac{|\beta|^2}{2}+(-\beta^*\beta)}=e^{-|\beta|^2}\end{equation}
Therefore, I get for my final expectation value: $e^{\frac{k^2}{2}}$
Could someone point out what I did wrong? Since these clearly do not equal. Just as an experiment, I calculated what the expectation value of $x^2$ should be in the 0 state, and I got $\frac{i}{2}$, which still makes no sense.