Finding the Derivative Using Implicit Differentiation
Learning Outcomes
Recognize the difference between an implicit function and an explicit function
Find the derivative of a complicated function by using implicit differentiation
Use implicit differentiation to determine the equation of a tangent line
What is Implicit Differentiation?
In most discussions of math, if the dependent variable [latex]y[/latex] is a function of the independent variable [latex]x[/latex], we express [latex]y[/latex] in terms of [latex]x[/latex]. If this is the case, we say that [latex]y[/latex] is an explicit function of [latex]x[/latex]. For example, when we write the equation [latex]y=x^2+1[/latex], we are defining [latex]y[/latex] explicitly in terms of [latex]x[/latex]. On the other hand, if the relationship between the function [latex]y[/latex] and the variable [latex]x[/latex] is expressed by an equation where [latex]y[/latex] is not expressed entirely in terms of [latex]x[/latex], we say that the equation defines [latex]y[/latex] implicitly in terms of [latex]x[/latex]. For example, the equation [latex]y-x^2=1[/latex] defines the function [latex]y=x^2+1[/latex] implicitly.
Implicit differentiation allows us to find slopes of tangents to curves that are clearly not functions (they fail the vertical line test). We are using the idea that portions of [latex]y[/latex] are functions that satisfy the given equation, but that [latex]y[/latex] is not actually a function of [latex]x[/latex].
In general, an equation defines a function implicitly if the function satisfies that equation. An equation may define many different functions implicitly. For example, the functions
[latex]y=\sqrt{25-x^2}[/latex], [latex]y = -\sqrt{25-x^2}[/latex], and [latex]y=\begin{cases} \sqrt{25-x^2} & \text{ if } \, -5 \le x < 0 \\ -\sqrt{25-x^2} & \text{ if } \, 0 \le x \le 5 \end{cases}[/latex],
which are illustrated in Figure 1, are just three of the many functions defined implicitly by the equation [latex]x^2+y^2=25[/latex].
Figure 1. The equation [latex]{x}^{2}+{y}^{2}=25[/latex] defines many functions implicitly.
If we want to find the slope of the line tangent to the graph of [latex]x^2+y^2=25[/latex] at the point [latex](3,4)[/latex], we could evaluate the derivative of the function [latex]y=\sqrt{25-x^2}[/latex] at [latex]x=3[/latex]. On the other hand, if we want the slope of the tangent line at the point [latex](3,-4)[/latex], we could use the derivative of [latex]y=−\sqrt{25-x^2}[/latex]. However, it is not always easy to solve for a function defined implicitly by an equation. Fortunately, the technique of implicit differentiation allows us to find the derivative of an implicitly defined function without ever solving for the function explicitly. The process of finding [latex]\frac{dy}{dx}[/latex] using implicit differentiation is described in the following problem-solving strategy.
To perform implicit differentiation on an equation that defines a function [latex]y[/latex] implicitly in terms of a variable [latex]x[/latex], use the following steps:
Take the derivative of both sides of the equation. Keep in mind that [latex]y[/latex] is a function of [latex]x[/latex]. Consequently, whereas [latex]\frac{d}{dx}(\sin x)= \cos x, \, \frac{d}{dx}(\sin y)= \cos y\frac{dy}{dx}[/latex] because we must use the Chain Rule to differentiate [latex]\sin y[/latex] with respect to [latex]x[/latex].
Rewrite the equation so that all terms containing [latex]\frac{dy}{dx}[/latex] are on the left and all terms that do not contain [latex]\frac{dy}{dx}[/latex] are on the right.
Factor out [latex]\frac{dy}{dx}[/latex] on the left.
Solve for [latex]\frac{dy}{dx}[/latex] by dividing both sides of the equation by an appropriate algebraic expression.
Example: Using Implicit Differentiation
Assuming that [latex]y[/latex] is defined implicitly by the equation [latex]x^2+y^2=25[/latex], find [latex]\frac{dy}{dx}[/latex].
Show Solution
Follow the steps in the problem-solving strategy.
[latex]\begin{array}{llll} \frac{d}{dx}(x^2+y^2) = \frac{d}{dx}(25) & & & \text{Step 1. Differentiate both sides of the equation.} \\ \frac{d}{dx}(x^2)+\frac{d}{dx}(y^2) = 0 & & & \begin{array}{l}\text{Step 1.1. Use the sum rule on the left.} \\ \text{On the right,} \, \frac{d}{dx}(25)=0. \end{array} \\ 2x+2y\frac{dy}{dx} = 0 & & & \begin{array}{l}\text{Step 1.2. Take the derivatives, so} \, \frac{d}{dx}(x^2)=2x \\ \text{and} \, \frac{d}{dx}(y^2)=2y\frac{dy}{dx}. \end{array} \\ 2y\frac{dy}{dx} = -2x & & & \begin{array}{l}\text{Step 2. Keep the terms with} \, \frac{dy}{dx} \, \text{on the left.} \\ \text{Move the remaining terms to the right.} \end{array} \\ \frac{dy}{dx} = -\frac{x}{y} & & & \begin{array}{l}\text{Step 4. Divide both sides of the equation by} \\ 2y. \, \text{(Step 3 does not apply in this case.)} \end{array} \end{array}[/latex]
Analysis
Note that the resulting expression for [latex]\frac{dy}{dx}[/latex] is in terms of both the independent variable [latex]x[/latex] and the dependent variable [latex]y[/latex]. Although in some cases it may be possible to express [latex]\frac{dy}{dx}[/latex] in terms of [latex]x[/latex] only, it is generally not possible to do so.
Example: Using Implicit Differentiation and the Product Rule
Assuming that [latex]y[/latex] is defined implicitly by the equation [latex]x^3 \sin y+y=4x+3[/latex], find [latex]\frac{dy}{dx}[/latex].
Show Solution
[latex]\begin{array}{llll}\frac{d}{dx}(x^3 \sin y+y) = \frac{d}{dx}(4x+3) & & & \text{Step 1: Differentiate both sides of the equation.} \\ \frac{d}{dx}(x^3 \sin y)+\frac{d}{dx}(y) = 4 & & & \begin{array}{l}\text{Step 1.1: Apply the sum rule on the left.} \\ \text{On the right,} \, \frac{d}{dx}(4x+3)=4. \end{array} \\ (\frac{d}{dx}(x^3) \cdot \sin y+\frac{d}{dx}(\sin y) \cdot x^3) + \frac{dy}{dx} = 4 & & & \begin{array}{l}\text{Step 1.2: Use the product rule to find} \\ \frac{d}{dx}(x^3 \sin y). \, \text{Observe that} \, \frac{d}{dx}(y)=\frac{dy}{dx}. \end{array} \\ 3x^2 \sin y+(\cos y\frac{dy}{dx}) \cdot x^3 + \frac{dy}{dx} = 4 & & & \begin{array}{l}\text{Step 1.3: We know} \, \frac{d}{dx}(x^3)=3x^2. \, \text{Use the} \\ \text{chain rule to obtain} \, \frac{d}{dx}(\sin y)= \cos y\frac{dy}{dx}. \end{array} \\ x^3 \cos y\frac{dy}{dx}+\frac{dy}{dx} = 4-3x^2 \sin y & & & \begin{array}{l}\text{Step 2: Keep all terms containing} \, \frac{dy}{dx} \, \text{on the} \\ \text{left. Move all other terms to the right.} \end{array} \\ \frac{dy}{dx}(x^3 \cos y+1) = 4-3x^2 \sin y & & & \text{Step 3: Factor out} \, \frac{dy}{dx} \, \text{on the left.} \\ \frac{dy}{dx} = \large \frac{4-3x^2 \sin y}{x^3 \cos y+1} & & & \begin{array}{l}\text{Step 4: Solve for} \, \frac{dy}{dx} \, \text{by dividing both sides of} \\ \text{the equation by} \, x^3 \cos y+1. \end{array} \end{array}[/latex]
Example: Using Implicit Differentiation to Find a Second Derivative
Find [latex]\frac{d^2 y}{dx^2}[/latex] if [latex]x^2+y^2=25[/latex].
Show Solution
In the first example, we showed that [latex]\frac{dy}{dx}=-\frac{x}{y}[/latex]. We can take the derivative of both sides of this equation to find [latex]\frac{d^2 y}{dx^2}[/latex].
At this point we have found an expression for [latex]\frac{d^2 y}{dx^2}[/latex]. If we choose, we can simplify the expression further by recalling that [latex]x^2+y^2=25[/latex] and making this substitution in the numerator to obtain [latex]\frac{d^2 y}{dx^2}=-\frac{25}{y^3}[/latex].
Watch the following video to see the worked solution to Example: Using Implicit Differentiation to Find a Second Derivative.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
Now that we have seen the technique of implicit differentiation, we can apply it to the problem of finding equations of tangent lines to curves described by equations.
Example: Finding a Tangent Line to a Circle
Find the equation of the line tangent to the curve [latex]x^2+y^2=25[/latex] at the point [latex](3,-4)[/latex].
Show Solution
Although we could find this equation without using implicit differentiation, using that method makes it much easier. In an earlier example, we found [latex]\frac{dy}{dx}=-\frac{x}{y}[/latex].
The slope of the tangent line is found by substituting [latex](3,-4)[/latex] into this expression. Consequently, the slope of the tangent line is [latex]\frac{dy}{dx}|_{(3,-4)} =-\frac{3}{-4}=\frac{3}{4}[/latex].
Using the point [latex](3,-4)[/latex] and the slope [latex]\frac{3}{4}[/latex] in the point-slope equation of the line, we then solve for [latex]y[/latex] to obtain the equation [latex]y=\frac{3}{4}x-\frac{25}{4}[/latex] (Figure 2).
Figure 2. The line [latex]y=\frac{3}{4}x-\frac{25}{4}[/latex] is tangent to [latex]x^2+y^2=25[/latex] at the point [latex](3,−4)[/latex].
Example: Finding the Equation of the Tangent Line to a Curve
Find the equation of the line tangent to the graph of [latex]y^3+x^3-3xy=0[/latex] at the point [latex]\left(\frac{3}{2},\frac{3}{2}\right)[/latex] (Figure 3). This curve is known as the folium (or leaf) of Descartes.
Figure 3. Finding the tangent line to the folium of Descartes at [latex](\frac{3}{2},\frac{3}{2})[/latex].
Next, substitute [latex](\frac{3}{2},\frac{3}{2})[/latex] into [latex]\frac{dy}{dx}=\frac{3y-3x^2}{3y^2-3x}[/latex] to find the slope of the tangent line:
Finally, substitute into the point-slope equation of the line and solve for [latex]y[/latex] to obtain
[latex]y=−x+3[/latex]
Example: Applying Implicit Differentiation
In a simple video game, a rocket travels in an elliptical orbit whose path is described by the equation [latex]4x^2+25y^2=100[/latex]. The rocket can fire missiles along lines tangent to its path. The object of the game is to destroy an incoming asteroid traveling along the positive [latex]x[/latex]-axis toward [latex](0,0)[/latex]. If the rocket fires a missile when it is located at [latex]\left(3,\frac{8}{5}\right)[/latex], where will it intersect the [latex]x[/latex]-axis?
Show Solution
To solve this problem, we must determine where the line tangent to the graph of
[latex]4x^2+25y^2=100[/latex] at [latex](3,\frac{8}{5})[/latex] intersects the [latex]x[/latex]-axis. Begin by finding [latex]\frac{dy}{dx}[/latex] implicitly.
Differentiating, we have
[latex]8x+50y\frac{dy}{dx}=0[/latex]
Solving for [latex]\frac{dy}{dx}[/latex], we have
[latex]\dfrac{dy}{dx}=-\dfrac{4x}{25y}[/latex]
The slope of the tangent line is [latex]\frac{dy}{dx}|_{(3,\frac{8}{5})}=-\frac{3}{10}[/latex]. The equation of the tangent line is [latex]y=-\frac{3}{10}x+\frac{5}{2}[/latex]. To determine where the line intersects the [latex]x[/latex]-axis, solve [latex]0=-\frac{3}{10}x+\frac{5}{2}[/latex]. The solution is [latex]x=\frac{25}{3}[/latex]. The missile intersects the [latex]x[/latex]-axis at the point [latex](\frac{25}{3},0)[/latex].
Watch the following video to see the worked solution to Example: Finding the Equation of the Tangent Line to a Curve.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.