In this section we compute partial derivatives using the chain rule.
For differentiable functions of one variable, the chain rule states that if , then To extend this to the multi-variable setting, we will need to express this rule in Leibniz notation. If instead of writing we write that where . Then the chain rule becomes
Now, we move to the multi-variable case. If where and are functions of , then ultimately, is a function of . A change in causes a change in both and which in turn causes a change in leading to the following version of the chain rule:
From the chain rule, we have \begin{align*} \frac{dz}{dt} &= \frac{\partial z}{\partial x} \cdot \frac{dx}{dt} + \frac{\partial z}{\partial y} \cdot \frac{dy}{dt}\\ &= \left (2x + 3y\right ) \cdot \left (-20 \sin 5t\right ) + \left (2y + 3x\right ) \cdot \left (20 \cos 5t\right )\\ &= -20(8 \cos 5t + 12 \sin 5t) \cdot \sin 5t + 20 (8 \sin 5t + 12 \cos 5t) \cdot \cos 5t \\ &= -160 \cos 5t \sin 5t -240 \sin ^2 5t + 160 \sin 5t \cos 5t + 240 \cos ^2 5t\\ &= 240 (\cos ^2 5t - \sin ^2 5t)\\ &= 240 \cos 10t \end{align*}
Note, that it may have been easier to find by writing as a function of at the outset: \begin{align*} z &= x^2 + y^2 + 3xy \\ &= 16 \cos ^2 5t + 16 \sin ^2 5t + 48 \cos 5t \sin 5t\\ & = 16 + 24 \sin 10t \end{align*}
Now, the ordinary (single variable) chain rule gives which agrees with our previous answer.
We next look at an extension of the previous chain rule to the case where and are themselves functions of two variables. Let be a function of and and let and both be functions of and . Then is ultimately a function of and and the chain rule says
and
We have: \begin{align*} \frac{\partial z}{\partial s} &= \frac{\partial z}{\partial x} \cdot \frac{\partial x}{\partial s} + \frac{\partial z}{\partial y} \cdot \frac{\partial y}{\partial s}\\ &= (3x^2 + y^4)e^t + 4xy^3\cdot \frac{1}{st} \cdot t\\ &= (3x^2 + y^4)e^t + \frac{4xy^3}{s} \end{align*}
When and , we have and , hence
As for the other partial derivative, we have: \begin{align*} \frac{\partial z}{\partial t} &= \frac{\partial z}{\partial x} \cdot \frac{\partial x}{\partial t} + \frac{\partial z}{\partial y} \cdot \frac{\partial y}{\partial t}\\ &= (3x^2 + y^4)(se^t) + 4xy^3\cdot \frac{1}{st} \cdot s\\ &= se^t(3x^2 + y^4) + \frac{4xy^3}{t} \end{align*}
and
Here is a video solution of problem 2:
0.1 Polar Coordinates
The polar coordinates of a point in the -plane give the distance from the origin and the angle from the positive -axis. The relationship to standard rectangular coordinates is given by
If , then we can rewrite using polar coordinates as and we can use the chain rule to compute the partial derivatives of with respect to and : \begin{align*} \frac{\partial z}{\partial r} &= \frac{\partial z}{\partial x} \cdot \frac{\partial x}{\partial r} + \frac{\partial z}{\partial y} \cdot \frac{\partial y}{\partial r}\\ &= \cos \theta \frac{\partial z}{\partial x} + \sin \theta \frac{\partial z}{\partial y} \end{align*}
and \begin{align*} \frac{\partial z}{\partial \theta } &= \frac{\partial z}{\partial x} \cdot \frac{\partial x}{\partial \theta } + \frac{\partial z}{\partial y} \cdot \frac{\partial y}{\partial \theta }\\ &= -r\sin \theta \frac{\partial z}{\partial x} + r \cos \theta \frac{\partial z}{\partial y} \end{align*}
Working directly with the chain rule, we have and Using the relations and , we can simplify each of these derivatives. However, we can also use these relations before applying the chain rule to write in terms of and . Noting that we have and hence
Here is a video solution of problem 3b:
We have already established that where and are each functions of both and . By the chain rule, we have \begin{align*} z_{rr} &= \cos \theta \frac{\partial }{\partial r} z_x + \sin \theta \frac{\partial }{\partial r} z_y\\ &= \cos \theta \left [z_{xx}\cos \theta + z_{xy} \sin \theta \right ] + \sin \theta \left [ z_{yx} \cos \theta + z_{yy} \sin \theta \right ]\\ &= z_{xx}\cos ^2 \theta + 2z_{xy}\cos \theta \sin \theta + z_{yy}\sin ^2 \theta \end{align*}
Here is a video solution of problem 4:
0.2 General Chain Rule
Suppose and each of the variables for is a function of the variables . Then for , \begin{align*} \frac{\partial z}{\partial t_j} &= \frac{\partial z}{\partial x_1}\frac{\partial x_1}{\partial t_j} + \frac{\partial z}{\partial x_2}\frac{\partial x_2}{\partial t_j} + \cdots + \frac{\partial z}{\partial x_n}\frac{\partial x_n}{\partial t_j}\\ &= \sum _{i = 1}^n \frac{\partial z}{\partial x_i}\frac{\partial x_i}{\partial t_j} \end{align*}
Using the general form of the chain rule, we have