Lesson 1 of 7 · 16 min

Why sine differentiates to cosine

Trace the gradient of y=sin⁡(x)y = \sin(x) to discover that its derivative is cos⁡(x)\cos(x), see why the rule needs radians, and differentiate sums and multiples of sine and cosine.

What you will be able to do

  • Explain, from the graph, why ddxsin⁡(x)=cos⁡(x)\frac{d}{dx}\sin(x) = \cos(x) and ddxcos⁡(x)=−sin⁡(x)\frac{d}{dx}\cos(x) = -\sin(x).
  • Explain why xx must be measured in radians for these rules to hold.
  • Differentiate sums and constant multiples of sin⁡(x)\sin(x), cos⁡(x)\cos(x), powers, exe^x and ln⁡(x)\ln(x), and evaluate gradients at exact values.

You already know how to differentiate powers, exe^x and ln⁡(x)\ln(x). Sine and cosine are next, and you can discover their derivatives yourself, just by looking at how steep the graph of y=sin⁡(x)y = \sin(x) is at each point.

Picture walking along the graph from left to right. At x=0x = 0 it climbs most steeply. At x=π2x = \frac{\pi}{2} it reaches the top and is momentarily flat. At x=πx = \pi it falls most steeply, and at x=3π2x = \frac{3\pi}{2} it is flat again at the bottom.

Interactive

Trace the gradient of y=sin⁡(x)y = \sin(x)

Drag the point along y=sin⁡(x)y = \sin(x). Each gradient of the tangent is plotted as a new point. What familiar graph do the points trace out?

Reading the gradients off at the key points gives a table you have seen before.

Gradients of y=sin⁡(x)y = \sin(x) at key points, with xx in radians.
xx00π2\frac{\pi}{2}π\pi3π2\frac{3\pi}{2}2π2\pi
Gradient of y=sin⁡(x)y = \sin(x)1100−1-10011
cos⁡(x)\cos(x)1100−1-10011

Key idea

The derivative of sine

When xx is in radians,

ddxsin⁡(x)=cos⁡(x)\frac{d}{dx}\sin(x) = \cos(x)

The gradient function of the sine graph is the cosine graph. This rule is on the QCAA formula sheet.

For 0≤x≤2π0 \le x \le 2\pi, at which value of xx is the graph of y=sin⁡(x)y = \sin(x) decreasing most steeply?

Choose one answer

Now cosine. The graph of y=cos⁡(x)y = \cos(x) is the sine graph shifted π2\frac{\pi}{2} to the left: cos⁡(x)=sin⁡(x+π2)\cos(x) = \sin\left(x + \frac{\pi}{2}\right). Shifting a graph sideways shifts its gradient function by the same amount, so the gradient function of cosine is the cosine graph shifted π2\frac{\pi}{2} left:

ddxcos⁡(x)=cos⁡(x+π2)=−sin⁡(x)\frac{d}{dx}\cos(x) = \cos\left(x + \frac{\pi}{2}\right) = -\sin(x)

Check it on the graph. Just after x=0x = 0, cos⁡(x)\cos(x) comes down from its maximum, so its gradient is negative, and −sin⁡(x)-\sin(x) is negative there too.

y=cos⁡(x)y = \cos(x) (solid) and its gradient function y=−sin⁡(x)y = -\sin(x) (dashed). Where cosine is falling, between 00 and π\pi, the dashed graph is below the axis.

Key idea

The derivative of cosine

When xx is in radians,

ddxcos⁡(x)=−sin⁡(x)\frac{d}{dx}\cos(x) = -\sin(x)

Mind the negative sign. It is on the QCAA formula sheet too.

The sum and constant multiple rules work exactly as before, so you can differentiate any combination term by term.

Worked example

Differentiate f(x)=3sin⁡(x)−2cos⁡(x)+x2f(x) = 3\sin(x) - 2\cos(x) + x^2

  • Simple familiar
  • Technology free

Let f(x)=3sin⁡(x)−2cos⁡(x)+x2f(x) = 3\sin(x) - 2\cos(x) + x^2.

(a) Find f′(x)f'(x).

(b) Find the exact gradient of the graph of y=f(x)y = f(x) at x=π2x = \frac{\pi}{2}.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Differentiate each term: sin⁡→cos⁡\sin \to \cos, cos⁡→−sin⁡\cos \to -\sin, keeping coefficients.

  2. Take care with the double negative from −2cos⁡(x)-2\cos(x).

  3. Substitute exact radian values into f′(x)f'(x).

Watch out for

  • ddx(−2cos⁡(x))=+2sin⁡(x)\frac{d}{dx}(-2\cos(x)) = +2\sin(x). Many students write −2sin⁡(x)-2\sin(x).

  • Substituting into f(x)f(x) instead of f′(x)f'(x) gives the height, not the gradient.

Differentiate y=4cos⁡(x)−sin⁡(x)y = 4\cos(x) - \sin(x).

fracdydx =
Reads asYour answer shows here as maths.

Common mistake

Signs in the derivative cycle

Differentiating again and again cycles through four functions:

sin⁡(x)  →  cos⁡(x)  →  −sin⁡(x)  →  −cos⁡(x)  →  sin⁡(x)\sin(x) \;\to\; \cos(x) \;\to\; -\sin(x) \;\to\; -\cos(x) \;\to\; \sin(x)

The sign changes when you differentiate cosine, not sine. So ddx(−cos⁡(x))=sin⁡(x)\frac{d}{dx}(-\cos(x)) = \sin(x) and ddx(−sin⁡(x))=−cos⁡(x)\frac{d}{dx}(-\sin(x)) = -\cos(x).

Why radians? The pattern in the widget depends on the gradient at x=0x = 0 being exactly 1. That is a fact about radians. For a tiny angle hh in radians, the arc and the vertical side in the unit circle are almost equal, so sin⁡(h)≈h\sin(h) \approx h and the graph starts at the same slope as y=xy = x.

sin⁡(h)h\frac{\sin(h)}{h} for small hh: the gradient of the chord from (0,0)(0, 0) to (h,sin⁡(h))(h, \sin(h)).
hh0.10.10.010.010.0010.001
sin⁡(h)h\frac{\sin(h)}{h}, hh in radians0.998 330.998\,330.999 980.999\,981.000 001.000\,00
sin⁡(h∘)h\frac{\sin(h^\circ)}{h}, hh in degrees0.017 450.017\,450.017 450.017\,450.017 450.017\,45

In degrees the chords settle on 0.017 45≈π1800.017\,45 \approx \frac{\pi}{180}, not 1. If you measured xx in degrees, every derivative would carry an awkward factor: ddxsin⁡(x∘)=π180cos⁡(x∘)\frac{d}{dx}\sin(x^\circ) = \frac{\pi}{180}\cos(x^\circ). Radians are the units that make the rules clean, which is why calculus always uses them.

Jamie graphs y=sin⁡(x)y = \sin(x) with the calculator in degree mode and measures the gradient at x=0x = 0. What does Jamie get, approximately?

Choose one answer

Find the gradient of the curve y=2sin⁡(x)y = 2\sin(x) at x=π3x = \frac{\pi}{3}.

Proof from first principles (extension)

This proof uses the angle sum identity sin⁡(x+h)=sin⁡(x)cos⁡(h)+cos⁡(x)sin⁡(h)\sin(x + h) = \sin(x)\cos(h) + \cos(x)\sin(h), which you will meet in Specialist Mathematics, and two limits that hold in radians:

lim⁡h→0sin⁡(h)h=1lim⁡h→0cos⁡(h)−1h=0\lim_{h \to 0}\frac{\sin(h)}{h} = 1 \qquad \lim_{h \to 0}\frac{\cos(h) - 1}{h} = 0

Then

sin⁡(x+h)−sin⁡(x)h=sin⁡(x) cos⁡(h)−1h+cos⁡(x) sin⁡(h)h\frac{\sin(x + h) - \sin(x)}{h} = \sin(x)\,\frac{\cos(h) - 1}{h} + \cos(x)\,\frac{\sin(h)}{h}

As h→0h \to 0 the first term goes to sin⁡(x)×0\sin(x) \times 0 and the second to cos⁡(x)×1\cos(x) \times 1, so ddxsin⁡(x)=cos⁡(x)\frac{d}{dx}\sin(x) = \cos(x). The same steps with cos⁡(x+h)=cos⁡(x)cos⁡(h)−sin⁡(x)sin⁡(h)\cos(x + h) = \cos(x)\cos(h) - \sin(x)\sin(h) give −sin⁡(x)-\sin(x).

Summary

  • ddxsin⁡(x)=cos⁡(x)\frac{d}{dx}\sin(x) = \cos(x): the gradient function of the sine graph is the cosine graph.

  • ddxcos⁡(x)=−sin⁡(x)\frac{d}{dx}\cos(x) = -\sin(x): cosine falls from its maximum at x=0x = 0, so its gradient starts negative.

  • Both rules need xx in radians. In degrees every derivative picks up a factor of π180\frac{\pi}{180}.

  • Differentiate sums and constant multiples term by term, then substitute exact values to find gradients.

  • Repeated differentiation cycles sin⁡→cos⁡→−sin⁡→−cos⁡→sin⁡\sin \to \cos \to -\sin \to -\cos \to \sin.

Finished the lesson?

Try the 4 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 1 of 70% read

Save your progress with a free account