The correct option is D θ=2nπ±3π4, where n∈Z
Given that
cosθ=−1√2
We know that cosπ4=1√2
cosθ is negative in 2nd and 3rd quadrant
⇒cos(π−π4)=cos(π+π4)=−1√2
⇒cos3π4=cos5π4=−1√2
Using cosθ=cosα⇒θ=2nπ±α, where n∈Z
∴ The general solution of cosθ=−1√2 is
θ=2nπ±3π4 or 2nπ±5π4, where n∈Z