Derivative of a Sigmoid Function

1 minute read

In this post, we are going to learn indepth explanation about how the derivative of a sigmoid function is calculated.

Following is the representation of a sigmoid function :

Step 1

Simplifying the equation for further process:

Step 2

Now , we start working with the Right Hand Side. Matching the base and using the chain rule :

Step 3

Lets consider the terms on either side of multiplication sign as first term and second term. Now , perform derivative on both the terms:

Hints:

  • For first term , derivative of is :
  • Simplify the second term for performing derivative.

Step 4

Simplifying the 1st term by arranging numerator and denominator.

For second term,

Hint: Derivative of 1 is 0 .(Since, derivative of a constant is 0)

Hence, we get the following form :

Step 5

Simplifying the above equation :

Step 6

Since, we know Sigmoid function is :

Hence, we can rewrite equation in Step 5 as:

If you are still confused how we got this eqn, replace the value of and see how it is related to equation in step 5.

Step 7

Now , for further simplication of the above equation: Add 1 and subtract 1 , which cancels out eachother .

Step 8

Step 9

Finally , replacing in the equation again we get the final form :

Hence ,

The derivative of a sigmoid function is :

Thank you for reading the article !!!