You are currently viewing Derivative of Hyperbolic Secant using First Principle of Derivatives
Derivative of Hyperbolic Secant using First Principle of Derivatives

Derivative of Hyperbolic Secant using First Principle of Derivatives

The derivative of sech(x)\text{sech}(x) is sech(x)tanh(x)-\text{sech}(x)\tanh(x). We will prove that with the first principle of derivatives.

Proof. Let f(x)=sech(x)=2ex+exf(x) = \text{sech}(x) = \frac{2}{e^x + e^{-x}}. Then using the first principle of derivatives, we get:
f(x)=limh0f(x+h)f(x)h=limh0sech(x+h)sech(x)h=limh02ex+h+exh2(ex+ex)(ex+h+exh)h=limh02(ex+ex)2(ex+h+exh)ex+h+exhh=2limh0ex+exex+hexh(ex+h+exh)(ex+ex)h=2limh0ex+exex+hexhh(ex+h+exh)(ex+ex)=2limh0ex(1eh)+ex(1eh)h(ex+h+exh)(ex+ex)=2limh0ex(1eh)h(ex+h+exh)(ex+ex)+2limh0ex(1eh)h(ex+h+exh)(ex+ex)=2exlimh01ehh(ex+h+exh)(ex+ex)+2exlimh01ehh(ex+h+exh)(ex+ex)\begin{align*} f'(x) &= \lim_{h \rightarrow 0} \frac{f(x+h) - f(x)}{h} \\ &= \lim_{h \rightarrow 0} \frac{\text{sech}(x + h) - \text{sech}(x)}{h} \\ &= \lim_{h \rightarrow 0} \frac{\frac{2}{e^{x + h} + e^{-x-h}} - \frac{2}{(e^x + e^{-x})(e^{x + h} + e^{-x-h})}}{h} \\ &= \lim_{h \rightarrow 0} \frac{\frac{2(e^x + e^{-x}) - 2(e^{x + h} + e^{-x-h})}{e^{x + h} + e^{-x-h}}}{h} \\ &= 2 \lim_{h \rightarrow 0} \frac{\frac{e^x + e^{-x} - e^{x + h} - e^{-x-h}}{(e^{x + h} + e^{-x-h})(e^x + e^{-x})}}{h} \\ &= 2 \lim_{h \rightarrow 0} \frac{e^x + e^{-x} - e^{x + h} - e^{-x-h}}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} \\ &= 2 \lim_{h \rightarrow 0} \frac{e^x(1 - e^{h}) + e^{-x}(1 - e^{-h})}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} \\ &= 2 \lim_{h \rightarrow 0} \frac{e^x(1 - e^{h})}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} + 2\lim_{h \rightarrow 0} \frac{e^{-x}(1 - e^{-h})}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} \\ &= 2e^x\lim_{h \rightarrow 0} \frac{1 - e^{h}}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} + 2e^{-x}\lim_{h \rightarrow 0} \frac{1 - e^{-h}}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} \\ \end{align*}
Let’s check the first part:
2exlimh01ehh(ex+h+exh)(ex+ex)=2exlimh01ehhlimh01(ex+h+exh)(ex+ex)=2exlimh01ehh1(ex+ex)2=2ex(ex+ex)2limh01ehh.\begin{align*} & 2e^x\lim_{h \rightarrow 0} \frac{1 - e^{h}}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} = \\ & 2e^x\lim_{h \rightarrow 0} \frac{1 - e^{h}}{h} \cdot \lim_{h \rightarrow 0}\frac{1}{(e^{x + h} + e^{-x-h})(e^x + e^{-x})} = \\ & 2e^x\lim_{h \rightarrow 0} \frac{1 - e^{h}}{h} \cdot \frac{1}{(e^x + e^{-x})^2} = \\ & \frac{2e^x}{(e^x + e^{-x})^2}\lim_{h \rightarrow 0} \frac{1 - e^{h}}{h}. \end{align*}
We have seen here that limh01ehh=limh0eh1h=1\lim_{h \rightarrow 0} \frac{1 - e^{h}}{h} = - \lim_{h \rightarrow 0} \frac{e^{h} - 1}{h} = -1. So we get
f(x)=2ex(ex+ex)2+2exlimh01ehh(ex+h+exh)(ex+ex).\begin{align*} f'(x) = -\frac{2e^x}{(e^x + e^{-x})^2} + 2e^{-x}\lim_{h \rightarrow 0} \frac{1 - e^{-h}}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})}. \end{align*}
For the second part, we have:
2exlimh01ehh(ex+h+exh)(ex+ex)=2ex(ex+ex)2limh01ehh\begin{align*} & 2e^{-x}\lim_{h \rightarrow 0} \frac{1 - e^{-h}}{h(e^{x + h} + e^{-x-h})(e^x + e^{-x})} = \\ & \frac{2e^{-x}}{(e^x + e^{-x})^2} \lim_{h \rightarrow 0} \frac{1 - e^{-h}}{h} \end{align*}
Again, we saw here that limh01ehh=limh0eh1h=1\lim_{h \rightarrow 0} \frac{1 - e^{-h}}{h} = - \lim_{h \rightarrow 0} \frac{e^{-h} - 1}{h} = 1 if we apply the Maclaurin series. So we get together:
f(x)=2ex(ex+ex)2+2ex(ex+ex)2=2(exex)(ex+ex)2=sech(x)exexex+ex=sech(x)tanh(x).\begin{align*} f'(x) &= -\frac{2e^x}{(e^x + e^{-x})^2} + \frac{2e^{-x}}{(e^x + e^{-x})^2} \\ &= -\frac{2(e^x - e^{-x})}{(e^x + e^{-x})^2} \\ &= -\text{sech}(x) \frac{e^x - e^{-x}}{e^x + e^{-x}} \\ &= -\text{sech}(x)\tanh(x). \end{align*}
So we get indeed that the derivative of sech(x)\text{sech}(x) is sech(x)tanh(x)-\text{sech}(x)\tanh(x).

Leave a Reply