Determine the general solution of

4cos^2x+2sinxcosx-1=0