We saw earlier that in order to calculate the derivative of the loss function with respect to the hidden layers, we needed the derivative of the activation function being used in the hidden layers.

If the logistic function is used as , the derivative is:

For the function, the derivative will be: