Differentiate the following functions with respect to x:
Function y is defined for all real numbers where cosx ≠ –1
Using 2cos2θ = 1 + cos2θ and 2sinθ cosθ = sin2θ
Differentiating w.r.t x, we get