3.4: Differentiation Techniques - The Chain Rule (2024)

  1. Last updated
  2. Save as PDF
  • Page ID
    116568
  • This page is a draft and is under active development.

    • 3.4: Differentiation Techniques - The Chain Rule (1)
    • Gilbert Strang & Edwin “Jed” Herman
    • OpenStax

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vectorC}[1]{\textbf{#1}}\)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}}\)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}\)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)

    Learning Objectives
    • State the Chain Rule using both Lagrange and Leibniz notations.
    • Use the Chain Rule combined with the Power Rule.
    • Apply the Chain Rule and the Product/Quotient Rules correctly in combination when both are necessary.
    • Describe the proof of the Chain Rule.

    We have seen the techniques for differentiating basic functions (\(x^n,\sin x,\cos x,\) etc.) as well as sums, differences, products, quotients, and constant multiples of these functions. However, these techniques do not allow us to differentiate compositions of functions, such as \(h(x)=\sin(x^3)\) or \(k(x)=\sqrt{3x^2+1}\). In this section, we study the rule for finding the derivative of the composition of two or more functions.

    Deriving the Chain Rule

    When we have a function that is a composition of two or more functions, we could use all of the techniques we have already learned to differentiate it. However, using all of those techniques to break down a function into simpler parts that we are able to differentiate can get cumbersome. Instead, we use the Chain Rule, which states that the derivative of a composite function is the derivative of the outer function evaluated at the inner function times the derivative of the inner function.

    To put this rule into context, let’s take a look at an example: \(h(x)=\sin(x^3)\). We can think of the derivative of this function with respect to \(x\) as the rate of change of \(\sin(x^3)\) relative to the change in \(x\). Consequently, we want to know how \(\sin(x^3)\) changes as \(x\) changes. We can think of this event as a chain reaction: As \(x\) changes, \(x^3\) changes, which leads to a change in \(\sin(x^3)\). This chain reaction gives us hints as to what is involved in computing the derivative of \(\sin(x^3)\). First of all, a change in \(x\) forcing a change in \(x^3\) suggests that somehow the derivative of \(x^3\) is involved. In addition, the change in \(x^3\) forcing a change in \(\sin(x^3)\) suggests that the derivative of \(\sin(u)\) with respect to \(u\), where \(u=x^3\), is also part of the final derivative.

    We can take a more formal look at the derivative of \(h(x)=\sin(x^3)\) by setting up the limit that would give us the derivative at a specific value \(a\) in the domain of \(h(x)=\sin(x^3)\).

    \[h^{\prime}(a)=\lim_{x \to a}\dfrac{\sin(x^3)−\sin(a^3)}{x−a}\nonumber \]

    This expression does not seem particularly helpful; however, we can modify it by multiplying and dividing by the expression \(x^3−a^3\) to obtain

    \[h^{\prime}(a)=\lim_{x \to a}\dfrac{\sin(x^3)−\sin(a^3)}{x^3−a^3} \cdot \dfrac{x^3−a^3}{x−a}.\nonumber \]

    From the definition of the derivative, we can see that the second factor is the derivative of \(x^3\) at \(x=a.\) That is,

    \[\lim_{x \to a}\dfrac{x^3−a^3}{x−a}=\dfrac{d}{dx}(x^3)\Big|_{x=a}=3a^2.\nonumber \]

    However, it might be a little more challenging to recognize that the first term is also a derivative. We can see this by letting \(u=x^3\) and observing that as \(x \to a,u \to a^3\):

    \[ \begin{array}{rcl}
    \displaystyle\lim_{x \to a}\dfrac{\sin(x^3)−\sin(a^3)}{x^3−a^3} & = & \displaystyle\lim_{u \to a^3}\dfrac{\sin u−\sin(a^3)}{u−a^3} \\
    & = & \dfrac{d}{du}(\sin u)\Big|_{u=a^3} \\
    & = & \cos(a^3) \\
    \end{array}\nonumber \]

    Thus, \(h^{\prime}(a)=\cos(a^3) \cdot 3a^2\).

    In other words, if \(h(x)=\sin(x^3)\), then \(h^{\prime}(x)=\cos(x^3) \cdot 3x^2\). Thus, if we think of \(h(x)=\sin(x^3)\) as the composition \((f \circ g)(x)=f\big(g(x)\big)\) where \(f(x)= \sin x\) and \(g(x)=x^3\), then the derivative of \(h(x)=\sin(x^3)\) is the product of the derivative of \(g(x)=x^3\) and the derivative of the function \(f(x)=\sin x\) evaluated at the function \(g(x)=x^3\). At this point, we anticipate that for \(h(x)=\sin\big(g(x)\big)\), it is quite likely that \(h^{\prime}(x)=\cos\big(g(x)\big)g^{\prime}(x)\). As we determined above, this is the case for \(h(x)=\sin(x^3)\).

    Now that we have derived a special case of the Chain Rule, we state the general case and then apply it in a general form to other composite functions.

    Theorem \(\PageIndex{1}A\): The Chain Rule (Lagrange's Notation)

    Let \(f\) and \(g\) be functions. For all \(x\) in the domain of \(g\) for which \(g\) is differentiable at \(x\) and \(f\) is differentiable at \(g(x)\), the derivative of the composite function

    \[h(x)=(f \circ g)(x)=f\big(g(x)\big) \nonumber \]

    is given by

    \[h^{\prime}(x)=f^{\prime}\big(g(x)\big)\cdot g^{\prime}(x). \nonumber \]

    Alternatively, if \(y\) is a function of \(u\), and \(u\) is a function of \(x\), then

    \[\dfrac{dy}{dx}=\dfrac{dy}{du} \cdot \dfrac{du}{dx}. \nonumber \]

    Proof (informal)

    At this point, we present a very informal proof of the Chain Rule. For simplicity’s sake we ignore certain issues: For example, we assume that \(g(x) \neq g(a)\) for \(x \neq a\) in some open interval containing \(a\). We begin by applying the limit definition of the derivative to the function \(h(x)\) to obtain \(h^{\prime}(a)\):

    \[h^{\prime}(a)=\lim_{x \to a}\dfrac{f\big(g(x)\big)−f\big(g(a)\big)}{x−a}. \nonumber \]

    Rewriting, we obtain

    \[h^{\prime}(a)=\lim_{x \to a}\dfrac{f\big(g(x)\big)−f\big(g(a)\big)}{g(x)−g(a)} \cdot \dfrac{g(x)−g(a)}{x−a}. \nonumber \]

    Although it is clear that

    \[\lim_{x \to a}\dfrac{g(x)−g(a)}{x−a}=g^{\prime}(a), \nonumber \]

    it is not obvious that

    \[\lim_{x \to a}\dfrac{f\big(g(x)\big)−f\big(g(a)\big)}{g(x)−g(a)}=f^{\prime}\big(g(a)\big). \nonumber \]

    To see that this is true, first recall that since \(g\) is differentiable at \(a\), \(g\) is also continuous at \(a.\) Thus,

    \[\lim_{x \to a}g(x)=g(a). \nonumber \]

    Next, make the substitution \(y=g(x)\)and \(b=g(a)\) and use change of variables in the limit to obtain

    \[\lim_{x \to a}\dfrac{f\big(g(x)\big)−f \big(g(a) \big)}{g(x)−g(a)}=\lim_{y \to b}\dfrac{f(y)−f(b)}{y−b}=f^{\prime}(b)=f^{\prime}\big(g(a)\big). \nonumber \]

    Finally,

    \[h^{\prime}(a)=\lim_{x \to a}\dfrac{f\big(g(x)\big)−f\big(g(a)\big )}{g(x)−g(a)} \cdot \dfrac{g(x)−g(a)}{x−a}=f^{\prime}\big(g(a)\big)\cdot g^{\prime}(a). \nonumber \]

    Q.E.D.

    The Chain and Power Rules Combined

    We can now apply the Chain Rule to composite functions, but note that we often need to use it with other rules. For example, to find derivatives of functions of the form \(h(x)=\big(g(x)\big)^n\), we need to use the Chain Rule combined with the Power Rule. To do so, we can think of \(h(x)=\big(g(x)\big)^n\) as \(f\big(g(x)\big)\) where \(f(x)=x^n\). Then \(f^{\prime}(x)=nx^{n−1}\). Thus, \(f^{\prime}\big(g(x)\big)=n\big(g(x)\big)^{n−1}\). This leads us to the derivative of a power function using the Chain Rule,

    \[h^{\prime}(x)=n\big(g(x)\big)^{n−1}\cdot g^{\prime}(x)\nonumber\]

    Theorem \(\PageIndex{2}\):Power Rule for Composition of Functions (General Power Rule)

    For all values of \(x\) for which the derivative is defined, if

    \[h(x)=\big(g(x)\big)^n, \nonumber \]

    Then

    \[h^{\prime}(x)=n\big(g(x)\big)^{n−1}\cdot g^{\prime}(x) \label{genpow}. \]

    Example \(\PageIndex{1}\): Using the Chain and Power Rules

    Find the derivative of \(h(x)=\frac{1}{(3x^2+1)^2}\).

    Solution

    First, rewrite \(h(x)=\frac{1}{(3x^2+1)^2}=(3x^2+1)^{−2}\).

    Applying the Power Rule with \(g(x)=3x^2+1\), we have

    \[h^{\prime}(x)=−2(3x^2+1)^{−3}\cdot 6x.\nonumber\]

    Rewriting back to the original form gives us

    \[h^{\prime}(x)=\dfrac{−12x}{(3x^2+1)^3}.\nonumber\]

    Exercise \(\PageIndex{1}\)

    Find the derivative of \(h(x)=(2x^3+2x−1)^4\).

    Hint

    Use the General Power Rule (Equation \ref{genpow}) with \(g(x)=2x^3+2x−1\).

    Answer

    \(h^{\prime}(x)=4(2x^3+2x−1)^3(6x^2+2)=8(3x^2+1)(2x^3+2x−1)^3\)

    Example \(\PageIndex{2}\): Using the Chain and Power Rules with a Trigonometric Function

    Find the derivative of \(h(x)=\sin^3x\).

    Solution

    First recall that \(\sin^3x=(\sin x)^3\), so we can rewrite \(h(x)=\sin^3x\) as \(h(x)=(\sin x)^3\).

    Applying the Power Rule with \(g(x)=\sin x\), we obtain

    \[h^{\prime}(x)=3(\sin x)^2\cos x=3\sin^2x\cos x.\nonumber\]

    Example \(\PageIndex{3}\): Finding the Equation of a Tangent Line

    Find the equation of a line tangent to the graph of \(h(x)=\frac{1}{(3x−5)^2}\) at \(x=2\).

    Solution

    Because we are finding an equation of a line, we need a point. The \(x\)-coordinate of the point is \(2\). To find the \(y\)-coordinate, substitute \(2\) into \(h(x)\). Since \(h(2)=\frac{1}{(3(2)−5)^2}=1\), the point is \((2,1)\).

    For the slope, we need \(h^{\prime}(2)\). To find \(h^{\prime}(x)\), first we rewrite \(h(x)=(3x−5)^{−2}\) and apply the Power Rule to obtain

    \[h^{\prime}(x)=−2(3x−5)^{−3}(3)=−6(3x−5)^{−3}.\nonumber\]

    By substituting, we have \(h^{\prime}(2)=−6(3(2)−5)^{−3}=−6.\)

    Therefore, the line has equation \(y−1=−6(x−2)\). Rewriting, the equation of the line is \(y=−6x+13\).

    Exercise \(\PageIndex{3}\)

    Find the equation of the line tangent to the graph of \(f(x)=(x^2−2)^3\) at \(x=−2\).

    Hint

    Use the preceding example as a guide.

    Answer

    \(y=−48x−88\)

    Combining the Chain Rule with Other Rules

    Now that we can combine the Chain Rule and the Power Rule, we examine how to combine the Chain Rule with the other rules we have learned. In particular, we can use it with the formulas for the derivatives of trigonometric functions or with the Product Rule.

    Example \(\PageIndex{4}\): Using the Chain Rule on a General Cosine Function

    Find the derivative of \(h(x)=\cos\big(g(x)\big).\)

    Solution

    Think of \(h(x)=\cos\big(g(x)\big)\) as \(f\big(g(x)\big)\) where \(f(x)=\cos x\). Since \(f^{\prime}(x)=−\sin x\), we have \(f^{\prime}\big(g(x)\big)=−\sin\big(g(x)\big)\). Then we do the following calculation.

    \[\begin{array}{rclr}
    h^{\prime}(x) & = & f^{\prime}\big(g(x)\big)\cdot g^{\prime}(x) & \left(\text{Apply the Chain Rule.} \right) \\
    & = & −\sin\big(g(x)\big)\cdot g^{\prime}(x) & \left( \text{Substitute }f^{\prime}\big(g(x)\big) =−\sin\big(g(x)\big). \right) \\
    \end{array} \nonumber \]

    Thus, the derivative of \(h(x)=\cos\big(g(x)\big)\) is given by \(h^{\prime}(x)=−\sin\big(g(x)\big)\cdot g^{\prime}(x).\)

    In the following example we apply the rule that we have just derived.

    Example \(\PageIndex{5}\): Using the Chain Rule on a Cosine Function

    Find the derivative of \(h(x)=\cos(5x^2).\)

    Solution

    Let \(g(x)=5x^2\). Then \(g^{\prime}(x)=10x\). Using the result from the previous example,

    \[h^{\prime}(x)=−\sin(5x^2) \cdot 10x=−10x\sin(5x^2).\nonumber\]

    Example \(\PageIndex{6}\): Using the Chain Rule on Another Trigonometric Function

    Find the derivative of \(h(x)=\sec{(4x^5+2x)}.\)

    Solution

    Apply the Chain Rule to \(h(x)=\sec{\big(g(x)\big)}\)to obtain

    \[h^{\prime}(x)=\sec{(g(x))}\tan\big(g(x)\big)\cdot g^{\prime}(x).\nonumber\]

    In this problem, \(g(x)=4x^5+2x,\) so we have \(g^{\prime}(x)=20x^4+2.\) Therefore, we obtain

    \[h^{\prime}(x)=\sec{(4x^5+2x)}\tan(4x^5+2x)(20x^4+2)=(20x^4+2)\sec{(4x^5+2x)}\tan(4x^5+2x).\nonumber\]

    Exercise \(\PageIndex{6}\)

    Find the derivative of \(h(x)=\sin(7x+2).\)

    Hint

    Apply the Chain Rule to \(h(x)=\sin\big(g(x)\big)\) first and then use \(g(x)=7x+2\).

    Answer

    \(h^{\prime}(x)=7\cos(7x+2)\)

    Example \(\PageIndex{7}\): Combining the Chain Rule with the Product Rule

    Find the derivative of \(h(x)=(2x+1)^5(3x−2)^7\).

    Solution

    First apply the Product Rule, then apply the Chain Rule to each term of the product.

    \[\begin{array}{rclr}
    h^{\prime}(x) & = & \dfrac{d}{dx}\big((2x+1)^5\big) \cdot (3x−2)^7+\dfrac{d}{dx}\big((3x−2)^7\big) \cdot (2x+1)^5 & \left( \text{Apply the Product Rule.} \right) \\
    & = & 5(2x+1)^4 \cdot 2 \cdot (3x−2)^7+7(3x−2)^6 \cdot 3 \cdot (2x+1)^5 & \left(\text{Apply the Chain Rule.} \right) \\
    & = & 10(2x+1)^4(3x−2)^7+21(3x−2)^6(2x+1)^5 & \left(\text{Simplify.} \right) \\
    & = & (2x+1)^4(3x−2)^6(10(3x−2)+21(2x+1)) & \left(\text{Factor out }(2x+1)^4(3x−2)^6 \right) \\
    & = & (2x+1)^4(3x−2)^6(72x+1) & \left(\text{Simplify.} \right) \\
    \end{array}\nonumber\]

    Exercise \(\PageIndex{7}\)

    Find the derivative of \(h(x)=\frac{x}{(2x+3)^3}\).

    Hint

    Start out by applying the Quotient Rule. Remember to use the Chain Rule to differentiate the denominator.

    Answer

    \(h^{\prime}(x)=\frac{3−4x}{(2x+3)^4}\)

    Composites of Three or More Functions

    We can now combine the Chain Rule with other rules for differentiating functions, but when we are differentiating the composition of three or more functions, we need to apply the Chain Rule more than once. If we look at this situation in general terms, we can generate a formula, but we do not need to remember it, as we can simply apply the Chain Rule multiple times.

    In general terms, first we let

    \[k(x)=h\Big(f\big(g(x)\big)\Big).\nonumber \]

    Then, applying the Chain Rule once we obtain

    \[k^{\prime}(x)=\dfrac{d}{dx}\Big(h\big(f\big(g(x)\big)\big)\Big)=h^{\prime}\Big(f\big(g(x)\big)\Big) \cdot \dfrac{d}{dx}\Big(f\big(g(x)\big)\Big).\nonumber \]

    Applying the Chain Rule again, we obtain

    \[k^{\prime}(x)=h^{\prime}\Big(f\big(g(x)\big)\Big)\cdot f^{\prime}\big(g(x)\big)\cdot g^{\prime}(x).\nonumber \]

    Corollary\(\PageIndex{1}\):Chain Rule for a Composition of Three Functions

    For all values of \(x\) for which the function is differentiable, if

    \[k(x)=h\Big(f\big(g(x)\big)\Big),\nonumber\]

    then

    \[k^{\prime}(x)=h^{\prime}\Big(f\big(g(x)\big)\Big)\cdot f^{\prime}\big(g(x)\big)\cdot g^{\prime}(x).\nonumber\]

    In other words, we are applying the Chain Rule twice.

    Notice that the derivative of the composition of three functions has three parts. (Similarly, the derivative of the composition of four functions has four parts, and so on.) Also, remember, we can always work from the outside in, taking one derivative at a time.

    Example \(\PageIndex{8}\): Differentiating a Composite of Three Functions

    Find the derivative of \(k(x)=\cos^4(7x^2+1).\)

    Solution

    First, rewrite \(k(x)\) as

    \[k(x)=\big(\cos(7x^2+1)\big)^4.\nonumber\]

    Then apply the Chain Rule several times.

    \[\begin{array}{rclr}
    k^{\prime}(x) & = & 4(\cos(7x^2+1))^3\cdot\dfrac{d}{dx}\big(\cos(7x^2+1)\big) & \left(\text{Apply the Chain Rule.} \right) \\
    & = & 4(\cos(7x^2+1))^3(−\sin(7x^2+1))\cdot\dfrac{d}{dx}\big(7x^2+1\big) & \left( \text{Apply the Chain Rule.} \right) \\
    & = & 4(\cos(7x^2+1))^3(−\sin(7x^2+1))(14x) & \left(\text{Apply the Chain Rule.} \right) \\
    & = & −56x\sin(7x^2+1)\cos^3(7x^2+1) & \left(\text{Simplify} \right) \\
    \end{array}\nonumber\]

    Exercise \(\PageIndex{8}\)

    Find the derivative of \(h(x)=\sin^6(x^3).\)

    Hint

    Rewrite \(h(x)=\sin^6(x^3)=\big(\sin(x^3)\big)^6\) and use Example \(\PageIndex{8}\) as a guide.

    Answer

    \(h^{\prime}(x)=18x^2\sin^5(x^3)\cos(x^3)\)

    Example \(\PageIndex{9}\): Using the Chain Rule in a Velocity Problem

    A particle moves along a coordinate axis. Its position at time t is given by \(s(t)=\sin(2t)+\cos(3t)\). What is the velocity of the particle at time \(t=\frac{ \pi }{6}\)?

    Solution

    To find \(v(t)\), the velocity of the particle at time \(t\), we must differentiate \(s(t)\). Thus,

    \[v(t)=s^{\prime}(t)=2\cos(2t)−3\sin(3t).\nonumber \]

    Example \(\PageIndex{10}\): Using the Chain Rule with Functional Values

    Let \(h(x)=f\big(g(x)\big).\) If \(g(1)=4,g^{\prime}(1)=3\), and \(f^{\prime}(4)=7\), find \(h^{\prime}(1).\)

    Solution

    Use the Chain Rule, then substitute.

    \[ \begin{array}{rclr}
    h^{\prime}(1) & = & f^{\prime}\big(g(1)\big)\cdot g^{\prime}(1) & \left( \text{Apply the Chain Rule.} \right) \\
    & = & f^{\prime}(4) \cdot 3 & \left( \text{Substitute }g(1)=4 \text{ and } g^{\prime}(1)=3. \right) \\
    & = & 7 \cdot 3 & \left( \text{Substitute }f^{\prime}(4)=7. \right) \\
    & = & 21 & \left( \text{Simplify.} \right) \\
    \end{array} \nonumber \]

    Exercise \(\PageIndex{10}\)

    Given \(h(x)=f(g(x))\). If \(g(2)=−3,g^{\prime}(2)=4,\) and \(f^{\prime}(−3)=7\), find \(h^{\prime}(2)\).

    Hint

    Follow Example \(\PageIndex{10}\).

    Answer

    28

    The Chain Rule Using Leibniz’s Notation

    As with other derivatives that we have seen, we can express the Chain Rule using Leibniz’s notation. This notation for the Chain Rule is used heavily in physics applications.

    For \(h(x)=f(g(x)),\) let \(u=g(x)\) and \(y=h(x)=f(u).\) Thus,

    \[h^{\prime}(x)=\dfrac{dy}{dx}\nonumber \]

    \[f^{\prime}(g(x))=f^{\prime}(u)=\dfrac{dy}{du}\nonumber \]

    and

    \[g^{\prime}(x)=\dfrac{du}{dx}.\nonumber \]

    Consequently,

    \[\dfrac{dy}{dx}=h^{\prime}(x)=f^{\prime}\big(g(x)\big)\cdot g^{\prime}(x)=\dfrac{dy}{du} \cdot \dfrac{du}{dx}.\nonumber \]

    Theorem \(\PageIndex{1}B\): Chain Rule (Leibniz's Notation)

    If \(y\) is a function of \(u\), and \(u\) is a function of \(x\), then

    \[\dfrac{dy}{dx}=\dfrac{dy}{du} \cdot \dfrac{du}{dx}. \nonumber \]

    Example \(\PageIndex{11}\): Taking a Derivative Using Leibniz’s Notation I

    Find the derivative of \(y=\left(\frac{x}{3x+2}\right)^5.\)

    Solution

    First, let \(u=\frac{x}{3x+2}\). Thus, \(y=u^5\). Next, find \(\frac{du}{dx}\) and \(\frac{dy}{du}\). Using the Quotient Rule,

    \[\dfrac{du}{dx}=\dfrac{2}{(3x+2)^2}\nonumber\]

    and

    \[\dfrac{dy}{du}=5u^4,\nonumber\]

    Finally, we put it all together.

    \[\begin{array}{rclr}
    \dfrac{dy}{dx} & = & \dfrac{dy}{du} \cdot \dfrac{du}{dx} & \left( \text{Apply the Chain Rule.} \right) \\
    & = & 5u^4 \cdot \dfrac{2}{(3x+2)^2} & \left(\text{Substitute }\frac{dy}{du}=5u^4\text{ and }\frac{du}{dx}=\frac{2}{(3x+2)^2}.\right) \\
    & = & 5\left(\dfrac{x}{3x+2}\right)^4 \cdot \dfrac{2}{(3x+2)^2} & \left( \text{Substitute }u=\frac{x}{3x+2}. \right) \\
    & = & \dfrac{10x^4}{(3x+2)^6} & \left(\text{Simplify.} \right) \\
    \end{array}\nonumber\]

    It is important to remember that, when using the Leibniz form of the Chain Rule, the final answer must be expressed entirely in terms of the original variable given in the problem.

    Example \(\PageIndex{12}\): Taking a Derivative Using Leibniz’s Notation II

    Find the derivative of \(y=\tan(4x^2−3x+1).\)

    Solution

    First, let \(u=4x^2−3x+1.\) Then \(y=\tan u\). Next, find \(\frac{du}{dx}\) and \(\frac{dy}{du}\):

    \[\dfrac{du}{dx}=8x−3 \quad \text{and} \quad \dfrac{dy}{du}=\sec^2{u}.\nonumber\]

    Finally, we put it all together.

    \[\begin{array}{rclr}
    \dfrac{dy}{dx} & = & \dfrac{dy}{du} \cdot \dfrac{du}{dx} & \left( \text{Apply the Chain Rule.} \right) \\
    & = & \sec^2{u} \cdot (8x−3) & \left( \text{Use }\dfrac{du}{dx}=8x−3\text{ and }\dfrac{dy}{du}=\sec^2{u}. \right) \\
    & = & \sec^2{(4x^2−3x+1)} \cdot (8x−3) & \left( \text{Substitute }u=4x^2−3x+1. \right) \\
    \end{array} \nonumber \]

    Exercise \(\PageIndex{12}\)

    Use Leibniz’s notation to find the derivative of \(y=\cos(x^3)\). Make sure that the final answer is expressed entirely in terms of the variable \(x\).

    Hint

    Let \(u=x^3\).

    Answer

    \(\frac{dy}{dx}=−3x^2\sin(x^3).\)

    Key Concepts

    • The Chain Rule allows us to differentiate compositions of two or more functions. It states that for \(h(x)=f\big(g(x)\big),\)

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

    In Leibniz’s notation this rule takes the form

    \(\dfrac{dy}{dx}=\dfrac{dy}{du} \cdot \dfrac{du}{dx}\).

    • We can use the Chain Rule with other rules that we have learned, and we can derive formulas for some of them.
    • The Chain Rule combines with the Power Rule to form a new rule:

    If \(h(x)=\big(g(x)\big)^n\), then \(h'(x)=n\big(g(x)\big)^{n−1}\cdot g'(x)\).

    • When applied to the composition of three functions, the Chain Rule can be expressed as follows: If \(h(x)=f\Big(g\big(k(x)\big)\Big),\) then \(h'(x)=f'\Big(g\big(k(x)\big)\Big)\cdot g'\big(k(x)\big)\cdot k'(x).\)

    Key Equations

    • The Chain Rule

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

    • The Power Rule for functions

    \(h'(x)=n\big(g(x)\big)^{n−1}\cdot g'(x)\)

    Glossary

    Chain Rule
    the Chain Rule defines the derivative of a composite function as the derivative of the outer function evaluated at the inner function times the derivative of the inner function
    3.4: Differentiation Techniques - The Chain Rule (2024)

    FAQs

    How do you answer the chain rule? ›

    The chain rule states that the derivative of f(g(x)) is f'(g(x))⋅g'(x). In other words, it helps us differentiate *composite functions*. For example, sin(x²) is a composite function because it can be constructed as f(g(x)) for f(x)=sin(x) and g(x)=x².

    What is the technique of differentiation chain rule? ›

    The Chain Rule

    To differentiate y=f(g(x)) y = f ( g ( x ) ) , let u=g(x) u = g ( x ) so that we have y as a function of u , y=f(u) y = f ( u ) . Then the chain rule says: dydx=dydu×dudx d y d x = d y d u × d u d x Once you have worked this out, you replace u by g(x) and your answer is now in terms of x .

    What is the chain rule notation? ›

    Chain Rule (Leibniz notation form)

    If y is a differentiable function of u, and u is a differentiable function of x, then y is a differentiable function of x and dydx=dydu⋅dudx.

    What is the chain rule in AP Calculus AB? ›

    The chain rule says that when taking the derivative of a nested function, your answer is the derivative of the outside times the derivative of the inside.

    How to do chain rule for dummies? ›

    All basic chain rule problems follow this basic idea. You do the derivative rule for the outside function, ignoring the inside stuff, then multiply that by the derivative of the stuff. Differentiate the inside stuff. Put the real stuff and its derivative back where they belong.

    What is a chain rule with an example? ›

    In differential calculus, the chain rule is a formula used to find the derivative of a composite function. If y = f(g(x)), then as per chain rule the instantaneous rate of change of function 'f' relative to 'g' and 'g' relative to x results in an instantaneous rate of change of 'f' with respect to 'x'.

    How to know when to use chain rule? ›

    We use the chain rule when differentiating a 'function of a function', like f(g(x)) in general. We use the product rule when differentiating two functions multiplied together, like f(x)g(x) in general.

    How to do chain rule with 3 functions? ›

    When applied to the composition of three functions, the chain rule can be expressed as follows: If h(x)=f(g(k(x))), then h′(x)=f′(g(k(x)))⋅g′(k(x))⋅k′(x).

    How to solve differentiation questions? ›

    Rules of Differentiation:
    1. Sum and Difference : (u(x) ± v(x))'=u'(x)±v'(x)
    2. Product rule: (u(x) × v(x))'=u′(x)×v(x)+u(x)×v′(x)
    3. Quotient Rule : u ( x ) v ( x ) = u ′ ( x ) × v ( x ) − u ( x ) × v ′ ( x ) v ( x ) 2.
    4. Chain Rule: dy(u(x))/dx = dy/du × du/dx.

    What is the chain rule calculator? ›

    Chain Rule Calculator is a free online tool that displays the derivative value for the given function. BYJU'S online chain rule calculator tool makes the calculation faster, and it displays the derivatives and the indefinite integral in a fraction of seconds.

    What is the simplified chain rule? ›

    Chain Rule For Derivatives

    Then we multiply by the derivative of the inside function. Formally, we express the chain rule for derivatives as follows: If f and g are both differentiable functions and F is the composite function defined by F = f(g(x)), then F is differentiable and F' is the product.

    Does chain rule multiply? ›

    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.

    How to differentiate with chain rule? ›

    (i) given y = f(g(x)), identify the functions f(u) and g(x) where u = g(x). (ii) differentiate g and multiply by the derivative of f where it is understood that the argument of f is u = g(x). Example To differentiate y = tanx2 we apply these two stages: (i) first identify f(u) and g(x): f(u) = tanu and g(x) = x2.

    What is the logic behind the chain rule? ›

    The chain rule calculates this derivative by following the chain of events that occur when we change the input to g and observe the resulting change in the output of f. A change in the input to g (the sphere) first causes a change in the output of g (the cube).

    What are the steps in solving the chain rule? ›

    Step 1: Identify The Chain Rule: The function must be a composite function, which means one function is nested over the other. Step 2: Identify the inner function and the outer function. Step 3: Find the derivative of the outer function, leaving the inner function. Step 4: Find the derivative of the inner function.

    How to know when to do chain rule? ›

    We use the chain rule when differentiating a 'function of a function', like f(g(x)) in general. We use the product rule when differentiating two functions multiplied together, like f(x)g(x) in general.

    What is the chain rule logic? ›

    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.

    How do you solve the quotient rule with the chain rule? ›

    The quotient rule could be seen as an application of the product and chain rules. If Q(x) = f(x)/g(x), then Q(x) = f(x) * 1/(g(x)) . You can use the product rule to differentiate Q(x), and the 1/(g(x)) can be differentiated using chain rule with u = g(x), and 1/(g(x)) = 1/u.

    Top Articles
    Latest Posts
    Article information

    Author: Frankie Dare

    Last Updated:

    Views: 6222

    Rating: 4.2 / 5 (73 voted)

    Reviews: 88% of readers found this page helpful

    Author information

    Name: Frankie Dare

    Birthday: 2000-01-27

    Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

    Phone: +3769542039359

    Job: Sales Manager

    Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

    Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.