The function is
.
Consider
.


Substitute
in the function
.

Differentiate
with respect to
, holding
as a constant.

Differentiate
with respect to
, holding
as a constant.

.
Differentiate
with respect to
, holding
as a constant.

Differentiate
with respect to
, holding
as a constant.

.
Differentiate
with respect to
, holding
as a constant.

Differentiate
with respect to
, holding
as a constant.

,
,
and
.