Phương trình $\cos 2x+3\cos x=4$ có tập nghiệm trùng với tập nghiệm của phương trình nào sau đây?
A. $\cos x=1$
B. $\cos x=\frac{-5}{2}$
C. $\left[ \begin{array}{l}\cos x=1\\\cos x=\frac{5}{2}\end{array} \right.$
D. $\left[ \begin{array}{l}\cos x=-1\\\cos x=\frac{5}{2}\end{array} \right.$