top of page

9.6 Differentiating Trigonometric Functions

A-level Maths Year 2 · Edexcel 9MA0 · Chapter 9: Differentiation

A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: tan, sec, cosec and cot, combining the rules, and the inverse trig functions. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Differentiate tan kx and prove the result with the quotient rule
  • Differentiate sec x, cosec x and cot x, and multiples such as sec kx
  • Combine these derivatives with the chain, product and quotient rules
  • Use dy/dx = 1 ÷ dx/dy to differentiate arcsin x and arctan x

Key words

  • sec x: sec x = 1/(cos x)
  • cosec x: cosec x = 1/(sin x)
  • cot x: cot x = (cos x)/(sin x) = 1/(tan x)
  • arcsin x: The inverse of sin x on -π/2 ≤ x ≤ π/2, so y = arcsin x means x = sin y.
  • Identity: An equation true for all x, such as 1 + tan ² x = sec ² x.

Differentiating tan x

Write tan x = (sin x)/(cos x) and use the quotient rule with u = sin x and v = cos x.

Worked example: prove that the derivative of tan x is sec ² x

(d/dx)((sin x)/(cos x)) = (cos x cos x − sin x(−sin x))/(cos ² x) = (cos ² x + sin ² x)/(cos ² x)
= 1/(cos ² x)

Answer: (d/dx)(tan x) = sec ² x

Key fact: (d/dx)(tan kx) = k sec ² kx

Worked example: a sum

Differentiate y = 3 tan 2x − x
3 × 2 sec ² 2x − 1

Answer: dy/dx = 6 sec ² 2x − 1

sec, cosec and cot

Write each as a power of sin or cos and use the chain rule. For example sec x = (cos x)⁻¹, so its derivative is −(cos x)⁻² × (−sin x) = (sin x)/(cos ² x) = sec x tan x.

  • tan kx; Derivative k sec ² kx; Function sec kx; Derivative k sec kx tan kx
  • cot kx; Derivative −k cosec² kx; Function cosec kx; Derivative −k cosec kx cot kx

A memory aid: cos, cosec and cot, the three functions starting with "co", all have a minus sign in their derivatives. These results are in the formula booklet, but you may be asked to prove them.

Worked example: using the table

(a) y = sec 3x (b) y = 4 cot x/2
(a) k = 3: 3 sec 3x tan 3x (b) k = 1/2: 4 × (−1/2)cosec²x/2

Answer: (a) 3 sec 3x tan 3x (b) −2 cosec²x/2

Combining the rules

Trig derivatives often appear inside products, quotients and chains. Identify the structure first, then use the table for the trig parts.

Worked example: product and chain

(a) y = x tan x: dy/dx = x sec ² x + tan x
(b) y = tan ³ x = (tan x)³: dy/dx = 3 tan ² x sec ² x
(c) y = ln (sec x): dy/dx = (sec x tan x)/(sec x) = tan x

Answer: (a) x sec ² x + tan x (b) 3 tan ² x sec ² x (c) tan x

Worked example: a tangent

Find the tangent to y = tan x at x = π/4
y = 1. dy/dx = sec ²π/4 = 1/((1/√2)²) = 2
y − 1 = 2(x − π/4)

Answer: y = 2x + 1 − π/2

Inverse trig functions

If y = arcsin x then x = sin y. Differentiate with respect to y, take the reciprocal, then write the answer in terms of x using an identity.

Worked example: the derivative of arcsin x

x = sin y, so dx/dy = cos y = √(1 − sin ² y) = √(1 − x²)
(cos y ≥ 0 because -π/2 ≤ y ≤ π/2)

Answer: (d/dx)(arcsin x) = 1/(√(1 − x²))

Worked example: the derivative of arctan x

x = tan y, so dx/dy = sec ² y = 1 + tan ² y = 1 + x²

Answer: (d/dx)(arctan x) = 1/(1 + x²)

Common mistakes

  • Writing (d/dx)(tan x) = sec x. It is sec ² x.
  • Losing the minus sign for cot and cosec.
  • Confusing sec ² 2x (the square of sec 2x) with sec (2x²).
  • Treating arcsin x as 1/(sin x). That is cosec x, a different function.

Revision questions

Try these, then check your answers below each one.

Question 1. Differentiate y = tan 3x. (Choose from: 3 sec ² 3x; sec ² 3x; 3 sec 3x tan 3x; 3 tan ² 3x.)

Answer: 3 sec ² 3x

Working: With k = 3: 3 sec ² 3x.

Question 2. Find the gradient of y = tan x at x = π/4.

Answer: 2

Working: sec ²π/4 = 1/((1/√2)²) = 2.

Question 3. Zoe says that (d/dx)(cot x) = cosec² x. Is Zoe correct?

Answer: No

Working: (d/dx)(cot x) = −cosec² x. Zoe has missed the minus sign.

Related lessons

Continue in the full course

This lesson is section 9.6 of our free A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 2 course.

 

 

 

 

 

 

 

bottom of page