Kevin Gonzales, Eric Hopkins, Catherine Zimmitti, Cheryl Kane, Modified to fit Applied Calculus from Coordinated Calculus by Nathan Wakefield et. al., Based upon Active Calculus by Matthew Boelkins
Section4.7Derivatives of Functions Given Implicitly
Motivating Questions
What does it mean to say that a curve is an implicit function of \(x\text{,}\) rather than an explicit function of \(x\text{?}\)
How does implicit differentiation enable us to find a formula for \(\displaystyle \frac{dy}{dx}\) when \(y\) is an implicit function of \(x\text{?}\)
In the context of an implicit curve, how can we use \(\displaystyle \frac{dy}{dx}\) to answer important questions about the tangent line to the curve?
This section corresponds to 3.12 Implicit Differentiation in the workbook.
In all of our studies with derivatives so far, we have worked with functions whose formula is given explicitly in terms of \(x\text{.}\) But there are many interesting curves whose equations involving \(x\) and \(y\) are impossible to solve for \(y\) in terms of \(x\text{.}\)
Perhaps the simplest and most natural of all such curves are circles. Because of the circle’s symmetry, for each \(x\)-value that is strictly between the endpoints of the horizontal diameter, there are two corresponding \(y\)-values. For instance, on the left side of Figure 4.7.1 above, we have labeled \(A = (-3,\sqrt{7})\) and \(B = (-3,-\sqrt{7})\text{.}\) These points demonstrate that the circle fails the vertical line test and indicate that it is impossible to represent the circle through a single function of the form \(y = f(x)\text{.}\) However, portions of the circle, such as the highlighted arc that is magnified in the center of Figure 4.7.1, can be represented explicitly as a function of \(x\text{.}\) Moreover, it is evident that the circle is locally linear, so we ought to be able to find a tangent line to the curve at every point. Thus, it makes sense to wonder if we can compute \(\displaystyle \frac{dy}{dx}\) at any point on the circle, even though we cannot write \(y\) explicitly as a function of \(x\text{.}\)
We say that the equation \(x^2 + y^2 = 16\) defines \(y\)implicitly as a function of \(x\text{.}\) The graph of the equation can be broken into pieces where each piece can be defined by an explicit function of \(x\text{.}\) For the circle, we could choose to take the top half as one function of \(x\text{,}\) namely \(y = \sqrt{16 - x^2}\text{,}\) and the bottom half as \(y = -\sqrt{16 - x^2}\text{,}\) both of which are explicit functions. So, the implicit function \(x^2 + y^2 = 16\) defines two explicit functions of \(x \text{.}\)
The righthand curve in Figure 4.7.1 above is called a lemniscate and is just one of many fascinating possibilities for implicitly given curves.
The question we want to address in this section is “how can we find an equation for \(\displaystyle \frac{dy}{dx}\) without an explicit formula for \(y\) in terms of \(x\text{?}\)” The following example reminds us of some ways we can compute derivatives of functions in settings where the function’s formula is not known.
Example4.7.2.
Let \(f\) be a differentiable function of \(x\) whose formula is not known, and recall that \(\displaystyle \frac{d}{dx}[f(x)]\) and \(f'(x)\) are interchangeable notations. Compute the following derivatives; note that each function you must differentiate is a combination of: explicit functions of \(x\text{,}\) the unknown function \(f\text{,}\) and an arbitrary constant \(c\text{.}\)
We begin our exploration of implicit differentiation with the example of the circle described by \(x^2 + y^2 = 16\text{.}\) How can we find a formula for \(\displaystyle \frac{dy}{dx}\text{?}\)
By viewing \(y\) as an implicit function of \(x\text{,}\) we think of \(y\) as some function whose formula \(f(x)\) is unknown, but which we can differentiate. Just as \(y\) represents an unknown formula, so too its derivative with respect to \(x\text{,}\)\(\displaystyle \frac{dy}{dx}\text{,}\) will be (at least temporarily) unknown.
So we view \(y\) as an unknown differentiable function of \(x\) and differentiate both sides of the equation with respect to \(x\text{.}\)
Note carefully the different roles being played by \(x\) and \(y\text{.}\) Because \(x\) is the independent variable, \(\displaystyle \frac{d}{dx} \left[x^2\right] = 2x\text{.}\) But \(y\) is the dependent variable and \(y\) is an implicit function of \(x\text{.}\) Recall Example 4.7.2, where we computed \(\displaystyle \frac{d}{dx}[f(x)^2]\text{.}\) Computing \(\displaystyle \frac{d}{dx}[y^2]\) is the same and requires the chain rule, by which we find that \(\displaystyle \frac{d}{dx}[y^2] = 2y^1 \frac{dy}{dx}\text{.}\) We now have that
It is important to observe that this expression for the derivative involves both \(x\) and \(y\text{.}\) This makes sense because there are two corresponding points on the circle for each value of \(x\) between \(-4\) and \(4\text{,}\) and the slope of the tangent line is different at each of these points.
Example4.7.4.
For the curve given implicitly by \(x^3 + y^2 - 2xy = 2\text{,}\) shown below in Figure 4.7.5, find the slope of the tangent line at \((-1,1)\text{.}\)
We begin by differentiating the curve’s equation implicitly. Taking the derivative of each side with respect to \(x\) yields
For the three derivatives we now must execute, the first uses the power rule, the second requires the chain rule (since \(y\) is an implicit function of \(x\)), and the third necessitates the product rule (again, since \(y\) is a function of \(x\)). Applying these rules, we now find that
We want to solve this equation for \(\displaystyle \frac{dy}{dx}\text{.}\) To do so, we first collect all of the terms involving \(\displaystyle \frac{dy}{dx}\) on one side of the equation.
Note that the expression for \(\displaystyle \frac{dy}{dx}\) depends on both \(x\) and \(y\text{.}\) To find the slope of the tangent line at \((-1,1)\text{,}\) we substitute the coordinates into the formula for \(\displaystyle \frac{dy}{dx}\text{,}\) using the notation
This value matches our visual estimate of the slope of the tangent line shown in Figure 4.7.5.
Example 4.7.4 shows that it is possible when differentiating implicitly to have multiple terms involving \(\displaystyle \frac{dy}{dx}\text{.}\) We use addition and subtraction to collect all terms involving \(\displaystyle \frac{dy}{dx}\) on one side of the equation, then factor to get a single term of \(\displaystyle \frac{dy}{dx}\text{.}\) Finally, we divide to solve for \(\displaystyle \frac{dy}{dx}\text{.}\)
to denote the evaluation of \(\displaystyle \frac{dy}{dx}\) at the point \((a,b)\text{.}\) This is analogous to writing \(f'(a)\) when \(f'\) depends on a single variable.
Example4.7.6.
Consider the curve defined by the equation \(x = y^5 - 5y^3 + 4y\text{,}\) whose graph is pictured below in Figure 4.7.7.
Explain why it is not possible to express \(y\) as an explicit function of \(x\text{.}\)
Use implicit differentiation to find a formula for \(\displaystyle \frac{dy}{dx}\text{.}\)
Use your result from part (b) to find an equation of the line tangent to the graph of \(x = y^5 - 5y^3 + 4y\) at the point \((0, 1)\text{.}\)
Hint.
Does the graph pass the vertical line test?
Note, for instance, that \(\displaystyle \frac{d}{dx}[y^5] = 5y^4\frac{dy}{dx}\text{.}\)
Remember the meaning of \(\displaystyle \left.
\frac{dy}{dx} \right|_{(0,1)}\text{.}\)
Answer.
The graph of the curve fails the vertical line test.
Because the graph of the curve fails the vertical line test, \(y\) cannot be a function of \(x\text{.}\) This also confirms our intuition that there is not an algebraic means by which we can rearrange the equation \(x = y^5 - 5y^3 + 4y\) to write \(y\) in terms of \(x\text{.}\)
We differentiate implicitly, taking the derivative of each side with respect to \(x\text{:}\)
To find an equation of the line tangent to the graph of \(x = y^5 - 5y^3 + 4y\) at the point \((0, 1)\text{,}\) we only need the slope of the tangent line. Hence we compute
\begin{equation*}
y - 1 = -\frac{1}{6}(x-0),
\end{equation*}
or \(y = -\frac{1}{6}x + 1\text{.}\)
Example4.7.8.
For each of the following curves, use implicit differentiation to find \(\frac{dy}{dx}\) and determine the equation of the tangent line at the given point.
\(x^3 - y^3 = 6xy\text{,}\)\((-3,3)\)
\(\ln(y) = x^3 - y+1\text{,}\)\((0,1)\)
\(3x e^{-xy} = y^2\text{,}\)\((0.619,1)\)
Hint.
Note that \(\displaystyle \frac{d}{dx}[6xy]\) requires the product rule.
With \(y\) being a function of \(x\text{,}\)\(\displaystyle \frac{d}{dx}[\ln(y)]\) requires the chain rule.
To calculate \(\displaystyle \frac{d}{dx}[x e^{-xy}]\text{,}\) first use the product rule and temporarily defer computing \(\displaystyle \frac{d}{dx}[e^{-xy}]\text{.}\)
Answer.
\(\frac{dy}{dx} = \frac{3x^2-6y}{3y^2+6x} \text{,}\) and the tangent line has equation \(y - 3 = 1(x+3)\text{.}\)
\(\frac{dy}{dx} = \frac{3x^2 }{\frac{1}{y} + 1}\text{,}\) and the tangent line has equation \(y = 1\text{.}\)
\(\frac{dy}{dx} = \frac{3e^{-xy}-3xye^{-xy}}{2y+3x^2e^{-xy}}\text{,}\) and the tangent line is \(y - 1 = 0.235(x - 0.619)\text{.}\)
Evaluating at the point \((-3,3)\text{,}\) we have \(\left.
\frac{dy}{dx} \right|_{(-3,3)} = \frac{3(-3)^2-6(3)}{3(3)^2 + 6(-3)} = 1\text{.}\) Thus the tangent line has equation \(y - 3 = 1(x+3)\text{,}\) or \(y=x+6\text{.}\)
After differentiating with respect to \(x\text{,}\) we have
On the left side, we need to start with the product rule; the right side requires the chain rule because \(y\) is a function of \(x\text{.}\) Applying these rules gives us
Hence the tangent line equation is \(y-1=0.235(x-0.619)\text{.}\)
Subsection4.7.2Summary
In an equation involving \(x\) and \(y\) where portions of the graph can be defined by explicit functions of \(x\text{,}\) we say that \(y\) is an implicit function of \(x\text{.}\) A good example of such a curve is the unit circle.
We use implicit differentiation to differentiate an implicitly defined function. We differentiate both sides of the equation with respect to \(x\text{,}\) treating \(y\) as a function of \(x\) by applying the chain rule. If possible, we subsequently solve for \(\displaystyle \frac{dy}{dx}\) using algebra.
While \(\displaystyle \frac{dy}{dx}\) may now involve both the variables \(x\) and \(y\text{,}\)\(\displaystyle \frac{dy}{dx}\) still gives the slope of the tangent line to the curve.
Exercises4.7.3Exercises
1.Implicit differentiation in a polynomial equation.
Find \(dy/dx\) in terms of \(x\) and \(y\) if \(x^{5} y - x - 3 y - 1 =0\text{.}\)
\(\displaystyle \frac{dy}{dx} =\)
2.Implicit differentiation in an equation with logarithms.
Find \(\displaystyle \frac{dy}{dx}\) in terms of \(x\) and \(y\) if \(x \ln y + y^{2} = 8 \ln x\text{.}\)
\(\displaystyle \frac{dy}{dx} =\)
3.Slope of the tangent line to an implicit curve.
Find the slope of the tangent to the curve \(x^{2}+xy+y^{2} = 31\) at \((1,5)\text{.}\)
The slope is .
(Enter undef if the slope is not defined at this point.)
4.Equation of the tangent line to an implicit curve.
Use implicit differentiation to find an equation of the tangent line to the curve \(2xy^{3}+xy = 9\) at the point \(\left(3,1\right)\text{.}\)