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⁻ˣ)
| Property | Value |
|---|---|
| Function | y = 1/(1 + e⁻ˣ) (Logistic (sigmoid) function) |
| Family | Special |
| Domain | All real numbers (−∞, ∞) |
| Range | 0 < y < 1 |
| x-intercept(s) | None |
| y-intercept | y = ½ |
| Symmetry | Neither even nor odd (point-symmetric about (0, ½): f(−x) = 1 − f(x)) |
| Asymptotes | Horizontal y = 0 and y = 1 |
| Period | Not periodic |
| Increasing on | (−∞, ∞) |
| Decreasing on | Never |
| Key points | Inflection at (0, ½) with maximum slope ¼ |
| Derivative f′(x) | f(x)(1 − f(x)) = e⁻ˣ/(1 + e⁻ˣ)² |
| Antiderivative ∫ f(x) dx | ln(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⁻ˣ)
| x | y = 1/(1 + e⁻ˣ) | Slope f′(x) |
|---|---|---|
| −6 | 0.0025 | 0.0025 |
| −4 | 0.018 | 0.0177 |
| −2 | 0.1192 | 0.105 |
| −1 | 0.2689 | 0.1966 |
| 0 | 0.5 | 0.25 |
| 1 | 0.7311 | 0.1966 |
| 2 | 0.8808 | 0.105 |
| 4 | 0.982 | 0.0177 |
| 6 | 0.9975 | 0.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
- y = tanh x — Rescaled version: tanh x = 2σ(2x) − 1
- y = arctan x — Another S-curve
- y = e⁻ˣ — Built from e⁻ˣ
- y = eˣ — Exponential growth
- y = e^(−x²) — Bell curve
Browse all graphs of common functions by family, or open the graphing calculator.