top of page

9.1 Differentiating sin x and cos x

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: gradients of the sine and cosine curves, first principles, and sin kx and cos kx. 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

  • Explain why the gradient function of y = sin x is cos x
  • Prove from first principles that (d/dx)(sin x) = cos x and (d/dx)(cos x) = −sin x
  • Differentiate sin kx and cos kx, and sums and multiples of them
  • Find gradients, tangents, normals and stationary points of curves involving sin and cos

Key words

  • Radian: The angle unit used in calculus. π radians = 180°. The results in this section are only true when x is in radians.
  • Gradient function: The function dy/dx or f ′(x) that gives the gradient of the curve at every point.
  • First principles: Finding a derivative as the limit of the gradient of a chord, as the chord shrinks towards a single point.
  • Limit: The value an expression gets closer and closer to as h gets closer to 0.

The gradient of the sine curve

Picture the graph of y = sin x with x in radians. At x = 0 it climbs steeply with gradient 1. At x = π/2 it is flat, so the gradient is 0. At x = π it falls with gradient −1. If you plot these gradients you get exactly the cosine curve.

Key fact: For x in radians: (d/dx)(sin x) = cos x (d/dx)(cos x) = −sin x

Worked example: reading a gradient

Find the gradient of y = sin x at x = π/3
dy/dx = cos x, so the gradient is cos π/3

Answer: 1/2

Differentiating from first principles

The gradient of the chord from (x, sin x) to (x + h, sin (x+h)) is (sin (x+h) − sin x)/h. As h → 0 the chord becomes the tangent. To find the limit you need the addition formula and two standard limits.

Standard limits: For h in radians, as h → 0: (sin h)/h → 1 and (cos h − 1)/h → 0

Worked example: prove that the derivative of sin x is cos x

(sin (x+h) − sin x)/h = (sin x cos h + cos x sin h − sin x)/h
= sin x((cos h − 1)/h) + cos x((sin h)/h)
As h → 0 this tends to sin x × 0 + cos x × 1

Answer: (d/dx)(sin x) = cos x

The proof for cos x is the same, but starts from cos (x+h) = cos x cos h − sin x sin h. Try it in the worksheet. In an exam, write the limits clearly and finish with a statement of the result.

Differentiating sin kx and cos kx

y = sin 3x goes through its cycle three times as fast as y = sin x, so it is three times as steep. In general the constant k comes out in front.

Key fact: (d/dx)(sin kx) = k cos kx (d/dx)(cos kx) = −k sin kx

Worked example: sums and multiples

Differentiate y = 3 sin 2x − 4 cos x/2 + x²
3 × 2 cos 2x = 6 cos 2x
−4 × (−(1/2)sin x/2) = 2 sin x/2

Answer: dy/dx = 6 cos 2x + 2 sin x/2 + 2x

Worked example: a gradient

Find the gradient of y = 5 cos 4x at x = π/24
dy/dx = −20 sin 4x = −20 sin π/6 = −20 × 1/2

Answer: −10

Tangents, normals and stationary points

Use the derivative exactly as you did with polynomials. Keep values exact: use sin π/3 = √3/2 and the other exact trig values rather than decimals.

Worked example: equation of a tangent

Find the tangent to y = 2 sin x + x at the point where x = π/3
y = 2 × √3/2 + π/3 = √3 + π/3
dy/dx = 2 cos x + 1 = 2 × 1/2 + 1 = 2
y − √3 − π/3 = 2(x − π/3)

Answer: y = 2x + √3 − π/3

Worked example: a stationary point

Find the stationary point of y = 4 sin x − 2x for 0 ≤ x ≤ π
dy/dx = 4 cos x − 2 = 0, so cos x = 1/2 and x = π/3
y = 4 × √3/2 − 2π/3

Answer: (π/3, 2√3 − 2π/3)

Common mistakes

  • Working in degrees. The rules only hold in radians, so set your calculator to radians.
  • Losing the minus sign: (d/dx)(cos x) = −sin x.
  • Forgetting the factor k: (d/dx)(sin 3x) = 3 cos 3x, not cos 3x.
  • Writing sin (x + h) = sin x + sin h. Use the addition formula.

Revision questions

Try these, then check your answers below each one.

Question 1. Differentiate y = sin 5x with respect to x. (Choose from: 5 cos 5x; cos 5x; −5 cos 5x; 5 sin 5x.)

Answer: 5 cos 5x

Working: With k = 5: dy/dx = 5 cos 5x.

Question 2. Find the gradient of the curve y = 4 cos x at the point where x = π/2.

Answer: -4

Working: dy/dx = −4 sin x = −4 sin π/2 = −4.

Question 3. Sam says that the derivative of cos 2x is 2 sin 2x. Is Sam correct?

Answer: No

Working: (d/dx)(cos 2x) = −2 sin 2x. Sam has lost the minus sign.

Related lessons

Continue in the full course

This lesson is section 9.1 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