f(x)=sin2x-cosx
=sin2x-(1+cos2x)/2
=√5(2/5*√5sin2x+1/5*√5cos2x)-1/2
=√5sin[2x-arcsin(1/5*√5)]-1/2
f(x)∈[-√5-1/2,√5+1/2]