sin(x)-cos^2(x) derivative