Partial Derivative Calculations