Skip to main content

Section 4.5 The Chain Rule and Implicit Differentiation

References.

Introduction.

Since the partial derivatives of any given function can be computed using the rules for ordinary derivatives, we do not really need any new rules for the derivative of compositions.
However, in practice there is a nice pattern, and by stating this as a rule, time and effort can be saved in computing partial derivatives, including an easier version of implicit differentiation.

Topics.

Subsection 4.5.1 The Chain Rule

The last version emphasizes that the derivatives of \(f\) are evaluated with the same arguments as \(f\text{.}\)
The variables \(x\) and \(y\) here are independent variables of \(f\) but dependent variables of \(g\) and \(h\text{:}\) they are called intermediate variables in this composition, to distinguish from the independent variable \(t\) of the composition.
Adding an extra independent variable to the functions \(g\) and \(h\) simply turns the above ordinary derivative \(dz/dt\) into a partial derivative \(\partial z / \partial t\) and adds a second partial derivative:
The variables \(x\) and \(y\) here are independent variables of \(f\) and dependent variables of \(g\) and \(h\text{:}\) they are called intermediate variables in this composition, to distinguish from the independent variables \(s\) and \(t\text{.}\)
There is nothing special about \(f\) having two variables: the above rules extend to \(z=f(x_1,x_2,\dots x_n)\text{.}\)
Also, there is nothing special about these \(n\) intermediate variables being functions of one or two variables as in the two cases above. They can instead be functions of \(m\) intermediate variables \(t_1 \dots t_m\text{.}\)
The following final version of the Chain Rule includes the above two cases, along with the Chain Rule for functions of a single variable:

Subsection 4.5.2 Implicit Differentiation Made Easy

The method of implicit differentiation introduced in an introductory calculus course (see Section 3.6 of Calculus, Early Transcendentals by Stewart or Section 3.8 of OpenStax Calculus Volume 1
 5 
openstax.org/books/calculus-volume-1/pages/3-8-implicit-differentiation
) can be expedited using the Chain Rule for a function of two variables.
Suppose that a function \(y=f(x)\) is specified implicitly, as the solution of an equation in \(x\) and \(y\text{.}\) That equation can be written in terms of a function \(F\) of two variables, as \(F(x,y)=0\text{.}\) Applying the Chain Rule, but now with \(x\) as the independent variable, \(F(x,f(x))=0\) and so \(\ds\frac{d F}{d x} = 0\text{,}\) but also the Chain Rule gives
\begin{equation*} 0 = \frac{d F}{d x} = \frac{\partial F}{\partial x}\frac{d x}{d x} + \frac{\partial F}{\partial y}\frac{d y}{d x} = \frac{\partial F}{\partial x} + \frac{\partial F}{\partial y}\frac{d y}{d x}. \end{equation*}
Solving gives
\begin{equation} \frac{d y}{d x} = - \frac{\partial F / \partial x}{\partial F / \partial y} = - \frac{F_x}{F_y}.\tag{4.5.1} \end{equation}
Note the difference between \(\ds\frac{dF}{dx}\) and \(\ds\frac{\partial F}{\partial x}\text{.}\)

Example 4.5.4.

If \(y=f(x)\) is defined by the equation \(x^2 + xy^3 + \sin y = 0\text{,}\) the form \(F(x,y)=0\) has
\begin{equation*} \frac{\partial F}{\partial x} = 2x+y^3, \quad\frac{\partial F}{\partial y} = 3xy^2 + \cos y, \end{equation*}
so
\begin{equation*} \frac{d y}{d x} = - \frac{F_x}{F_y} = - \frac{2x+y^3}{3xy^2 + \cos y} \end{equation*}
This is the result one would get with implicit differentiation, but all the equation solving has been done in advance in (4.5.1), so no longer needs to be done each time.

Subsection 4.5.3 The Implicit Function Theorem

So far it has been assumed that the equation \(F(x,y(x))=0\) determines a differentiable function \(y=f(x)\text{.}\)
This is not always true; there can be:
  1. multiple solutions, describing different parts of the curve \(F(x,y)=0\text{,}\) and
  2. points where that curve has a vertical tangent, so no finite value of \(dy/dx\) is possible.
The precise conditions are as follows:
Note that in each case, the non-zero derivative condition is merely what is needed for the formulas for the derivatives along the curve to make sense!
A refinement of this will be seen in Theorem 4.6.2 of Section 4.6.

Subsection 4.5.4 Implicitly Defined Functions of Several Variables

A function \(z=f(x,y)\) of two variables is sometimes specified as the solution of an equation \(F(x,y,z)=0\text{:}\) for example the function describing a quadric surface, or at least part of such a surface.
The Chain Rule can again be used to compute the partial derivatives of \(f\text{.}\)
(Aside: These partial derivatives help describe the tangent plane at a point on the surface \(F(x,y,z)=0\) by giving components of a normal vector to the tangent plane, which will be useful in studying surfaces defined by equations.)
For such a function \(f\text{,}\) \(u(x,y)=F(x,y,f(x,y))=0\) so both partial derivatives of this composition are zero: \(u_x = u_y=0\text{.}\)
The Chain Rule gives
\begin{equation*} \frac{\partial u}{\partial x} = 0 = \frac{\partial F}{\partial x} \frac{\partial x}{\partial x} + \frac{\partial F}{\partial y} \frac{\partial y}{\partial x} + \frac{\partial F}{\partial z} \frac{\partial z}{\partial x}. \end{equation*}
and a similar result for \(u_y\text{.}\)
A strange thing here is that \(x\) and \(y\) are the independent variables of \(u\) and are also two of the three intermediate variables.
Clearly intermediate variable \(y\) does not depend on independent variable \(x\text{,}\) so \(\partial y /\partial x = 0\text{,}\) and also \(\partial x /\partial x = 1\text{.}\) Thus
\begin{equation*} \frac{\partial F}{\partial x} + \frac{\partial F}{\partial z} \frac{\partial z}{\partial x} = 0. \end{equation*}
This and a similar calculation based on \(u_y=0\) give
\begin{equation} \frac{\partial z}{\partial x} = - \frac{\partial F / \partial x}{\partial F / \partial z}, \quad \frac{\partial z}{\partial y} = - \frac{\partial F / \partial y}{\partial F / \partial z}.\tag{4.5.2} \end{equation}
Again this is valid at a point \((x_0,y_0,z_0)\) if the following version of the Implicit Function Theorem applies:
A refinement of this will be seen in Theorem 4.6.4.

Study Guide.

Study Section 4.5 of OSC3
 7 
openstax.org/books/calculus-volume-3/pages/4-5-the-chain-rule
; including
  • All Theorems, Examples and Checkpoints.
  • One or several exercises from each of the following ranges or groups: 215 or 218; 216, 217, 219 or 220; 227, 230–238, 256.