Travou nisso? Resolva com IA
Calculus · real student question

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

Question

Differentiate and simplify:

y=ex(ex+e−x)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+e−x)−2y=e^{x}\left(e^{x}+e^{-x}\right)^{-2}

    Now the product rule (uv)′=u′v+uv′\left(uv\right)'=u'v+uv' applies with u=exu=e^{x} and v=(ex+e−x)−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+e−x)=ex−e−x\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+e−x)−3(ex−e−x)v'=-2\left(e^{x}+e^{-x}\right)^{-3}\left(e^{x}-e^{-x}\right)

  3. Assemble the product rule.

    y′=ex(ex+e−x)−2−2ex(ex+e−x)−3(ex−e−x)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+e−x)−3e^{x}\left(e^{x}+e^{-x}\right)^{-3} — take the more negative exponent, so the first term contributes one leftover factor of (ex+e−x)\left(e^{x}+e^{-x}\right):

    y′=ex(ex+e−x)−3[(ex+e−x)−2(ex−e−x)]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+e−x−2ex+2e−x=−ex+3e−xe^{x}+e^{-x}-2e^{x}+2e^{-x}=-e^{x}+3e^{-x}

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

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

    giving the compact result

    dydx=3−e2x(ex+e−x)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=10−6h=10^{-6} matches this formula at x=−1.2x=-1.2, 00, 0.70.7 and 1.91.9 to within 10−610^{-6} ✓. The derivative vanishes when e2x=3e^{2x}=3, i.e. x=12ln⁡3≈0.5493x=\tfrac12\ln3\approx0.5493 — the single maximum of yy, and the sign change from ++ to −- there confirms it.

Answer

dydx=3−e2x(ex+e−x)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 →