TOPICS
Search

Sigmoid Function


SigmoidFunction
SigmoidReIm
SigmoidContours

The sigmoid function, also called the sigmoidal curve (von Seggern 2007, p. 148) or logistic function, is the function

 y=1/(1+e^(-x)).
(1)

Its inverse function on (0,1) is the logit function.

It has derivative

(dy)/(dx)=[1-y(x)]y(x)
(2)
=(e^(-x))/((1+e^(-x))^2)
(3)
=(e^x)/((1+e^x)^2)
(4)

and indefinite integral

intydx=x+ln(1+e^(-x))
(5)
=ln(1+e^x).
(6)

It has Maclaurin series

y(x)=sum_(n=0)^(infty)((-1)^nE_n(0))/(2n!)x^n
(7)
=sum_(n=0)^(infty)((-1)^(n+1)(2^(n+1)-1)B_(n+1))/((n+1)!)x^n
(8)
=1/2+1/4x-1/(48)x^3+1/(480)x^5-(17)/(80640)x^7+(31)/(1451520)x^9-...,
(9)

where E_n(x) is an Euler polynomial and B_n is a Bernoulli number.

It has an inflection point at x=0, where

 y^('')(x)=-(e^x(e^x-1))/((e^x+1)^3)=0.
(10)

It is also the solution to the ordinary differential equation

 (dy)/(dx)=y(1-y)
(11)

with initial condition y(0)=1/2.

The logistic sigmoid is implemented in the Wolfram Language as LogisticSigmoid.

A sigmoidal function can also make its entire transition over a finite interval. For example, let

 s(x)={0   for x<0,; x-(sin(2pix))/(2pi)   for 0<=x<=1,; 1   for x>1.
(12)

The first and second derivatives of the middle branch vanish at both endpoints, so s(x) is a C2 function. The one-sided limits of its third derivative differ at each endpoint (K. A. Regas, pers. comm., Oct. 6, 2020).


See also

Einstein Functions, Exponential Function, Exponential Ramp, Heaviside Step Function, Logistic Distribution, Logistic Equation

Explore with Wolfram|Alpha

References

Grebenc, A. "Foundations for a General Theory of Sigmoid Functions: Modelling with 30 Methods." In Intelligent Systems and Applications: Proceedings of the 2025 Intelligent Systems Conference (IntelliSys), Volume 1 (Ed. K. Arai). Cham, Switzerland: Springer, pp. 481-511, 2025. https://doi.org/10.1007/978-3-031-99958-1_31.von Seggern, D. CRC Standard Curves and Surfaces with Mathematics, 2nd ed. Boca Raton, FL: CRC Press, 2007.

Referenced on Wolfram|Alpha

Sigmoid Function

Cite this as:

Weisstein, Eric W. "Sigmoid Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/SigmoidFunction.html

Subject classifications