The correct option is B x∈{2nπ±π3}∪{2nπ±π},n∈Z
Given: cos2x+cosx=0
We know cos2x=2cos2x−1
Substituting this in the above equation we get,
2cos2x−1+cosx=0
⇒2cos2x+cosx−1=0
Let cosx=t
⇒2t2+t−1=0
⇒2t2+(2−1)t−1=0
⇒2t2+2t−1t−1=0
⇒2t(t+1)−1(t+1)=0
⇒(2t−1)(t+1)=0
Here, either 2t−1=0 or t+1=0.
⇒t=12 or t=−1
⇒cosx=12 or cosx=−1
For cosx=12, i.e., cosx=cosπ3
General solution is x=2nπ±π3,n∈Z
Represent the above solution set as A.
For cosx=−1, i.e., cosx=cosπ
General solution is x=2nπ±π,n∈Z
Represent the above solution set as B.
The complete general solution is A∪B, i.e., x∈{2nπ±π3}∪{2nπ±π},n∈Z