TExcelTAD
Home › School Calculus: Limits, Derivatives & Integrals › Derivatives of Trigonometric Functions

Derivatives of Trigonometric Functions

In geometry and precalculus, trigonometric functions model periodic cycles, vibrations, and waves. In calculus, differentiating trigonometric functions allows us to analyze the instantaneous speed of an oscillating pendulum, alternating electrical currents, and circular motion on paper.

A non-negotiable rule across all of calculus is that angles must always be measured in radians. The elegant formulas derived below are strictly valid only when xx is in radians.


1. Core Trigonometric Derivatives

The derivatives of the six fundamental trigonometric functions on paper:

ddx[sin⁡x]=cos⁡xddx[cos⁡x]=−sin⁡xddx[tan⁡x]=1cos⁡2x=1+tan⁡2x=sec⁡2xddx[cot⁡x]=−1sin⁡2x=−(1+cot⁡2x)=−csc⁡2xddx[sec⁡x]=sec⁡xtan⁡xddx[csc⁡x]=−csc⁡xcot⁡x\begin{aligned} \frac{d}{dx}[\sin x] &= \cos x \\ \frac{d}{dx}[\cos x] &= -\sin x \\ \frac{d}{dx}[\tan x] &= \frac{1}{\cos^2 x} = 1 + \tan^2 x = \sec^2 x \\ \frac{d}{dx}[\cot x] &= -\frac{1}{\sin^2 x} = -(1 + \cot^2 x) = -\csc^2 x \\ \frac{d}{dx}[\sec x] &= \sec x \tan x \\ \frac{d}{dx}[\csc x] &= -\csc x \cot x \end{aligned}

[!TIP] The "Co-" Sign Rule: Every trigonometric function that starts with the prefix "co-" (cos⁡\cos, cot⁡\cot, csc⁡\csc) has a negative sign in its derivative. Every non-co function (sin⁡\sin, tan⁡\tan, sec⁡\sec) has a positive derivative.


2. Derivation from the Limit Definition

To differentiate sin⁡x\sin x from first principles, we recall the two fundamental trigonometric limits:

lim⁡h→0sin⁡hh=1andlim⁡h→0cos⁡h−1h=0\lim_{h \to 0} \frac{\sin h}{h} = 1 \quad \text{and} \quad \lim_{h \to 0} \frac{\cos h - 1}{h} = 0

Applying the limit definition and the angle-sum formula sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x + h) = \sin x \cos h + \cos x \sin h:

ddx[sin⁡x]=lim⁡h→0sin⁡(x+h)−sin⁡xh=lim⁡h→0sin⁡xcos⁡h+cos⁡xsin⁡h−sin⁡xh=lim⁡h→0[sin⁡x(cos⁡h−1h)+cos⁡x(sin⁡hh)]=sin⁡x⋅(0)+cos⁡x⋅(1)=cos⁡x\begin{aligned} \frac{d}{dx}[\sin x] &= \lim_{h \to 0} \frac{\sin(x + h) - \sin x}{h} \\ &= \lim_{h \to 0} \frac{\sin x \cos h + \cos x \sin h - \sin x}{h} \\ &= \lim_{h \to 0} \left[ \sin x \left( \frac{\cos h - 1}{h} \right) + \cos x \left( \frac{\sin h}{h} \right) \right] \\ &= \sin x \cdot (0) + \cos x \cdot (1) \\ &= \cos x \end{aligned}

Proving tan⁡x\tan x via the Quotient Rule

Since tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}, we let u=sin⁡xu = \sin x (u′=cos⁡xu' = \cos x) and v=cos⁡xv = \cos x (v′=−sin⁡xv' = -\sin x):

ddx[tan⁡x]=u′v−uv′v2=(cos⁡x)(cos⁡x)−(sin⁡x)(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x(=1+tan⁡2x)\begin{aligned} \frac{d}{dx}[\tan x] &= \frac{u'v - uv'}{v^2} \\ &= \frac{(\cos x)(\cos x) - (\sin x)(-\sin x)}{\cos^2 x} \\ &= \frac{\cos^2 x + \sin^2 x}{\cos^2 x} \\ &= \frac{1}{\cos^2 x} \quad \left( = 1 + \tan^2 x \right) \end{aligned}

3. Trigonometric Functions with the Chain Rule

When the input to a trigonometric function is an inner expression u=u(x)u = u(x), apply the Chain Rule:

ddx[sin⁡(u)]=cos⁡(u)⋅u′ddx[cos⁡(u)]=−sin⁡(u)⋅u′ddx[tan⁡(u)]=u′cos⁡2(u)=(1+tan⁡2(u))⋅u′\begin{aligned} \frac{d}{dx}[\sin(u)] &= \cos(u) \cdot u' \\ \frac{d}{dx}[\cos(u)] &= -\sin(u) \cdot u' \\ \frac{d}{dx}[\tan(u)] &= \frac{u'}{\cos^2(u)} = (1 + \tan^2(u)) \cdot u' \end{aligned}

Powers of Trigonometric Functions

When an exponent sits directly on the trig function, such as sin⁡n(x)\sin^n(x), remember that this means (sin⁡x)n(\sin x)^n:

ddx[sin⁡n(x)]=nsin⁡n−1(x)⋅ddx[sin⁡x]=nsin⁡n−1(x)cos⁡x\frac{d}{dx}\left[ \sin^n(x) \right] = n \sin^{n-1}(x) \cdot \frac{d}{dx}[\sin x] = n \sin^{n-1}(x) \cos x

4. Step-by-Step Paper Notebook Method

mermaid
flowchart TD
    A["Inspect the Expression"] --> B{"Is it a power of trig or trig of a function?"}
    B -- "Power: sin^n(u)" --> C["1. Outside Power Rule: n(sin(u))^(n-1)\n2. Middle Trig Rule: cos(u)\n3. Inside Argument: u'"]
    B -- "Argument: sin(u(x))" --> D["1. Outside Trig Rule: cos(u)\n2. Inside Argument: u'"]
    C --> E["Multiply all chain factors on paper"]
    D --> E
    E --> F["Clean up signs and simplify using identities"]
  1. Step 1: Parse the nesting order on paper:
    • Case A: sin⁡(5x2)\sin(5x^2) has 22 layers (outer: sin⁡(… )\sin(\dots), inner: 5x25x^2).
    • Case B: cos⁡3(4x)\cos^3(4x) has 33 layers (outer: (… )3(\dots)^3, middle: cos⁡(… )\cos(\dots), inner: 4x4x).
  2. Step 2: Differentiate from outside in:
    • Outer layer: differentiate while keeping internal brackets unchanged.
    • Middle/inner layer: differentiate and multiply.
  3. Step 3: Track negative signs carefully:
    • Any derivative of cos⁡\cos, cot⁡\cot, or csc⁡\csc produces a negative sign. Put it in parentheses: (−sin⁡(… ))(-\sin(\dots)).
  4. Step 4: Move coefficients to the front:
    • Bring constants and polynomial terms before the trigonometric functions to prevent ambiguous notation like cos⁡x⋅2x\cos x \cdot 2x, which can be misread as cos⁡(2x2)\cos(2x^2). Always write 2xcos⁡x2x \cos x.

5. Worked Examples

Example 1: Product Rule with Trigonometric Functions

Problem: Calculate the derivative on paper for:

f(x)=x3cos⁡xf(x) = x^3 \cos x

Step 1: Set up the side margin

u(x)=x3  ⟹  u′(x)=3x2v(x)=cos⁡x  ⟹  v′(x)=−sin⁡x\begin{aligned} u(x) &= x^3 &\implies u'(x) &= 3x^2 \\ v(x) &= \cos x &\implies v'(x) &= -\sin x \end{aligned}

Step 2: Apply the Product Rule formula

f′(x)=u′(x)v(x)+u(x)v′(x)f'(x) = u'(x) v(x) + u(x) v'(x)

Step 3: Substitute expressions

f′(x)=(3x2)(cos⁡x)+(x3)(−sin⁡x)f'(x) = (3x^2)(\cos x) + (x^3)(-\sin x)

Step 4: Factor common terms Factor out the common term x2x^2:

f′(x)=3x2cos⁡x−x3sin⁡x=x2(3cos⁡x−xsin⁡x)f'(x) = 3x^2 \cos x - x^3 \sin x = x^2(3\cos x - x \sin x)

Final Answer:

f′(x)=x2(3cos⁡x−xsin⁡x)f'(x) = x^2(3\cos x - x \sin x)

Example 2: The Trigonometric Chain Rule

Problem: Differentiate g(x)=sin⁡(4x2−7)g(x) = \sin(4x^2 - 7) on paper.

Step 1: Identify outer and inner functions

  • Outer: f(u)=sin⁡(u)f(u) = \sin(u)
  • Inner: u=4x2−7u = 4x^2 - 7

Step 2: Compute individual derivatives

f′(u)=cos⁡(u)u′=ddx[4x2−7]=8x\begin{aligned} f'(u) &= \cos(u) \\ u' &= \frac{d}{dx}[4x^2 - 7] = 8x \end{aligned}

Step 3: Apply the Chain Rule

g′(x)=f′(u)⋅u′=cos⁡(4x2−7)⋅8xg'(x) = f'(u) \cdot u' = \cos(4x^2 - 7) \cdot 8x

Step 4: Format with leading coefficient

g′(x)=8xcos⁡(4x2−7)g'(x) = 8x \cos(4x^2 - 7)

Final Answer:

g′(x)=8xcos⁡(4x2−7)g'(x) = 8x \cos(4x^2 - 7)

Example 3: Three-Layer Chain Rule with Powers

Problem: Find dydx\frac{dy}{dx} for y=cos⁡3(5x)y = \cos^3(5x) and evaluate it at x=π15x = \frac{\pi}{15}.

Step 1: Rewrite to show power clearly

y=(cos⁡(5x))3y = \big( \cos(5x) \big)^3

Step 2: Decompose the three layers

  1. Layer 1 (Power): (… )3  ⟹  3(… )2(\dots)^3 \implies 3(\dots)^2
  2. Layer 2 (Trig): cos⁡(… )  ⟹  −sin⁡(… )\cos(\dots) \implies -\sin(\dots)
  3. Layer 3 (Argument): 5x  ⟹  55x \implies 5

Step 3: Multiply all three layers on paper

dydx=3(cos⁡(5x))2⋅(−sin⁡(5x))⋅5=3⋅5⋅(−1)⋅cos⁡2(5x)⋅sin⁡(5x)=−15cos⁡2(5x)sin⁡(5x)\begin{aligned} \frac{dy}{dx} &= 3 \big( \cos(5x) \big)^2 \cdot \big( -\sin(5x) \big) \cdot 5 \\ &= 3 \cdot 5 \cdot (-1) \cdot \cos^2(5x) \cdot \sin(5x) \\ &= -15 \cos^2(5x) \sin(5x) \end{aligned}

Step 4: Evaluate at x=π15x = \frac{\pi}{15} Substitute the angle:

5x=5⋅π15=π35x = 5 \cdot \frac{\pi}{15} = \frac{\pi}{3}

Recall exact trigonometric values:

cos⁡(π3)=12,sin⁡(π3)=32\cos\left(\frac{\pi}{3}\right) = \frac{1}{2}, \quad \sin\left(\frac{\pi}{3}\right) = \frac{\sqrt{3}}{2}

Substitute into dydx\frac{dy}{dx}:

dydx∣x=π15=−15(12)2(32)=−15⋅14⋅32=−1538\begin{aligned} \left. \frac{dy}{dx} \right|_{x = \frac{\pi}{15}} &= -15 \left( \frac{1}{2} \right)^2 \left( \frac{\sqrt{3}}{2} \right) \\ &= -15 \cdot \frac{1}{4} \cdot \frac{\sqrt{3}}{2} \\ &= -\frac{15\sqrt{3}}{8} \end{aligned}

Final Answer:

dydx=−15cos⁡2(5x)sin⁡(5x);dydx∣x=π/15=−1538\frac{dy}{dx} = -15 \cos^2(5x) \sin(5x); \quad \left. \frac{dy}{dx} \right|_{x = \pi/15} = -\frac{15\sqrt{3}}{8}

6. Common Paper Traps & Exam Pitfalls

Common Mistake Why It Fails Correct Paper Method
ddx[cos⁡x]=sin⁡x\frac{d}{dx}[\cos x] = \sin x Missing the negative sign on "co-" function derivatives. ddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x
Ambiguous placement: cos⁡(3x)⋅3=cos⁡(9x)\cos(3x) \cdot 3 = \cos(9x) The inner argument cannot multiply an outside scalar factor! Place scalar in front: 3cos⁡(3x)3\cos(3x).
Confusing sin⁡2x\sin^2 x with sin⁡(x2)\sin(x^2) sin⁡2x=(sin⁡x)2\sin^2 x = (\sin x)^2 (outer power). sin⁡(x2)\sin(x^2) has an inner power. (sin⁡2x)′=2sin⁡xcos⁡x(\sin^2 x)' = 2\sin x \cos x, while (sin⁡(x2))′=2xcos⁡(x2)(\sin(x^2))' = 2x \cos(x^2).
Calculating in Degrees ddx[sin⁡x∘]≠cos⁡x∘\frac{d}{dx}[\sin x^\circ] \ne \cos x^\circ; it carries an extra factor of π180\frac{\pi}{180}. Always use radians in calculus.

7. Pencil & Paper Practice

Work through these three problems on paper, showing every intermediate step.

  1. Practice 1: Differentiate f(x)=4sin⁡(3x)−2cos⁡(5x)f(x) = 4\sin(3x) - 2\cos(5x).
  2. Practice 2: Find dydx\frac{dy}{dx} for y=sin⁡x1+cos⁡xy = \frac{\sin x}{1 + \cos x} and simplify the numerator completely.
  3. Practice 3: Differentiate h(t)=tan⁡2(3t)h(t) = \tan^2(3t).
Click to view step-by-step solutions

Solution to Practice 1

Apply the Chain Rule to each term:

ddx[4sin⁡(3x)]=4⋅cos⁡(3x)⋅3=12cos⁡(3x)ddx[−2cos⁡(5x)]=−2⋅(−sin⁡(5x))⋅5=+10sin⁡(5x)\begin{aligned} \frac{d}{dx}[4\sin(3x)] &= 4 \cdot \cos(3x) \cdot 3 = 12\cos(3x) \\ \frac{d}{dx}[-2\cos(5x)] &= -2 \cdot \big( -\sin(5x) \big) \cdot 5 = +10\sin(5x) \end{aligned}

Combine the terms:

f′(x)=12cos⁡(3x)+10sin⁡(5x)f'(x) = 12\cos(3x) + 10\sin(5x)
  • Final Answer: f′(x)=12cos⁡(3x)+10sin⁡(5x)f'(x) = 12\cos(3x) + 10\sin(5x)

Solution to Practice 2

Use the Quotient Rule with u=sin⁡x  ⟹  u′=cos⁡xu = \sin x \implies u' = \cos x and v=1+cos⁡x  ⟹  v′=−sin⁡xv = 1 + \cos x \implies v' = -\sin x:

dydx=u′v−uv′v2=(cos⁡x)(1+cos⁡x)−(sin⁡x)(−sin⁡x)(1+cos⁡x)2=cos⁡x+cos⁡2x+sin⁡2x(1+cos⁡x)2\begin{aligned} \frac{dy}{dx} &= \frac{u'v - uv'}{v^2} \\ &= \frac{(\cos x)(1 + \cos x) - (\sin x)(-\sin x)}{(1 + \cos x)^2} \\ &= \frac{\cos x + \cos^2 x + \sin^2 x}{(1 + \cos x)^2} \end{aligned}

Apply the Pythagorean identity cos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1:

dydx=cos⁡x+1(1+cos⁡x)2=1+cos⁡x(1+cos⁡x)2\frac{dy}{dx} = \frac{\cos x + 1}{(1 + \cos x)^2} = \frac{1 + \cos x}{(1 + \cos x)^2}

Cancel the common factor (1+cos⁡x)(1 + \cos x):

dydx=11+cos⁡x\frac{dy}{dx} = \frac{1}{1 + \cos x}
  • Final Answer: dydx=11+cos⁡x\frac{dy}{dx} = \frac{1}{1 + \cos x}

Solution to Practice 3

Rewrite h(t)=(tan⁡(3t))2h(t) = (\tan(3t))^2. Apply the Chain Rule through all three layers:

h′(t)=2tan⁡(3t)⋅ddt[tan⁡(3t)]=2tan⁡(3t)⋅sec⁡2(3t)⋅3=6tan⁡(3t)sec⁡2(3t)(=6tan⁡(3t)cos⁡2(3t))\begin{aligned} h'(t) &= 2 \tan(3t) \cdot \frac{d}{dt}[\tan(3t)] \\ &= 2 \tan(3t) \cdot \sec^2(3t) \cdot 3 \\ &= 6 \tan(3t) \sec^2(3t) \quad \left( = \frac{6 \tan(3t)}{\cos^2(3t)} \right) \end{aligned}
  • Final Answer: h′(t)=6tan⁡(3t)sec⁡2(3t)h'(t) = 6\tan(3t)\sec^2(3t)

Test yourself

What is the derivative of f(x)=cos⁡(4x)f(x) = \cos(4x) with respect to xx?

  1. 4sin⁡(4x)4\sin(4x)
  2. −4sin⁡(4x)-4\sin(4x)
  3. −sin⁡(4x)-\sin(4x)
  4. −4cos⁡(4x)-4\cos(4x)

What is the derivative of y=sin⁡2(x)y = \sin^2(x)?

  1. 2sin⁡x2\sin x
  2. cos⁡2(x)\cos^2(x)
  3. 2sin⁡xcos⁡x2\sin x \cos x
  4. 2cos⁡x2\cos x

What is the slope of the tangent line to the curve y=tan⁡xy = \tan x at x=π4x = \frac{\pi}{4}?

  1. 11
  2. 2\sqrt{2}
  3. 22
  4. 12\frac{1}{2}