Suppose I have the following hyperbolic tangent function: $$\ f(x)=\frac{(1-e^{-2x})}{(1+e^{-2x})}$$
What will be the first derivative of this function?
Suppose I have the following hyperbolic tangent function: $$\ f(x)=\frac{(1-e^{-2x})}{(1+e^{-2x})}$$
What will be the first derivative of this function?
The derivative is a bit simpler to compute if we write it as $$ \begin{align} \frac{1-e^{-2x}}{1+e^{-2x}} &=\frac{e^{2x}-1}{e^{2x}+1}\\ &=1-\frac2{e^{2x}+1} \end{align} $$ Taking the derivative using the chain-rule gives $$ \begin{align} \frac2{(e^{2x}+1)^2}2e^{2x} &=\frac4{(e^x+e^{-x})^2}\\[6pt] &=\mathrm{sech}^2(x) \end{align} $$