The function is
.
Differentiate on each side with respect to
.

The function is in the form of composite function
.
Assume
and
.
Consider
.
Product rule of derivatives:
.

Derivative of the secant function:
.
\
.

Chain Rule of derivatives:
.
Substitute
and
in chain rule.
.
.