Differentiation of Elementary Functions

Proof
Last updated: Tags: Proof, Differentiation, Elementary Function

Every elementary function is differentiable wherever it is defined, and its derivative is again elementary. This checkpoint collects the proofs: starting from two fundamental limits, you can derive the derivatives of the exponential, logarithm, all trigonometric and inverse trigonometric functions, and all hyperbolic and inverse hyperbolic functions.

Two foundational limits

All the proofs below rest on two limits.

Lemma 1. lim⁡h→0eh−1h=1\displaystyle\lim_{h \to 0} \frac{e^h - 1}{h} = 1.

Proof. Substitute u=eh−1u = e^h - 1, so h=ln⁡(1+u)h = \ln(1+u) and u→0u \to 0 as h→0h \to 0:

eh−1h  =  uln⁡(1+u).\frac{e^h - 1}{h} \;=\; \frac{u}{\ln(1+u)}.

From the inequality x1+x≤ln⁡(1+x)≤x\dfrac{x}{1+x} \leq \ln(1+x) \leq x (valid for x>−1x > -1), dividing by u>0u > 0:

11+u  ≤  ln⁡(1+u)u  ≤  1.\frac{1}{1+u} \;\leq\; \frac{\ln(1+u)}{u} \;\leq\; 1.

As u→0+u \to 0^+, the left side →1\to 1, so by the squeeze theorem ln⁡(1+u)/u→1\ln(1+u)/u \to 1. The same holds for u→0−u \to 0^- by symmetry. Therefore uln⁡(1+u)→1\dfrac{u}{\ln(1+u)} \to 1. □\square

Lemma 2. lim⁡h→0sin⁡hh=1\displaystyle\lim_{h \to 0} \frac{\sin h}{h} = 1.

Proof. For 0<h<π/20 < h < \pi/2, compare areas in a unit circle:

12sin⁡h  ≤  h2  ≤  12tan⁡h.\tfrac{1}{2}\sin h \;\leq\; \tfrac{h}{2} \;\leq\; \tfrac{1}{2}\tan h.

Dividing by 12sin⁡h>0\tfrac{1}{2}\sin h > 0 and inverting:

cos⁡h  ≤  sin⁡hh  ≤  1.\cos h \;\leq\; \frac{\sin h}{h} \;\leq\; 1.

As h→0+h \to 0^+, cos⁡h→1\cos h \to 1, so by the squeeze theorem sin⁡h/h→1\sin h / h \to 1. The case h→0−h \to 0^- follows from sin⁡(−h)/(−h)=sin⁡h/h\sin(-h)/(-h) = \sin h/h. □\square

From Lemma 2 we also derive lim⁡h→0cos⁡h−1h=0\displaystyle\lim_{h \to 0}\frac{\cos h - 1}{h} = 0, since

cos⁡h−1h  =  −sin⁡(h/2)h/2⋅sin⁡(h/2)  →  −1⋅0  =  0.\frac{\cos h - 1}{h} \;=\; -\frac{\sin(h/2)}{h/2} \cdot \sin(h/2) \;\to\; -1 \cdot 0 \;=\; 0.

Derivatives of the exponential and logarithm

Natural exponential

ddx(ex)  =  ex.\frac{d}{dx}(e^x) \;=\; e^x.

Proof. By Lemma 1:

lim⁡h→0ex+h−exh  =  exlim⁡h→0eh−1h  =  ex.  □\lim_{h\to 0}\frac{e^{x+h}-e^x}{h} \;=\; e^x \lim_{h\to 0}\frac{e^h-1}{h} \;=\; e^x. \;\square

General exponential

For a>0a > 0, a≠1a \neq 1, write ax=exln⁡aa^x = e^{x\ln a} and apply the chain rule:

ddx(ax)  =  exln⁡a⋅ln⁡a  =  axln⁡a.\frac{d}{dx}(a^x) \;=\; e^{x\ln a} \cdot \ln a \;=\; a^x \ln a.

Natural logarithm

Applying the inverse function rule to exe^x:

ddx(ln⁡x)  =  1eln⁡x  =  1x,x>0.\frac{d}{dx}(\ln x) \;=\; \frac{1}{e^{\ln x}} \;=\; \frac{1}{x}, \quad x > 0.

General power xαx^\alpha

For x>0x > 0 and α∈R\alpha \in \mathbb{R}, write xα=eαln⁡xx^\alpha = e^{\alpha \ln x} and apply the chain rule:

ddx(xα)  =  eαln⁡x⋅αx  =  αxα−1.\frac{d}{dx}(x^\alpha) \;=\; e^{\alpha\ln x} \cdot \frac{\alpha}{x} \;=\; \alpha x^{\alpha - 1}.

This extends the integer power rule to all real exponents.

General logarithm

By the change-of-base formula log⁡ax=ln⁡x/ln⁡a\log_a x = \ln x / \ln a:

ddx(log⁡ax)  =  1xln⁡a.\frac{d}{dx}(\log_a x) \;=\; \frac{1}{x \ln a}.

Derivatives of trigonometric functions

Sine

ddx(sin⁡x)  =  cos⁡x.\frac{d}{dx}(\sin x) \;=\; \cos x.

Proof. Using the addition formula sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x+h) = \sin x \cos h + \cos x \sin h:

sin⁡(x+h)−sin⁡xh  =  sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh.\frac{\sin(x+h)-\sin x}{h} \;=\; \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h}.

As h→0h \to 0: (cos⁡h−1)/h→0(\cos h - 1)/h \to 0 and (sin⁡h)/h→1(\sin h)/h \to 1 by the lemmas, so the limit is cos⁡x\cos x. □\square

Cosine

ddx(cos⁡x)  =  −sin⁡x.\frac{d}{dx}(\cos x) \;=\; -\sin x.

Proof. Using cos⁡(x+h)=cos⁡xcos⁡h−sin⁡xsin⁡h\cos(x+h) = \cos x \cos h - \sin x \sin h:

cos⁡(x+h)−cos⁡xh  =  cos⁡x⋅cos⁡h−1h−sin⁡x⋅sin⁡hh  →  −sin⁡x.  □\frac{\cos(x+h)-\cos x}{h} \;=\; \cos x \cdot \frac{\cos h-1}{h} - \sin x \cdot \frac{\sin h}{h} \;\to\; -\sin x. \;\square

Tangent and cotangent

By the quotient rule applied to tan⁡x=sin⁡x/cos⁡x\tan x = \sin x / \cos x and cot⁡x=cos⁡x/sin⁡x\cot x = \cos x / \sin x:

ddx(tan⁡x)  =  cos⁡2x+sin⁡2xcos⁡2x  =  sec⁡2x,x≠π2+nπ,\frac{d}{dx}(\tan x) \;=\; \frac{\cos^2 x + \sin^2 x}{\cos^2 x} \;=\; \sec^2 x, \qquad x \neq \tfrac{\pi}{2}+n\pi, ddx(cot⁡x)  =  −csc⁡2x,x≠nπ.\frac{d}{dx}(\cot x) \;=\; -\csc^2 x, \qquad x \neq n\pi.

Derivatives of inverse trigonometric functions

All four follow from the inverse function rule and Pythagorean identities.

FunctionDomainDerivative
arcsin⁡x\arcsin x(−1,1)(-1,1)11−x2\dfrac{1}{\sqrt{1-x^2}}
arccos⁡x\arccos x(−1,1)(-1,1)−11−x2\dfrac{-1}{\sqrt{1-x^2}}
arctan⁡x\arctan xR\mathbb{R}11+x2\dfrac{1}{1+x^2}
arccot x\text{arccot}\, xR\mathbb{R}−11+x2\dfrac{-1}{1+x^2}

The last entry: (cot⁡x)′=−csc⁡2x=−(1+cot⁡2x)(\cot x)' = -\csc^2 x = -(1+\cot^2 x), so at x=cot⁡tx = \cot t the inverse function rule gives (arccot x)′=−1/(1+x2)(\text{arccot}\, x)' = -1/(1+x^2).

Derivatives of hyperbolic functions

Recall sinh⁡x=ex−e−x2\sinh x = \dfrac{e^x-e^{-x}}{2} and cosh⁡x=ex+e−x2\cosh x = \dfrac{e^x+e^{-x}}{2}. Differentiating term by term using (ex)′=ex(e^x)' = e^x and (e−x)′=−e−x(e^{-x})' = -e^{-x}:

ddx(sinh⁡x)  =  cosh⁡x,ddx(cosh⁡x)  =  sinh⁡x.\frac{d}{dx}(\sinh x) \;=\; \cosh x, \qquad \frac{d}{dx}(\cosh x) \;=\; \sinh x.

By the quotient rule on tanh⁡x=sinh⁡x/cosh⁡x\tanh x = \sinh x / \cosh x:

ddx(tanh⁡x)  =  cosh⁡2x−sinh⁡2xcosh⁡2x  =  sech2x.\frac{d}{dx}(\tanh x) \;=\; \frac{\cosh^2 x - \sinh^2 x}{\cosh^2 x} \;=\; \text{sech}^2 x.

Similarly, (coth x)′=−csch2x(\text{coth}\, x)' = -\text{csch}^2 x for x≠0x \neq 0.

Derivatives of inverse hyperbolic functions

The logarithmic representations of inverse hyperbolic functions make their derivatives easy to compute.

Arsinh. Since arsinh x=ln⁡(x+x2+1)\text{arsinh}\, x = \ln(x+\sqrt{x^2+1}):

(arsinh x)′  =  1+xx2+1x+x2+1  =  x2+1+x(x+x2+1)x2+1  =  1x2+1.(\text{arsinh}\, x)' \;=\; \frac{1+\tfrac{x}{\sqrt{x^2+1}}}{x+\sqrt{x^2+1}} \;=\; \frac{\sqrt{x^2+1}+x}{(x+\sqrt{x^2+1})\sqrt{x^2+1}} \;=\; \frac{1}{\sqrt{x^2+1}}.

Arcosh. For x>1x > 1, arcosh x=ln⁡(x+x2−1)\text{arcosh}\, x = \ln(x+\sqrt{x^2-1}):

(arcosh x)′  =  1+xx2−1x+x2−1  =  1x2−1.(\text{arcosh}\, x)' \;=\; \frac{1+\tfrac{x}{\sqrt{x^2-1}}}{x+\sqrt{x^2-1}} \;=\; \frac{1}{\sqrt{x^2-1}}.

Artanh. For ∣x∣<1|x| < 1, artanh x=12ln⁡1+x1−x\text{artanh}\, x = \tfrac{1}{2}\ln\tfrac{1+x}{1-x}:

(artanh x)′  =  12(11+x+11−x)  =  11−x2.(\text{artanh}\, x)' \;=\; \tfrac{1}{2}\left(\frac{1}{1+x}+\frac{1}{1-x}\right) \;=\; \frac{1}{1-x^2}.

Summary

FunctionDerivativeDomain
exe^xexe^xR\mathbb{R}
axa^xaxln⁡aa^x \ln aR\mathbb{R}
ln⁡x\ln x1/x1/xx>0x>0
log⁡ax\log_a x1/(xln⁡a)1/(x\ln a)x>0x>0
xαx^\alphaαxα−1\alpha x^{\alpha-1}x>0x>0
sin⁡x\sin xcos⁡x\cos xR\mathbb{R}
cos⁡x\cos x−sin⁡x-\sin xR\mathbb{R}
tan⁡x\tan xsec⁡2x\sec^2 xx≠π/2+nπx\neq\pi/2+n\pi
cot⁡x\cot x−csc⁡2x-\csc^2 xx≠nπx\neq n\pi
arcsin⁡x\arcsin x1/1−x21/\sqrt{1-x^2}(−1,1)(-1,1)
arccos⁡x\arccos x−1/1−x2-1/\sqrt{1-x^2}(−1,1)(-1,1)
arctan⁡x\arctan x1/(1+x2)1/(1+x^2)R\mathbb{R}
arccot x\text{arccot}\, x−1/(1+x2)-1/(1+x^2)R\mathbb{R}
sinh⁡x\sinh xcosh⁡x\cosh xR\mathbb{R}
cosh⁡x\cosh xsinh⁡x\sinh xR\mathbb{R}
tanh⁡x\tanh xsech2x\text{sech}^2 xR\mathbb{R}
coth x\text{coth}\, x−csch2x-\text{csch}^2 xx≠0x\neq 0
arsinh x\text{arsinh}\, x1/x2+11/\sqrt{x^2+1}R\mathbb{R}
arcosh x\text{arcosh}\, x1/x2−11/\sqrt{x^2-1}x>1x>1
artanh x\text{artanh}\, x1/(1−x2)1/(1-x^2)∣x∣<1\lvert x\rvert<1