# Solve the equation `2sin^2x-5cos(pi/2-x)+2=0` for x

*print*Print*list*Cite

### 1 Answer

The equation `2sin^2x-5cos(pi/2-x)+2=0` has to be solved.

`2sin^2x-5cos(pi/2-x)+2=0`

=> `2sin^2x-5*sin x+2=0`

=> `2sin^2x-4*sin x - sin x + 2 = 0`

=> `2*sin x(sin x - 2) - 1(sin x - 2) = 0`

=> `(2*sin x - 1)(sin x - 2) = 0`

=> `sin x = 1/2` and `sin x = 2`

As sin x lies in [-1, 1] the root sin x = 2 can be ignored.

This gives sin x = 1/2.

`x = sin^-1(1/2)`

=> `x = pi/6 + 2*n*pi` and `x = 5*pi/6 + 2*n*pi`

**The solution of the equation is `x = pi/6 + 2*n*pi` and **`x = 5*pi/6 + 2*n*pi`