MathCalculus

Knowledge guide

How to Differentiate Trigonometric Functions

Six base formulas combine with product, quotient, and chain rules to differentiate trigonometric expressions while preserving the original function's domain.

Memorize the six base derivatives

For angles measured in radians,

ddx(sinx)=cosx,ddx(cosx)=sinx,ddx(tanx)=sec2x,ddx(cotx)=csc2x,ddx(secx)=secxtanx,ddx(cscx)=cscxcotx.\begin{aligned} \frac{d}{dx}(\sin x)&=\cos x, &\frac{d}{dx}(\cos x)&=-\sin x,\\ \frac{d}{dx}(\tan x)&=\sec^2x, &\frac{d}{dx}(\cot x)&=-\csc^2x,\\ \frac{d}{dx}(\sec x)&=\sec x\tan x, &\frac{d}{dx}(\csc x)&=-\csc x\cot x. \end{aligned}

The negative signs belong to the cosine, cotangent, and cosecant derivatives. Keeping those three together is a useful error check.

Combine the base rules with ordinary derivative rules

A trigonometric term may sit inside a sum, product, quotient, or composition. First identify the outer algebraic structure, then apply the matching rule.

For a composition, the chain rule adds the derivative of the inner function. For example,

ddxsin(4x2)=cos(4x2)8x.\frac{d}{dx}\sin(4x^2) =\cos(4x^2)\cdot8x.

For products and quotients, keep the trigonometric derivative attached to its original factor before simplifying.

Example with a different function

Let

g(x)=x2secx.g(x)=x^2\sec x.

The product rule gives

g(x)=(2x)secx+x2(secxtanx)=2xsecx+x2secxtanx.\begin{aligned} g'(x) &=(2x)\sec x+x^2(\sec x\tan x)\\ &=\boxed{2x\sec x+x^2\sec x\tan x}. \end{aligned}

Check the original domain

A derivative formula is valid only where the original function is defined. Expressions containing tanx\tan x or secx\sec x exclude points where cosx=0\cos x=0; expressions containing cotx\cot x or cscx\csc x exclude points where sinx=0\sin x=0. Algebraic simplification should not silently restore excluded points.

Related question

Apply this knowledge

Use the concept guide to understand the reasoning, then return to the complete question and worked answer.

Derivative of Trigonometric Functions: Differentiate csc x + x tan x

Sources

These references support the core concepts and interpretation boundaries explained above.

How to Differentiate Trigonometric Functions | Verla