链导法

chain rule for differentiation