Chain Rule Problem Solution To begin, we must first recall that the total differential of z equals the partialderivative of z in the x direction multiplied by dx plus the partial derivative of z in they direction multiplied by dy. 𝑎) 𝑑𝑧 = 𝑧 𝑥 𝑑𝑥 + 𝑧 𝑦 𝑑𝑦 Now, looking at our formula for z, we see that the partial derivative in the x directionis 2x, and the partial derivative in the y direction is 2y. 𝑑𝑧 = 2𝑥 𝑑𝑥 + 2𝑦 𝑑𝑦 𝑣 Next, we will solve for this partial derivative with respect to x using the chain rule.The chain rule states that whenever we compute a derivative, we can break downthe calculation into smaller steps by working on one term at a time and keeping trackof the relationships between them. So let's create a dependency graph. The equationbelow shows how the variables in my model are interrelated. At the top, we have z. zis a function of x and y, but x is itself a function of both u and v. And y is also afunction of u and v; that is, z depends on x and y. And x and y each jointly depend onu and v—that is, none of these variables can be considered in isolation from anyothers because they all interact with one another. So, it's a little bit complicated, the relationships here. Now, what the chain rule saysis that, if we take a partial derivative of z with respect to u, we have to go through ourdependency graph every way that we can get from z to u. We get a term in oursummation for each one of those. For example, z goes to x goes to u. This meansthat we have partial z, partial x, partial x and partial u. Alternatively, we can also go zgoes to y goes to u , which gives us partial z, partial y and partial y. 𝑏) ∂𝑧 ∂𝑢 = ∂𝑧 ∂𝑥 ∂𝑥∂𝑢 + ∂𝑧 ∂𝑦 ∂𝑦∂𝑢 Now we will compute some of the partial derivatives. Partial z partial x is 2x, whichwe computed earlier. Partial x partial u is 2u; this result makes sense because x wasdefined as u squared minus v squared, so if we take a partial derivative in the udirection, we get 2u by definition. Similarly, partial y partial u is v again because ywas defined as uv; therefore, we take a partial derivative in the u direction to get v.
∂𝑧 ∂𝑢 = 2𝑥 * 2𝑢 + 2𝑦 𝑣 So in fact, this is 4ux plus 2vy: ∂𝑧 ∂𝑢 = 4𝑢𝑥 + 2𝑣𝑦 And that's our partial derivative. So, notice that x is a function of u and v. So, wecould substitute an expression for x using its formula for u and v, but that's not reallynecessary. What's interesting about these problems is how the differentials dependon one another. And we`re perfectly happy with an answer that has mixed variableslike this. Now let us examine the problem under a new light. We will use a different method ofdifferentiation to arrive at the solution. Use total differentials, because the chain rulecan be more intuitively understood when using them. We will compute dz in this caseby differentiating both sides of the equation with respect to z. 𝑑𝑧 = 2𝑥 𝑑𝑥 + 2𝑦 𝑑𝑦 Now we want to use the fact that x is itself a function of u and v. So that's what weneed to do now. Now, d dx equals 2u du minus 2v dv. 𝑑𝑥 = 2𝑢 𝑑𝑢 − 2𝑣 𝑑𝑣 And dy, so remember, y was. uv so taking d of uv, we get v du plus u dv. 𝑑𝑦 = 𝑣 𝑑𝑢 + 𝑢 𝑑𝑣 We now have all the partial derivatives, and we can move on to solving for z. Weonly need to substitute our formulas for dx into the formula for dz and divide by 2. 𝑑𝑧 = 2𝑥(2𝑢 𝑑𝑢 − 2𝑣 𝑑𝑣) So that was this term. And now we have plus 2y. V du plus u dv. 𝑑𝑧 = 2𝑥(2𝑢 𝑑𝑢 − 2𝑣 𝑑𝑣) + 2𝑦(𝑣 𝑑𝑢 + 𝑢 𝑑𝑣) It's just substitution, so now we just expand everything out using-- just expandingthese out. So if we collect all the things involving du, we have 4xu plus 2yv and thiswhole quantity times du. And then if we collect terms in dv, we have 2yu. So that'scoming from here. And then we have a minus 4xv. 𝑑𝑧 = 2𝑥 2𝑢 𝑑𝑢 − 2𝑣 𝑑𝑣 ( ) + 2𝑦 𝑣 𝑑𝑢 + 𝑢 𝑑𝑣 ( ) = 4𝑥𝑢 + 2𝑣𝑦 ( )𝑑𝑢 + 2𝑦𝑢 − 4𝑥𝑣 ( )𝑑𝑣 And now we know that the partial derivative, written as dz/du or dz/dv, is thiscoefficient. So if we write the total differential as (dz/du)+(dz/dv), we can see that itequals the partial derivative of z with respect to u plus the partial derivative of z withrespect to v. 𝑑𝑧 = ∂𝑧 ∂𝑢 𝑑𝑢 + ∂𝑧 ∂𝑣 𝑑𝑣
Let us consider an expression for parcels of the type z partial u. If we let thiscoefficient equal 4xu plus 2, one of these terms is an x, and one is a v, then we canfind that partial z partial u is equal to 4xu plus 2vy. ∂𝑧 ∂𝑢 = 4𝑥𝑢 + 2𝑣𝑦 ( ) Now, just as a sanity check to make sure we've covered this topic well, let's go backto the middle of the board and see that we got the same thing. So 4xu plus 2vy iswhat we concluded for partial z partial u. And now let's go over the two differentmethods and compare them. If you are in a rush, use the dependency graph along with tracing paths from z to u.By multiplying all of the partial derivatives that correspond to each edge and addingthem up, we get an expression. If you have more time, then use the method of totaldifferentials. This requires some basic calculus and some algebraic manipulations.As you saw, this method involved computing a greater number of derivatives thatwere not used in the final answer. However, believe that this method is moreconceptually straightforward than the first.