Chain rule gears: see why dy/dx = dy/du × du/dx with linked gears (interactive, Class 11 and 12)

Build a function out of two or three links, such as sin(3x) or (sin 2x)², and turn the x gear. Each gear turns by its own rate, and dy/dx is the product of the rates, with the formula, live numbers, a small-nudge check, the graph with its tangent and fresh practice questions.

Keep it one tap away for everyday use.

Bookmark Chain rule gears?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Pick links
  2. Turn x
  3. Rates
  4. Multiply
Nothing is uploadedWorks offline once open

Build the chain

Level

Linked gears

Each gear's pointer shows its own number (a quarter turn for every 1). Between two gears: how far the right one turns for each small turn of the left one, right now.

or drag the x gear round

Check it with a small nudge

ΔxΔyΔy ÷ Δx

The graph of y against x

Dashed: the tangent at the current x. Its slope is the product of the gear rates.

Try this

  • Keep sin outside and 3 × x inside. The middle number is always 3: the u gear turns three times as far as x. So the slope of sin(3x) is 3 cos(3x).
  • Move x until cos(3x) is 0 (about x = 0.52). The y gear stops turning for a moment, so the slope is 0: the top of the wave.
  • Set the inner link to (inside)² and slide x through 0. The first gear rate 2x changes sign, and the y gear swaps its turning direction.
  • Choose Three links. Now dy/dx = dy/dv × dv/du × du/dx: three rates multiply.
  • Put ln outside and e^(inside) inside: ln(eˣ) = x, so the rates always multiply to 1.

Check yourself

Fresh numbers every time. Type a number or a fraction such as 3/4; nothing is saved or sent.

    What it shows

    Many functions are one function inside another. In y = sin(3x), first x is tripled to give u = 3x, and then y = sin u. The chain rule says how fast y changes with x: multiply the rates of the links,

    dy/dx = dy/du × du/dx.

    This page turns that into gears. The x gear drives the u gear, which drives the y gear. Each pointer shows its gear’s number (a quarter turn for every 1), and the label between two gears says how far the right-hand one turns for each small turn of the left-hand one. Turn the x gear: if u moves 3 times as far as x, and y moves cos u times as far as u, then y moves 3 cos u times as far as x. That product is the slope of the graph, and the dashed tangent under the gears shows it.

    It follows continuity and differentiability in Class 12 maths (derivatives of composite functions) and the first look at derivatives in Class 11. Before this page, derivative slope shows what a slope is; after it, maxima and minima uses these derivatives to find the highest and lowest points, and limit zoom covers the limits behind it all.

    How to use it

    1. Pick the links. The inner link u = g(x) and the outer link y = f(u) each come from a list: k × (inside), (inside)², (inside)³, sin, cos, e^(inside), ln and √. For k × (inside), choose k.
    2. Level. Two links is the usual y = f(g(x)). Three links adds a middle gear v, for functions like (sin 2x)² or e^(sin x²), where three rates multiply.
    3. Move x with the slider, drag the x gear round, or press Turn the x gear to sweep x along by 1.
    4. Read the formula line. It writes the chain rule with names, then with the inner expressions put in, then with today’s numbers.

    What each part means

    • Rate du/dx, dy/du (and dv/du): each link’s own derivative at the current point. A negative rate means that gear turns back while the one before it turns forward.
    • dy/dx (product): the chain rule answer.
    • Small nudge table: nudge x by 0.1, 0.01 and 0.001 and work out Δy ÷ Δx directly from the function. The numbers close in on the product, which is an honest check that the rule works.
    • Graph: y against x with the tangent at your x. A rate of 0 anywhere in the chain makes the whole slope 0, and the tangent goes flat.

    Worked example

    Take y = sin(3x) at x = 0.5. The inner link is u = 3x, so u = 1.5 and du/dx = 3. The outer link is y = sin u, so y = sin 1.5 ≈ 0.997 and dy/du = cos 1.5 ≈ 0.0707. Multiply: dy/dx = 0.0707 × 3 ≈ 0.2122. The nudge table agrees: with Δx = 0.001 it gives about 0.21. Slide x to about 0.52 and cos(3x) reaches 0: the y gear stops for a moment and the graph is at the top of its wave.

    Tips

    • Always write the outer derivative with the inside left alone: d/dx sin(x²) = cos(x²) × 2x, not cos(2x).
    • Linear inside links just scale: the slope of f(kx) is k times f′ at kx.
    • Put ln outside e^(inside) and the rates always multiply to 1, since ln(eˣ) = x.

    FAQ

    Why do the rates multiply and not add? Because each gear scales the turn of the one before it. Scaling by 3 and then by 2 is scaling by 6.

    What happens where a link is not defined? ln and √ need a positive inside. If the inside is zero or negative the page says the function is not defined there; move x.

    Is this page part of NCERT? No. fibub is independent; it follows the topics of the Class 11 and 12 maths syllabus so you can practise them, and uses none of the textbook’s text or exercises.

    Where the numbers come from

    • Standard calculus: the chain rule d/dx f(g(x)) = f′(g(x)) g′(x) and the derivatives of xⁿ, sin, cos, eˣ, ln x and √x. Written for fibub; no textbook text, figures or exercises are used.
    • Checked against sympy 1.14: dy/dx of ten two- and three-link chains at three points each, and the written forms of the link derivatives.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-09.

    Change log for Chain rule gears

    1. Fix #1466 and #1470 after browser tests; share images for #1466 to #1471 Details on GitHub
    2. Add #1466 Chain rule gears Details on GitHub

    Every change to fibub

    Related tools

    Derivative slope #L84 Drag two points on a curve and shrink the gap h: the secant line turns into the tangent and its slope settles on f′(x). See the slope graph f′(x) drawn under f(x), a table of slopes from both sides, first-principles working for xⁿ and sin x, corners where there is no derivative, and fresh practice questions. Maxima and minima #L87 See a function, its slope f′ and its bending f″ stacked one above the other, with every turning point found and tested by the first and second derivative tests, the absolute maximum and minimum on an interval, and three optimisation stories (open box, fence by a river, closed can) with the working. Limit zoom #L88 Zoom in on a function near a point and watch where it heads from the left and from the right, with tables of values closing in, the sector picture behind sin x / x → 1, and a Class 12 view that sorts each point as continuous, a hole, a jump, an infinite break or an endless wobble. Derivative steps #L304 Type a function such as x² sin x, (x + 1)/(x − 1), sin(x²) or xˣ and see its derivative with every step: which rule is used at each part (power, product, quotient, chain, eˣ, ln, trig, inverse trig, logarithmic differentiation), worked from the inside out, then f and f′ drawn together with the tangent at any point. e and ln #L305 Slide the base of y = aˣ and watch slope ÷ height stay the same at every point; find the one base, e = 2.718…, where the slope equals the height. Meet the same e in compound interest and in 1 + 1 + 1/2! + …, and see ln x as the mirror of eˣ with slope 1/x. Related rates #L306 Play three classic related-rates stories (a ladder sliding down a wall, a balloon being blown up, a cone-shaped tank filling with water), change the sizes and speeds, and see the link equation differentiated with respect to time with your numbers filled in, plus a graph of the unknown rate as time goes on.