differentiate cos(sin(x)) wrt x