
Chain Rule for Partial Derivatives
Disclaimer: At timestamp 4:19, the equation should read [2s-rt] instead of e^[2s-rt].
In many cases, given a function of two or more variables, each variables could be a function of another variable.
Example
If f(x,y)=2xy+x2−y2 where x(t)=2t+1 and y(t)=cost, evaluate f(x,y) at t=0.
x(0)=2(0)+1=1 and y(0)=cos0=1
So, f(1,1)=2(1)(1)+12−12=2
Chain Rule
Suppose that z=f(x,y) is a differentiable function where x=g(t) and y=h(t), then
dtdz=∂x∂z dtdx+∂y∂z dtdy
Suppose that z=f(x,y) is a differentiable function where x=g(s,t) and y=h(s,t), then
∂s∂z=∂x∂z ∂s∂x+∂y∂z ∂s∂y and ∂t∂z=∂x∂z ∂t∂x+∂y∂z ∂t∂y
Strategy
- Use a “tree diagram” to list all the variables and how they depend on one another
- Consider all possible paths from the top of the tree diagram to the variable you want to differentiate with respect to
- Multiply along the path
- Add the results of different paths
- Which symbol to use?
- When differentiating a variable that depend on 2 or more variables, use the ∂...∂... symbol
- When differentiating a variable that only depends on 1 variable, use the d...d... symbol
Example
If z=exy+3x2y2, x=2s−rt and y=s2t, find ∂r∂z, ∂s∂z, and ∂t∂z
∂r∂z=∂x∂z ∂r∂x+∂y∂z ∂r∂y
∂r∂z=(yex+6y2x)(−t)
∂r∂z=−t(s2te2s−rt+6s4t2(2s−rt))
∂s∂z=∂x∂z ∂s∂x+∂y∂z ∂s∂y
∂s∂z=(yex+6y2x)(2)+(ex+6x2y)(2st)
∂s∂z=2(s2te2s−rt+6s4t2(2s−rt))+(2st)(e2s−rt+6(2s−rt)2s2t)
∂t∂z=∂x∂z ∂t∂x+∂y∂z ∂t∂y
∂s∂z=(yex+6y2x)(−r)+(ex+6x2y)(s2)
∂s∂z=−r(s2te2s−rt+6s4t2(2s−rt))+s2(e2s−rt+6(2s−rt)2s2t)
Practice: Chain Rule
If w=zzyx where x=6u+v, y=uv and z=tanv.
How many terms in ∂u∂w has v in it?
Practice: Chain Rule
Write the chain rule for ∂r∂z and ∂s ∂r∂2z if z=z(f,g), f=f(r,s), g=g(u,v), u=u(r,s), and v=v(s)

Implicit Differentiation
If we rewrite the function y=f(x) as F(x,y)=0, then
dxdy=−FyFx
If we rewrite the function z=f(x,y) as F(x,y,z)=0, then
∂x∂z=−FzFx and ∂y∂z=−FzFy
Example
If x2+y2z−z3=1−x, find ∂x∂z and ∂y∂z.
First we rewrite the function as F(x,y,z)=x2+y2z−z3+x−1=0
∂x∂z=−FzFx=−y2−3z22x+1
∂y∂z=−FzFy=−y2−3z22zy