1 Review of the chain rule
Implicit differentiation is really just an application of the chain rule. So recall:
Of particular use in this section is the following. If \(y\) is a differentiable function of \(x\) and if \(f\) is a differentiable function, then
2 Implicit differentiation
The functions we’ve been dealing with so far have been defined explicitly in terms of the independent variable. For example:
However, this is not always necessary or even possible to do. Sometimes we choose to or we have to define a function implicitly . In this case, the dependent variable is not stated explicitly in terms of an independent variable. Some examples are:
Your inclination might be simply to solve each of these equations for \(y\) and go merrily on your way. However, this can be difficult or even impossible to do. Since we are often faced with a problem of computing derivatives of such functions, we need a method that will enable us to compute derivatives of implicitly defined functions.
We’ll start with a basic example.
- (a)
- Find the slope of the line tangent to the circle at the point \(\left (\frac {\sqrt {2}}{2},\frac {\sqrt {2}}{2}\right )\).
The curve defined by the equation \(x^2 + y^2 = 1\) is not a graph of a function. If we solve for \(y\), we obtain two solutions: \(y=\sqrt {1-x^2}\) and \(y=-\sqrt {1-x^2}\). The point \(\left (\frac {\sqrt {2}}{2},\frac {\sqrt {2}}{2}\right )\) lies on the graph of the function \(f(x)=\sqrt {1-x^2}\). Let’s compute the derivative of \(f\).
\[ f'(x)=\frac {\answer {-2x}}{2\sqrt {1-x^2}} \]Therefore, the slope of the tangent line at the point \(\left (\frac {\sqrt {2}}{2},\frac {\sqrt {2}}{2}\right )\) is given by\[ \text {slope}=f'\left (\frac {\sqrt {2}}{2}\right )=\answer {-1} \] - (b)
- Find the slope of the line tangent to the circle at the point \(\left (\frac {\sqrt {2}}{2},-\frac {\sqrt {2}}{2}\right )\).
\[ f'(x)=\frac {\answer {2x}}{2\sqrt {1-x^2}} \]Therefore, the slope of the tangent line at the point \(\left (\frac {\sqrt {2}}{2},-\frac {\sqrt {2}}{2}\right )\) is given by\[ \text {slope}=f'\left (\frac {\sqrt {2}}{2}\right )=\answer {1} \]
Notice that we had to differentiate twice, not to mention that we had to first solve for \(y\) in terms of \(x\) in order to compute these two slopes.
Let’s take a different approach, namely let’s use implicit differentiation.
- (a)
- Compute \(\frac {dy}{dx}\).
- (b)
- Find the slope of the line tangent to the circle at \(\left (\frac {\sqrt {2}}{2},\frac {\sqrt {2}}{2}\right )\).
- (c)
- Find the slope of the line tangent to the circle at \(\left (\frac {\sqrt {2}}{2},-\frac {\sqrt {2}}{2}\right )\).
The curve defined by the equation \(x^2 + y^2 = 1\) is not a graph of a function. If we solve for \(y\), we obtain two solutions: \(y=\sqrt {1-x^2}\) and \(y=-\sqrt {1-x^2}\). Therefore, we can say that any point \((x,y)\) on the curve lies on the graph of some function \(f\). Starting with
Putting this together, we are left with the equation
Remark: Notice that the derivative \(\frac {dy}{x} \) is expressed in terms of both variables \(x\) and \(y\). This should not come as a surprise. If you think about it, the function and its derivative are not determined solely by the value of \(x\). Recall what happens if \(x=\frac {\sqrt {2}}{2}\).
The advantage of the expression for \(\frac {dy}{x} \) that we obtained above is that it can be used for computation of the slope of the tangent line at each of these two points, and at any other point on the curve, where defined.
So, for the second part of the problem, we simply plug \(x=\frac {\sqrt {2}}{2}\) and \(y=\frac {\sqrt {2}}{2}\) into the expression above, hence the slope of the tangent line at this point is \(\answer [given]{-1}\). For the third part of the problem, we simply plug \(x=\frac {\sqrt {2}}{2}\) and \(y=-\frac {\sqrt {2}}{2}\) into the expression above, hence the slope of the tangent line at this point is \(\answer [given]{1}\).
We can confirm our results by looking at the graph of the curve and our tangent line:
Let’s see another illustrative example:
- (a)
- Compute \(\frac {dy}{dx}\).
- (b)
- Find the slope of the line tangent to this curve at \((4,2)\).
Considering the final term \(\frac {d}{dx} 9xy\), we assume that \(y=f(x)\), on some interval \(I\). Hence \begin{align*} \frac {d}{dx} 9xy &= 9\frac {d}{dx} \Bigl (x\cdot f(x)\Bigr ) \\ &= 9 \left (x\cdot f'(x) + f(x)\right )\\ &= 9x \frac {dy}{dx} + 9y. \end{align*}
Putting this all together we are left with the equation
For the second part of the problem, we simply plug \(x=4\) and \(y=2\) into the formula above, hence the slope of the tangent line at \((4,2)\) is \(\frac {5}{4}\). We’ve included a plot for your viewing pleasure:
You might think that the step in which we solve for \(\frac {dy}{dx}\) could sometimes be difficult. In fact, this never happens. All occurrences \(\frac {dy}{dx}\) arise from applying the chain rule, and whenever the chain rule is used it deposits a single \(\frac {dy}{dx}\) multiplied by some other expression. Hence our expression is linear in \(\frac {dy}{dx}\), it will always be possible to group the terms containing \(\frac {dy}{dx}\) together and factor out the \(\frac {dy}{dx}\), just as in the previous examples.
One more last example:
Grouping terms, factoring, and dividing finally gives us \begin{align*} -x^2 y \sin (xy) \frac {dx}{dy} &+ y \frac {dx}{dy} - 8x^3y^3 \frac {dx}{dy} \\ &= x^3 \sin (xy) + x + 12x^4 y^2 \end{align*}
so,