Confused at how the formula of dz in hidden layer was deducted

Hi @Yang_Wang1, here, we are using simple mathematics to calculate the loss while moving forward to build NN and checking the same loss again while doing the backprop. Here’s a thread that could provide you a clarity. Thanks!