The six results
| Function | Derivative | Function | Derivative |
|---|---|---|---|
| \(\sin x\) | \(\cos x\) | \(\cos x\) | \(-\sin x\) |
| \(\tan x\) | \(\sec^2 x\) | \(\cot x\) | \(-\operatorname{cosec}^2 x\) |
| \(\sec x\) | \(\sec x\tan x\) | \(\operatorname{cosec} x\) | \(-\operatorname{cosec} x\cot x\) |
Look at the table in pairs. Each function on the right is the "co" partner of the one on the left, and its derivative is the partner's derivative with every function swapped for its co-function and a minus sign in front. Learn the left column and you get the right column for free.
Where the results come from
You only need to prove one result from scratch. The others follow from it.
- \(\sin x\): from first principles, using \(\displaystyle\lim_{h \to 0}\frac{\sin h}{h} = 1\). The full working is Example 5 in the first principles lesson.
- \(\cos x\): write \(\cos x = \sin\left(\dfrac{\pi}{2} - x\right)\). By the chain rule its derivative is \(\cos\left(\dfrac{\pi}{2} - x\right)\cdot(-1) = -\sin x\).
- \(\tan x\): \(\tan x = \dfrac{\sin x}{\cos x}\), so by the quotient rule its derivative is \(\dfrac{\cos x\cos x - \sin x(-\sin x)}{\cos^2 x} = \dfrac{1}{\cos^2 x} = \sec^2 x\).
- \(\sec x\): \(\sec x = (\cos x)^{-1}\), so its derivative is \(-(\cos x)^{-2}(-\sin x) = \dfrac{\sin x}{\cos^2 x} = \sec x\tan x\).
With something inside
Combine each result with the chain rule:
\(\dfrac{d}{dx}\sin(ax + b) = a\cos(ax + b)\)
\(\dfrac{d}{dx}\sin^n x = n\sin^{n-1}x\cos x\)
\(\dfrac{d}{dx}\sin f(x) = \cos f(x)\cdot f'(x)\)
Solved examples
Example 1: Term by term
EasyDifferentiate \(y = 3\sin x - 4\cos x + \tan x\).
- \(\dfrac{dy}{dx} = 3\cos x - 4(-\sin x) + \sec^2 x\).
Answer\(\dfrac{dy}{dx} = 3\cos x + 4\sin x + \sec^2 x\)
Example 2: A linear inside
EasyDifferentiate \(y = \sin(3x + 2)\).
- Outside: \(\sin\) becomes \(\cos\). Inside: \(3x + 2\) has derivative \(3\).
Answer\(\dfrac{dy}{dx} = 3\cos(3x + 2)\)
Example 3: A square
EasyDifferentiate \(y = \cos^2 x\).
- \(\cos^2 x = (\cos x)^2\). Power rule on the outside, then multiply by the derivative of \(\cos x\).
- \(\dfrac{dy}{dx} = 2\cos x\cdot(-\sin x) = -2\sin x\cos x\).
Answer\(\dfrac{dy}{dx} = -\sin 2x\)
Example 4: A cube of tan
MediumDifferentiate \(y = \tan^3 x\).
- \(\dfrac{dy}{dx} = 3\tan^2 x\cdot\sec^2 x\).
Answer\(\dfrac{dy}{dx} = 3\tan^2 x\sec^2 x\)
Example 5: A product of two trig functions
MediumDifferentiate \(y = \sec x\tan x\).
- Product rule: \((\sec x\tan x)\tan x + \sec x\cdot\sec^2 x\).
Answer\(\dfrac{dy}{dx} = \sec x\tan^2 x + \sec^3 x\)
Example 6: Degrees, not radians
MediumDifferentiate \(y = \sin x^\circ\).
- Convert to radians: \(x^\circ = \dfrac{\pi x}{180}\) radians, so \(y = \sin\dfrac{\pi x}{180}\).
- Chain rule: \(\dfrac{dy}{dx} = \dfrac{\pi}{180}\cos\dfrac{\pi x}{180}\).
Answer\(\dfrac{dy}{dx} = \dfrac{\pi}{180}\cos x^\circ\)
Example 7: Simplify before you differentiate
Exam levelDifferentiate \(y = \dfrac{1 + \cos 2x}{1 - \cos 2x}\).
- Use \(1 + \cos 2x = 2\cos^2 x\) and \(1 - \cos 2x = 2\sin^2 x\). So \(y = \cot^2 x\).
- \(\dfrac{dy}{dx} = 2\cot x\cdot(-\operatorname{cosec}^2 x)\).
Answer\(\dfrac{dy}{dx} = -2\cot x\operatorname{cosec}^2 x\)
Example 8: Three layers
Exam levelDifferentiate \(y = \sin(\cos x^2)\).
- Work from the outside in. Outer \(\sin\) gives \(\cos(\cos x^2)\).
- Middle \(\cos\) gives \(-\sin x^2\). Inner \(x^2\) gives \(2x\).
- Multiply all three.
Answer\(\dfrac{dy}{dx} = -2x\sin x^2\cos(\cos x^2)\)
Watch the notation. \(\sin^2 x\) means \((\sin x)^2\), and its derivative is \(2\sin x\cos x\). \(\sin x^2\) means \(\sin(x^2)\), and its derivative is \(2x\cos x^2\). The two look alike on paper but behave very differently.
Common mistakes
1. Dropping the minus sign
\(\dfrac{d}{dx}\cos x = -\sin x\). The same goes for \(\cot x\) and \(\operatorname{cosec} x\). Most lost marks in this chapter are lost signs.
2. Forgetting the factor from inside
\(\dfrac{d}{dx}\cos 4x = -4\sin 4x\), not \(-\sin 4x\). Every time something other than plain \(x\) is inside, multiply by its derivative.
3. Using degrees
All six results assume \(x\) is in radians. If the angle is in degrees, you get an extra factor of \(\dfrac{\pi}{180}\), as in Example 6.
Practice questions
Try each one on paper before you open the answer.
Q1Differentiate \(y = x\tan x\).
\(\tan x + x\sec^2 x\).
Q2Differentiate \(y = \operatorname{cosec} 3x\).
\(-3\operatorname{cosec} 3x\cot 3x\).
Q3Differentiate \(y = \sin x\cos x\).
Product rule: \(\cos^2 x - \sin^2 x = \cos 2x\). (Or write \(y = \tfrac{1}{2}\sin 2x\) first.)
Q4Differentiate \(y = \cos\sqrt{x}\).
\(-\sin\sqrt{x}\cdot\dfrac{1}{2\sqrt{x}} = -\dfrac{\sin\sqrt{x}}{2\sqrt{x}}\).
Q5Differentiate \(y = \sec^2 x\).
\(2\sec x\cdot\sec x\tan x = 2\sec^2 x\tan x\).
Q6Differentiate \(y = \sin 2x\cos 3x\).
\(2\cos 2x\cos 3x - 3\sin 2x\sin 3x\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
Why do the trig derivatives need radians?
The result \(\dfrac{d}{dx}\sin x = \cos x\) depends on the limit \(\displaystyle\lim_{h \to 0}\frac{\sin h}{h} = 1\), which is true only when \(h\) is measured in radians. In degrees the limit is \(\dfrac{\pi}{180}\), and that factor turns up in every derivative.
What is the derivative of tan x in another form?
\(\sec^2 x\), which you can also write as \(1 + \tan^2 x\). The second form is handy when the rest of the question is in terms of \(\tan x\).
Which trig derivatives have a minus sign?
The three "co" functions: \(\cos x\), \(\cot x\) and \(\operatorname{cosec} x\). Their derivatives are \(-\sin x\), \(-\operatorname{cosec}^2 x\) and \(-\operatorname{cosec} x\cot x\).
What is the derivative of sin squared x?
\(\dfrac{d}{dx}\sin^2 x = 2\sin x\cos x = \sin 2x\).