Skip to main content

17. Differentiation of Trigonometric Functions

Adapted from: Classical single-variable calculus (continuity of sin/cos, key limits, trig derivatives, wave graphs, angles between curves). Rewritten for teaching — not a verbatim textbook dump.

After Review of Trigonometry, we prove the derivative formulas and read the graphs of the six trig functions.


Continuity of cos⁡x\cos x and sin⁡x\sin x​

For any fixed θ\theta,

lim⁡h→0cos⁡(θ+h)=cos⁡θandlim⁡h→0sin⁡(θ+h)=sin⁡θ.\lim_{h\to 0}\cos(\theta+h)=\cos\theta \qquad\text{and}\qquad \lim_{h\to 0}\sin(\theta+h)=\sin\theta.

On the unit circle (Fig. 17-1), as h→0h\to 0 the terminal point CC for angle θ+h\theta+h approaches the point BB for angle θ\theta. Hence the xx-coordinate cos⁡(θ+h)\cos(\theta+h) approaches cos⁡θ\cos\theta, and the yy-coordinate sin⁡(θ+h)\sin(\theta+h) approaches sin⁡θ\sin\theta.

Fig. 17-1 — continuity of sin and cos on the unit circle

Two key limits​

To differentiate sin⁡\sin and cos⁡\cos we need

lim⁡θ→0sin⁡θθ=1lim⁡θ→01−cos⁡θθ=0\begin{align} \lim_{\theta\to 0}\frac{\sin\theta}{\theta}&=1 \tag{17.1}\\[0.4em] \lim_{\theta\to 0}\frac{1-\cos\theta}{\theta}&=0 \tag{17.2} \end{align}

(Use radians — these limits fail in degrees.)

From (17.1) we get (17.2):

1−cos⁡θθ=1−cos⁡θθ⋅1+cos⁡θ1+cos⁡θ=sin⁡2θθ(1+cos⁡θ)=sin⁡θθ⋅sin⁡θ1+cos⁡θ.\begin{aligned} \frac{1-\cos\theta}{\theta} &=\frac{1-\cos\theta}{\theta}\cdot\frac{1+\cos\theta}{1+\cos\theta} =\frac{\sin^{2}\theta}{\theta(1+\cos\theta)} =\frac{\sin\theta}{\theta}\cdot\frac{\sin\theta}{1+\cos\theta}. \end{aligned}

Hence

lim⁡θ→01−cos⁡θθ=lim⁡θ→0sin⁡θθ⋅lim⁡θ→0sin⁡θ1+cos⁡θ=1⋅01+1=0.\lim_{\theta\to 0}\frac{1-\cos\theta}{\theta} =\lim_{\theta\to 0}\frac{\sin\theta}{\theta}\cdot\lim_{\theta\to 0}\frac{\sin\theta}{1+\cos\theta} =1\cdot\frac{0}{1+1}=0.

Check: key limits​

Quiz

Key trig limits

1 / 2

lim θ→0 (sin θ)/θ equals…

Pick an answer to see if you are right.


Derivatives of sine and cosine​

Dx(sin⁡x)=cos⁡xDx(cos⁡x)=−sin⁡x\begin{align} D_{x}(\sin x)&=\cos x \tag{17.3}\\[0.35em] D_{x}(\cos x)&=-\sin x \tag{17.4} \end{align}

The proof of (17.3) expands sin⁡(x+h)\sin(x+h) with an addition formula, then applies (17.1)–(17.2). From (17.3) and the cofunction identity cos⁡x=sin⁡(π/2−x)\cos x=\sin(\pi/2-x), the Chain Rule gives

Dx(cos⁡x)=Dx ⁣(sin⁡ ⁣(π2−x))=cos⁡ ⁣(π2−x)⋅(−1)=−sin⁡x.D_{x}(\cos x) =D_{x}\!\left(\sin\!\left(\frac{\pi}{2}-x\right)\right) =\cos\!\left(\frac{\pi}{2}-x\right)\cdot(-1) =-\sin x.

Hands On: Numerical check of (sin⁡)′(\sin)'​


Graph of sin⁡x\sin x​

Since sin⁡(x+2π)=sin⁡x\sin(x+2\pi)=\sin x, it is enough to sketch one period [0,2π][0,2\pi].

Critical numbers where Dx(sin⁡x)=cos⁡x=0D_{x}(\sin x)=\cos x=0 in [0,2π][0,2\pi]: x=π/2x=\pi/2 and x=3π/2x=3\pi/2.

Second derivative: Dx2(sin⁡x)=−sin⁡xD_{x}^{2}(\sin x)=-\sin x.

  • At π/2\pi/2: −sin⁡(π/2)=−1<0-\sin(\pi/2)=-1<0 → relative maximum (π/2,1)(\pi/2,1)
  • At 3π/23\pi/2: −sin⁡(3π/2)=1>0-\sin(3\pi/2)=1>0 → relative minimum (3π/2,−1)(3\pi/2,-1)

Increasing where cos⁡x>0\cos x>0 (first and fourth quadrants on [0,2π][0,2\pi]): 0<x<π/20<x<\pi/2 and 3π/2<x<2π3\pi/2<x<2\pi.

Concave up where −sin⁡x>0-\sin x>0 (third and fourth): π<x<2π\pi<x<2\pi. Inflection at (π,0)(\pi,0), and also at (0,0)(0,0) and (2π,0)(2\pi,0) by periodicity.

Fig. 17-2 — y = sin x

Graph of cos⁡x\cos x​

Cofunction: sin⁡(π/2+x)=cos⁡x\sin(\pi/2+x)=\cos x. So the graph of cos⁡x\cos x is the graph of sin⁡x\sin x shifted left by π/2\pi/2.

Fig. 17-3 — y = cos x (sin shifted left by π/2)

Both graphs are repeating waves of length 2π2\pi. Multiplying the argument by a constant changes the period/frequency; multiplying the value changes the amplitude.

Example 17.1 — y=cos⁡3xy=\cos 3x​

cos⁡3(x+2π/3)=cos⁡(3x+2π)=cos⁡3x\cos 3(x+2\pi/3)=\cos(3x+2\pi)=\cos 3x, so the period is p=2π/3p=2\pi/3. Over an interval of length 2π2\pi there are 3 waves — the frequency f=3f=3. In general pf=2πpf=2\pi, so f=2π/pf=2\pi/p.

Fig. 17-4 — y = cos 3x (period 2π/3, frequency 3)

For b>0b>0, sin⁡bx\sin bx and cos⁡bx\cos bx have frequency bb and period 2π/b2\pi/b.

Example 17.2 — y=2sin⁡xy=2\sin x​

Double the yy-values of sin⁡x\sin x. Period and frequency unchanged (p=2πp=2\pi, f=1f=1); amplitude (max height) is 22.

Fig. 17-5 — y = 2 sin x (amplitude 2)

Example 17.3 — general Asin⁡bxA\sin bx​

If b>0b>0, then y=Asin⁡bxy=A\sin bx and y=Acos⁡bxy=A\cos bx have period 2π/b2\pi/b, frequency bb, and amplitude ∣A∣|A|.

Fig. 17-6 — y = 1.5 sin 4x

Check: amplitude / period​

Quiz

Amplitude and period

1 / 2

Period of y = 3 cos(2x) is…

Pick an answer to see if you are right.


Other trigonometric functions​

tan⁡x=sin⁡xcos⁡x,cot⁡x=cos⁡xsin⁡x=1tan⁡x,sec⁡x=1cos⁡x,csc⁡x=1sin⁡x.\begin{aligned} \tan x&=\frac{\sin x}{\cos x},& \cot x&=\frac{\cos x}{\sin x}=\frac{1}{\tan x},\\ \sec x&=\frac{1}{\cos x},& \csc x&=\frac{1}{\sin x}. \end{aligned}

Derivatives​

Dx(tan⁡x)=sec⁡2xDx(cot⁡x)=−csc⁡2xDx(sec⁡x)=tan⁡x sec⁡xDx(csc⁡x)=−cot⁡x csc⁡x\begin{align} D_{x}(\tan x)&=\sec^{2} x \tag{17.5}\\ D_{x}(\cot x)&=-\csc^{2} x \tag{17.6}\\ D_{x}(\sec x)&=\tan x\,\sec x \tag{17.7}\\ D_{x}(\csc x)&=-\cot x\,\csc x \tag{17.8} \end{align}

(Quotient / reciprocal rules from sin⁡\sin and cos⁡\cos.)

Other relationships​

tan⁡2x+1=sec⁡2x(17.9)\tan^{2} x+1=\sec^{2} x \tag{17.9}

Proof: sin⁡2xcos⁡2x+1=sin⁡2x+cos⁡2xcos⁡2x=sec⁡2x\dfrac{\sin^{2} x}{\cos^{2} x}+1=\dfrac{\sin^{2} x+\cos^{2} x}{\cos^{2} x}=\sec^{2} x.

tan⁡(x+π)=tan⁡x,cot⁡(x+π)=cot⁡x(17.10)\tan(x+\pi)=\tan x,\qquad \cot(x+\pi)=\cot x \tag{17.10}

So tan⁡\tan and cot⁡\cot have period π\pi (not 2π2\pi).

tan⁡(−x)=−tan⁡x,cot⁡(−x)=−cot⁡x(17.11)\tan(-x)=-\tan x,\qquad \cot(-x)=-\cot x \tag{17.11}

(Odd functions: sin⁡\sin odd, cos⁡\cos even.)


Graph of y=tan⁡xy=\tan x​

Period π\pi: sketch on (−π/2,π/2)(-\pi/2,\pi/2). Oddness: draw (0,π/2)(0,\pi/2) and reflect through the origin.

Vertical asymptotes where cos⁡x=0\cos x=0: x=±π/2x=\pm\pi/2 (and every odd multiple of π/2\pi/2 by periodicity).

Dx(tan⁡x)=sec⁡2x>0D_{x}(\tan x)=\sec^{2} x>0 wherever defined → strictly increasing on each interval between asymptotes.

Dx2(tan⁡x)=2sec⁡x⋅(tan⁡xsec⁡x)=2tan⁡x sec⁡2x,D_{x}^{2}(\tan x)=2\sec x\cdot(\tan x\sec x)=2\tan x\,\sec^{2} x,

so concave up when tan⁡x>0\tan x>0 (e.g. 0<x<π/20<x<\pi/2), with an inflection at (0,0)(0,0).

xxtan⁡x\tan x
0000
π/6\pi/63/3≈0.58\sqrt{3}/3\approx 0.58
π/4\pi/411
π/3\pi/33≈1.73\sqrt{3}\approx 1.73
Fig. 17-7 — y = tan x on (−π/2, π/2)

For an acute angle in a right triangle: tan⁡θ=oppositeadjacent\tan\theta=\dfrac{\text{opposite}}{\text{adjacent}}.


Graph of y=sec⁡xy=\sec x​

Asymptotes where cos⁡x=0\cos x=0: x=(2n+1)π/2x=(2n+1)\pi/2. Period 2π2\pi like cos⁡\cos. Also ∣sec⁡x∣≥1|\sec x|\ge 1 because ∣cos⁡x∣≤1|\cos x|\le 1.

Critical numbers from Dx(sec⁡x)=tan⁡xsec⁡x=0D_{x}(\sec x)=\tan x\sec x=0: x=0x=0 (relative min) and x=πx=\pi (relative max) on (−π,π)(-\pi,\pi), by the first-derivative test.

Dx2(sec⁡x)=sec⁡x (tan⁡2x+sec⁡2x),D_{x}^{2}(\sec x)=\sec x\,(\tan^{2} x+\sec^{2} x),

so no inflection on (−π/2,π/2)(-\pi/2,\pi/2) (second derivative keeps the sign of sec⁡x>0\sec x>0 there) — concave upward.

Fig. 17-8 — y = sec x

Check: tan and sec​

Quiz

Tan and sec

1 / 2

Period of tan x is…

Pick an answer to see if you are right.


Angles between curves​

The angle of inclination of a nonvertical line L\mathscr{L} is the smaller counterclockwise angle α\alpha from the positive xx-axis to L\mathscr{L}. If mm is the slope, then

m=tan⁡α.m=\tan\alpha.
Fig. 17-9 — inclination α

Reason (Fig. 17-10): a parallel unit-direction ray meets the circle at (cos⁡α,sin⁡α)(\cos\alpha,\sin\alpha), so slope =sin⁡α/cos⁡α=tan⁡α=\sin\alpha/\cos\alpha=\tan\alpha.

Fig. 17-10 — m = tan α

The angle between two curves at an intersection PP is the smaller of the two angles between their tangent lines at PP. If the slopes are m1m_1 and m2m_2,

tan⁡ϕ=∣m2−m11+m1m2∣\tan\phi=\left|\frac{m_2-m_1}{1+m_1 m_2}\right|

when 1+m1m2≠01+m_1 m_2\neq 0. If 1+m1m2=01+m_1 m_2=0, the tangents are perpendicular (ϕ=π/2\phi=\pi/2).

Check: inclination​

Quiz

Inclination

1 / 2

A line of slope 1 has inclination…

Pick an answer to see if you are right.


Key takeaways
  • Continuity of sin⁡\sin and cos⁡\cos from the unit circle; key limits (sin⁡θ)/θ→1(\sin\theta)/\theta\to 1 and (1−cos⁡θ)/θ→0(1-\cos\theta)/\theta\to 0 (radians).
  • Dx(sin⁡x)=cos⁡xD_x(\sin x)=\cos x, Dx(cos⁡x)=−sin⁡xD_x(\cos x)=-\sin x; then tan⁡,cot⁡,sec⁡,csc⁡\tan,\cot,\sec,\csc by quotient/reciprocal.
  • Asin⁡bxA\sin bx: amplitude ∣A∣|A|, period 2π/b2\pi/b, frequency bb.
  • tan⁡\tan has period π\pi and vertical asymptotes at odd multiples of π/2\pi/2; sec⁡=1/cos⁡\sec=1/\cos shares those poles.
  • Inclination: m=tan⁡αm=\tan\alpha; angle between curves = acute angle between tangents.

Further Reading​