Skip to content

Mathematics · Ch 10 — Differential Calculus – Differentiability and Methods of Differentiation

Derivatives of basic elementary functions

10.4.1

Derivatives of basic elementary functions

With the general rules of §10.4 in hand, we now derive — once, from first principle, each time using the hh-form f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h} — the derivatives of every basic elementary function. Once this table exists, no later problem in the chapter needs to return to a first-principle limit.

(1) Constant function. For f(x)=kf(x)=k (kk constant), f(x+h)−f(x)=k−k=0f(x+h)-f(x)=k-k=0 for every hh, so the difference quotient is identically 00 and ddx(k)=0\dfrac{d}{dx}(k)=0.

(2) Power function, y=xny=x^n (nn a positive integer). f(x+h)−f(x)=(x+h)n−xnf(x+h)-f(x)=(x+h)^n-x^n. Writing y=x+hy=x+h and factoring the difference of nnth powers, (x+h)n−xnh=yn−xny−x→nxn−1\dfrac{(x+h)^n-x^n}{h} = \dfrac{y^n-x^n}{y-x}\to nx^{n-1} as h→0h\to0 (equivalently y→xy\to x), so ddx(xn)=nxn−1\dfrac{d}{dx}(x^n)=nx^{n-1}.

Corollary 10.1. When n=p/qn=p/q (a rational exponent, p,qp,q integers, q≠0q\ne0), the same power formula holds: ddx ⁣(xp/q)=pq xpq−1\dfrac{d}{dx}\!\left(x^{p/q}\right) = \dfrac{p}{q}\,x^{\frac{p}{q}-1}.

Corollary 10.2. For any real number α\alpha, ddx(xα)=α xα−1\dfrac{d}{dx}(x^\alpha) = \alpha\,x^{\alpha-1} — the power rule holds for every real exponent, not just integers.

For instance: ddx(5)=0\dfrac{d}{dx}(5)=0 (a constant); ddx(x3)=3x2\dfrac{d}{dx}(x^3)=3x^2; ddx ⁣(x3/2)=32x1/2\dfrac{d}{dx}\!\left(x^{3/2}\right)=\tfrac32 x^{1/2}; ddx(x2)=2x\dfrac{d}{dx}(x^2)=2x; ddx ⁣(x2/3)=23x−1/3\dfrac{d}{dx}\!\left(x^{2/3}\right)=\tfrac23 x^{-1/3} (x≠0x\ne0); and, by the constant-multiple rule, ddx(100x9)=100⋅9x8=900x8\dfrac{d}{dx}(100x^9) = 100\cdot 9x^8 = 900x^8.

(3) Logarithmic function. For f(x)=log⁡xf(x)=\log x (natural log, base ee), f(x+h)−f(x)=log⁡ ⁣(x+hx)=log⁡ ⁣(1+hx)f(x+h)-f(x)=\log\!\left(\dfrac{x+h}{x}\right) = \log\!\left(1+\dfrac{h}{x}\right), so f(x+h)−f(x)h=1x⋅log⁡(1+h/x)h/x\dfrac{f(x+h)-f(x)}{h} = \dfrac1x\cdot\dfrac{\log(1+h/x)}{h/x}. Using the standard limit lim⁡α→0log⁡(1+α)α=1\lim_{\alpha\to0}\dfrac{\log(1+\alpha)}{\alpha}=1 (with α=h/x→0\alpha=h/x\to0) gives ddx(log⁡x)=1x\dfrac{d}{dx}(\log x)=\dfrac1x.

Corollary 10.3. For y=log⁡ax=log⁡xlog⁡ay=\log_a x = \dfrac{\log x}{\log a} (change of base, log⁡x\log x = natural log), the constant-multiple rule gives ddx(log⁡ax)=1xlog⁡a\dfrac{d}{dx}(\log_a x) = \dfrac{1}{x\log a}.

(4) Exponential function. For f(x)=axf(x)=a^x (a>0a>0), f(x+h)−f(x)h=ax(ah−1h)\dfrac{f(x+h)-f(x)}{h} = a^x\left(\dfrac{a^h-1}{h}\right), and the standard limit lim⁡h→0ah−1h=log⁡a\lim_{h\to0}\dfrac{a^h-1}{h}=\log a gives ddx(ax)=axlog⁡a\dfrac{d}{dx}(a^x) = a^x\log a. In the special case a=ea=e (so log⁡e=1\log e = 1), ddx(ex)=ex\dfrac{d}{dx}(e^x)=e^x — the exponential function is its own derivative.

(5) The six trigonometric functions.

  • Sine. f(x+h)−f(x)=sin⁡(x+h)−sin⁡x=2sin⁡ ⁣(h2)cos⁡ ⁣(x+h2)f(x+h)-f(x) = \sin(x+h)-\sin x = 2\sin\!\left(\tfrac h2\right)\cos\!\left(x+\tfrac h2\right) (sum-to-product identity), so f(x+h)−f(x)h=sin⁡(h/2)h/2⋅cos⁡ ⁣(x+h2)→1⋅cos⁡x\dfrac{f(x+h)-f(x)}{h} = \dfrac{\sin(h/2)}{h/2}\cdot\cos\!\left(x+\tfrac h2\right) \to 1\cdot\cos x as h→0h\to0 (using lim⁡θ→0sin⁡θ/θ=1\lim_{\theta\to0}\sin\theta/\theta=1 and continuity of cos⁡\cos). So ddx(sin⁡x)=cos⁡x\dfrac{d}{dx}(\sin x)=\cos x.
  • Cosine. Using cos⁡x=sin⁡ ⁣(π2+x)\cos x = \sin\!\left(\tfrac\pi2+x\right) and the chain rule with inner function u=π2+xu=\tfrac\pi2+x (u′=1u'=1): ddx(cos⁡x)=cos⁡u⋅1=cos⁡ ⁣(π2+x)=−sin⁡x\dfrac{d}{dx}(\cos x) = \cos u \cdot 1 = \cos\!\left(\tfrac\pi2+x\right) = -\sin x. So ddx(cos⁡x)=−sin⁡x\dfrac{d}{dx}(\cos x)=-\sin x.
  • Tangent. tan⁡x=sin⁡x/cos⁡x\tan x = \sin x/\cos x; the quotient rule gives ddx(tan⁡x)=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x\dfrac{d}{dx}(\tan x) = \dfrac{\cos x\cdot\cos x - \sin x\cdot(-\sin x)}{\cos^2x} = \dfrac{\cos^2x+\sin^2x}{\cos^2x}=\dfrac{1}{\cos^2x}=\sec^2 x.
  • Secant. sec⁡x=(cos⁡x)−1\sec x = (\cos x)^{-1}; the chain rule gives ddx(sec⁡x)=−(cos⁡x)−2(−sin⁡x)=sin⁡xcos⁡2x=sec⁡xtan⁡x\dfrac{d}{dx}(\sec x) = -(\cos x)^{-2}(-\sin x) = \dfrac{\sin x}{\cos^2x} = \sec x\tan x.
  • Cosecant. cosec⁡x=(sin⁡x)−1\operatorname{cosec}x = (\sin x)^{-1}; similarly ddx(cosec⁡x)=−(sin⁡x)−2(cos⁡x)=−cosec⁡xcot⁡x\dfrac{d}{dx}(\operatorname{cosec}x) = -(\sin x)^{-2}(\cos x) = -\operatorname{cosec}x\cot x.
  • Cotangent. cot⁡x=cos⁡x/sin⁡x\cot x = \cos x/\sin x; the quotient rule gives ddx(cot⁡x)=sin⁡x(−sin⁡x)−cos⁡x(cos⁡x)sin⁡2x=−(sin⁡2x+cos⁡2x)sin⁡2x=−cosec⁡2x\dfrac{d}{dx}(\cot x) = \dfrac{\sin x(-\sin x)-\cos x(\cos x)}{\sin^2x} = \dfrac{-(\sin^2x+\cos^2x)}{\sin^2x} = -\operatorname{cosec}^2x.

(6) The six inverse trigonometric functions.

  • sin⁡−1x\sin^{-1}x. Let y=sin⁡−1xy=\sin^{-1}x, so x=sin⁡yx=\sin y; differentiating both increments and passing to the limit as in implicit differentiation (§10.4.3) gives dydx=1cos⁡y=11−sin⁡2y=11−x2\dfrac{dy}{dx}=\dfrac{1}{\cos y}=\dfrac{1}{\sqrt{1-\sin^2y}}=\dfrac{1}{\sqrt{1-x^2}} (taking the principal branch, cos⁡y≥0\cos y\ge0). So ddx ⁣(sin⁡−1x)=11−x2\dfrac{d}{dx}\!\left(\sin^{-1}x\right)=\dfrac{1}{\sqrt{1-x^2}}.
  • cos⁡−1x\cos^{-1}x. From the identity sin⁡−1x+cos⁡−1x=π2\sin^{-1}x+\cos^{-1}x=\tfrac{\pi}{2} (a constant), differentiating both sides gives ddx ⁣(cos⁡−1x)=−ddx ⁣(sin⁡−1x)=−11−x2\dfrac{d}{dx}\!\left(\cos^{-1}x\right) = -\dfrac{d}{dx}\!\left(\sin^{-1}x\right) = -\dfrac{1}{\sqrt{1-x^2}}.
  • tan⁡−1x\tan^{-1}x. Let y=tan⁡−1xy=\tan^{-1}x, so x=tan⁡yx=\tan y; the same implicit-style limit argument gives dydx=1sec⁡2y=11+tan⁡2y=11+x2\dfrac{dy}{dx}=\dfrac{1}{\sec^2y}=\dfrac{1}{1+\tan^2y}=\dfrac{1}{1+x^2}. So ddx ⁣(tan⁡−1x)=11+x2\dfrac{d}{dx}\!\left(\tan^{-1}x\right)=\dfrac{1}{1+x^2}. …