The Chain Rule: Differentiating sin²(x)
Problem
Visualize the chain rule applied to f(g(x)) where f(u) = u² and g(x) = sin(x).
Explanation
The chain rule is the engine that lets you differentiate composite functions. The slogan is:
Take the derivative of the outer function evaluated at the inner function, then multiply by the derivative of the inner.
In symbols, if , then:
This visualization shows the composition — simple enough to compute by hand, rich enough to feel the chain rule in action.
Setting Up
Define:
- Inner: , so
- Outer: , so
The composite is .
Step-by-Step Solution
Given: . Find: using the chain rule, and verify by simplifying.
Step 1 — Identify the inner and outer functions.
So .
Step 2 — Differentiate each separately.
Step 3 — Apply the chain rule formula.
Plug in: , and :
Step 4 — Simplify using a double-angle identity.
Recall the identity . So:
Step 5 — Verify at a specific point. Try .
Direct: .
Slope from chain rule: .
Or simplified: ✓.
Both forms agree. The slope of at is exactly 1.
Step 6 — Interpret the answer.
has period (half the period of ), which makes sense: has two peaks per cycle (one at and one at , both equal to 1), so its derivative should oscillate twice as fast.
Answer:
The chain rule gives us directly, and a double-angle identity simplifies it to .
Try It
- Slide the point along the curve — watch how the slope of matches at every point.
- Toggle show inner to see separately. Notice that stays non-negative (it's a square) and doubles the frequency of zero-crossings.
- The HUD shows both forms of the answer: the raw chain-rule output and the simplified .
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.