Solution
= Solution
Put $y=x-a/2$ and $\epsilon=q\mathcal E$. To quadratic order the Rayleigh quotient contains $\epsilon^2(A\alpha^2+2B\alpha)$, where $A=\hbar^2/(2m)$ and $B=\langle y^2\rangle=a^2(\pi^2-6)/(12\pi^2)$. Hence
$$
\boxed{\alpha_{\rm opt}=-\frac BA=-\frac{ma^2(\pi^2-6)}{6\pi^2\hbar^2}.}
$$