AP Calculus AB and BC

Derivative of 1/(1+e^x): Answer, Proof, Mistakes

The derivative of 1/(1 + e^x) is negative e^x over (1 + e^x) squared. Treat the function as a reciprocal and use the chain rule, or use the quotient rule with numerator 1; both routes agree. The result is negative for every x, so the function strictly decreases.

ddx[11+ex]=ex(1+ex)2\frac{d}{dx}\left[\frac{1}{1+e^{x}}\right] = -\frac{e^{x}}{\left(1+e^{x}\right)^{2}}

Two routes to the same derivative

The first route rewrites the function as (1+ex)1\left(1+e^{x}\right)^{-1} and uses the chain rule. The outer derivative is (1+ex)2-\left(1+e^{x}\right)^{-2} and the inner derivative is exe^{x}, since the 11 contributes nothing.

ddx(1+ex)1=(1+ex)2ex=ex(1+ex)2\frac{d}{dx}\left(1+e^{x}\right)^{-1} = -\left(1+e^{x}\right)^{-2}\cdot e^{x} = -\frac{e^{x}}{\left(1+e^{x}\right)^{2}}

The second route uses the quotient rule with u=1u=1 and v=1+exv=1+e^{x}. Because u=0u'=0, the first term of uvuvv2\frac{u'v-uv'}{v^{2}} vanishes and only the second survives.

0(1+ex)1ex(1+ex)2=ex(1+ex)2\frac{0\cdot\left(1+e^{x}\right)-1\cdot e^{x}}{\left(1+e^{x}\right)^{2}} = -\frac{e^{x}}{\left(1+e^{x}\right)^{2}}

Sign, shape, and the partner function

Both exe^{x} and (1+ex)2\left(1+e^{x}\right)^{2} are positive for every real xx, so the derivative is negative everywhere and the function is strictly decreasing. It falls from 11 as xx\to-\infty towards 00 as xx\to\infty, passing through 12\frac{1}{2} at x=0x=0, where the slope is 14-\frac{1}{4}.

11+ex+ex1+ex=1\frac{1}{1+e^{x}}+\frac{e^{x}}{1+e^{x}} = 1

The partner function ex1+ex\frac{e^{x}}{1+e^{x}} is whatever is left over from 11. Differentiating that identity forces the two derivatives to be negatives of each other, so the partner has derivative +ex(1+ex)2+\frac{e^{x}}{\left(1+e^{x}\right)^{2}} and increases. Same expression, opposite sign.

One compact form is worth remembering: if f(x)=11+exf(x)=\frac{1}{1+e^{x}} then f=f(1f)f'=-f\left(1-f\right), since 1f1-f is exactly the partner. Logistic models in the differential equations unit rest on this relationship between a function and its own rate of change.

The mistakes students make

The sign and the missing inner derivative account for most of the lost marks.

  • Answering ex(1+ex)2\frac{e^{x}}{\left(1+e^{x}\right)^{2}} with no minus sign. That is the derivative of the partner function ex1+ex\frac{e^{x}}{1+e^{x}}, which increases, not of this one, which decreases.
  • Answering 1(1+ex)2-\frac{1}{\left(1+e^{x}\right)^{2}}, differentiating the outer power and forgetting the inner derivative exe^{x}.
  • Answering 00 by differentiating the top and bottom separately, on the grounds that the numerator is constant. The derivative of a quotient is not the quotient of the derivatives.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of 1/(1+e^x)?

It is ex(1+ex)2-\frac{e^{x}}{\left(1+e^{x}\right)^{2}}, defined for every real xx because 1+ex1+e^{x} is never zero.

Why is the derivative always negative?

The numerator exe^{x} is positive and the denominator (1+ex)2\left(1+e^{x}\right)^{2} is a square, so the fraction is positive and the leading minus makes the whole thing negative. The function decreases on all of its domain.

Is 1/(1+e^x) the sigmoid function?

It is the mirror image of it. The usual sigmoid is 11+ex\frac{1}{1+e^{-x}}, which increases and has derivative ex(1+ex)2\frac{e^{-x}}{\left(1+e^{-x}\right)^{2}}. Replacing xx with x-x flips the graph left to right and flips the sign of the slope.