Leave lesson

Pure · Differentiation

1 / 11

Differentiating trigonometric functions

The six standard trig derivatives — sin→cos, cos→−sin, tan→sec², sec→sec tan, cosec→−cosec cot, cot→−cosec² — why x must be in radians, and combining them with the chain, product and quotient rules.

Pure · Differentiation

Differentiating trigonometric functions

The six standard trig derivatives — sin→cos, cos→−sin, tan→sec², sec→sec tan, cosec→−cosec cot, cot→−cosec² — why x must be in radians, and combining them with the chain, product and quotient rules.

Why it works

Start with the most important one, from first principles. The derivative of sinx\sin x is the limit of sin(x+h)sinxh\dfrac{\sin(x+h) - \sin x}{h} as h0h \to 0. Expand the top with the addition formula sin(x+h)=sinxcosh+cosxsinh\sin(x+h) = \sin x\cos h + \cos x\sin h: sinxcosh+cosxsinhsinxh=sinxcosh1h+cosxsinhh.\frac{\sin x\cos h + \cos x\sin h - \sin x}{h} = \sin x\cdot\frac{\cos h - 1}{h} + \cos x\cdot\frac{\sin h}{h}. Now use the small-angle results for tiny hh (in radians): sinhh\sin h \approx h, so sinhh1\frac{\sin h}{h}\to 1; and cosh112h2\cos h \approx 1 - \tfrac12 h^2, so cosh1h12h0\frac{\cos h - 1}{h}\approx -\tfrac12 h \to 0. The first term vanishes and the second leaves cosx\cos x: ddxsinx=cosx.\frac{d}{dx}\sin x = \cos x. The same calculation on cosx\cos x gives ddxcosx=sinx\dfrac{d}{dx}\cos x = -\sin x (note the minus — cosine is falling where sine is positive).

This only works in radians. The step sinhh1\frac{\sin h}{h}\to 1 is true for hh in radians and false in degrees (there it tends to π180\frac{\pi}{180}). So every trig derivative on this page assumes xx is in radians — differentiate sin(x)\sin(x^\circ) and you pick up an unwanted factor of π180\frac{\pi}{180}. In calculus, angles are always radians.

The other four come from these two using the quotient rule. For example tanx=sinxcosx\tan x = \dfrac{\sin x}{\cos x} gives ddxtanx=cosxcosxsinx(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x.\frac{d}{dx}\tan x = \frac{\cos x\cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x. Differentiating secx=(cosx)1\sec x = (\cos x)^{-1}, cosecx=(sinx)1\operatorname{cosec} x = (\sin x)^{-1} and cotx=cosxsinx\cot x = \frac{\cos x}{\sin x} the same way gives the full set worth memorising: ddxsinx=cosx,ddxcosx=sinx,ddxtanx=sec2x,\frac{d}{dx}\sin x = \cos x, \qquad \frac{d}{dx}\cos x = -\sin x, \qquad \frac{d}{dx}\tan x = \sec^2 x, ddxsecx=secxtanx,ddxcosecx=cosecxcotx,ddxcotx=cosec2x.\frac{d}{dx}\sec x = \sec x\tan x, \quad \frac{d}{dx}\operatorname{cosec} x = -\operatorname{cosec} x\cot x, \quad \frac{d}{dx}\cot x = -\operatorname{cosec}^2 x. The three "co-" functions all carry a minus sign — a handy way to remember which is which.

With the chain rule these extend to any inside function: ddxsin(kx)=kcos(kx)\frac{d}{dx}\sin(kx) = k\cos(kx), and ddxsin(f(x))=cos(f(x))f(x)\frac{d}{dx}\sin(f(x)) = \cos(f(x))\,f'(x). A very common slip is sin2x\sin^2 x: that means (sinx)2(\sin x)^2, so it is the chain rule on a square — ddxsin2x=2sinxcosx\frac{d}{dx}\sin^2 x = 2\sin x\cos x, not cos2x\cos^2 x.