Find
in terms of
and
.
From the figure :
.
.
Differentiate the above equation with respect to
.

Use chain rule to find
in terms of
and
.
Apply chain rule :
.

Since need to write
in terms of
and
, replace
in terms of
.
Consider
.
Pythagorean identity :
.

Substitute
in equation (1).

.