y=11+exy = \dfrac{1}{1+e^{-x}}

The Logistic (Sigmoid) Function y=11+exy = \dfrac{1}{1+e^{-x}}

The logistic function y=11+exy = \dfrac{1}{1+e^{-x}}, also called the standard sigmoid, is the archetypal S-shaped curve. It squeezes any real input into an output between 00 and 11, making it ideal for representing probabilities or a smooth "on/off" transition.

Domain and range It is defined for all real xx. The denominator 1+ex1 + e^{-x} is always positive and tends to 11 as x+x \to +\infty, so the range is the open interval (0,1)(0, 1); the endpoints are never reached.

Symmetry Since f(x)=1f(x)f(-x) = 1 - f(x), the graph is point-symmetric about (0,12)\left(0, \dfrac{1}{2}\right). For instance f(2)0.881f(2) \approx 0.881 and f(2)0.119f(-2) \approx 0.119, and their sum is 11.

Monotonicity The derivative f(x)=f(x)(1f(x))=ex(1+ex)2f'(x) = f(x)\bigl(1 - f(x)\bigr) = \dfrac{e^{-x}}{(1+e^{-x})^2} is always positive, so the function is strictly increasing everywhere. The slope is largest at the center x=0x = 0, where it equals 14\dfrac{1}{4}.

Asymptotes and limits As xx \to -\infty we have ex+e^{-x} \to +\infty so y0y \to 0, and as x+x \to +\infty we have ex0e^{-x} \to 0 so y1y \to 1. Thus there are two horizontal asymptotes, y=0y = 0 and y=1y = 1.

Inflection point The second derivative f=f(1f)(12f)f'' = f(1-f)(1-2f) changes sign where f=12f = \dfrac{1}{2}, that is at x=0x = 0. The point (0,12)\left(0, \dfrac{1}{2}\right) is the unique inflection point, where the curve switches from concave up to concave down.

Relation to other functions It can be written as f(x)=12(1+tanhx2)f(x) = \dfrac{1}{2}\left(1 + \tanh\dfrac{x}{2}\right), a shifted and scaled hyperbolic tangent. A remarkable feature is that its derivative takes the compact form y(1y)y(1-y).

Applications and history In the 19th century the Belgian mathematician Verhulst introduced it as the solution of the logistic equation modeling population growth under limited resources. Today it appears wherever growth or probability is involved: logistic regression, activation functions in neural networks, and the progress of chemical reactions.