[Calculus Series Part 3] Week 2: Trig Derivatives and the Chain Rule

한국어 버전

This post is for students who already worked through the Week 1 limit proofs and now want to turn those results into usable derivative rules. Week 2 of calculus focuses on trigonometric differentiation and the chain rule for composite functions. This is where the limits and addition formulas from the previous week become concrete derivative formulas such as (sinx)(\sin x)', (cosx)(\cos x)', and (tanx)(\tan x)'. The aim is to follow the flow from the definition of the derivative to those formulas, not simply recite them.

1. Differentiating trigonometric functions

1.1 (sinx)=cosx(\sin x)' = \cos x

Trig differentiation starts from the limit definition. Last week we already proved limh0sinhh=1\lim_{h \to 0}\frac{\sin h}{h}=1 and limh01coshh=0\lim_{h \to 0}\frac{1-\cos h}{h}=0. Those two limits are exactly what lets the derivative calculation finish cleanly.

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

Now substitute the angle-addition formula

sin(x+h)=sinxcosh+cosxsinh\sin(x+h)=\sin x\cos h + \cos x\sin h

into the difference quotient:

sin(x+h)sinxh=(sinxcosh+cosxsinh)sinxh.\frac{\sin(x+h)-\sin x}{h} = \frac{(\sin x\cos h + \cos x\sin h)-\sin x}{h}.

Group the sinx\sin x terms and split the fraction:

sin(x+h)sinxh=sinx(cosh1)+cosxsinhh=sinxcosh1h+cosxsinhh.\frac{\sin(x+h)-\sin x}{h} = \frac{\sin x(\cos h-1)+\cos x\sin h}{h} = \sin x \cdot \frac{\cos h -1}{h} + \cos x \cdot \frac{\sin h}{h}.

Taking limits kills the first term and leaves the second term, so

ddxsinx=cosx.\frac{d}{dx} \sin x = \cos x.

Geometrically, this says the y-coordinate on the unit circle changes at a rate of cosx\cos x when the angle changes slightly. That picture matches the limit calculation, but the derivative formula is justified by the algebra above.

1.2 (cosx)=sinx(\cos x)' = -\sin x

Cosine follows the same script, now using limh0cosh1h=0\lim_{h \to 0}\frac{\cos h -1}{h}=0 explicitly.

ddxcosx=limh0cos(x+h)cosxh.\frac{d}{dx} \cos x = \lim_{h \to 0} \frac{\cos(x+h)-\cos x}{h}.

Use the angle-addition formula

cos(x+h)=cosxcoshsinxsinh,\cos(x+h)=\cos x \cos h - \sin x \sin h,

and substitute it into the difference quotient:

cos(x+h)cosxh=(cosxcoshsinxsinh)cosxh.\frac{\cos(x+h)-\cos x}{h} = \frac{(\cos x \cos h - \sin x \sin h)-\cos x}{h}.

After regrouping,

cos(x+h)cosxh=cosxcosh1hsinxsinhh.\frac{\cos(x+h)-\cos x}{h} = \cos x \cdot \frac{\cos h -1}{h} - \sin x \cdot \frac{\sin h}{h}.

Taking limits yields

ddxcosx=sinx.\frac{d}{dx} \cos x = -\sin x.

Geometrically, sine and cosine are rotated versions of each other, so one derivative naturally becomes the negative of the other.

1.3 Core trig derivative table

These formulas become reference points for everything that follows. Functions like secx\sec x or cscx\csc x are best re-derived from sine and cosine via the quotient rule or reciprocals.

f(x)f(x) f(x)f'(x)
sinx\sin x cosx\cos x
cosx\cos x sinx-\sin x
tanx\tan x sec2x\sec^2 x
cotx\cot x csc2x-\csc^2 x
secx\sec x secxtanx\sec x \tan x
cscx\csc x cscxcotx-\csc x \cot x

These formulas hold on the parts of the domain where each original function is defined.

Group them mentally:

  • sinx\sin x and cosx\cos x form a pair.
  • Differentiating cosine flips the sign.
  • Tangent and secant stay linked via sec2x\sec^2 x and secxtanx\sec x \tan x.
  • Cotangent and cosecant usually introduce a minus sign.

If you want to see where that tangent-secant link comes from, re-derive (secx)(\sec x)' from secx=1cosx\sec x=\frac{1}{\cos x}:

(secx)=(1cosx)=(0)(cosx)(1)(sinx)cos2x=sinxcos2x=sinxcosx1cosx=tanxsecx.(\sec x)' = \left(\frac{1}{\cos x}\right)' = \frac{(0)(\cos x) - (1)(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{\sin x}{\cos x}\cdot\frac{1}{\cos x} = \tan x\sec x.

That is why secant and tangent keep appearing together in the derivative table.

2. Quotient rule and chain rule

2.1 Quotient rule

For functions u(x)u(x) and v(x)v(x),

(uv)=uvuvv2.\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}.

Applying it to

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

gives

(tanx)=(cosx)(cosx)(sinx)(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x.(\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.

The key identity in the middle is sin2x+cos2x=1\sin^2 x + \cos^2 x = 1. The most common mistakes are forgetting to square the denominator or reversing uvuvu'v-uv'. If needed, verbalize it: "differentiate the top times the bottom minus the top times the derivative of the bottom, over the bottom squared."

Another example:

f(x)=cosxxf(x)=\frac{\cos x}{x}

leads to

f(x)=(sinx)x(cosx)1x2=xsinxcosxx2.f'(x)=\frac{(-\sin x)\cdot x - (\cos x)\cdot 1}{x^2} = \frac{-x\sin x - \cos x}{x^2}.

Computing a few of these by hand makes later mixed problems far less intimidating.

2.2 Chain rule

For a composition f(g(x))f(g(x)),

ddxf(g(x))=f(g(x))g(x).\frac{d}{dx} f(g(x)) = f'(g(x)) \cdot g'(x).

Think of it as differentiating the outer function first, then multiplying by the derivative of the inner function. Examples:

  • sin(3x)\sin(3x) → outer sinu\sin u, inner u=3xu=3x.
  • (2x2+1)4(2x^2+1)^4 → outer u4u^4, inner u=2x2+1u=2x^2+1.
  • esinxe^{\sin x} → outer eue^u, inner u=sinxu=\sin x.

Sample computations:

ddxsin(2x)=2cos(2x),\frac{d}{dx}\sin(2x) = 2\cos(2x), ddx(x2+1)5=10x(x2+1)4,\frac{d}{dx}(x^2+1)^5 = 10x(x^2+1)^4, ddxesinx=esinxcosx.\frac{d}{dx}e^{\sin x} = e^{\sin x}\cos x.

All three share the same backbone: differentiate the outer layer, then multiply by the inner derivative.

Before moving on, keep two common chain-rule mistakes in view:

  • ddxsin(3x)=cos(3x)\frac{d}{dx}\sin(3x)=\cos(3x) is incomplete because it forgets the inner derivative 33.
  • ddx(x2+1)5=5(x2+1)4\frac{d}{dx}(x^2+1)^5=5(x^2+1)^4 is also incomplete because it forgets the inner derivative 2x2x.

In both cases, the outer derivative is only the first half of the work.

2.3 Choosing between quotient rule and chain rule

Students often ask which rule should come first. A quick test helps:

  • If one function is wrapped around another, as in sin(x2+1)\sin(x^2+1), start with the chain rule.
  • If two separate functions are divided, as in sinxx2+1\frac{\sin x}{x^2+1}, start with the quotient rule.
  • If both happen at once, differentiate the inside pieces correctly and then assemble the larger rule.

2.4 Trig problems plus the chain rule

We rarely differentiate trig functions with a bare xx inside. Typical expressions look like

  • sin(5x1)\sin(5x-1)
  • cos(x2)\cos(x^2)
  • tan(x)\tan(\sqrt{x}).

For example,

ddxcos(x2)=sin(x2)2x,\frac{d}{dx}\cos(x^2) = -\sin(x^2)\cdot 2x,

A frequent misunderstanding is to stop at sin(x2)-\sin(x^2) and forget the 2x2x. That means the outer derivative was found, but the inner derivative was skipped. Memorizing trig derivatives alone only gets you halfway; multiplying by the inner derivative completes the job.

3. Quick checks

Checkpoint 1

Differentiate f(x)=sin(3x+π4)f(x) = \sin\left(3x + \frac{\pi}{4}\right).

Show answer
f(x)=3cos(3x+π4).f'(x) = 3\cos\left(3x + \frac{\pi}{4}\right).

The factor 33 comes from differentiating the inside expression 3x+π43x+\frac{\pi}{4}.

Checkpoint 2

Find f(x)f'(x) for f(x)=(2x2+1)4f(x) = (2x^2 + 1)^4.

Show answer

Chain rule gives

f(x)=4(2x2+1)34x=16x(2x2+1)3.f'(x) = 4(2x^2 + 1)^3 \cdot 4x = 16x(2x^2 + 1)^3.

Stopping at 4(2x2+1)34(2x^2+1)^3 would mean forgetting the derivative of the inside.

Checkpoint 3

Differentiate f(x)=sinxx2+1f(x) = \frac{\sin x}{x^2 + 1}.

Show answer

Let u=sinxu = \sin x and v=x2+1v = x^2 + 1. Then u=cosxu' = \cos x and v=2xv' = 2x, so

f(x)=uvuvv2=cosx(x2+1)sinx(2x)(x2+1)2.f'(x)=\frac{u'v-uv'}{v^2} = \frac{\cos x(x^2+1)-\sin x(2x)}{(x^2+1)^2}.

Checkpoint 4

Differentiate f(x)=esinxf(x)=e^{\sin x}.

Show answer

Outer function eue^u, inner u=sinxu=\sin x, so

f(x)=esinxcosx.f'(x)=e^{\sin x}\cos x.

Checkpoint 5

Differentiate f(x)=cos(x2+1)f(x)=\cos(x^2+1).

Show answer

Applying the chain rule,

f(x)=sin(x2+1)2x=2xsin(x2+1).f'(x)=-\sin(x^2+1)\cdot 2x = -2x\sin(x^2+1).

4. Frequent mistakes

  • Dropping the minus sign in (cosx)=sinx(\cos x)'=-\sin x.
  • Writing (tanx)=secx(\tan x)'=\sec x instead of sec2x\sec^2 x.
  • Reversing uvuvu'v-uv' in the quotient rule.
  • Stopping after differentiating the outer layer in chain-rule problems.
  • Differentiating sin(3x)\sin(3x) but rewriting it as 3cosx3\cos x and losing the entire inside.

5. Key takeaway

This week tied trig derivatives to the chain rule. The main lesson is not the table itself, but recognizing where each ingredient appears: addition formulas and limits justify the base derivatives, the quotient rule extends them, and the chain rule makes them usable in real problems.

In short:

  • Week 1 limits built the Week 2 trig derivatives.
  • Sine and cosine derivatives set up tangent (and friends).
  • Once the chain rule joins in, we can tackle genuine exam-style expressions.

So treat this week as practice in understanding how formulas arise and in which order to apply them, rather than rote memorization.

💬 댓글

이 글에 대한 의견을 남겨주세요