How do you find a numerical value of one trigonometric function of x given cos^2x+2sinx-2=0?