The equation is given as
Let m = cos x.
Therefore, we have
Solving the quadratic equation by factorization, we replace +3m with +m and +2m.
Hence
Factorizing, we have
Therefore, we have m = -2 or -1
Remember that
Therefore,
Considering the first situation,
This can be rewritten as