Derivatives · Class 11 & 12 · Lesson 07

Derivatives of trigonometric functions: six results, one pattern.

Short answer

\(\dfrac{d}{dx}\sin x = \cos x\), \(\dfrac{d}{dx}\cos x = -\sin x\), \(\dfrac{d}{dx}\tan x = \sec^2 x\),

\(\dfrac{d}{dx}\cot x = -\operatorname{cosec}^2 x\), \(\dfrac{d}{dx}\sec x = \sec x\tan x\), \(\dfrac{d}{dx}\operatorname{cosec} x = -\operatorname{cosec} x\cot x\).

All of them assume \(x\) is in radians.

Class 11Class 12HSC & CBSE
01

The six results

FunctionDerivativeFunctionDerivative
\(\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.

The graph of sin x with tangent lines at 0, pi over 2 and pi, and the graph of cos x showing their slopes x π/2π3π/22π y = sin x y = cos x tangents
The orange tangents to \(y = \sin x\) have slopes \(1\), \(0\) and \(-1\) at \(x = 0\), \(\tfrac{\pi}{2}\) and \(\pi\). Those are exactly the heights of the dashed curve \(y = \cos x\) at the same points. The slope of \(\sin x\) at every point is \(\cos x\).
02

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:

Chain-rule forms

\(\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)\)

03

Solved examples

Example 1: Term by term

Easy

Differentiate \(y = 3\sin x - 4\cos x + \tan x\).

  1. \(\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

Easy

Differentiate \(y = \sin(3x + 2)\).

  1. Outside: \(\sin\) becomes \(\cos\). Inside: \(3x + 2\) has derivative \(3\).

Answer\(\dfrac{dy}{dx} = 3\cos(3x + 2)\)

Example 3: A square

Easy

Differentiate \(y = \cos^2 x\).

  1. \(\cos^2 x = (\cos x)^2\). Power rule on the outside, then multiply by the derivative of \(\cos x\).
  2. \(\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

Medium

Differentiate \(y = \tan^3 x\).

  1. \(\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

Medium

Differentiate \(y = \sec x\tan x\).

  1. 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

Medium

Differentiate \(y = \sin x^\circ\).

  1. Convert to radians: \(x^\circ = \dfrac{\pi x}{180}\) radians, so \(y = \sin\dfrac{\pi x}{180}\).
  2. 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 level

Differentiate \(y = \dfrac{1 + \cos 2x}{1 - \cos 2x}\).

  1. Use \(1 + \cos 2x = 2\cos^2 x\) and \(1 - \cos 2x = 2\sin^2 x\). So \(y = \cot^2 x\).
  2. \(\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 level

Differentiate \(y = \sin(\cos x^2)\).

  1. Work from the outside in. Outer \(\sin\) gives \(\cos(\cos x^2)\).
  2. Middle \(\cos\) gives \(-\sin x^2\). Inner \(x^2\) gives \(2x\).
  3. Multiply all three.

Answer\(\dfrac{dy}{dx} = -2x\sin x^2\cos(\cos x^2)\)

Vipul Sir's tip

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.

04

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.

05

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\).

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

06

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\).

Related lessons

← All derivatives lessons
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Class 11 & 12 Maths

Differentiation gets easy once the basics click.

Concept-first coaching in small batches in Goregaon and Vile Parle for HSC, CBSE and ICSE students. Your first class is free.

WhatsApp↗