The function is
.
Find the first partial derivative
.
.
Differentiate partially with respect to
treating
as constant.



.
Find the first partial derivative
.

Differentiate partially with respect to
treating
as constant.



.
First partial derivatives are
and
.