AP Calculus AB and BC

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

The derivative of e^x/(1+e^x) is e^x/(1+e^x)^2. Use the quotient rule: the two e^(2x) terms in the numerator cancel and leave e^x. The same answer can be written as f(x) times 1 minus f(x), which is why this logistic function solves y' = y(1 - y).

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

Quotient rule on the logistic function

Because exe^{x} is its own derivative and the 11 underneath contributes nothing, the quotient rule asks for ex(1+ex)e^{x}\left(1+e^{x}\right) minus exexe^{x}\cdot e^{x}. Both of those products carry an e2xe^{2x}, and that is the term that disappears.

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

Expand the top and it reads ex+e2xe2xe^{x}+e^{2x}-e^{2x}. The two e2xe^{2x} terms are identical and opposite, so only exe^{x} is left standing.

f(x)=ex(1+ex)2f'(x) = \frac{e^{x}}{\left(1+e^{x}\right)^{2}}

Why the derivative equals f(1 - f)

Split the answer on purpose instead of leaving it as one fraction. Since 1ex1+ex=11+ex1-\frac{e^{x}}{1+e^{x}} = \frac{1}{1+e^{x}}, the second factor below is exactly 1f(x)1-f(x).

f(x)=ex1+ex11+ex=f(x)(1f(x))f'(x) = \frac{e^{x}}{1+e^{x}}\cdot\frac{1}{1+e^{x}} = f(x)\left(1-f(x)\right)

That is the logistic differential equation dydx=y(1y)\frac{dy}{dx} = y(1-y) from Unit 7, with carrying capacity 11. The function on this page is one of its solutions, so the growth model and the quotient rule arrive at the same expression from opposite directions.

The graph follows from the sign. Both exe^{x} and (1+ex)2\left(1+e^{x}\right)^{2} are positive, so ff increases on the whole real line. The steepest point is x=0x=0, where f=12f=\frac{1}{2} and f=14f'=\frac{1}{4}: the inflection point sits at half the carrying capacity, as it does for every logistic curve.

The mistakes students make

All three are quotient rule slips: one divides instead of subtracting, one forgets to square the denominator, and one drops the subtracted product.

  • Differentiating top and bottom separately and answering exex=1\frac{e^{x}}{e^{x}} = 1. The quotient rule subtracts two products, it does not divide two derivatives.
  • Leaving the denominator unsquared and answering ex1+ex\frac{e^{x}}{1+e^{x}}. That is the original function, not its derivative.
  • Forgetting to subtract the second product at all and answering ex+e2x(1+ex)2\frac{e^{x}+e^{2x}}{\left(1+e^{x}\right)^{2}}. Expanding ex(1+ex)e^{x}\left(1+e^{x}\right) gives ex+e2xe^{x}+e^{2x}, and the subtracted product exexe^{x}\cdot e^{x} removes that e2xe^{2x} in full.

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 e^x/(1+e^x)?

It is ex(1+ex)2\frac{e^{x}}{\left(1+e^{x}\right)^{2}}. The quotient rule gives ex(1+ex)e2x(1+ex)2\frac{e^{x}\left(1+e^{x}\right)-e^{2x}}{\left(1+e^{x}\right)^{2}}, and the numerator reduces to exe^{x}.

Why does the derivative equal f(1-f)?

Because ex(1+ex)2\frac{e^{x}}{\left(1+e^{x}\right)^{2}} factors as ex1+ex11+ex\frac{e^{x}}{1+e^{x}}\cdot\frac{1}{1+e^{x}}, and the second factor is 1ex1+ex1-\frac{e^{x}}{1+e^{x}}. So f=f(1f)f' = f(1-f).

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

Yes. It is the standard logistic curve with carrying capacity 11, midpoint at x=0x=0 where f=12f=\frac{1}{2}, and horizontal asymptotes y=0y=0 and y=1y=1. It satisfies dydx=y(1y)\frac{dy}{dx}=y(1-y).