The differentiation formula is .
Let the function is .
Trigonometric ratio : .
Differentiate the function with respect to .
Apply quotient rule: .
Pythogorean identity : .
Apply reciprocal identity : .
Replace with
.
.
Therefore, .
.