When we find a partial derivative with respect to a variable, we differentiate normally with respect to that variable while treating all other independent variables as constants. For example, if , then

In our case, we can use the Chain Rule and the Product Rule to find when . After this, can be found similarly.