Trigonometric Derivatives: Applying Product, Quotient & Chain Rules

Sin and cos aren't two separate facts to memorize. They're the coordinates of a point going around a circle, and once you see that, the product rule, quotient rule, and chain rule all fall out for free.

By Petrus Sheya

August 4, 2026 · 7 min read

Why does the derivative of sinx\sin x turn out to be cosx\cos x, and not some messier expression? And once you know that, how do you handle something like x2sinxx^2 \sin x, or sin(x2)\sin(x^2), where trig functions get tangled up with everything else?

The short answer: sin and cos come from a point moving around a circle, and every "harder" derivative rule (product, quotient, chain) is really just asking how the pieces of a moving system respond to a tiny nudge. Once you see that, you're not memorizing four separate rules. You're applying the same idea four times.

The circle that already knows the answer

Picture a point walking around a circle of radius 1, starting at angle θ=0\theta = 0 and moving counterclockwise. Its coordinates are (cosθ,sinθ)(\cos\theta, \sin\theta). That's the definition of sine and cosine, not something we prove, just what those words mean.

Now ask: as θ\theta increases a tiny bit, which direction does the point move? Not around the circle in general, but specifically: how fast is its height changing, and how fast is its horizontal position changing?

Here's the geometric fact that makes everything else work: the point's velocity is always perpendicular to the line from the center to the point. If the point is at (cosθ,sinθ)(\cos\theta, \sin\theta), its velocity vector points in the direction (sinθ,cosθ)(-\sin\theta, \cos\theta). That's not a coincidence you need to memorize, it's just what "moving in a circle" means.

Read off the vertical component of that velocity and you get the rate of change of the height, which is sinθ\sin\theta. So:

ddθsinθ=cosθ\frac{d}{d\theta}\sin\theta = \cos\theta

And the horizontal component gives you:

ddθcosθ=sinθ\frac{d}{d\theta}\cos\theta = -\sin\theta

Drag the point below and watch its velocity arrow. Notice it always matches the slope of the sine curve at that exact same instant.

Walk the point around the circle. Its vertical speed at every instant matches the slope of the sine curve next to it. That is why sin' = cos.

unit circlesin(θ) as θ sweeps
sin θ0.783
cos θ0.622
slope of sin curve0.622

That's the whole foundation. Every trig derivative in this post traces back to those two facts. The hard part isn't sin and cos anymore, it's what happens when they get multiplied, divided, or nested inside other functions.

Two functions glued together: the product rule

Say you need the derivative of x2sinxx^2 \sin x. You can't just take the derivative of x2x^2 and the derivative of sinx\sin x and multiply them, that gives the wrong answer. So what actually happens when two changing quantities get multiplied?

Think of it as a rectangle. One side has length u(x)u(x), the other has length v(x)v(x), and the area is u(x)v(x)u(x) \cdot v(x). Now nudge xx by a small amount dxdx. Both sides grow a little: uu grows by dudu, and vv grows by dvdv. The new area is bigger by three pieces:

  • A thin strip on the right, width dudu, height vv: area vduv \, du
  • A thin strip on top, width uu, height dvdv: area udvu \, dv
  • A tiny corner square where both strips overlap: area dudvdu \, dv

The first two strips are the real signal. The corner square is the product of two things that are already small, which makes it smaller still, and it shrinks to nothing as dx0dx \to 0. Drag the slider below down toward zero and watch it happen.

Drag the point along the axis to move x. Shrink dx and watch the small square in the corner disappear, that is why it drops out of the formula.

x = 0.90area = x · sin x
v · du strip0.1567
u · dv strip0.0971
corner du·dv0.0216 (7.8% of ΔA)
(fg)' at x1.343

Drop that corner term and you're left with the product rule:

(uv)=uv+uv(uv)' = u'v + uv'

For x2sinxx^2 \sin x: let u=x2u = x^2, so u=2xu' = 2x, and v=sinxv = \sin x, so v=cosxv' = \cos x. Plug in:

ddx[x2sinx]=2xsinx+x2cosx\frac{d}{dx}\left[x^2 \sin x\right] = 2x \sin x + x^2 \cos x

That's it. No new trig facts needed, just the sin and cos derivatives from the circle, combined with the rectangle logic.

Tangent is just a fraction. Fractions need care.

tanx\tan x is defined as sinx/cosx\sin x / \cos x. So finding its derivative means figuring out how a ratio changes, and that turns out to behave differently from a product.

Start from the product rule in reverse. If h=f/gh = f/g, then f=hgf = h \cdot g. Differentiate both sides with the product rule:

f=hg+hgf' = h'g + hg'

Solve for hh':

h=fhgg=f(f/g)gg=fgfgg2h' = \frac{f' - hg'}{g} = \frac{f' - (f/g)g'}{g} = \frac{f'g - fg'}{g^2}

That's the quotient rule. Notice the denominator gets squared. That's not decoration, it's what you get from clearing the gg you divided by twice: once in the original ratio, once in solving for hh'.

Apply it to tanx=sinx/cosx\tan x = \sin x / \cos x: here f=sinxf = \sin x (so f=cosxf' = \cos x) and g=cosxg = \cos x (so g=sinxg' = -\sin 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} = \sec^2 x

The g2g^2 in the denominator isn't just algebra bookkeeping. Watch what happens as xx approaches the point where cosx\cos x shrinks toward zero: the slope of tanx\tan x shoots up, because you're dividing by a number that's getting squared and getting tiny at the same time.

Drag x toward where cos x shrinks. tan x's slope explodes because g is squared in the denominator, small g means huge sensitivity.

sin xcos xtan x
sin x, cos x0.565, 0.825
tan x0.684
(f/g)' = sec²x1.468

Functions inside functions: the chain rule

What about sin(x2)\sin(x^2)? This isn't a product and it isn't a ratio, it's one function stuffed inside another. The outer function is "take the sine," the inner function is "square the input."

Think of it as a linkage: turning an input dial by a small amount turns a second dial connected to it, which in turn turns a third dial connected to that one. If the second dial turns 3 times as fast as the first, and the third turns twice as fast as the second, then the third dial turns 3×2=63 \times 2 = 6 times as fast as the first. Rates through a chain multiply.

That's exactly what happens with h(x)=f(g(x))h(x) = f(g(x)). A small nudge dxdx in xx causes u=g(x)u = g(x) to change by roughly g(x)dxg'(x)\,dx. That change in uu then causes y=f(u)y = f(u) to change by roughly f(u)f'(u) times as much. Multiply the two rates together:

h(x)=f(g(x))g(x)h'(x) = f'(g(x)) \cdot g'(x)

That's the chain rule. Below, xx drives u=x2u = x^2, which drives y=sin(u)y = \sin(u). Move xx and watch the rate arrow on the middle track get scaled by g(x)=2xg'(x) = 2x, then the rate arrow on the bottom track get scaled again by f(u)=cosuf'(u) = \cos u.

Move x and watch the rate arrows. The u-track's rate is scaled by g'(x), then the y-track's rate is scaled again by f'(u), rates multiply down the chain.

xu = x²y = sin(u)
g'(x) = 2x2.000
f'(u) = cos u0.540
dy/dx1.081

For sin(x2)\sin(x^2): the outer function is f(u)=sinuf(u) = \sin u, so f(u)=cosuf'(u) = \cos u. The inner function is g(x)=x2g(x) = x^2, so g(x)=2xg'(x) = 2x. Multiply:

ddxsin(x2)=cos(x2)2x=2xcos(x2)\frac{d}{dx}\sin(x^2) = \cos(x^2) \cdot 2x = 2x\cos(x^2)

Same idea for cos(3x)\cos(3x): outer function cosu\cos u gives sinu-\sin u, inner function 3x3x gives rate 33:

ddxcos(3x)=sin(3x)3=3sin(3x)\frac{d}{dx}\cos(3x) = -\sin(3x) \cdot 3 = -3\sin(3x)

When all three show up at once

Real problems don't politely wait for one rule at a time. Take xsin(2x)x \sin(2x). This is a product, u=xu = x and v=sin(2x)v = \sin(2x), so start with the product rule:

ddx[xsin(2x)]=uv+uv=sin(2x)+xv\frac{d}{dx}\left[x\sin(2x)\right] = u'v + uv' = \sin(2x) + x \cdot v'

But v=sin(2x)v = \sin(2x) is itself a chain: outer function sine, inner function 2x2x. So v=cos(2x)2=2cos(2x)v' = \cos(2x) \cdot 2 = 2\cos(2x). Substitute that back in:

ddx[xsin(2x)]=sin(2x)+2xcos(2x)\frac{d}{dx}\left[x\sin(2x)\right] = \sin(2x) + 2x\cos(2x)

Notice nothing new happened here. You just used the product rule and the chain rule as tools, one after another, on the pieces that needed them.

The takeaway

Sine and cosine come from a point moving in a circle, and their derivatives are just that point's velocity, read off in two directions. Once you have those two facts, every other trig derivative rule is really a rule about combining changing quantities: multiply two things and their rates add up in a product, divide two things and the rates fight it out with a squared denominator, nest one function inside another and their rates multiply down the chain. You're not learning four unrelated tricks. You're watching the same small idea, a tiny nudge and how it propagates, play out in four different shapes.