Skip to main content

Section 3.8 Implicit Differentiation

Learning Objectives.

  • Find the derivative of a complicated function by using implicit differentiation.

  • Use implicit differentiation to determine the equation of a tangent line.

We have already studied how to find equations of tangent lines to functions and the rate of change of a function at a specific point. In all these cases we had the explicit equation for the function and differentiated these functions explicitly. Suppose instead that we want to determine the equation of a tangent line to an arbitrary curve or the rate of change of an arbitrary curve at a point. In this section, we solve these problems by finding the derivatives of functions that define \(y\) implicitly in terms of \(x.\)

Subsection 3.8.1 Implicit Differentiation

In most discussions of math, if the dependent variable \(y\) is a function of the independent variable \(x,\) we express \(y\) in terms of \(x.\) If this is the case, we say that \(y\) is an explicit function of \(x.\) For example, when we write the equation \(y=x^2+1,\) we are defining \(y\) explicitly in terms of \(x.\) On the other hand, if the relationship between the function \(y\) and the variable \(x\) is expressed by an equation where \(y\) is not expressed entirely in terms of \(x,\) we say that the equation defines \(y\) implicitly in terms of \(x.\) For example, the equation \(y- x^2=1\) defines the function \(y=x^2+1\) 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 \(y\) are functions that satisfy the given equation, but that \(y\) is not actually a function of \(x.\)

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

\(y=\sqrt{25- x^2}\) and \(y=\begin{cases} \sqrt{25- x^2} \amp\text{ if }- 5\lt x\lt 0 \\ -\sqrt{25- x^2} \amp \text{ if } 0\lt x\lt 25\end{cases},\) which are illustrated in Figure 3.127, are just three of the many functions defined implicitly by the equation \(x^2+y^2=25.\)

"The circle with radius 5 and center at the origin is graphed fully in one picture. Then, only its segments in quadrants I and II are graphed. Then, only its segments in quadrants III and IV are graphed. Lastly, only its segments in quadrants II and IV are graphed.">
Figure 3.127. The equation \(x^2+y^2=25\) defines many functions implicitly.

If we want to find the slope of the line tangent to the graph of \(x^2+y^2=25\) at the point \((3,4),\) we could evaluate the derivative of the function \(y=\sqrt{25- x^2}\) at \(x=3.\) On the other hand, if we want the slope of the tangent line at the point \((3,- 4),\) we could use the derivative of \(y=-\sqrt{25- x^2}.\) 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 \(\frac{dy}{dx}\) using implicit differentiation is described in the following problem-solving strategy.

Note 3.128. Problem-Solving Strategy: Implicit Differentiation.

To perform implicit differentiation on an equation that defines a function \(y\) implicitly in terms of a variable \(x,\) use the following steps:

  1. Take the derivative of both sides of the equation. Keep in mind that \(y\) is a function of \(x\text{.}\) Consequently, whereas \(\frac{d}{dx}(\sin x)=\cos x,\frac{d}{dx}(\sin y)=\cos y\frac{dy}{dx}\) because we must use the chain rule to differentiate \(\sin y\) with respect to \(x.\)

  2. Rewrite the equation so that all terms containing \(\frac{dy}{dx}\) are on the left and all terms that do not contain \(\frac{dy}{dx}\) are on the right.

  3. Factor out \(\frac{dy}{dx}\) on the left.

  4. Solve for \(\frac{dy}{dx}\) by dividing both sides of the equation by an appropriate algebraic expression.

Example 3.129. Using Implicit Differentiation.

Assuming that \(y\) is defined implicitly by the equation \(x^2+y^2=25,\) find \(\frac{dy}{dx}.\)

Solution.

Follow the steps in the problem-solving strategy.

\begin{align*} \frac{d}{dx}(x^2+y^2)\amp=\frac{d}{dx}(25)\amp\amp\text{ Step 1. Differentiate both sides of the equation. }\\ \frac{d}{dx}(x^2)+\frac{d}{dx}(y^2)\amp= 0 \amp \amp\text{ Step 1.1. Use the sum rule on the left. }\\ \amp \amp \amp \text{ On the right } \frac{d}{dx}(25)=0.\\ 2x+2y\frac{dy}{dx}\amp= 0\amp\amp \text{ Step 1.2. Take the derivatives, so } \frac{d}{dx}(x^2)=2x\\ \amp \amp \amp\text{ and } \frac{d}{dx}(y^2)=2y\frac{dy}{dx}.\\ 2y\frac{dy}{dx}\amp= - 2x\amp\amp \text{ Step 2. Keep the terms with } \frac{dy}{dx} \text{ on the left. }\\ \amp \amp \amp\text{ Move the remaining terms to the right. }\\ \frac{dy}{dx}\amp=- \frac{x}{y}\amp \amp\text{ Step 4. Divide both sides of the equation by }\\ \amp \amp \amp 2y. \text{ (Step 3 does not apply in this case.) } \end{align*}
Note 3.130. Analysis.

Note that the resulting expression for \(\frac{dy}{dx}\) is in terms of both the independent variable \(x\) and the dependent variable \(y.\) Although in some cases it may be possible to express \(\frac{dy}{dx}\) in terms of \(x\) only, it is generally not possible to do so.

Example 3.131. Using Implicit Differentiation to Find a Second Derivative.

Find \(\frac{d^2y}{dx^2}\) if \(x^2+y^2=25.\)

Solution.

In Example 3.129, we showed that \(\frac{dy}{dx}=- \frac{x}{y}.\) We can take the derivative of both sides of this equation to find \(\frac{d^2y}{dx^2}.\)

\begin{align*} \frac{d^2y}{dx^2}\amp=\frac{d}{dy}\left(- \frac{x}{y}\right)\amp\amp\text{ Differentiate both sides of } \frac{dy}{dx}=- \frac{x}{y}.\\ \amp =- \frac{\left(1\cdot y- x\frac{dy}{dx}\right)}{y^2}\amp\amp \text{ Use the quotient rule to find } \frac{d}{dy}\left(- \frac{x}{y}\right).\\ \amp =\frac{-y+x\frac{dy}{dx}}{y^2}\amp \amp \text{ Simplify. }\\ \amp =\frac{-y+x(- \frac{x}{y})}{y^2}\amp\amp \text{ Substitute } \frac{dy}{dx}=- \frac{x}{y}.\\ \amp =\frac{-y^2- x^2}{y^3}\amp\amp \text{ Simplify. } \end{align*}

At this point we have found an expression for \(\frac{d^2y}{dx^2}.\) If we choose, we can simplify the expression further by recalling that \(x^2+y^2=25\) and making this substitution in the numerator to obtain \(\frac{d^2y}{dx^2}=- \frac{25}{y^3}.\)

Subsection 3.8.2 Finding Tangent Lines Implicitly

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 3.132. Finding a Tangent Line to a Circle.

Find the equation of the line tangent to the curve \(x^2+y^2=25\) at the point \((3,- 4).\)

Solution.

Although we could find this equation without using implicit differentiation, using that method makes it much easier. In Example 3.129, we found \(\frac{dy}{dx}=- \frac{x}{y}.\)

The slope of the tangent line is found by substituting \((3,- 4)\) into this expression. Consequently, the slope of the tangent line is \(\frac{dy}{dx}|_{(3,- 4)}=- \frac{3}{-4}=\frac{3}{4}.\)

Using the point \((3,- 4)\) and the slope \(\frac{3}{4}\) in the point-slope equation of the line, we obtain the equation \(y=\frac{3}{4}x- \frac{25}{4}\) (Figure 3.133).

"The circle with radius 5 and center at the origin is graphed. A tangent line is drawn through the point (3, -4)."
Figure 3.133. The line \(y=\frac{3}{4}x- \frac{25}{4}\) is tangent to \(x^2+y^2=25\) at the point (3, - 4).

Example 3.134. Finding the Equation of the Tangent Line to a Curve.

Find the equation of the line tangent to the graph of \(y^3+x^3-3xy=0\) at the point \(\left(\frac{3}{2},\frac{3}{2}\right)\) (Figure 3.135). This curve is known as the folium (or leaf) of Descartes.

"A folium is shown, which is a line that creates a loop that crosses over itself. In this graph, it crosses over itself at (0, 0). Its tangent line from (3/2, 3/2) is shown."
Figure 3.135. Finding the tangent line to the folium of Descartes at \(\left(\frac{3}{2},\frac{3}{2}\right).\)
Solution.

Begin by finding \(\frac{dy}{dx}.\)

\begin{align*} \frac{d}{dx}(y^3+x^3- 3xy)\amp = \frac{d}{dx}(0)\\ 3y^2\frac{dy}{dx}+3x^2- (3y+\frac{dy}{dx}3x)\amp = 0\\ \frac{dy}{dx}\amp = \frac{3y- 3x^2}{3y^2- 3x}. \end{align*}

Next, substitute \(\left(\frac{3}{2},\frac{3}{2}\right)\) into \(\frac{dy}{dx}=\frac{3y- 3x^2}{3y^2- 3x}\) to find the slope of the tangent line:

\begin{equation*} \frac{dy}{dx}|_{\left(\frac{3}{2},\frac{3}{2}\right)}=- 1. \end{equation*}

Finally, substitute into the point-slope equation of the line to obtain

\begin{equation*} y=-x+3. \end{equation*}

Example 3.136. Applying Implicit Differentiation.

In a simple video game, a rocket travels in an elliptical orbit whose path is described by the equation \(4x^2+25y^2=100.\) 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 \(x\)-axis toward \((0,0).\) If the rocket fires a missile when it is located at \((3,\frac{8}{5}),\) where will it intersect the \(x\)-axis?

Solution.

To solve this problem, we must determine where the line tangent to the graph of

\(4x^2+25y^2=100\) at \((3,\frac{8}{5})\) intersects the \(x\)-axis. Begin by finding \(\frac{dy}{dx}\) implicitly.

Differentiating, we have

\begin{equation*} 8x+50y\frac{dy}{dx}=0. \end{equation*}

Solving for \(\frac{dy}{dx},\) we have

\begin{equation*} \frac{dy}{dx}=- \frac{4x}{25y}. \end{equation*}

The slope of the tangent line is \(\frac{dy}{dx}|_{(3,\frac{8}{5})}=- \frac{3}{10}.\) The equation of the tangent line is \(y=- \frac{3}{10}x+\frac{5}{2}.\) To determine where the line intersects the \(x\)-axis, solve \(0=- \frac{3}{10}x+\frac{5}{2}.\) The solution is \(x=\frac{25}{3}.\) The missile intersects the \(x\)-axis at the point \((\frac{25}{3},0).\)

Checkpoint 3.137.

Find the equation of the line tangent to the hyperbola \(x^2- y^2=16\) at the point \((5,3).\)

Hint.

\(\frac{dy}{dx}=\frac{x}{y}\)

Solution.

\(y=\frac{5}{3}x- \frac{16}{3}\)

Subsection 3.8.3 Key Concepts

  • We use implicit differentiation to find derivatives of implicitly defined functions (functions defined by equations).

  • By using implicit differentiation, we can find the equation of a tangent line to the graph of a curve.

This book is a custom edition based on OpenStax Calculus Volume 1. You can download the original for free at https://openstax.org/details/books/calculus-volume-1.