MAT291: Lecture 8 - The Chain Rule
Overview
Parinaz Naseri reviews tangent-plane approximation and differentiability, showing that existing partial derivatives do not guarantee differentiability: for a piecewise function at the origin, the error quotient depends on the approach direction. She then develops the multivariable chain rule as a sum over dependency paths and applies it to nested functions of one and several variables, including polar-coordinate substitutions.
Key takeaways
- For f(x,y)=x³/(x²+y²) away from (0,0), with f(0,0)=0, the partial derivatives at the origin are 1 and 0, but the error from the candidate plane z=x has an angle-dependent quotient, so f is not differentiable there.
- Differentiability at (a,b) requires the difference between f(x,y) and its tangent-plane approximation, divided by the distance to (a,b), to tend to zero along every approach direction.
- Differentiability implies continuity and the existence of partial derivatives, but continuity and the mere existence of partial derivatives do not by themselves establish differentiability.
- For z=f(x,y) with x and y depending on t, dz/dt is the sum f_x dx/dt + f_y dy/dt, one product for each dependency path.
- For z=x²−xy, x=s−t, and y=st, applying the multivariable chain rule gives z_t=−2s+2t+2st−s².
- With z=x²−y², x=r cos θ, and y=r sin θ, the chain rule simplifies z_r to 2r cos(2θ).
Chapters
- At a point (a,b), the tangent-plane formula uses f(a,b), f_x(a,b), and f_y(a,b) to approximate f(x,y).
- Differentiability requires the function's error from that plane, divided by the distance to (a,b), to approach zero from every direction.
- When the error quotient tends to zero, the tangent plane is the first-order approximation to the surface.
- For f(x,y)=x^3/(x^2+y^2) away from the origin and f(0,0)=0, the limit definitions give f_x(0,0)=1 and f_y(0,0)=0.
- Those partial derivatives produce the candidate tangent plane z=x.
- The differentiability test reduces to an error quotient with numerator -xy^2 and denominator (x^2+y^2)^(3/2); polar coordinates expose its dependence on the angle.
- Because the error quotient does not approach zero, the function is not differentiable at (0,0), despite having both partial derivatives there.
- Differentiability implies continuity, so discontinuity at a point is enough to rule out differentiability there.
- Continuity alone is not sufficient: a continuous function can still have a corner or another failure of a tangent-plane approximation.
- Naseri's practical checks are to find the partial derivatives, check continuity when useful, and then test whether the plane-error quotient tends to zero.
- When partial derivatives exist, the gradient exists and can be used to calculate directional derivatives; continuity of the partial derivatives is not required for that observation.
- For a nested function such as z=f(x,y), where x and y depend on s and t, the derivative with respect to an input collects every path through the dependency tree.
- Each path contributes a product of derivatives, and the contributions are added; for z_t, the paths are z to x to t and z to y to t.
- The method avoids having to rewrite a complicated top-level function directly in terms of all its lower-level inputs.
- Naseri also announces Monday office hours from 12 to 1 p.m. in room 5102 of the Behan Building.
- With z=x²+xy, x=t², and y=t, the chain rule gives dz/dt = (2x+y)(dx/dt) + x(dy/dt).
- Substituting dx/dt=2t, dy/dt=1, x=t², and y=t yields dz/dt=4t³+3t².
- Direct substitution gives z=t⁴+t³ and the same derivative, illustrating why the chain rule is useful when dependency trees become more complex.
- When z depends on x and y, and both depend on s and t, the formula is z_s = z_x x_s + z_y y_s.
- For the same dependency structure, z_t = z_x x_t + z_y y_t; each partial derivative follows one branch from z to the selected input.
- The notation uses partial derivatives when a quantity depends on multiple variables and ordinary derivatives when it depends on only one.
- Naseri sets z=x²−xy, x=s−t, and y=st, then finds z_x=2x−y and z_y=−x.
- For z_s, the path formula is z_x x_s + z_y y_s, with x_s=1 and y_s=t.
- For z_t, the corresponding factors are x_t=−1 and y_t=s; substituting x=s−t and y=st gives z_t=−2s+2t+2st−s².
- Naseri emphasizes that s and t can remain independent inputs even when both affect x, y, and ultimately z.
- A stock-value analogy illustrates nested dependencies: a company’s performance and geopolitical conditions can each depend on several separate factors.
- The goal is to trace how a chosen input affects the output through each available branch, not to reverse the dependency structure.
- With x=r cos θ and y=r sin θ, the example uses z_x=2x and z_y=−2y.
- The chain rule gives z_r = z_x x_r + z_y y_r, where x_r=cos θ and y_r=sin θ.
- Substitution simplifies the result to z_r=2r(cos² θ−sin² θ)=2r cos(2θ).
Transcript excerpt
0:04 Okay, so let's start with a quick recap on the tangent plane and differentiability of a function at point A and B. Okay, so we said if the partial derivatives of the function f(x,y) exist at point a and b both of them. If they exist then we can draw a plane that contains both of them. Okay, the formula for this plane was f of x y which was the point we were drawing this plane at and then plus the partial derivative to x * x - a plus partial derivative to y * [snorts]
0:58 the y - y. Okay. Now x knot and y not are just coordinates of uh arbitrary input. I can call them a and b. Okay. So if I rewrite the plane equation at point a and b, I would get this formula. This says that the zed of the plane can be written as again zed of the point plus these um partial derivatives multiplied by the difference from the x coordinate and the y-coordinate of the point. We call this the plane that again
1:47 includes both vectors and passes the point. it still hasn't earned a name. But then this plane helps us define differentiability. If we say let's go to the second formula here. If the difference between the function okay around the point a and b [snorts] this is f of x y when x and y are reaching toward a and b f ofxy when x and y are reaching a and b that's the function around point a and b right
2:35 if the function around point a and B minus what is this term? This is exactly the Z of the plane that we wrote above. So this is F of [clears throat] XY minus Z of the plane.
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, Parinaz Naseri.