Graph of y = 1/(1 + e⁻ˣ) (Logistic (sigmoid) function)

· How we calculate · Free, no sign-up

Quick answer

The graph of y = 1/(1 + e⁻ˣ) is an S-shaped sigmoid curve rising from 0 to 1 that passes through (0, ½). Domain: All real numbers (−∞, ∞); range: 0 < y < 1. x-intercept: None; y-intercept: y = ½. It is neither even nor odd.

Functiony = 1/(1 + e⁻ˣ)
DomainAll real numbers (−∞, ∞)
Range0 < y < 1
x-intercept(s)None
y-intercepty = ½
Derivativef(x)(1 − f(x)) = e⁻ˣ/(1 + e⁻ˣ)²
Graph of y = 1/(1 + e⁻ˣ) for −8 ≤ x ≤ 8−8−6−4−202468−0.200.20.40.60.811.2
Graph of y = 1/(1 + e⁻ˣ) for −8 ≤ x ≤ 8, −0.3 ≤ y ≤ 1.3. Dashed lines are asymptotes. Dots mark intercepts.
Zoom, pan and trace y = 1/(1 + e⁻ˣ) in the interactive grapher.Open the Graphing Calculator →

What the graph of y = 1/(1 + e⁻ˣ) looks like

The logistic function σ(x) = 1/(1 + e⁻ˣ) squeezes every real number into the interval between 0 and 1. Far to the left it is almost 0, far to the right almost 1, and in between it rises in a smooth S through (0, ½), where it is steepest with slope ¼.

It models growth that slows as it approaches a limit (populations, the spread of a product, learning curves) and turns scores into probabilities in logistic regression and neural networks. Its derivative has the neat form σ(x)(1 − σ(x)), and its symmetry σ(−x) = 1 − σ(x) means the two halves are rotations of each other about (0, ½).

Key features of y = 1/(1 + e⁻ˣ)

Key features of y = 1/(1 + e⁻ˣ)
PropertyValue
Functiony = 1/(1 + e⁻ˣ) (Logistic (sigmoid) function)
FamilySpecial
DomainAll real numbers (−∞, ∞)
Range0 < y < 1
x-intercept(s)None
y-intercepty = ½
SymmetryNeither even nor odd (point-symmetric about (0, ½): f(−x) = 1 − f(x))
AsymptotesHorizontal y = 0 and y = 1
PeriodNot periodic
Increasing on(−∞, ∞)
Decreasing onNever
Key pointsInflection at (0, ½) with maximum slope ¼
Derivative f′(x)f(x)(1 − f(x)) = e⁻ˣ/(1 + e⁻ˣ)²
Antiderivative ∫ f(x) dxln(1 + eˣ) + C

Symmetry: Neither even nor odd (point-symmetric about (0, ½): f(−x) = 1 − f(x)). For example f(2) = 0.8808 but f(−2) = 0.1192, which is neither the same value nor its negative. Intercepts: the graph meets the x-axis at None and the y-axis at y = ½.

Table of values for y = 1/(1 + e⁻ˣ)

Values of y = 1/(1 + e⁻ˣ)
xy = 1/(1 + e⁻ˣ)Slope f′(x)
−60.00250.0025
−40.0180.0177
−20.11920.105
−10.26890.1966
00.50.25
10.73110.1966
20.88080.105
40.9820.0177
60.99750.0025

How to sketch y = 1/(1 + e⁻ˣ) by hand

Plot the points from the table — (−6, 0.0025), (−4, 0.018), (−2, 0.1192), (−1, 0.2689), (0, 0.5), (1, 0.7311) — on axes running from about −8 to 8 horizontally. Draw the asymptotes first (horizontal y = 0 and y = 1) as dashed lines; the curve gets ever closer to them without crossing in that direction. Then join the points with a smooth curve. As a check on the shape — increasing: (−∞, ∞); decreasing: Never.

Derivative, tangent line and area

The derivative of y = 1/(1 + e⁻ˣ) is f(x)(1 − f(x)) = e⁻ˣ/(1 + e⁻ˣ)², which gives the slope of the curve at each point (the third column of the table). At x = 1 the curve is at height 0.7311 and its slope is f′(1) = 0.1966, so the tangent line there is y = 0.1966x + 0.5344.

The signed area under the curve from x = 0 to x = 1 is 0.6201, found using the antiderivative ln(1 + eˣ) + C.

Related graphs and transformations

Browse all graphs of common functions by family, or open the graphing calculator.

Frequently asked questions

What is the domain and range of y = 1/(1 + e⁻ˣ)?

Domain: All real numbers (−∞, ∞). Range: 0 < y < 1.

What are the intercepts of y = 1/(1 + e⁻ˣ)?

x-intercept(s): None. y-intercept: y = ½.

What is the derivative of y = 1/(1 + e⁻ˣ)?

f′(x) = f(x)(1 − f(x)) = e⁻ˣ/(1 + e⁻ˣ)². At x = 1 the curve is at height 0.7311 and its slope is f′(1) = 0.1966, so the tangent line there is y = 0.1966x + 0.5344.

Is y = 1/(1 + e⁻ˣ) even, odd or neither?

Neither even nor odd (point-symmetric about (0, ½): f(−x) = 1 − f(x)). For example f(2) = 0.8808 but f(−2) = 0.1192, which is neither the same value nor its negative.

Does y = 1/(1 + e⁻ˣ) have asymptotes?

Horizontal y = 0 and y = 1.