The Sigmoidal Functions
One of the attractive qualities of the sigmoidal functions, otherwise known as the logistic functions, is their attractively simple (computationally and mathematically) derivatives.
The Derivative of the Sigmoidal Functions
Although in most artificial neural networks, the simple sigmoid is all that is required, here we will keep all constants and solve. At the end, A can be set to 0, and the other constants to 1 to simplify the derivative to that of the simple logistic function; but sometimes it is useful to have the non-simplified equation at hand.
First, starting with the generic logistic function, we have the equation rearranged for reasons that will become apparent later...

Next, also for reasons that will become apparent soon, we subtract the above equations from 1, this gives...

Finally, we can start finding the derivative; doing so by use of the quotient rule...

Paying close attention to the two parts in the brackets above, you can see why we started with putting the equations in the formats we did. Next, we simply substitute these and simplify...

Setting A=0, B=1, and c=1, this simplifies to the simple logistic function as promised...

A useful property from the sigmoid that is sometimes used, it that by increasing the constant c, the sigmoid function can be made to approximate the step function. In the following illustration, the function has been plotted with c set to 1, 2, 3, 10, and 100...

In the following applet, the orange line is the logistic function with A=0,0, B=1.0, and the yellow line is the derivative. The mouse movement from left to right controls c.
Related
Ancestors ☣ Mathematics
Other ☣ Algorithm/Learning/GradientDescent ☣ Learning/Machine/Perceptron

