We rewrote the quotient as a product.
We applied the Product Rule.
We applied the Power Rule (with Chain Rule factor) in the first term and the Exponential Rule (with Chain Rule factor) in the second term.
We completed the calculation of the first term by using the Cosine Rule with Chain Rule factor.
We simplified the result by factoring out common factors of numerator and denominator. (There are many correct simplifications of this expression.)