ArticleslgStudy

mathematics

Chain rule

Chain rule is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Chain rule rather than just read about it. In short: In calculus, the chain rule is a formula that expresses the derivative of the composition of two differentiable functions z and y in terms of the derivatives of z and y. More precisely, if h=z∘y is the composition such that h(x)=z(y(x)) for every x, then the chain rule is, in Lagrange's notation, h′(x)=z′(y(x))y′(x). or, equivalently, h′=(z∘y)′=(z′∘y)⋅y′.

Chain rule — main illustration
Chain rule — illustration

Key takeaways

  • Chain rule belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Chain rule to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Chain rule from memory before moving on to harder problems.

Reference excerpt

In calculus, the chain rule is a formula that expresses the derivative of the composition of two differentiable functions z and y in terms of the derivatives of z and y. More precisely, if h=z∘y is the composition such that h(x)=z(y(x)) for every x, then the chain rule is, in Lagrange's notation, h′(x)=z′(y(x))y′(x). or, equivalently, h′=(z∘y)′=(z′∘y)⋅y′. The chain rule may also be expressed in Leibniz's notation. If a variable z depends on the variable y, which itself depends on the variable x (that is, y and z are dependent variables), then z depends on x as well, via the intermediate variable y. In this case, the chain rule is expressed as dzdx=dzdy⋅dydx, and dzdx|x=dzdy|y(x)⋅dydx|x, for indicating at which points the derivatives have to be evaluated. In integration, the counterpart to the chain rule is the substitution rule.

Intuitive explanation Intuitively, the chain rule states that knowing the instantaneous rate of change of z relative to y and that of y relative to x allows one to calculate the instantaneous rate of change of z relative to x as the product of the two rates of change. As put by George F. Simmons: "If a car travels twice as fast as a bicycle and the bicycle is four times as fast as a walking man, then the car travels 2 × 4 = 8 times as fast as the man." The relationship between this example and the chain rule is as follows. Let z, y and x be the (variable) positions of the car, the bicycle, and the walking man, respectively. The rate of change of relative positions of the car and the bicycle is dzdy=2. Similarly, dydx=4. So, the rate of change of the relative positions of the car and the walking man is dzdx=dzdy⋅dydx=2⋅4=8. The rate of change of positions is the ratio of the speeds, and the speed is the derivative of the position with respect to the time; that is, dzdx=dzdtdxdt, or, equivalently, dzdt=dzdx⋅dxdt, which is also an application of the chain rule.

History The chain rule seems to have first been used by Gottfried Wilhelm Leibniz. He used it to calculate the derivative of a+bz+cz2 as the composite of the square root function and the function a+bz+cz2. He first mentioned it in a 1676 memoir (with a sign error in the calculation). The common notation of the chain rule is due to Leibniz. Guillaume de l'Hôpital used the chain rule implicitly in his Analyse des infiniment petits. The chain rule does not appear in any of Leonhard Euler's analysis books, even though they were written over a hundred years after Leibniz's discovery. It is believed that the first "modern" version of the chain rule appears in Lagrange's 1797 Théorie des fonctions analytiques; it also appears in Cauchy's 1823 Résumé des Leçons données a L’École Royale Polytechnique sur Le Calcul Infinitesimal.

Statement The simplest form of the chain rule is for real-valued functions of one real variable. It states that if g is a function that is differentiable at a point c (i.e. the derivative g′(c) exists) and f is a function that is differentiable at g(c), then the composite function f∘g is differentiable at c, and the derivative is (f∘g)′(c)=f′(g(c))⋅g′(c). The rule is sometimes abbreviated as (f∘g)′=(f′∘g)⋅g′. If y = f(u) and u = g(x), then this abbreviated form is written in Leibniz notation as: dydx=dydu⋅dudx. The points where the derivatives are evaluated may also be stated explicitly: dydx|x=c=dydu|u=g(c)⋅dudx|x=c. Carrying the same reasoning further, given n functions f1,…,fn with the composite function f1∘(f2∘⋯(fn−1∘fn)), if each function fi is differentiable at its immediate input, then the composite function is also differentiable by the repeated application of the chain rule, where the derivative is (in Leibniz's notation): df1dx=df1df2df2df3⋯dfndx.

Applications

Composites of more than two functions The chain rule can be applied to composites of more than two functions. To take the derivative of a composite of more than two functions, notice that the composite of f, g, and h (in that order) is the composite of f with g ∘ h. The chain rule states that to compute the derivative of f ∘ g ∘ h, it is sufficient to compute the derivative of f and the derivative of g ∘ h. The derivative of f can be calculated directly, and the derivative of g ∘ h can be calculated by applying the chain rule again. For concreteness, consider the function y=esin⁡(x2). This can be decomposed as the composite of three functions: y=f(u)=eu,u=g(v)=sin⁡v,v=h(x)=x2. So that y=f(g(h(x))). Their derivatives are: dydu=f′(u)=eu,dudv=g′(v)=cos⁡v,dvdx=h′(x)=2x. The chain rule states that the derivative of their composite at the point x = a is: (f∘g∘h)′(a)=f′((g∘h)(a))⋅(g∘h)′(a)=f′((g∘h)(a))⋅g′(h(a))⋅h′(a)=(f′∘g∘h)(a)⋅(g′∘h)(a)⋅h′(a). In Leibniz's notation, this is: dydx=dydu|u=g(h(a))⋅dudv|v=h(a)⋅dvdx|x=a, or for short, dydx=dydu⋅dudv⋅dvdx. The derivative function is therefore: dydx=esin⁡(x2)⋅cos⁡(x2)⋅2x. Another way of computing this derivative is to view the composite function f ∘ g ∘ h as the composite of f ∘ g and h. Applying the chain rule in this manner would yield: (f∘g∘h)′(a)=(f∘g)′(h(a))⋅h′(a)=f′(g(h(a)))⋅g′(h(a))⋅h′(a). This is the same as what was computed above. This should be expected because (f ∘ g) ∘ h = f ∘ (g ∘ h). Sometimes, it is necessary to differentiate an arbitrarily long composition of the form f1∘f2∘⋯∘fn−1∘fn. In this case, define fa..b=fa∘fa+1∘⋯∘fb−1∘fb where fa..a=fa and fa..b(x)=x when b<a. Then the chain rule takes the form Df1..n=(Df1∘f2..n)(Df2∘f3..n)⋯(Dfn−1∘fn..n)Dfn=∏k=1n[Dfk∘f(k+1)..n] or, in the Lagrange notation, f1..n′(x)=f1′(f2..n(x))f2′(f3..n(x))⋯fn−1′(fn..n(x))fn′(x)=∏k=1nfk′(f(k+1..n)(x))

Quotient rule

The chain rule can be used to derive some well-known differentiation rules. For example, the quotient rule is a consequence of the chain rule and the product rule. To see this, write the function f(x)/g(x) as the product f(x) · 1/g(x). First apply the product rule: ddx(f(x)g(x))=ddx(f(x)⋅1g(x))=f′(x)⋅1g(x)+f(x)⋅ddx(1g(x)). To compute the derivative of 1/g(x), notice that it is the composite of g with the reciprocal function, that is, the function that sends x to 1/x. The derivative of the reciprocal function is −1/x2. By applying the chain rule, the last expression becomes: f′(x)⋅1g(x)+f(x)⋅(−1g(x)2⋅g′(x))=f′(x)g(x)−f(x)g′(x)g(x)2, which is the usual formula for the quotient rule.

Derivatives of inverse functions

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Chain rule

Start with the simplest possible case. Write down what Chain rule claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Chain rule before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Chain rule ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Chain rule

In research
Chain rule appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Chain rule in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Chain rule is common in secondary-school and first-year university syllabi. It links to neighbouring topics Differentiation rules, Theorems in calculus, Theorems in mathematical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Chain rule outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Chain rule” →

How to study Chain rule in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Chain rule means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Chain rule out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Chain rule in simple terms?

In calculus, the chain rule is a formula that expresses the derivative of the composition of two differentiable functions z and y in terms of the derivatives of z and y. More precisely, if h=z∘y is the composition such that h(x)=z(y(x)) for every x, then the chain rule is, in Lagrange's notation, h…

Why does Chain rule matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Chain rule?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Chain rule.

Tags

  • Differentiation rules
  • Theorems in calculus
  • Theorems in mathematical analysis

Keep exploring