4.1.18Calculus I — Limits & Derivatives

Derivatives of all six trig functions

1,739 words8 min readdifficulty · medium

WHY do we even care?

WHY: Trig functions model anything that oscillates — springs, waves, AC current, circular motion. The derivative tells you the rate of that oscillation (velocity of a swinging pendulum, slope of a wave). If you can't differentiate sin\sin and cos\cos, you can't do physics, signals, or differential equations.

WHAT: A rule that takes any of the six trig functions and returns its instantaneous slope.

HOW: Build sin\sin' and cos\cos' from the limit definition + two special limits, then derive the other four with the quotient rule. Never memorize a table you can't rebuild.


Step 0 — The two limits we must establish first

Why the first is true (geometric squeeze): For a small angle hh (in radians) in the unit circle, the arc length is hh, the chord/sine is sinh\sin h, and the tangent is tanh\tan h. Geometry gives sinhhtanh.\sin h \le h \le \tan h. Divide by sinh\sin h and flip: coshsinhh1.\cos h \le \frac{\sin h}{h} \le 1. As h0h\to 0, cosh1\cos h \to 1, so the squeeze forces sinhh1\frac{\sin h}{h}\to 1.

Why the second is true (algebra trick): Multiply by the conjugate: cosh1hcosh+1cosh+1=cos2h1h(cosh+1)=sin2hh(cosh+1)=sinhhsinhcosh+1.\frac{\cos h - 1}{h}\cdot\frac{\cos h + 1}{\cos h + 1} = \frac{\cos^2 h - 1}{h(\cos h+1)} = \frac{-\sin^2 h}{h(\cos h + 1)} = -\frac{\sin h}{h}\cdot\frac{\sin h}{\cos h + 1}. As h0h\to 0: sinhh1\frac{\sin h}{h}\to 1 and sinhcosh+102=0\frac{\sin h}{\cos h+1}\to \frac{0}{2}=0. Product 10=0\to 1\cdot 0 = 0. ✅


Step 1 — Derive ddxsinx\dfrac{d}{dx}\sin x from the limit definition

ddxsinx=limh0sin(x+h)sinxh\frac{d}{dx}\sin x = \lim_{h\to 0}\frac{\sin(x+h) - \sin x}{h}

Why this step? This is the definition of derivative; nothing trig yet.

Use the angle-addition identity sin(x+h)=sinxcosh+cosxsinh\sin(x+h)=\sin x\cos h + \cos x\sin h: =limh0sinxcosh+cosxsinhsinxh=\lim_{h\to 0}\frac{\sin x\cos h + \cos x\sin h - \sin x}{h} =limh0[sinxcosh1h0+cosxsinhh1]=\lim_{h\to 0}\left[\sin x\cdot\underbrace{\frac{\cos h - 1}{h}}_{\to 0} + \cos x\cdot\underbrace{\frac{\sin h}{h}}_{\to 1}\right]

Why this step? Group the sinx\sin x and cosx\cos x terms so the two foundation limits appear.

=sinx0+cosx1=cosx=\sin x\cdot 0 + \cos x\cdot 1 = \boxed{\cos x}

Step 2 — Same engine gives ddxcosx\dfrac{d}{dx}\cos x

Using cos(x+h)=cosxcoshsinxsinh\cos(x+h)=\cos x\cos h - \sin x\sin h: ddxcosx=limh0[cosxcosh1hsinxsinhh]=cosx0sinx1=sinx\frac{d}{dx}\cos x = \lim_{h\to 0}\left[\cos x\cdot\frac{\cos h-1}{h} - \sin x\cdot\frac{\sin h}{h}\right] = \cos x\cdot 0 - \sin x\cdot 1 = \boxed{-\sin x}

The minus sign is the only thing to remember: differentiating cos\cos "costs" you a negative.


Step 3 — Derive the other four with the quotient rule

Recall the quotient rule: (uv)=uvuvv2\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}.

tanx=sinxcosx\tan x = \dfrac{\sin x}{\cos x}

ddxtanx=cosxcosxsinx(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x\frac{d}{dx}\tan x = \frac{\cos x\cdot\cos x - \sin x\cdot(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \boxed{\sec^2 x} Why this step? Numerator collapses by the Pythagorean identity sin2+cos2=1\sin^2+\cos^2=1.

cotx=cosxsinx\cot x = \dfrac{\cos x}{\sin x}

ddxcotx=sinxsinxcosxcosxsin2x=(sin2x+cos2x)sin2x=csc2x\frac{d}{dx}\cot x = \frac{-\sin x\cdot\sin x - \cos x\cdot\cos x}{\sin^2 x} = \frac{-(\sin^2 x+\cos^2 x)}{\sin^2 x} = \boxed{-\csc^2 x}

secx=1cosx\sec x = \dfrac{1}{\cos x}

ddxsecx=0cosx1(sinx)cos2x=sinxcos2x=1cosxsinxcosx=secxtanx\frac{d}{dx}\sec x = \frac{0\cdot\cos x - 1\cdot(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \boxed{\sec x\tan x}

cscx=1sinx\csc x = \dfrac{1}{\sin x}

ddxcscx=0sinx1cosxsin2x=cosxsin2x=cscxcotx\frac{d}{dx}\csc x = \frac{0\cdot\sin x - 1\cdot\cos x}{\sin^2 x} = \frac{-\cos x}{\sin^2 x} = \boxed{-\csc x\cot x}

Figure — Derivatives of all six trig functions

Worked examples


Recall Feynman: explain to a 12-year-old

Imagine spinning a wheel. The shadow of a dot on it bobs up and down — that's the sin\sin wave. How fast the shadow moves up or down at any moment is given by a different but related wave, cos\cos. So the "speed wave" of sin\sin is cos\cos, and the speed wave of cos\cos is sin-\sin (it goes the other way). The other four trig functions are just sin\sin and cos\cos divided by each other, so to find their speeds we use the division rule for slopes. That's the whole trick — no magic, just two facts and a division rule.


Flashcards

What is ddxsinx\frac{d}{dx}\sin x?
cosx\cos x
What is ddxcosx\frac{d}{dx}\cos x?
sinx-\sin x
What is ddxtanx\frac{d}{dx}\tan x?
sec2x\sec^2 x
What is ddxcotx\frac{d}{dx}\cot x?
csc2x-\csc^2 x
What is ddxsecx\frac{d}{dx}\sec x?
secxtanx\sec x\tan x
What is ddxcscx\frac{d}{dx}\csc x?
cscxcotx-\csc x\cot x
Which two limits underpin all trig derivatives?
limh0sinhh=1\lim_{h\to0}\frac{\sin h}{h}=1 and limh0cosh1h=0\lim_{h\to0}\frac{\cos h-1}{h}=0
Why must angles be in radians?
Because sinhh1\frac{\sin h}{h}\to1 only holds in radians; degrees insert a factor π180\frac{\pi}{180}
How do you get tan=sec2x\tan' = \sec^2 x?
Quotient rule on sin/cos\sin/\cos; numerator becomes cos2+sin2=1\cos^2+\sin^2=1, over cos2\cos^2
Which trig derivatives carry a minus sign?
The "co" ones: cos,cot,csc\cos, \cot, \csc
ddxsin(x2)=?\frac{d}{dx}\sin(x^2) = ?
2xcos(x2)2x\cos(x^2) (chain rule)
ddxsec(3x)=?\frac{d}{dx}\sec(3x) = ?
3sec(3x)tan(3x)3\sec(3x)\tan(3x)

Connections

Concept Map

geometric squeeze

algebra conjugate trick

plus angle-addition

makes limit valid

ratio via

ratio via

sin/cos

cos/sin

1/cos

1/sin

lim sin h / h = 1

lim cos h - 1 / h = 0

Limit definition of derivative

d/dx sin x = cos x

d/dx cos x = -sin x

Quotient rule

d/dx tan x = sec^2 x

d/dx cot x = -csc^2 x

d/dx sec x = sec x tan x

d/dx csc x = -csc x cot x

Radians required

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, asli baat sirf do facts hai: ddxsinx=cosx\frac{d}{dx}\sin x = \cos x aur ddxcosx=sinx\frac{d}{dx}\cos x = -\sin x. Inhe ratta nahi marna — derive karna seekho. Limit definition mein angle-addition formula daalo, aur do special limits use karo: sinhh1\frac{\sin h}{h}\to 1 aur cosh1h0\frac{\cos h-1}{h}\to 0. Bas yahi se dono nikal aate hain. Yaad rakho ye sab radians mein hi sach hai, degrees mein nahi.

Baaki chaar functions — tan,cot,sec,csc\tan, \cot, \sec, \csc — ka kuch naya nahi hai. Ye sab sin\sin aur cos\cos ke ratios hai, to quotient rule lagao aur ho gaya. Jaise tanx=sinx/cosx\tan x = \sin x/\cos x, quotient rule lagao to upar cos2+sin2=1\cos^2+\sin^2=1 ban jaata hai aur answer aata hai sec2x\sec^2 x. Isi tarah baaki teen.

Ek mast trick: jis function mein "co" hai (cos,cot,csc\cos, \cot, \csc), uske derivative mein minus sign aata hai. Aur partner pairs banao — (sin,cos)(\sin,\cos), (tan,cot)(\tan,\cot), (sec,csc)(\sec,\csc) — "co" wala bas mirror image hai with minus.

Sabse common galti: chain rule bhoolna. ddxsin(x2)\frac{d}{dx}\sin(x^2) sirf cos(x2)\cos(x^2) nahi hai, andar wala x2x^2 ka derivative 2x2x bhi multiply hoga, to answer 2xcos(x2)2x\cos(x^2). Ye chhoti baat exam mein marks le jaati hai, dhyaan rakho!

Go deeper — visual, from zero

Test yourself — Calculus I — Limits & Derivatives

Connections