Working on Bambul's and McLake's suggestion,
cos^2@x^2+2sin@cos@x+1=0 @not= pi/2,-pi/2 (meaningless otherwise)
x= (-2sin@cos@+-sqrt(4sin^2@cos^2@-4cos^2@)/2cos^2@)
= -tan@+-sqrt(4cos^2@(sin^2@-1))/2cos^2@)
= -tan@+- sqrt(-1) since sin^2-1=-1cos^2
= -tan@+-i
Another interesting method is by polynomial theory, watch:
quadratic has minimum at -b/2a=-tan@
minimum is sin^2@-2sin^2@+1=1-sin^2@>0, @ not Pi/2,-pi/2
Thus roots are complex and conjugate. Thus
a+ib+a-ib=2a=-2tan@ , therefore a =-tan@and
a^2+b^2=tan^2@+b^2=sec^2@ which gives b=+-1
This question is a good review of polynomial theory and trigonometric identities.