Calculus · real student question

Differentiate y = e^x / (e^x + e^-x)^2 and simplify the result.

Question

Differentiate and simplify:

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

Step-by-step solution

  1. Rewrite the quotient as a product. Moving the denominator up as a negative power avoids the quotient rule's bulky numerator:

    y=ex(ex+ex)2y=e^{x}\left(e^{x}+e^{-x}\right)^{-2}

    Now the product rule (uv)=uv+uv\left(uv\right)'=u'v+uv' applies with u=exu=e^{x} and v=(ex+ex)2v=\left(e^{x}+e^{-x}\right)^{-2}.

  2. Differentiate each piece. For uu, u=exu'=e^{x}. For vv, the chain rule needs the inside derivative

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

    (the second term picks up a minus from its own chain rule), so

    v=2(ex+ex)3(exex)v'=-2\left(e^{x}+e^{-x}\right)^{-3}\left(e^{x}-e^{-x}\right)

  3. Assemble the product rule.

    y=ex(ex+ex)22ex(ex+ex)3(exex)y'=e^{x}\left(e^{x}+e^{-x}\right)^{-2}-2e^{x}\left(e^{x}+e^{-x}\right)^{-3}\left(e^{x}-e^{-x}\right)

  4. Factor out the lowest power. The common factor is ex(ex+ex)3e^{x}\left(e^{x}+e^{-x}\right)^{-3} — take the more negative exponent, so the first term contributes one leftover factor of (ex+ex)\left(e^{x}+e^{-x}\right):

    y=ex(ex+ex)3[(ex+ex)2(exex)]y'=e^{x}\left(e^{x}+e^{-x}\right)^{-3}\left[\left(e^{x}+e^{-x}\right)-2\left(e^{x}-e^{-x}\right)\right]

  5. Simplify the bracket and multiply through. Distributing the 2-2:

    ex+ex2ex+2ex=ex+3exe^{x}+e^{-x}-2e^{x}+2e^{-x}=-e^{x}+3e^{-x}

    and multiplying by the outside exe^{x} uses exex=1e^{x}\cdot e^{-x}=1:

    ex(ex+3ex)=e2x+3e^{x}\left(-e^{x}+3e^{-x}\right)=-e^{2x}+3

    giving the compact result

    dydx=3e2x(ex+ex)3\frac{dy}{dx}=\frac{3-e^{2x}}{\left(e^{x}+e^{-x}\right)^{3}}

  6. Verify numerically and locate the turning point. A central difference with h=106h=10^{-6} matches this formula at x=1.2x=-1.2, 00, 0.70.7 and 1.91.9 to within 10610^{-6} ✓. The derivative vanishes when e2x=3e^{2x}=3, i.e. x=12ln30.5493x=\tfrac12\ln3\approx0.5493 — the single maximum of yy, and the sign change from ++ to - there confirms it.

Answer

dydx=3e2x(ex+ex)3\frac{dy}{dx}=\frac{3-e^{2x}}{\left(e^{x}+e^{-x}\right)^{3}}

Need to solve a different problem like this? Open the solver →