ArticleslgStudy

mathematics

Logistic function

Logistic function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Logistic function rather than just read about it. In short: A logistic function or logistic curve is a common S-shaped curve (sigmoid curve) with the equation f(x)=L1+e−k(x−x0) where L is the carrying capacity, the supremum of the values of the function; k is the logistic growth rate, the steepness of the curve; and x0 is the x value of the function's midpoint. The logistic function has domain the real numbers, the limit as x tends to −∞ is 0, and the limit as x tends to +∞…

Logistic function — main illustration
Logistic function — illustration

Key takeaways

  • Logistic function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Logistic function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Logistic function from memory before moving on to harder problems.

Reference excerpt

A logistic function or logistic curve is a common S-shaped curve (sigmoid curve) with the equation f(x)=L1+e−k(x−x0) where

L is the carrying capacity, the supremum of the values of the function; k is the logistic growth rate, the steepness of the curve; and x0 is the x value of the function's midpoint. The logistic function has domain the real numbers, the limit as x tends to −∞ is 0, and the limit as x tends to +∞ is L.

The exponential function with negated argument (e−x) is used to define the standard logistic function where L=1,k=1,x0=0, which has the equation f(x)=11+e−x and is sometimes simply called the sigmoid function. It is also sometimes called the expit, being the inverse function of the logit. The logistic function finds applications in a range of fields, including biology (especially ecology), biomathematics, chemistry, demography, economics, geoscience, mathematical psychology, probability, sociology, political science, linguistics, statistics, and artificial neural networks. There are various generalizations, depending on the field.

History

The logistic function was introduced in a series of three papers by Pierre François Verhulst between 1838 and 1847, who devised it as a model of population growth by adjusting the exponential growth model, under the guidance of Adolphe Quetelet. Verhulst first devised the function in the mid 1830s, publishing a brief note in 1838, then presented an expanded analysis and named the function in 1844 (published 1845); the third paper adjusted the correction term in his model of Belgian population growth. The initial stage of growth is approximately exponential (geometric); then, as saturation begins, the growth slows to linear (arithmetic), and at maturity, growth approaches the limit with an exponentially decaying gap, like the initial stage in reverse. Verhulst did not explain the choice of the term "logistic" (French: logistique), but it is presumably in contrast to the logarithmic curve, and by analogy with arithmetic and geometric. His growth model is preceded by a discussion of arithmetic growth and geometric growth (whose curve he calls a logarithmic curve, instead of the modern term exponential curve), and thus "logistic growth" is presumably named by analogy, logistic being from Ancient Greek: λογιστικός, romanized: logistikós, a traditional division of Greek mathematics. As a word derived from ancient Greek mathematical terms, the name of this function is unrelated to the military and management term logistics, which is instead from French: logis "lodgings", though some believe the Greek term also influenced logistics; see Logistics § Origin for details.

Mathematical properties The standard logistic function is the logistic function with parameters k=1, x0=0, L=1, which yields f(x)=11+e−x=exex+1=ex/2ex/2+e−x/2. In practice, due to the nature of the exponential function e−x, it is often sufficient to compute the standard logistic function for x over a small range of real numbers, such as a range contained in [−6, +6], as it quickly converges very close to its saturation values of 0 and 1.

Symmetries The logistic function has the symmetry property that 1−f(x)=f(−x). This reflects that the growth from 0 when x is small is symmetric with the decay of the gap to the limit (1) when x is large. Further, x↦f(x)−1/2 is an odd function. The sum of the logistic function and its reflection about the vertical axis, f(−x), is 11+e−x+11+e−(−x)=exex+1+1ex+1=1. The logistic function is thus rotationally symmetrical about the point (0, 1/2).

Inverse function The logistic function is the inverse of the natural logit function logit⁡p=log⁡p1−p for 0<p<1 and so converts the logarithm of odds into a probability.

The conversion from the log-likelihood ratio of two alternatives also takes the form of a logistic curve.

Hyperbolic tangent The logistic function is an offset and scaled hyperbolic tangent function: f(x)=12+12tanh⁡(x2), or tanh⁡(x)=2f(2x)−1. This follows from tanh⁡(x)=ex−e−xex+e−x=ex⋅(1−e−2x)ex⋅(1+e−2x)=f(2x)−e−2x1+e−2x=f(2x)−e−2x+1−11+e−2x=2f(2x)−1. The hyperbolic-tangent relationship leads to another form for the logistic function's derivative: ddxf(x)=14sech2(x2), which ties the logistic function into the logistic distribution. Geometrically, the hyperbolic tangent function is the hyperbolic angle on the unit hyperbola x2−y2=1, which factors as (x+y)(x−y)=1, and thus has asymptotes the lines through the origin with slope ⁠−1⁠ and with slope ⁠1⁠, and vertex at ⁠(1,0)⁠ corresponding to the range and midpoint (⁠1⁠) of tanh. Analogously, the logistic function can be viewed as the hyperbolic angle on the hyperbola xy−y2=1, which factors as y(x−y)=1, and thus has asymptotes the lines through the origin with slope ⁠0⁠ and with slope ⁠1⁠, and vertex at ⁠(2,1)⁠, corresponding to the range and midpoint (⁠1/2⁠) of the logistic function. Parametrically, hyperbolic cosine and hyperbolic sine give coordinates on the unit hyperbola: ((et+e−t)/2,(et−e−t)/2), with quotient the hyperbolic tangent. Similarly, (et/2+e−t/2,et/2) parametrizes the hyperbola xy−y2=1, with quotient the logistic function. These correspond to linear transformations (and rescaling the parametrization) of the hyperbola xy=1, with parametrization (e−t,et): the parametrization of the hyperbola for the logistic function corresponds to t/2 and the linear transformation (1101), while the parametrization of the unit hyperbola (for the hyperbolic tangent) corresponds to the linear transformation 12(11−11).

Derivative

The standard logistic function has an easily calculated derivative. The derivative is known as the density of the logistic distribution: f(x)=11+e−x=ex1+ex, ddxf(x)=ex⋅(1+ex)−ex⋅ex(1+ex)2=ex(1+ex)2=ex1+ex⋅11+ex=ex1+ex(1+ex−ex1+ex)=ex1+ex(1−ex1+ex)=f(x)(1−f(x))from which all higher derivatives can be derived algebraically. For example, f″=(1−2f)(1−f)f. The logistic distribution is a location–scale family, which corresponds to parameters of the logistic function. If ⁠L=1⁠ is fixed, then the midpoint ⁠x0⁠ is the location and the slope ⁠k⁠ is the scale.

Integral Conversely, its antiderivative can be computed by the substitution u=1+ex, since f(x)=ex1+ex=u′u, so (dropping the constant of integration) ∫ex1+exdx=∫1udu=ln⁡u=ln⁡(1+ex). In artificial neural networks, this is known as the softplus function and (with scaling) is a smooth approximation of the ramp function, just as the logistic function (with scaling) is a smooth approximation of the Heaviside step function.

… excerpt ends here. Continue reading the full article.

Illustrations

Logistic function: Standard logistic function where L=1,k=1,x0=0
Standard logistic function where L=1,k=1,x0=0
Logistic function: Original image of a logistic curve, contrasted with what Verhulst called a "logarithmic curve" (in modern terms, "exponential curve")
Original image of a logistic curve, contrasted with what Verhulst called a "logarithmic curve" (in modern terms, "exponential curve")
Logistic function: The logistic function and its first 3 derivatives
The logistic function and its first 3 derivatives
Logistic function: Pierre-François Verhulst (1804–1849)
Pierre-François Verhulst (1804–1849)
Logistic function: A comparison of Malthus's model of population growth (blue - exponential) versus Verhulst's (red - logistic)
A comparison of Malthus's model of population growth (blue - exponential) versus Verhulst's (red - logistic)

Worked examples

Example 1 — a first encounter with Logistic function

Start with the simplest possible case. Write down what Logistic function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Logistic function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Logistic function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Logistic function

In research
Logistic function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Logistic function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Logistic function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Differential equations, Growth curves, Logistic regression, so understanding it makes those chapters shorter.
In everyday life
Look for Logistic function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Logistic function” →

How to study Logistic function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Logistic function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Logistic function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Logistic function in simple terms?

A logistic function or logistic curve is a common S-shaped curve (sigmoid curve) with the equation f(x)=L1+e−k(x−x0) where L is the carrying capacity, the supremum of the values of the function; k is the logistic growth rate, the steepness of the curve; and x0 is the x value of the function's midpo…

Why does Logistic function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Logistic function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Logistic function.

Tags

  • Differential equations
  • Growth curves
  • Logistic regression
  • Population dynamics
  • Population ecology
  • Sigmoid functions
  • Special functions

Keep exploring