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)=sin⁡x then f′(x)=cos⁡x\text{If } f(x) = \sin x \text{ then } f'(x) = \cos x
If f(x)=cos⁡x then f′(x)=−sin⁡x\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: sin⁡x\sin x differentiates to cos⁡x\cos x, but cos⁡x\cos x differentiates to −sin⁡x-\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: 4sin⁡x4\sin x differentiates to 4cos⁡x4\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=3sin⁡xy = 3\sin x with respect to xx.

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

Example 2

A function ff is defined by f(x)=sin⁡x−2cos⁡xf(x) = \sin x - 2\cos x for x∈Rx \in \mathbb{R}. Find f′(x)f'(x).

f(x)=sin⁡x−2cos⁡xf′(x)=cos⁡x−2(−sin⁡x)=cos⁡x+2sin⁡x\begin{aligned} f(x) &= \sin x - 2\cos x \\ f'(x) &= \cos x - 2(-\sin x) \\ &= \cos x + 2\sin x \end{aligned}