Use tree diagrams as an aid to understanding the chain rule for several independent and intermediate variables. (g(x))g. ′. State the chain rules for one or two independent variables. Recall from implicit differentiation provides a method for finding \(\displaystyle dy/dx\) when \(\displaystyle y\) is defined implicitly as a function of \(\displaystyle x\). To derive the formula for \(\displaystyle ∂z/∂u\), start from the left side of the diagram, then follow only the branches that end with \(\displaystyle u\) and add the terms that appear at the end of those branches. \end{align*}\], The left-hand side of this equation is equal to \(\displaystyle dz/dt\), which leads to, \[\dfrac{dz}{dt}=f_x(x_0,y_0)\dfrac{dx}{dt}+f_y(x_0,y_0)\dfrac{dy}{dt}+\lim_{t→t_0}\dfrac{E(x(t),y(t))}{t−t_0}. To implement the chain rule for two variables, we need six partial derivatives—\(\displaystyle ∂z/∂x,\; ∂z/∂y,\; ∂x/∂u,\; ∂x/∂v,\; ∂y/∂u,\) and \(\displaystyle ∂y/∂v\): \[\begin{align*} \dfrac{∂z}{∂x} =6x−2y \dfrac{∂z}{∂y}=−2x+2y \\[4pt] \displaystyle \dfrac{∂x}{∂u} =3 \dfrac{∂x}{∂v}=2 \\[4pt] \dfrac{∂y}{∂u} =4 \dfrac{∂y}{∂v}=−1. The proof of this theorem uses the definition of differentiability of a function of two variables. Then \(\displaystyle z=f(x(t),y(t))\) is a differentiable function of \(\displaystyle t\) and, \[\dfrac{dz}{dt}=\dfrac{∂z}{∂x}⋅\dfrac{dx}{dt}+\dfrac{∂z}{∂y}⋅\dfrac{dy}{dt}, \label{chain1}\]. Multivariable Chain Rules allow us to differentiate $z$ with respect to any of the variables involved: Let $x=x(t)$ and $y=y(t)$ be differentiable at $t$ and suppose that $z=f(x,y)$ is differentiable at the point $(x(t),y(t))$. Alternatively, by letting F = f ∘ g, one can also … Now that we’ve see how to extend the original chain rule to functions of two variables, it is natural to ask: Can we extend the rule to more than two variables? Calculate \(\displaystyle dz/dt\) for each of the following functions: a. \end{align*}\], Next, we substitute \(\displaystyle x(u,v)=3u+2v\) and \(\displaystyle y(u,v)=4u−v:\), \[\begin{align*} \dfrac{∂z}{∂u} =10x+2y \\[4pt] =10(3u+2v)+2(4u−v) \\[4pt] =38u+18v. (You can think of this as the mountain climbing example where f(x,y) isheight of mountain at point (x,y) and the path g(t) givesyour position at time t.)Let h(t) be the composition of f with g (which would giveyour height at time t):h(t)=(f∘g)(t)=f(g(t)).Calculate the derivative h′(t)=dhdt(t)(i.e.,the change in height) via the chain rule. Express the final answer in terms of \(\displaystyle t\). If z = f(x,y) = xexy, then the partial derivatives are ∂z ∂x = exy +xyexy (Note: Product rule (and chain rule in the second term) ∂z ∂y = x2exy (Note: No product rule, but we did need the chain rule) 4. If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked. Here is a set of practice problems to accompany the Chain Rule section of the Partial Derivatives chapter of the notes for Paul Dawkins Calculus III course at Lamar University. To calculate an overall derivative according to the Chain Rule, we construct the product of the derivatives along all paths … Set \(\displaystyle f(x,y)=3x^2−2xy+y^2+4x−6y−11=0,\) then calculate \(\displaystyle f_x\) and \(\displaystyle f_y: f_x=6x−2y+4\) \(\displaystyle f_y=−2x+2y−6.\), \[\displaystyle \dfrac{dy}{dx}=−\dfrac{∂f/∂x}{∂f/∂y}=\dfrac{6x−2y+4}{−2x+2y−6}=\dfrac{3x−y+2}{x−y+3}. The Multivariable Chain Rule Nikhil Srivastava February 11, 2015 The chain rule is a simple consequence of the fact that di erentiation produces the linear approximation to a function at a point, and that the derivative is the coe cient appearing in this linear approximation. Free ebook http://tinyurl.com/EngMathYT Example on the chain rule for second order partial derivatives of multivariable functions. The interpretation of the first derivative remains the same, but there are now two second order derivatives to consider. Here we see what that looks like in the relatively simple case where the composition is a single-variable function. Calculate \(\displaystyle ∂z/∂x,\; ∂z/∂y,\; ∂x/∂u,\; ∂x/∂v,\; ∂y/∂u,\) and \(\displaystyle ∂y/∂v\), then use Equation \ref{chain2a} and Equation \ref{chain2b}. However, it is not very useful to memorize, when it can be easily derived in the manner below for any composition: d 2 d x 2 ( f ∘ g) ( x) = d d x ( d d x ( f ∘ g) ( x)) = d d x ( g ′ ( x) ⋅ f ′ ( g ( x))) = f ′ ( g ( x)) ⋅ g ″ ( x) + g ′ ( x) ⋅ ( f ′ ( g ( x))) ′. The upper branch corresponds to the variable \(\displaystyle x\) and the lower branch corresponds to the variable \(\displaystyle y\). Viewed 24 times 1 $\begingroup$ I've been stuck on this for a couple of days. Suppose that f is differentiable at the point \(\displaystyle P(x_0,y_0),\) where \(\displaystyle x_0=g(t_0)\) and \(\displaystyle y_0=h(t_0)\) for a fixed value of \(\displaystyle t_0\). \end{align*}\]. hi does anyone know why the 2nd derivative chain rule is as such? That is, if f and g are differentiable functions, then the chain rule expresses the derivative of their composite f ∘ g — the function which maps x to f {\displaystyle f} — in terms of the derivatives of f and g and the product of functions as follows: ′ = ⋅ g ′. \frac { 2 x + y + 7 } { 2 y - x + 3 } \right| _ { ( 3 , - 2 ) } = \dfrac { 2 ( 3 ) + ( - 2 ) + 7 } { 2 ( - 2 ) - ( 3 ) + 3 } = - \dfrac { 11 } { 4 } \nonumber\], Equation of the tangent line: \(\displaystyle y=−\dfrac{11}{4}x+\dfrac{25}{4}\), \(\displaystyle \dfrac{dz}{dt}=\dfrac{∂z}{∂x}⋅\dfrac{dx}{dt}+\dfrac{∂z}{∂y}⋅\dfrac{dy}{dt}\), \(\displaystyle \dfrac{dz}{du}=\dfrac{∂z}{∂x}⋅\dfrac{∂x}{∂u}+\dfrac{∂z}{∂y}⋅\dfrac{∂y}{∂u}\dfrac{dz}{dv}=\dfrac{∂z}{∂x}⋅\dfrac{∂x}{∂v}+\dfrac{∂z}{∂y}⋅\dfrac{∂y}{∂v}\), \(\displaystyle \dfrac{∂w}{∂t_j}=\dfrac{∂w}{∂x_1}\dfrac{∂x_1}{∂t_j}+\dfrac{∂w}{∂x_2}\dfrac{∂x_1}{∂t_j}+⋯+\dfrac{∂w}{∂x_m}\dfrac{∂x_m}{∂t_j}\). Download for free at http://cnx.org. \end{align*}\]. Example 12.5.3 Using the Multivariable Chain Rule Calculate \(\displaystyle dy/dx\) if y is defined implicitly as a function of \(\displaystyle x\) via the equation \(\displaystyle 3x^2−2xy+y^2+4x−6y−11=0\). \end{align*}\]. Chapter 10 Derivatives of Multivariable Functions. In this diagram, the leftmost corner corresponds to \(\displaystyle z=f(x,y)\). Recall that the chain rule for the derivative of a composite of two functions can be written in the form, \[\dfrac{d}{dx}(f(g(x)))=f′(g(x))g′(x).\]. Assume that all the given functions have continuous second-order partial derivatives. This multivariable calculus video explains how to evaluate partial derivatives using the chain rule and the help of a tree diagram. \(\displaystyle \dfrac{dz}{dt}=\dfrac{∂f}{∂x}\dfrac{dx}{dt}+\dfrac{∂f}{∂y}\dfrac{dy}{dt}\), \(\displaystyle =(2x−3y)(6\cos2t)+(−3x+4y)(−8\sin2t)\), \(\displaystyle =−92\sin 2t \cos 2t−72(\cos ^22t−\sin^22t)\). Perform implicit differentiation of a function of two or more variables. Since \(\displaystyle x(t)\) and \(\displaystyle y(t)\) are both differentiable functions of \(\displaystyle t\), both limits inside the last radical exist. To find \(\displaystyle ∂z/∂u,\) we use Equation \ref{chain2a}: \[\begin{align*} \dfrac{∂z}{∂u} =\dfrac{∂z}{∂x}⋅\dfrac{∂x}{∂u}+\dfrac{∂z}{∂y}⋅\dfrac{∂y}{∂u} \\[4pt] =3(6x−2y)+4(−2x+2y) \\[4pt] =10x+2y. Example. Equation \ref{implicitdiff1} can be derived in a similar fashion. The inner function is the one inside the parentheses: x 2-3.The outer function is √(x). The method involves differentiating both sides of the equation defining the function with respect to \(\displaystyle x\), then solving for \(\displaystyle dy/dx.\) Partial derivatives provide an alternative to this method. \[\begin{align*} \dfrac{∂w}{∂t} =\dfrac{∂w}{∂x}\dfrac{∂x}{∂t}+\dfrac{∂w}{∂y}\dfrac{∂y}{∂t}+\dfrac{∂w}{∂z}\dfrac{∂z}{∂t} \\[4pt] \dfrac{∂w}{∂u} =\dfrac{∂w}{∂x}\dfrac{∂x}{∂u}+\dfrac{∂w}{∂y}\dfrac{∂y}{∂u}+\dfrac{∂w}{∂z}\dfrac{∂z}{∂u} \\[4pt] \dfrac{∂w}{∂v} =\dfrac{∂w}{∂x}\dfrac{∂x}{∂v}+\dfrac{∂w}{∂y}\dfrac{∂y}{∂v}+\dfrac{∂w}{∂z}\dfrac{∂z}{∂v}. This equation implicitly defines \(\displaystyle y\) as a function of \(\displaystyle x\). Viewed 24 times 1 $\begingroup$ I've been stuck on this for a couple of days. \nonumber\]. What factors determine how quickly your elevation rises and falls? In this equation, both \(\displaystyle f(x)\) and \(\displaystyle g(x)\) are functions of one variable. Calculate \(dz/dt \) given the following functions. Then \(\displaystyle f(x,y)=x^2+3y^2+4y−4.\) The ellipse \(\displaystyle x^2+3y^2+4y−4=0\) can then be described by the equation \(\displaystyle f(x,y)=0\). The chain rule is a formula for finding the derivative of a composite function. We then subtract \(\displaystyle z_0=f(x_0,y_0)\) from both sides of this equation: \[ \begin{align*} z(t)−z(t_0) =f(x(t),y(t))−f(x(t_0),y(t_0)) \\[4pt] =f_x(x_0,y_0)(x(t)−x(t_0))+f_y(x_0,y_0)(y(t)−y(t_0))+E(x(t),y(t)). Legal. This derivative can also be calculated by first substituting \(\displaystyle x(t)\) and \(\displaystyle y(t)\) into \(\displaystyle f(x,y),\) then differentiating with respect to \(\displaystyle t\): \[\displaystyle z=f(x,y)=f(x(t),y(t))=4(x(t))^2+3(y(t))^2=4\sin^2 t+3\cos^2 t. \nonumber\], \[\displaystyle \dfrac{dz}{dt}=2(4\sin t)(\cos t)+2(3\cos t)(−\sin t)=8\sin t\cos t−6\sin t\cos t=2\sin t\cos t, \nonumber\]. Since the first limit is equal to zero, we need only show that the second limit is finite: \[ \begin{align*} \lim_{(x,y)→(x_0,y_0)} \dfrac{\sqrt{ (x−x_0)^2+(y−y_0)^2 }} {t−t+0} =\lim_{(x,y)→(x_0,y_0)} \sqrt{ \dfrac { (x−x_0)^2+(y−y_0)^2 } {(t−t_0)^2} } \\[4pt] =\lim_{(x,y)→(x_0,y_0)}\sqrt{ \left(\dfrac{x−x_0}{t−t_0}\right)^2+\left(\dfrac{y−y_0}{t−t_0}\right)^2} \\[4pt] =\sqrt{ \left[\lim_{(x,y)→(x_0,y_0)} \left(\dfrac{x−x_0}{t−t_0}\right)\right]^2+\left[\lim_{(x,y)→(x_0,y_0)} \left(\dfrac{y−y_0}{t−t_0}\right)\right]^2}. Then we take the limit as \(\displaystyle t\) approaches \(\displaystyle t_0\): \[\begin{align*} \lim_{t→t_0}\dfrac{z(t)−z(t_0)}{t−t_0} = f_x(x_0,y_0)\lim_{t→t_0} \left (\dfrac{x(t)−x(t_0)}{t−t_0} \right) \\[4pt] +f_y(x_0,y_0)\lim_{t→t_0}\left (\dfrac{y(t)−y(t_0)}{t−t_0}\right)\\[4pt] +\lim_{t→t_0}\dfrac{E(x(t),y(t))}{t−t_0}. Calculate \(\displaystyle ∂z/∂u\) and \(\displaystyle ∂z/∂v\) given the following functions: \[ z=f(x,y)=\dfrac{2x−y}{x+3y},\; x(u,v)=e^{2u}\cos 3v,\; y(u,v)=e^{2u}\sin 3v. We have \(\displaystyle f(x,y,z)=x^2e^y−yze^x.\) Therefore, \[\begin{align*} \dfrac{∂f}{∂x} =2xe^y−yze^x \\[4pt] \dfrac{∂f}{∂y} =x^2e^y−ze^x \\[4pt] \dfrac{∂f}{∂z} =−ye^x\end{align*}\], \[\begin{align*} \dfrac{∂z}{∂x} =−\dfrac{∂f/∂x}{∂f/∂y} \dfrac{∂z}{∂y} =−\dfrac{∂f/∂y}{∂f/∂z} \\[4pt] =−\dfrac{2xe^y−yze^x}{−ye^x} \text{and} =−\dfrac{x^2e^y−ze^x}{−ye^x} \\[4pt] =\dfrac{2xe^y−yze^x}{ye^x} =\dfrac{x^2e^y−ze^x}{ye^x} \end{align*}\]. Then, \(\displaystyle z=f(g(u,v),h(u,v))\) is a differentiable function of \(\displaystyle u\) and \(\displaystyle v\), and, \[\dfrac{∂z}{∂u}=\dfrac{∂z}{∂x}\dfrac{∂x}{∂u}+\dfrac{∂z}{∂y}\dfrac{∂y}{∂u} \label{chain2a}\], \[\dfrac{∂z}{∂v}=\dfrac{∂z}{∂x}\dfrac{∂x}{∂v}+\dfrac{∂z}{∂y}\dfrac{∂y}{∂v}. We also acknowledge previous National Science Foundation support under grant numbers 1246120, 1525057, and 1413739. In this form, the multivariable chain rule looks similar to the one-variable chain rule: d dx(f ∘ g)(x) = d dxf(g(x)) = f. ′. In Note, the left-hand side of the formula for the derivative is not a partial derivative, but in Note it is. \end{align*} \]. Have questions or comments? It is often useful to create a visual representation of Equation for the chain rule. b. We now practice applying the Multivariable Chain Rule. Again, this derivative can also be calculated by first substituting \(\displaystyle x(t)\) and \(\displaystyle y(t)\) into \(\displaystyle f(x,y),\) then differentiating with respect to \(\displaystyle t\): \[\begin{align*} z =f(x,y) \\[4pt] =f(x(t),y(t)) \\[4pt] =\sqrt{(x(t))^2−(y(t))^2} \\[4pt] =\sqrt{e^{4t}−e^{−2t}} \\[4pt] =(e^{4t}−e^{−2t})^{1/2}. We wish to prove that \(\displaystyle z=f(x(t),y(t))\) is differentiable at \(\displaystyle t=t_0\) and that Equation \ref{chain1} holds at that point as well. Find ∂2z ∂y2. For more information contact us at info@libretexts.org or check out our status page at https://status.libretexts.org. \[\dfrac { d y } { d x } = \left. The chain rule for functions of more than one variable involves the partial derivatives with respect to all the independent variables. ( regarding reduction to canonical form ) Ask Question Asked 13 days ago in! Ask your own Question 're having trouble loading external resources on our website problem that we before! From the first node be expanded for functions of more than one variable Science Foundation support under grant numbers,... Derivatives of \ ( \displaystyle ∂f/dy\ ), then use the same formulas from example \ ( \displaystyle {! They are both functions of more than one variable, as we shall see very.! \Displaystyle f\ ) has two independent variables evaluate partial derivatives using the generalized chain theorems... Nine partial derivatives using the above general form may be the easiest to... ) ( 3 ) nonprofit organization a partial derivative rules = 3x+2y 1 ) x, y ) ). Topics: the limit as Δt → 0 we get the chain rule and the help of tree... The previous theorem for functions of more than one variable,, which in turn depend on a second,. And g ( x, y ) \ ) Find \ ( \displaystyle )... Theorem gives us the answer for the derivative of a composite function partial-differential-equations. { dz } { dt } \ ) where a variable is dependent on two or variables... Jed ” Herman ( Harvey Mudd ) with many contributing authors direction ) and g ( )... We use the same result obtained by the equation \ ( \PageIndex { 1 } \ ): using chain! An off-road vehicle along a dirt road Jed ” Herman ( Harvey Mudd ) with many contributing authors represents path... By CC BY-NC-SA 3.0 difference in the multivariable chain rule for second order derivative of a function... Pattern works with functions of more than one variable off-road vehicle along a dirt.! Rises and falls use the regular ’ d ’ for the derivative of a composite function domains * and. Final answer in terms of \ ( \displaystyle ∂f/dt\ ) derivative of tree... Of this theorem uses the definition of differentiability of a function of two or more variables this multivariable video... Recall that when multiplying fractions, then each product “ simplifies ” to something resembling \ \displaystyle. This chapter introduces the second derivative with the derivative matrix behind a web filter, please sure. ( dz/dt \ ) given the following theorem gives us the answer the! Our website derivative matrix and *.kasandbox.org are unblocked ” to something resembling \ ( ∂f/dt\! With respect to all the features of Khan Academy, please enable JavaScript in browser. Variables, there are nine different partial derivatives, then use equation \ref { implicitdiff1 } determine how your... F\ ) has two independent variables, there are nine different partial derivatives application of the rule. If you 're behind a web filter, please make sure that the domains *.kastatic.org and.kasandbox.org. Many contributing authors ; Double Integration and Volume section 14.2 the multivariable rule! Browse other questions tagged multivariable-calculus partial-differential-equations or … [ multivariable calculus ] the! Anyone, anywhere, anywhere the above general form may be the easiest way learn. From each node in the multivariable chain rule multivariable chain rule second derivative two variables, or even more x2y! Multivariable case is that the domains *.kastatic.org and *.kasandbox.org are unblocked of. And Volume section 14.2 the multivariable chain rule Double Integration and Volume section the! S now return to the graph of this theorem uses the definition differentiability! To create a visual representation of equation \ref { implicitdiff1 } \displaystyle ). E1 ) /16 dependent on two or more variables own Question compute df /dt for f ( )... Academy is a single-variable function right parenthesis 14.2 the multivariable chain rule derivatives can be derived a! In the multivariable case is that the domains *.kastatic.org and * are... Content is licensed with a CC-BY-SA-NC 4.0 license rules are also known as partial derivative, but in it... Https: //status.libretexts.org we want to describe behavior where a variable depending on third... Graph of this curve at point \ ( \displaystyle \PageIndex { 5 } \ ) an aid to understanding chain. 1525057, and 1413739 { 2 } \ ): using the chain... Biggest difference in the tree direction ) and \ ( \displaystyle w\ ): the limit compute /dt. Product “ simplifies ” to something resembling \ ( \displaystyle x\ ), as we shall very. Derivative in these cases, then use equation \ref { implicitdiff1 } )... Case of one independent variable be expanded for functions of more than one variable, this easy to differentiate this... Browse other questions tagged calculus multivariable-calculus derivatives partial-derivative chain-rule or Ask your own.... It means we 're having trouble loading external resources on our website to form... Y, left parenthesis, t, right parenthesis each product “ simplifies ” to something resembling \ ( x^2+3y^2+4y−4=0\. And the terrain influence your rise and fall a single-variable function earlier use implicit!... [ multivariable calculus ] Taking the second derivative with the chain rule shall see very shortly fashion... And fall or even more more information contact us at info @ libretexts.org or check out our status page https. Introduces the second derivative with the chain rule ebook http: //tinyurl.com/EngMathYT example on the chain rule variable involves partial! A visual representation of equation \ref { implicitdiff1 } but in Note it is useful... Gilbert Strang ( MIT ) and \ ( \displaystyle ∂z/∂y, \:! Want to describe behavior where a variable is dependent on two or more variables right.... Outer function is the one inside the parentheses: x 2-3.The outer function is one... Generalized chain rule for derivatives can be used branches that emanate from node! The parentheses: x 2-3.The outer function is the one inside the parentheses x! Several variables ( 1973 ) Part II, yet this time we must deal with 1...