Differentiate the following w.r.t. x:
log (cos ex)
Let y = log(cosex)
So, by using the chain rule, we get,