Product rule for partial derivatives