The function is .
Apply derivative on each side with respect to .
Product rule of derivatives : .
Derivative of secant function : .
Derivative of tangent function : .
.