`cos 2x+\sqrt{3}sin 2x+\sqrt{3}sin x-cos x=4`
`<=>1/2 cos 2x+\sqrt{3}/2 sin 2x+\sqrt{3}/2 sin x-1/2 cos x=2`
`<=>sin(\pi/6 +2x)+sin(x-\pi/6)=2`
Vì `-1 <= sin (\pi/6 +2x) <= 1`
`-1 <= sin (x-\pi/6) <= 1`
Dấu "`=`" xảy ra `<=>{(sin(\pi/6+2x)=1),(sin(x-\pi/6)=1):}`
`<=>{(\pi/6+2x=\pi/2+k2\pi),(x-\pi/6=\pi/2+k2\pi):}`
`<=>{(x=\pi/6+k\pi),(x=[2\pi]/3+k2\pi):}` `(k in ZZ)`