Differentiate the following functions with respect to x:
Dividing numerator and denominator by cosx
Differentiating w.r.t x we get