cos x(2cosx^2+1)=0
I assume this is cos x*(2[cos x]^2 + 1) = 0
The term in brackets can never be zero, so we must have cos x = 0
That is x = pi/2, 3pi/2 in the range between 0 and 2pi.
.