TactivergeLite

Lite / Engineering Complex Systems / Week 3

Product and chain rules

A capacitor's voltage is 12·e^(−t/2). How fast is it falling at t = 1 s? You need a rule for a function inside a function.

About 40 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Real models are built from pieces: an exponential decay times a sine (a ringing circuit), a sine of 2πft (any AC signal), a decay with time constant τ. The product and chain rules let you differentiate all of them, and the derivative of e^(kt) being k·e^(kt) is the key to every differential equation in week 8.

Predict

What is d/dt of sin(2t)?

  1. cos(2t)
  2. 2·cos(2t)
  3. 2·cos(t)
  4. cos(2)
Guess first, then reveal

The inside, 2t, changes twice as fast as t, so the outside's slope cos(2t) is multiplied by 2. Chain rule: d/dt f(g(t)) = f′(g(t))·g′(t).

Discover

Choose sin(2x) and compare its f′ with the sin x case: what changed in height and in spacing? Then choose x·e^(−x): find the point where the slope is zero and check it against (1 − x)e^(−x) = 0.

What the interactive shows (text version)

In the derivative grapher, sin(2x) has a derivative 2cos(2x): twice as tall and oscillating twice as fast as cos x. For x·e^(−x) the derivative (1 − x)e^(−x) crosses zero at x = 1, where the original function peaks at about 0.368.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Watch the product rule drawn as a growing rectangle and the chain rule as nudges passing through three number lines.

Makes the product and chain rules visual, so you can rebuild them instead of memorising them.

“Visualizing the chain rule and product rule | Chapter 4, Essence of calculus” by 3Blue1Brown (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

Product rule

d/dt [u·v] = u′·v + u·v′. Picture a rectangle of sides u and v: when both grow, the area gains a strip along each side. It is not u′·v′. Example: d/dt [t²·sin t] = 2t·sin t + t²·cos t.

Chain rule

If y = f(g(t)), then dy/dt = f′(g(t))·g′(t): the outer slope (evaluated at the inner value) times the inner slope. The workhorse cases: d/dt e^(kt) = k·e^(kt); d/dt sin(ωt) = ω·cos(ωt); d/dt (at + b)ⁿ = n·a·(at + b)ⁿ⁻¹.

Why e^(kt) matters so much

d/dt e^(kt) = k·e^(kt): the rate is k times the value. A capacitor V = V₀·e^(−t/τ) therefore falls at a rate −V/τ, proportional to the voltage left. Any quantity whose rate is proportional to itself must be an exponential: that is week 8 in one line.

Explain it another way

Intuitive

Chain rule: if the inner gear turns twice as fast and the outer gear turns three times as fast as the inner, the outer turns six times as fast overall. Rates multiply through a chain.

Technical

Leibniz form: dy/dt = (dy/du)·(du/dt) with u = g(t). Combined with the product rule you can differentiate any expression built from elementary functions.

Mathematical

Quotient rule follows: u/v = u·v⁻¹, so (u/v)′ = u′/v − u·v′/v² = (u′v − uv′)/v².

Applied

In an AC circuit the current through a capacitor is I = C·dV/dt. With V = V₀·sin(ωt), I = C·V₀·ω·cos(ωt): the current leads the voltage by a quarter-cycle and grows with frequency, which is why capacitors pass high frequencies.

Derivation: Where does t·e^(−t) peak?
  1. f(t) = t·e^(−t) is a product of u = t and v = e^(−t). This shape models, for example, a drug concentration or the current pulse in some circuits.

  2. u′ = 1. For v, the chain rule with inner function −t gives v′ = e^(−t)·(−1) = −e^(−t).

  3. Product rule: f′ = u′v + uv′ = e^(−t) − t·e^(−t) = (1 − t)·e^(−t).

  4. e^(−t) is never zero, so f′ = 0 only when 1 − t = 0: t = 1.

  5. For t < 1, f′ > 0 (rising); for t > 1, f′ < 0 (falling): a maximum, f(1) = e⁻¹ ≈ 0.368.

Worked example 1

V(t) = 12·e^(−t/2) volts. Find dV/dt at t = 1 s.

Chain rule with k = −½: dV/dt = 12 × (−½) × e^(−t/2) = −6·e^(−t/2). At t = 1: −6 × 0.607 = −3.64 V/s (falling).

Worked example 2

Differentiate y = (3t + 1)⁴.

Outer u⁴ → 4u³; inner 3t + 1 → 3. dy/dt = 4(3t + 1)³ × 3 = 12(3t + 1)³.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

A

Practice 4. What is d/dt of e^(−t/τ)?

records/day

Apply it

A plucked guitar string's displacement is roughly y = A·e^(−t/τ)·sin(ωt). Use the product and chain rules to write its velocity. Which term dominates when τ is very long?

Reflect

Explain in words why d/dt e^(kt) = k·e^(kt) means 'the rate is proportional to the amount'.

Write your answer on paper or in your own notes. Lite never stores what you write.

Go further

← The power rule and friendsVelocity and acceleration →