Let z=x+iy∈H:={z=x+iy∈C:y>0} and θ(α;z)=∑(m,n)∈Z2e−αyπ∣mz+n∣2 be the theta function associated with the lattice L=Z⊕zZ. In this paper we consider the following minimization problem of difference of two theta functions \begin{equation}\aligned\nonumber \min_{ \mathbb{H} } \Big(\theta (\alpha; z)-\beta\theta (2\alpha; z)\Big) \endaligned\end{equation} where α≥1 and β∈(−∞,+∞). We prove that there is a critical value βc=2 (independent of α) such that if β≤βc, the minimizer is 21+i23 (up to translation and rotation) which corresponds to the hexagonal lattice, and if β>βc, the minimizer does not exist. Our result partially answers some questions raised in \cite{Bet2016, Bet2018, Bet2020, Bet2019AMP} and gives a new proof in the crystallization of hexagonal lattice under Yukawa potential.