Question
\[ \text{If } \cos^2x+\sin x+1=0, \]
\[ 0<x<2\pi, \]
\[ \text{then } x= \]
Solution
Using identity
\[ \cos^2x=1-\sin^2x \]
Substituting,
\[ 1-\sin^2x+\sin x+1=0 \]
\[ -\sin^2x+\sin x+2=0 \]
\[ \sin^2x-\sin x-2=0 \]
\[ (\sin x-2)(\sin x+1)=0 \]
Since
\[ \sin x\neq2 \]
therefore,
\[ \sin x=-1 \]
Now,
\[ x=\frac{3\pi}{2} \]
Answer
\[ \boxed{\frac{3\pi}{2}} \]