2026 09 21 Math219 01
Overview
The lecture develops the multivariable chain rule from derivative-matrix multiplication, then turns individual partial derivatives into sums over intermediate-variable paths. It explains why matching derivative symbols cannot be canceled, how renaming variables prevents confusion when composing functions, why arbitrary variable-dependency diagrams may need an identity variable to form a true composition, and how diagrams organize second derivatives in polar coordinates.
Key takeaways
- A single composed partial derivative can be calculated as a sum over intermediate variables, with each term formed from the derivative along one path through the composition.
- Partial derivative symbols that look identical cannot be canceled: each derivative is defined by a specific set of variables held constant.
- When composing functions, give intermediate outputs distinct variable names and rewrite the next function using those names to prevent input-output role confusion.
- A dependency diagram alone does not establish a valid composition; if an output also depends directly on an initial variable, an identity intermediate variable can make the composition structure explicit.
- For second derivatives through a composition, differentiate the first-derivative expression and extend the dependency diagram to include the relevant first partial derivatives as functions of the original inputs.
- In polar coordinates, taking a partial derivative with respect to r holds theta constant, which can simplify terms such as x_r = cos(theta) while leaving product-rule requirements intact when factors depend on r.
Chapters
- For a composition, the derivative matrix is the product of the derivative matrices for the two functions, in the order the changes propagate.
- When the initial input is a single time variable, derivative matrices have one column and represent velocity vectors of parametric curves.
- When the eventual output is a single scalar, the derivative matrix has one row and its action can also be written as a dot product.
- A requested entry of the composition derivative matrix can be computed using only its corresponding row from the first derivative matrix and column from the second.
- For functions taking x variables to y variables and then y variables to z variables, the partial of z_i with respect to x_j is a sum over intermediate y variables.
- The component formula follows directly from row-by-column matrix multiplication, so understanding the matrix structure is more useful than memorizing symbols.
- A factor such as partial y_1 with respect to x_j describes how y_1 changes when x_j changes while other x variables are fixed.
- A factor such as partial z_i with respect to y_1 describes a different scenario, where other y variables are held fixed.
- The repeated y_1 symbols belong to different dependency contexts, so canceling them as if they were fractions gives an invalid chain rule.
- Each term in the component chain rule represents one route by which a change in x_j can contribute to a change in z_i.
- A route through y_1 combines the factor for x_j affecting y_1 with the factor for y_1 affecting z_i.
- Each intermediate variable contributes one term, and the total derivative adds the contributions from all such paths.
- Before composing functions, check that the outputs of the first function are exactly the inputs of the second.
- For the requested partial of z_2 with respect to x_2, the example has intermediate variables y_1 and y_2, yielding one term for each.
- A diagram showing x variables, intermediate y variables, and final z variables makes it easier to identify the terms without writing the full derivative matrices.
- For f(x) = x² followed by a function that cubes its input, the derivative of the outer function must be evaluated at f(x), not at x.
- Renaming the intermediate output from f as y, then writing the outer function in terms of y, makes the composition roles explicit.
- After applying the chain rule, substitute y = x² so the derivative of the composition is expressed in terms of its original input x.
- When a first function takes x and y as inputs, label its outputs with different variables, such as u and v, rather than reusing x and y.
- Rewrite the second function using u and v as its inputs, since those outputs from the first function are what enter the second.
- In the example, the diagram identifies v as the second output of the first function, allowing it to be replaced by its expression in x and y after differentiation.
- The chain rule as established here applies to compositions, where each eventual output depends on the intermediate variables supplied by the preceding function.
- In the example diagram, z_1 depends on x_1 as well as y_1 and y_2, so the displayed dependencies do not directly form the required two-stage composition.
- Without clarifying the roles of the variables, a request such as the partial of z_1 with respect to x_1 can be ambiguous about which quantities are held constant.
- Introduce an intermediate variable x_1 star defined to equal x_1, which changes no function values but makes the stages of the composition explicit.
- The revised diagram separates initial inputs, intermediate variables, and final outputs, allowing the established composition chain rule to apply.
- Once the diagram is fixed, the partial of z_1 with respect to x_1 is written as a sum over the three intermediate-variable paths.
- For z as a function of x and y, with x = r cos(theta) and y = r sin(theta), first compute z_r using the x and y intermediate-variable terms.
- When differentiating z_r with respect to r, theta is held constant, so cos(theta) can be treated as a constant factor in the displayed expression.
- To differentiate z_x with respect to r, add z_x to the dependency diagram as a function of x and y, then apply the chain rule through both x and y.
- If a factor depends on r, use the product rule; the example avoids that extra step only because x_r = cos(theta) has no r dependence.
Transcript excerpt
0:01 Okay, off we go. So, uh here's uh picking up where we were last time. Oh, and don't forget about tennis quiz and tennis code. Clock's ticking and all that. Um so, um yeah, we were talking about the chain rule and we had finished everything before a couple of pages worth of examples for students to read. Frankly, there's not that much going on in these examples. I am going to point out what little there is going on here, but the the the actual computations are very plugandchug. I think y'all can can read that. Uh so first let me uh backtrack just a little bit remind you what the chain rule says. Uh the big idea of the chain rule is that when you compose two functions so you have a multivariable function followed by another multivariable function very critically composed. So what comes out of the first one is exactly no more no
0:50 less exactly what goes into the second one. Right? The Legos have to fit together. uh and then the composition then is the function that starts with the initial inputs and produces the eventual outputs. So with that said uh the derivative matrix for the composition is what you get when you first do what the first functions derivative does and then you do what the second function's derivative does. That's all it says, right? Um each one of these is a factor. If you multiply by a factor, whatever kind of factor it is, right? Matrix, okay, whatever you multiply by a factor and then you multiply by another factor, altogether you have multiplied by the product of those two factors.
1:38 Pretty uh pretty straightforward argument. Um we saw [clears throat] an example last time. So here's the only thing that's really kind of interesting
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Clark Bray Math.