Compute p'(x) for p(x) = cos(sin x)