Calculating the Derivative of a Neural Network

Let

Let be the weights of the inputs from the second level to the output gate.

Let be the outputs of the gates in the second level.

Let be the weights of the inputs to gate

Let be the inputs to the neural network.

(see figure )

In this case: