The functions are
and
.

Substitute
.

Apply derivative on each side with respect to
.


.
The function
.
Substitute
.
.

Apply derivative on each side with respect to
.

.
.
The derivatives of
and
are equal.
The derivatives of
and
are equal.