Find the absolute maximum and absolute minimum values of the function f given by f(x)=sin2x−cosx,x ϵ(0,π)