chain rule with the product rule