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. limh0eh1h=1\displaystyle\lim_{h \to 0} \frac{e^h - 1}{h} = 1.

Proof. Substitute u=eh1u = e^h - 1, so h=ln(1+u)h = \ln(1+u) and u0u \to 0 as h0h \to 0:

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

From the inequality x1+xln(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 u0+u \to 0^+, the left side 1\to 1, so by the squeeze theorem ln(1+u)/u1\ln(1+u)/u \to 1. The same holds for u0u \to 0^- by symmetry. Therefore uln(1+u)1\dfrac{u}{\ln(1+u)} \to 1. \square

Lemma 2. limh0sinhh=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:

12sinh    h2    12tanh.\tfrac{1}{2}\sin h \;\leq\; \tfrac{h}{2} \;\leq\; \tfrac{1}{2}\tan h.

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

cosh    sinhh    1.\cos h \;\leq\; \frac{\sin h}{h} \;\leq\; 1.

As h0+h \to 0^+, cosh1\cos h \to 1, so by the squeeze theorem sinh/h1\sin h / h \to 1. The case h0h \to 0^- follows from sin(h)/(h)=sinh/h\sin(-h)/(-h) = \sin h/h. \square

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

cosh1h  =  sin(h/2)h/2sin(h/2)    10  =  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:

limh0ex+hexh  =  exlimh0eh1h  =  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, a1a \neq 1, write ax=exlnaa^x = e^{x\ln a} and apply the chain rule:

ddx(ax)  =  exlnalna  =  axlna.\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(lnx)  =  1elnx  =  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αlnxx^\alpha = e^{\alpha \ln x} and apply the chain rule:

ddx(xα)  =  eαlnxα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 logax=lnx/lna\log_a x = \ln x / \ln a:

ddx(logax)  =  1xlna.\frac{d}{dx}(\log_a x) \;=\; \frac{1}{x \ln a}.

Derivatives of trigonometric functions

Sine

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

Proof. Using the addition formula sin(x+h)=sinxcosh+cosxsinh\sin(x+h) = \sin x \cos h + \cos x \sin h:

sin(x+h)sinxh  =  sinxcosh1h+cosxsinhh.\frac{\sin(x+h)-\sin x}{h} \;=\; \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h}.

As h0h \to 0: (cosh1)/h0(\cos h - 1)/h \to 0 and (sinh)/h1(\sin h)/h \to 1 by the lemmas, so the limit is cosx\cos x. \square

Cosine

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

Proof. Using cos(x+h)=cosxcoshsinxsinh\cos(x+h) = \cos x \cos h - \sin x \sin h:

cos(x+h)cosxh  =  cosxcosh1hsinxsinhh    sinx.  \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 tanx=sinx/cosx\tan x = \sin x / \cos x and cotx=cosx/sinx\cot x = \cos x / \sin x:

ddx(tanx)  =  cos2x+sin2xcos2x  =  sec2x,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(cotx)  =  csc2x,xnπ.\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
arcsinx\arcsin x(1,1)(-1,1)11x2\dfrac{1}{\sqrt{1-x^2}}
arccosx\arccos x(1,1)(-1,1)11x2\dfrac{-1}{\sqrt{1-x^2}}
arctanx\arctan xR\mathbb{R}11+x2\dfrac{1}{1+x^2}
arccotx\text{arccot}\, xR\mathbb{R}11+x2\dfrac{-1}{1+x^2}

The last entry: (cotx)=csc2x=(1+cot2x)(\cot x)' = -\csc^2 x = -(1+\cot^2 x), so at x=cottx = \cot t the inverse function rule gives (arccotx)=1/(1+x2)(\text{arccot}\, x)' = -1/(1+x^2).

Derivatives of hyperbolic functions

Recall sinhx=exex2\sinh x = \dfrac{e^x-e^{-x}}{2} and coshx=ex+ex2\cosh x = \dfrac{e^x+e^{-x}}{2}. Differentiating term by term using (ex)=ex(e^x)' = e^x and (ex)=ex(e^{-x})' = -e^{-x}:

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

By the quotient rule on tanhx=sinhx/coshx\tanh x = \sinh x / \cosh x:

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

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

Derivatives of inverse hyperbolic functions

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

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

(arsinhx)  =  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, arcoshx=ln(x+x21)\text{arcosh}\, x = \ln(x+\sqrt{x^2-1}):

(arcoshx)  =  1+xx21x+x21  =  1x21.(\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, artanhx=12ln1+x1x\text{artanh}\, x = \tfrac{1}{2}\ln\tfrac{1+x}{1-x}:

(artanhx)  =  12(11+x+11x)  =  11x2.(\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^xaxlnaa^x \ln aR\mathbb{R}
lnx\ln x1/x1/xx>0x>0
logax\log_a x1/(xlna)1/(x\ln a)x>0x>0
xαx^\alphaαxα1\alpha x^{\alpha-1}x>0x>0
sinx\sin xcosx\cos xR\mathbb{R}
cosx\cos xsinx-\sin xR\mathbb{R}
tanx\tan xsec2x\sec^2 xxπ/2+nπx\neq\pi/2+n\pi
cotx\cot xcsc2x-\csc^2 xxnπx\neq n\pi
arcsinx\arcsin x1/1x21/\sqrt{1-x^2}(1,1)(-1,1)
arccosx\arccos x1/1x2-1/\sqrt{1-x^2}(1,1)(-1,1)
arctanx\arctan x1/(1+x2)1/(1+x^2)R\mathbb{R}
arccotx\text{arccot}\, x1/(1+x2)-1/(1+x^2)R\mathbb{R}
sinhx\sinh xcoshx\cosh xR\mathbb{R}
coshx\cosh xsinhx\sinh xR\mathbb{R}
tanhx\tanh xsech2x\text{sech}^2 xR\mathbb{R}
cothx\text{coth}\, xcsch2x-\text{csch}^2 xx0x\neq 0
arsinhx\text{arsinh}\, x1/x2+11/\sqrt{x^2+1}R\mathbb{R}
arcoshx\text{arcosh}\, x1/x211/\sqrt{x^2-1}x>1x>1
artanhx\text{artanh}\, x1/(1x2)1/(1-x^2)x<1\lvert x\rvert<1