🌱 Tony's Memex Tony's Intertwingled Memex
Digital Garden | OER Curriculum
Home / Digital Garden / Derivatives of Trigonometric Functions

Derivatives of Trigonometric Functions

Core Definition

The derivatives of the six fundamental trigonometric functions (with angles in radians) are:

>ddx[sin⁑x]=cos⁑xddx[cos⁑x]=βˆ’sin⁑x>ddx[tan⁑x]=sec⁑2xddx[cot⁑x]=βˆ’csc⁑2x>ddx[sec⁑x]=sec⁑xtan⁑xddx[csc⁑x]=βˆ’csc⁑xcot⁑x>\begin{aligned} > \frac{d}{dx}[\sin x] &= \cos x &\quad \frac{d}{dx}[\cos x] &= -\sin x \\ > \frac{d}{dx}[\tan x] &= \sec^2 x &\quad \frac{d}{dx}[\cot x] &= -\csc^2 x \\ > \frac{d}{dx}[\sec x] &= \sec x \tan x &\quad \frac{d}{dx}[\csc x] &= -\csc x \cot x > \end{aligned}
Mnemonic Pattern: Every "co-" function (cos⁑,cot⁑,csc⁑\cos, \cot, \csc) produces a negative derivative.

Concept Explanation

1. Proofs of Fundamental Trigonometric Derivatives

The derivatives of sin⁑x\sin x and cos⁑x\cos x are established from the limit definition using the addition angle formulas and special trigonometric limits lim⁑θ→0sin⁑θθ=1\lim_{\theta \to 0} \frac{\sin \theta}{\theta} = 1 and lim⁑θ→0cosβ‘ΞΈβˆ’1ΞΈ=0\lim_{\theta \to 0} \frac{\cos \theta - 1}{\theta} = 0:

ddx[sin⁑x]=lim⁑hβ†’0sin⁑(x+h)βˆ’sin⁑xh=lim⁑hβ†’0[sin⁑x(cos⁑hβˆ’1h)+cos⁑x(sin⁑hh)]=cos⁑x\frac{d}{dx}[\sin x] = \lim_{h \to 0} \frac{\sin(x+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] = \cos x

The remaining four trigonometric derivatives are derived directly via the Quotient Rule:

  • Derivative of tan⁑x=sin⁑xcos⁑x\tan x = \frac{\sin x}{\cos x}:
    ddx[tan⁑x]=(cos⁑x)(cos⁑x)βˆ’(sin⁑x)(βˆ’sin⁑x)cos⁑2x=cos⁑2x+sin⁑2xcos⁑2x=1cos⁑2x=sec⁑2x\frac{d}{dx}[\tan x] = \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} = \sec^2 x
  • Derivative of sec⁑x=1cos⁑x\sec x = \frac{1}{\cos x}:
    ddx[sec⁑x]=(0)(cos⁑x)βˆ’(1)(βˆ’sin⁑x)cos⁑2x=sin⁑xcos⁑2x=1cos⁑xβ‹…sin⁑xcos⁑x=sec⁑xtan⁑x\frac{d}{dx}[\sec x] = \frac{(0)(\cos x) - (1)(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x} \cdot \frac{\sin x}{\cos x} = \sec x \tan x
  • Derivative of cot⁑x=cos⁑xsin⁑x\cot x = \frac{\cos x}{\sin x}:
    ddx[cot⁑x]=(βˆ’sin⁑x)(sin⁑x)βˆ’(cos⁑x)(cos⁑x)sin⁑2x=βˆ’(sin⁑2x+cos⁑2x)sin⁑2x=βˆ’1sin⁑2x=βˆ’csc⁑2x\frac{d}{dx}[\cot x] = \frac{(-\sin x)(\sin x) - (\cos x)(\cos x)}{\sin^2 x} = \frac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} = -\frac{1}{\sin^2 x} = -\csc^2 x
  • Derivative of csc⁑x=1sin⁑x\csc x = \frac{1}{\sin x}:
    ddx[csc⁑x]=(0)(sin⁑x)βˆ’(1)(cos⁑x)sin⁑2x=βˆ’cos⁑xsin⁑2x=βˆ’csc⁑xcot⁑x\frac{d}{dx}[\csc x] = \frac{(0)(\sin x) - (1)(\cos x)}{\sin^2 x} = -\frac{\cos x}{\sin^2 x} = -\csc x \cot x

2. Periodicity of Higher-Order Derivatives of Sine and Cosine

Successive derivatives of sin⁑(x)\sin(x) and cos⁑(x)\cos(x) cycle in a closed loop of period 4:

DerivativeΒ OrderΒ nf(x)=sin⁑xg(x)=cos⁑xn=0Β (Original)sin⁑xcos⁑xn=1Β (1st)cos⁑xβˆ’sin⁑xn=2Β (2nd)βˆ’sin⁑xβˆ’cos⁑xn=3Β (3rd)βˆ’cos⁑xsin⁑xn=4Β (4th)sin⁑xcos⁑x\begin{array}{c|c|c} \text{Derivative Order } n & f(x) = \sin x & g(x) = \cos x \\ \hline n = 0 \text{ (Original)} & \sin x & \cos x \\ n = 1 \text{ (1st)} & \cos x & -\sin x \\ n = 2 \text{ (2nd)} & -\sin x & -\cos x \\ n = 3 \text{ (3rd)} & -\cos x & \sin x \\ n = 4 \text{ (4th)} & \sin x & \cos x \\ \end{array}

To evaluate any arbitrarily high nthn^{\text{th}} derivative, compute nβ€Šmodβ€Š4n \bmod 4 (the remainder after dividing by 4):

f(n)(x)=f(nβ€Šmodβ€Š4)(x)f^{(n)}(x) = f^{(n \bmod 4)}(x)


Engineering Applications

  • Mechanical & Civil Engineering (Harmonic Oscillation): Mass-spring-damper systems and structural vibration modes follow sinusoidal displacements x(t)=Asin⁑(Ο‰t+Ο•)x(t) = A \sin(\omega t + \phi), where velocity is v(t)=AΟ‰cos⁑(Ο‰t+Ο•)v(t) = A \omega \cos(\omega t + \phi) and acceleration is a(t)=βˆ’AΟ‰2sin⁑(Ο‰t+Ο•)a(t) = -A \omega^2 \sin(\omega t + \phi).
  • Electrical & Computer Engineering (AC Signal Analysis): Alternating current voltage waveforms v(t)=Vpeakcos⁑(Ο‰t)v(t) = V_{\text{peak}} \cos(\omega t) are differentiated to evaluate inductor voltages and reactive power dissipation.
  • Entertainment Engineering (Robotic Stage Motion): Automated stage lifts and rotary actuators utilize sinusoidal velocity profiles to achieve smooth starting and stopping without mechanical shock.

Example Problems

Example 1: Product with Trigonometric Terms

Find the equation of the line tangent to y=3xtan⁑(x)y = 3x \tan(x) at x=Ο€x = \pi.

Solution
  1. Find point of tangency (x1,y1)(x_1, y_1):
    y1=y(Ο€)=3(Ο€)tan⁑(Ο€)=3Ο€(0)=0β€…β€ŠβŸΉβ€…β€Š(Ο€,0)y_1 = y(\pi) = 3(\pi)\tan(\pi) = 3\pi(0) = 0 \implies (\pi, 0)
  2. Find slope m=yβ€²(Ο€)m = y'(\pi) using Product Rule:
    yβ€²=ddx[3x]tan⁑x+3xddx[tan⁑x]=3tan⁑x+3xsec⁑2xy' = \frac{d}{dx}[3x]\tan x + 3x \frac{d}{dx}[\tan x] = 3\tan x + 3x \sec^2 x
    Evaluate at x=Ο€x = \pi:
    m=yβ€²(Ο€)=3tan⁑(Ο€)+3Ο€sec⁑2(Ο€)=3(0)+3Ο€(βˆ’1)2=3Ο€m = y'(\pi) = 3\tan(\pi) + 3\pi \sec^2(\pi) = 3(0) + 3\pi(-1)^2 = 3\pi
  3. Assemble tangent line equation:
    yβˆ’0=3Ο€(xβˆ’Ο€)β€…β€ŠβŸΉβ€…β€Šy=3Ο€xβˆ’3Ο€2y - 0 = 3\pi(x - \pi) \implies y = 3\pi x - 3\pi^2

Example 2: Arbitrary Higher-Order Derivative

Find the 97th97^{\text{th}} derivative of f(x)=sin⁑(x)f(x) = \sin(x) and the 54th54^{\text{th}} derivative of g(x)=cos⁑(x)g(x) = \cos(x).

Solution
  1. Evaluate 97β€Šmodβ€Š497 \bmod 4 for sin⁑(x)\sin(x):
    97Γ·4=24Β withΒ remainderΒ 1β€…β€ŠβŸΉβ€…β€Š97≑1(mod4)97 \div 4 = 24 \text{ with remainder } 1 \implies 97 \equiv 1 \pmod 4
    Thus, f(97)(x)=f(1)(x)=cos⁑(x)f^{(97)}(x) = f^{(1)}(x) = \cos(x).
  2. Evaluate 54β€Šmodβ€Š454 \bmod 4 for cos⁑(x)\cos(x):
    54Γ·4=13Β withΒ remainderΒ 2β€…β€ŠβŸΉβ€…β€Š54≑2(mod4)54 \div 4 = 13 \text{ with remainder } 2 \implies 54 \equiv 2 \pmod 4
    Thus, g(54)(x)=g(2)(x)=βˆ’cos⁑(x)g^{(54)}(x) = g^{(2)}(x) = -\cos(x).

Connections & References