take the derivative using chain rule of trig function

welcome to shbcf.ru