Differentiating sin x and cos x0%

Differentiation · Topic 6 of 15

Differentiating sin x and cos x

Video lesson · from 29:022 worked examples

One lesson video covers all of Differentiation, so it opens at 29:02 for this topic — not from the beginning.

Theory

The derivatives of the core trigonometric functions are:

If f(x)=sinx then f(x)=cosx\text{If } f(x) = \sin x \text{ then } f'(x) = \cos x
If f(x)=cosx then f(x)=sinx\text{If } f(x) = \cos x \text{ then } f'(x) = -\sin x

Wait, if the angle is in degrees, we must convert to radians to differentiate. Always assume xx is in radians for calculus.

⚠️ Common Examiner Traps

  • The minus sign belongs to cosine: sinx\sin x differentiates to cosx\cos x, but cosx\cos x differentiates to sinx-\sin x. Losing that minus is the single most common error here.
  • These rules need radians: they are only valid when xx is in radians, so work in radians throughout a calculus question.
  • Keep coefficients: 4sinx4\sin x differentiates to 4cosx4\cos x — the multiplier stays.
  • Do not confuse with integration: the minus sign moves to the other function when integrating. Check which operation you are doing.

Worked examples

Example 1

Differentiate y=3sinxy = 3\sin x with respect to xx.

dydx=3cosx\frac{dy}{dx} = 3\cos x

Example 2

A function ff is defined by f(x)=sinx2cosxf(x) = \sin x - 2\cos x for xRx \in \mathbb{R}. Find f(x)f'(x).

f(x)=sinx2cosxf(x)=cosx2(sinx)=cosx+2sinx\begin{aligned} f(x) &= \sin x - 2\cos x \\ f'(x) &= \cos x - 2(-\sin x) \\ &= \cos x + 2\sin x \end{aligned}