Chain rule of the second-order partial derivative