Skip to content

Mathematics · Ch 18 — Differentiation

Derivatives of Some Standard Functions

18.1.4

Derivatives of Some Standard Functions

This section proves six standard derivative formulas directly from the first-principles limit of the previous section. Each proof follows the same three-step pattern: write f(x+h)f(x+h), form and simplify f(x+h)−f(x)h\dfrac{f(x+h)-f(x)}{h}, then take the limit as h→0h\to0 using an appropriate standard limit.

(1) Derivative of xnx^n (n∈Nn\in N). Let f(x)=xnf(x)=x^n, so f(x+h)=(x+h)nf(x+h)=(x+h)^n. By the binomial theorem,

(x+h)n=xn+nC1xn−1h+nC2xn−2h2+⋯+hn(x+h)^n=x^n+{}^nC_1x^{n-1}h+{}^nC_2x^{n-2}h^2+\cdots+h^n

so

f(x+h)−f(x)h=nC1xn−1h+nC2xn−2h2+⋯+hnh=nC1xn−1+nC2xn−2h+⋯+hn−1\dfrac{f(x+h)-f(x)}{h}=\dfrac{{}^nC_1x^{n-1}h+{}^nC_2x^{n-2}h^2+\cdots+h^n}{h}={}^nC_1x^{n-1}+{}^nC_2x^{n-2}h+\cdots+h^{n-1}

Every term after the first carries at least one positive power of hh, so as h→0h\to0 (with h≠0h\ne0) every term but the first vanishes, leaving nC1xn−1=nxn−1{}^nC_1x^{n-1}=nx^{n-1}.

f(x)=xn ⇒ f′(x)=nxn−1\boxed{f(x)=x^n\ \Rightarrow\ f'(x)=nx^{n-1}}

(2) Derivative of sin⁡x\sin x. Let f(x)=sin⁡xf(x)=\sin x. Using sin⁡A−sin⁡B=2cos⁡ ⁣(A+B2)sin⁡ ⁣(A−B2)\sin A-\sin B=2\cos\!\left(\dfrac{A+B}2\right)\sin\!\left(\dfrac{A-B}2\right) with A=x+h,B=xA=x+h,B=x:

f(x+h)−f(x)=sin⁡(x+h)−sin⁡x=2cos⁡ ⁣(x+h2)sin⁡h2f(x+h)-f(x)=\sin(x+h)-\sin x=2\cos\!\left(x+\dfrac h2\right)\sin\dfrac h2

so

f(x+h)−f(x)h=cos⁡ ⁣(x+h2)⋅sin⁡(h/2)h/2\dfrac{f(x+h)-f(x)}{h}=\cos\!\left(x+\dfrac h2\right)\cdot\dfrac{\sin(h/2)}{h/2}

As h→0h\to0, cos⁡ ⁣(x+h2)→cos⁡x\cos\!\left(x+\dfrac h2\right)\to\cos x and, by the standard limit lim⁡θ→0sin⁡θθ=1\lim_{\theta\to0}\dfrac{\sin\theta}{\theta}=1, the second factor →1\to1.

f(x)=sin⁡x ⇒ f′(x)=cos⁡x\boxed{f(x)=\sin x\ \Rightarrow\ f'(x)=\cos x}

(3) Derivative of tan⁡x\tan x. Let f(x)=tan⁡x=sin⁡xcos⁡xf(x)=\tan x=\dfrac{\sin x}{\cos x}. Then

f(x+h)−f(x)=sin⁡(x+h)cos⁡(x+h)−sin⁡xcos⁡x=sin⁡(x+h)cos⁡x−cos⁡(x+h)sin⁡xcos⁡(x+h)cos⁡x=sin⁡hcos⁡(x+h)cos⁡xf(x+h)-f(x)=\dfrac{\sin(x+h)}{\cos(x+h)}-\dfrac{\sin x}{\cos x}=\dfrac{\sin(x+h)\cos x-\cos(x+h)\sin x}{\cos(x+h)\cos x}=\dfrac{\sin h}{\cos(x+h)\cos x}

(using sin⁡(A−B)=sin⁡Acos⁡B−cos⁡Asin⁡B\sin(A-B)=\sin A\cos B-\cos A\sin B with A=x+h,B=xA=x+h,B=x, so the numerator collapses to sin⁡h\sin h). Dividing by hh:

f(x+h)−f(x)h=sin⁡hh⋅1cos⁡(x+h)cos⁡x\dfrac{f(x+h)-f(x)}{h}=\dfrac{\sin h}{h}\cdot\dfrac{1}{\cos(x+h)\cos x}

As h→0h\to0: sin⁡hh→1\dfrac{\sin h}{h}\to1 and cos⁡(x+h)→cos⁡x\cos(x+h)\to\cos x, giving 1cos⁡2x\dfrac{1}{\cos^2x}.

f(x)=tan⁡x ⇒ f′(x)=sec⁡2x\boxed{f(x)=\tan x\ \Rightarrow\ f'(x)=\sec^2x}

(4) Derivative of sec⁡x\sec x. Let f(x)=sec⁡x=1cos⁡xf(x)=\sec x=\dfrac1{\cos x}. Then

f(x+h)−f(x)=1cos⁡(x+h)−1cos⁡x=cos⁡x−cos⁡(x+h)cos⁡(x+h)cos⁡xf(x+h)-f(x)=\dfrac1{\cos(x+h)}-\dfrac1{\cos x}=\dfrac{\cos x-\cos(x+h)}{\cos(x+h)\cos x}

Using cos⁡B−cos⁡A=2sin⁡ ⁣(A+B2)sin⁡ ⁣(A−B2)\cos B-\cos A=2\sin\!\left(\dfrac{A+B}2\right)\sin\!\left(\dfrac{A-B}2\right) with A=x+h,B=xA=x+h,B=x, the numerator becomes 2sin⁡ ⁣(x+h2)sin⁡h22\sin\!\left(x+\dfrac h2\right)\sin\dfrac h2, so

f(x+h)−f(x)h=sin⁡(h/2)h/2⋅sin⁡ ⁣(x+h2)cos⁡(x+h)cos⁡x\dfrac{f(x+h)-f(x)}{h}=\dfrac{\sin(h/2)}{h/2}\cdot\dfrac{\sin\!\left(x+\frac h2\right)}{\cos(x+h)\cos x}

As h→0h\to0: the first factor →1\to1, and the second →sin⁡xcos⁡2x=sin⁡xcos⁡x⋅1cos⁡x\to\dfrac{\sin x}{\cos^2x}=\dfrac{\sin x}{\cos x}\cdot\dfrac1{\cos x}.

f(x)=sec⁡x ⇒ f′(x)=sec⁡xtan⁡x\boxed{f(x)=\sec x\ \Rightarrow\ f'(x)=\sec x\tan x}

(5) Derivative of log⁡x\log x (x>0x>0). Let f(x)=log⁡xf(x)=\log x. Then

f(x+h)−f(x)=log⁡(x+h)−log⁡x=log⁡ ⁣(x+hx)=log⁡ ⁣(1+hx)f(x+h)-f(x)=\log(x+h)-\log x=\log\!\left(\dfrac{x+h}{x}\right)=\log\!\left(1+\dfrac hx\right)

so

f(x+h)−f(x)h=1hlog⁡ ⁣(1+hx)=1x⋅log⁡(1+h/x)h/x\dfrac{f(x+h)-f(x)}{h}=\dfrac1h\log\!\left(1+\dfrac hx\right)=\dfrac1x\cdot\dfrac{\log(1+h/x)}{h/x}

As h→0h\to0, h/x→0h/x\to0 and, by the standard limit lim⁡t→0log⁡(1+t)t=1\lim_{t\to0}\dfrac{\log(1+t)}{t}=1, the fraction →1\to1.

f(x)=log⁡x ⇒ f′(x)=1x\boxed{f(x)=\log x\ \Rightarrow\ f'(x)=\dfrac1x}

(6) Derivative of axa^x (a>0a>0). Let f(x)=axf(x)=a^x. Then

f(x+h)−f(x)=ax+h−ax=ax(ah−1)f(x+h)-f(x)=a^{x+h}-a^x=a^x(a^h-1)

so

f(x+h)−f(x)h=ax⋅ah−1h\dfrac{f(x+h)-f(x)}{h}=a^x\cdot\dfrac{a^h-1}{h}

As h→0h\to0, by the standard limit lim⁡h→0ah−1h=log⁡a\lim_{h\to0}\dfrac{a^h-1}{h}=\log a:

f(x)=ax ⇒ f′(x)=axlog⁡a\boxed{f(x)=a^x\ \Rightarrow\ f'(x)=a^x\log a}

Try the following (companion practice box). Using the very same first-principles technique, the text asks the reader to establish five further standard results: (1) f(x)=1xn⇒f′(x)=−nxn+1f(x)=\dfrac1{x^n}\Rightarrow f'(x)=-\dfrac n{x^{n+1}}; (2) f(x)=cos⁡x⇒f′(x)=−sin⁡xf(x)=\cos x\Rightarrow f'(x)=-\sin x; (3) f(x)=cot⁡x⇒f′(x)=−cosec2xf(x)=\cot x\Rightarrow f'(x)=-\text{cosec}^2x; (4) f(x)=cosec x⇒f′(x)=−cosec xcot⁡xf(x)=\text{cosec}\,x\Rightarrow f'(x)=-\text{cosec}\,x\cot x; (5) f(x)=ex⇒f′(x)=exf(x)=e^x\Rightarrow f'(x)=e^x. Each follows the identical three-step pattern: expand f(x+h)−f(x)f(x+h)-f(x) using an appropriate trigonometric or algebraic identity, divide by hh, and take the limit using lim⁡θ→0sin⁡θθ=1\lim_{\theta\to0}\frac{\sin\theta}{\theta}=1 or lim⁡h→0eh−1h=1\lim_{h\to0}\frac{e^h-1}{h}=1.

Worked examples (first-principles derivatives).

Example: x\sqrt{x}. Let f(x)=xf(x)=\sqrt x, so f(x+h)=x+hf(x+h)=\sqrt{x+h}.

f(x+h)−f(x)h=x+h−xh\dfrac{f(x+h)-f(x)}{h}=\dfrac{\sqrt{x+h}-\sqrt x}{h}

Rationalise by multiplying and dividing by x+h+x\sqrt{x+h}+\sqrt x:

=(x+h)−xh(x+h+x)=1x+h+x=\dfrac{(x+h)-x}{h\left(\sqrt{x+h}+\sqrt x\right)}=\dfrac{1}{\sqrt{x+h}+\sqrt x}

As h→0h\to0: →12x\to\dfrac1{2\sqrt x}. So f′(x)=12xf'(x)=\dfrac1{2\sqrt x}.

Example: cos⁡(2x+3)\cos(2x+3). Let f(x)=cos⁡(2x+3)f(x)=\cos(2x+3), so f(x+h)=cos⁡(2x+2h+3)=cos⁡[(2x+3)+2h]f(x+h)=\cos(2x+2h+3)=\cos\big[(2x+3)+2h\big].

f(x+h)−f(x)=cos⁡[(2x+3)+2h]−cos⁡(2x+3)=−2sin⁡(2x+3+h)sin⁡hf(x+h)-f(x)=\cos\big[(2x+3)+2h\big]-\cos(2x+3)=-2\sin(2x+3+h)\sin h

f(x+h)−f(x)h=−2sin⁡(2x+3+h)⋅sin⁡hh\dfrac{f(x+h)-f(x)}{h}=-2\sin(2x+3+h)\cdot\dfrac{\sin h}{h}

As h→0h\to0: →−2sin⁡(2x+3)\to-2\sin(2x+3). So f′(x)=−2sin⁡(2x+3)f'(x)=-2\sin(2x+3). …

Table 1Standard derivatives established by first principles (this section + Try the following)

f(x) -> f'(x)

x^n (n in N) -> n x^(n-1)

1/x^n (x != 0, n in N) -> -n/x^(n+1)

sin x -> cos x

cos x -> -sin x

tan x -> sec^2 x

cot x -> -cosec^2 x

sec x -> sec x tan x

cosec x -> -cosec x . cot x …