Cho phương trình: $\displaystyle \left( {{m}^{2}}+2 \right){{\cos }^{2}}x-2m\sin 2x+1=0$. Để phương trình có nghiệm thì giá trị thích hợp của tham số là
A. $\displaystyle -1\le m\le 1$
B. $\displaystyle -\frac{1}{2}\le m\le \frac{1}{2}$
C. $\displaystyle -\frac{1}{4}\le m\le \frac{1}{4}$
D. $\displaystyle |m|\ge 1$