The function is
.
Apply first derivative on each side with respect to
.

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

Derivative of a tangent function is :
.
Derivative of a secant function is :
.

Trigonometric Identity :
.

.
.