derivative x-cos(x)/(-sin(x))