Skip to content

Derivatives of Trigonometric Functions

In this lesson you’ll learn the derivatives of all six trig functions and how to use them with the chain rule, product rule, and quotient rule.

You already know the derivatives of polynomials. Now we add trig functions to the toolkit. There are six to memorize, but they come in pairs and the pattern is consistent.

The big two:

ddx[sinx]=cosx\frac{d}{dx}[\sin x] = \cos x ddx[cosx]=sinx\frac{d}{dx}[\cos x] = -\sin x

Notice the negative sign on cosine’s derivative. That’s the one people forget.

The tangent and cotangent pair:

ddx[tanx]=sec2x\frac{d}{dx}[\tan x] = \sec^2 x ddx[cotx]=csc2x\frac{d}{dx}[\cot x] = -\csc^2 x

The secant and cosecant pair:

ddx[secx]=secxtanx\frac{d}{dx}[\sec x] = \sec x \tan x ddx[cscx]=cscxcotx\frac{d}{dx}[\csc x] = -\csc x \cot x

The pattern: the “co” functions (cos, cot, csc) all pick up a negative sign. If you remember that, you only need to memorize three derivatives and negate them for the co-versions.

These almost always show up with the chain rule. When the argument isn’t just x (like sin(3x²) or cos(5t + 1)), you differentiate the trig part first, then multiply by the derivative of the inside.

Example 1: Chain rule with sine

Find the derivative of f(x) = sin(4x).

The outside is sin(u), derivative is cos(u). The inside is 4x, derivative is 4.

f(x)=cos(4x)4=4cos(4x)f'(x) = \cos(4x) \cdot 4 = 4\cos(4x)

Example 2: Product rule with cosine

Differentiate y = x² cos(x).

Let u = x², u’ = 2x. Let v = cos(x), v’ = -sin(x).

y=2xcos(x)+x2(sinx)=2xcosxx2sinxy' = 2x\cos(x) + x^2(-\sin x) = 2x\cos x - x^2\sin x

Example 3: Chain rule with tangent

Find the derivative of y = tan(3x² + 1).

Outside: tan(u), derivative is sec²(u). Inside: 3x² + 1, derivative is 6x.

y=sec2(3x2+1)6x=6xsec2(3x2+1)y' = \sec^2(3x^2 + 1) \cdot 6x = 6x\sec^2(3x^2 + 1)

Trig derivatives are everywhere in physics and engineering:

  • Simple harmonic motion: a mass on a spring has position s(t) = A sin(wt). The velocity is s’(t) = Aw cos(wt) and acceleration is s”(t) = -Aw² sin(wt). The derivatives cycle between sin and cos.
  • Waves: sound, light, and water waves are all modeled with sin and cos. Their derivatives describe how fast the wave is changing at each point.
  • Electrical engineering: AC voltage is V(t) = V₀ sin(wt). The rate of voltage change is V’(t) = V₀w cos(wt).
  • Pendulums, vibrations, and anything that oscillates uses these derivatives.
The derivative of cos(x) is:
The derivative of sin(3x) is:
The derivative of tan(x) is:
Which trig derivatives have a negative sign?
The derivative of sec(x) is: