Differentiation — Special Functions

Derivatives of
Trigonometric Functions

From first-principles proofs of d/dx(sin x) = cos x to all six trig derivatives, chain rule compositions, and inverse trig, every result derived, every pattern explained.

6Trig Derivatives
6Inverse Trig Deriv.
10Worked Examples
10Quiz Questions
Share this page

§ 01Prerequisites — Two Essential Limits

Two special trigonometric limits underpin the proofs of d(sin x)/dx and d(cos x)/dx. Everything else follows from these by algebra and the differentiation rules you already know.

Both limits must be evaluated with x measured in radians. The elegant derivative formulas d(sin x)/dx = cos x only hold in radians; in degrees a clumsy factor of π/180 appears everywhere. All work on this page assumes radians.

The Two Fundamental Trig Limits
limh→0 (sin h)/h = 1
limh→0 (cos h − 1)/h = 0
Both require the squeeze theorem to prove rigorously. Both assume h is in radians.

Geometric Proof of lim (sin h)/h = 1

Consider a unit circle. For a small angle h (radians), the arc length is h, the chord length is sin h, and the tangent length is tan h. Comparing areas gives the squeeze inequality:

Squeeze Argument
cos h ≤ (sin h)/h ≤ 1/cos h
As h → 0: cos h → 1 and 1/cos h → 1
∴ (sin h)/h → 1   by the Squeeze Theorem

Deriving lim (cos h − 1)/h = 0

Algebraic Derivation
(cos h − 1)/h = (cos h − 1)/h × (cos h + 1)/(cos h + 1)
= (cos²h − 1) / (h(cos h + 1))
= −sin²h / (h(cos h + 1))
= −(sin h)/h × sin h/(cos h + 1)
→ −1 × 0/2 = 0   as h → 0

§ 02Proof from First Principles — d(sin x)/dx

Armed with the two limits, we can differentiate sin x from the definition of the derivative. This is the most important proof in trig differentiation.

Definition of the Derivative
d(sin x)/dx = limh→0 [sin(x+h) − sin x] / h
Example 01 First-principles proof that d(sin x)/dx = cos x
Expand

Apply the addition formula sin(x+h) = sin x cos h + cos x sin h:

[sin x cos h + cos x sin h − sin x] / h
Rearrange
= sin x (cos h − 1)/h + cos x (sin h)/h
Apply Limits
limh→0: sin x × 0 + cos x × 1
Result
d(sin x)/dx = cos x
Example 02 First-principles proof that d(cos x)/dx = −sin x
Expand

Apply cos(x+h) = cos x cos h − sin x sin h:

[cos x cos h − sin x sin h − cos x] / h
Rearrange
= cos x (cos h − 1)/h − sin x (sin h)/h
Apply Limits
limh→0: cos x × 0 − sin x × 1
Result
d(cos x)/dx = −sin x

§ 03All Six Standard Trig Derivatives

With sin and cos established, all four remaining derivatives follow from the quotient rule. Every result is worth memorising, they appear constantly in calculus, physics, and engineering.

Function f(x)Derivative f′(x)How derived
sin x cos x First principles (§ 02)
cos x −sin x First principles (§ 02)
tan x sec² x Quotient rule on sin x / cos x
cosec x −cosec x cot x Quotient rule on 1/sin x
sec x sec x tan x Quotient rule on 1/cos x
cot x −cosec² x Quotient rule on cos x / sin x
Example 03 Deriving d(tan x)/dx = sec² x via the quotient rule
Write
tan x = sin x / cos x
Quotient Rule

d/dx[u/v] = (v u′ − u v′) / v² with u = sin x, v = cos x:

[cos x × cos x − sin x × (−sin x)] / cos² x
Simplify
= (cos² x + sin² x) / cos² x = 1/cos² x
Result
d(tan x)/dx = sec² x    (using cos² x + sin² x = 1)
Memory Pattern Notice that the co-functions (cosine, cosecant, cotangent) all carry a minus sign in their derivative. The non-co functions (sine, tangent, secant) do not. Also: the derivative of each function involves its co-partner — sin↔cos, tan↔sec, cosec↔cot.

§ 04Chain Rule Compositions

The most important extension is applying the chain rule when a trig function has a function of x (rather than just x) as its argument. The pattern is: differentiate the outside trig function, multiply by the derivative of the inside.

Chain Rule Pattern for Trig
d/dx [sin(g(x))] = cos(g(x)) × g′(x)
d/dx [cos(g(x))] = −sin(g(x)) × g′(x)
d/dx [tan(g(x))] = sec²(g(x)) × g′(x)
The trig function differentiates as normal; the chain rule appends × g′(x).
Example 04 Differentiate sin(3x²)
Identify

Outer function: sin( ). Inner function: g(x) = 3x², so g′(x) = 6x.

Chain Rule
d/dx [sin(3x²)] = cos(3x²) × 6x
Answer
6x cos(3x²)
Example 05 Differentiate cos⁵(x) — power of a trig function

Write cos&sup5;(x) = [cos(x)]&sup5; and apply the chain rule: outer = u&sup5;, inner = cos(x).

Chain Rule
d/dx [[cos x]&sup5;] = 5[cos x]&sup4; × (−sin x)
Answer
−5 cos&sup4;(x) sin(x)
Example 06 Differentiate tan(e^x) — composite with exponential inside
Outer
d/dx[tan(u)] = sec²(u) at u = ex
Inner
d/dx[ex] = ex
Combine
= sec²(ex) × ex
Answer
ex sec²(ex)
Example 07 Differentiate x² sin(x) — product rule with trig
Set Up

u = x², u′ = 2x     v = sin x, v′ = cos x

Product Rule
d/dx[x² sin x] = 2x sin x + x² cos x
Answer
2x sin x + x² cos x
Example 08 Differentiate sin(x) / (1 + cos(x))
Set Up

u = sin x, u′ = cos x     v = 1 + cos x, v′ = −sin x

Quotient Rule
= [cos x(1+cos x) − sin x(−sin x)] / (1+cos x)²
Expand
= [cos x + cos²x + sin²x] / (1+cos x)² = [cos x + 1] / (1+cos x)²    (using sin²x + cos²x = 1) = 1 / (1+cos x)
Answer
1 / (1 + cos x)

§ 05Inverse Trigonometric Derivatives

The inverse trig functions arcsin, arccos, and arctan are essential in integration (they appear as antiderivatives of algebraic functions). Their derivatives are derived using implicit differentiation on the original trig relationship.

Deriving d(arcsin x)/dx

Implicit Differentiation
Let y = arcsin x  ⇒  sin y = x
Differentiate both sides: cos y · dy/dx = 1
dy/dx = 1/cos y = 1/√(1−sin²y) = 1/√(1−x²)
Function f(x)Derivative f′(x)Domain
arcsin x 1/√(1−x²) |x| < 1
arccos x −1/√(1−x²) |x| < 1
arctan x 1/(1+x²) all x ∈ ℝ
arccosec x −1/(|x|√(x²−1)) |x| > 1
arcsec x 1/(|x|√(x²−1)) |x| > 1
arccot x −1/(1+x²) all x ∈ ℝ
Example 09 Differentiate arctan(3x) using chain rule
Outer
d/du[arctan u] = 1/(1+u²) at u = 3x
Inner
d/dx[3x] = 3
Chain Rule
= 1/(1+(3x)²) × 3 = 3/(1+9x²)
Answer
d/dx[arctan(3x)] = 3/(1+9x²)
Example 10 Differentiate x · arcsin(x) + √(1−x²) — a classic result

Differentiate f(x) = x arcsin(x) + √(1−x²). This function appears as an antiderivative in integration.

First Term

Product rule: u = x, u′ = 1   v = arcsin x, v′ = 1/√(1−x²)

= arcsin x + x/√(1−x²)
Second Term

Chain rule on (1−x²)1/2:

= ½(1−x²)−1/2 × (−2x) = −x/√(1−x²)
Combine
f′(x) = arcsin x + x/√(1−x²) − x/√(1−x²)
Answer
f′(x) = arcsin(x)     (the two fractional terms cancel perfectly)

§ 06Common Mistakes

Wrong sign on cos derivative
d(cos x)/dx = −sin x The most common error. d(cos x)/dx = −sin x, NOT +sin x. The minus sign is non-negotiable.
Forgetting the chain rule
d/dx[sin(5x)] = 5 cos(5x) Writing just cos(5x) without the factor of 5 is a chain rule omission. Always multiply by the derivative of the inside function.
Degrees vs Radians
Use radians only d(sin x°)/dx ≠ cos x°. In degrees the derivative is (π/180) cos x. Always work in radians unless specifically told otherwise.
d(tan x)/dx = sec x
d(tan x)/dx = sec² x The derivative of tan x is sec SQUARED x, not sec x. Missing the square changes everything.
Power of trig vs trig of power
sin²(x) ≠ sin(x²) These are completely different functions. sin²x = [sin x]² is differentiated with the chain rule giving 2 sin x cos x = sin 2x. sin(x²) gives 2x cos(x²).
arcsin and 1/sin
arcsin x ≠ 1/sin x = cosec x arcsin x is the inverse function (the angle whose sine is x). cosec x = 1/sin x is the reciprocal. Their derivatives are completely different.

§ 07Quick Reference & Related Pages

The Essential Six — Commit to Memory
d(sin x)/dx = cos x
d(cos x)/dx = −sin x
d(tan x)/dx = sec² x
d(cosec x)/dx = −cosec x cot x
d(sec x)/dx = sec x tan x
d(cot x)/dx = −cosec² x

Where Trig Derivatives Lead

§ 08Quiz — Test Your Understanding

Ten questions on trig derivatives, chain rule compositions, and inverse trig. Select the best answer.

Trig Derivatives Quiz

Question 1 of 10
What is d(cos x)/dx?
Question 2 of 10
What is d(tan x)/dx?
Question 3 of 10
Differentiate sin(4x).
Question 4 of 10
Differentiate cos³(x).
Question 5 of 10
What is d(sec x)/dx?
Question 6 of 10
Two limits are required for the first-principles proof of d(sin x)/dx. What are they?
Question 7 of 10
Differentiate sin(x²).
Question 8 of 10
What is d(arctan x)/dx?
Question 9 of 10
Differentiate x sin(x) using the product rule.
Question 10 of 10
Which of the following is d(arcsin x)/dx?
0 out of 10

Cookie Settings