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}} , y = - \sqrt{25 - x^{2}} ,\) and \(\begin{aligned} y = \left{\right. \sqrt{25 - x^{2}} \text{if} - 5 < x < 0 \\ − \sqrt{25 - x^{2}} \text{if} 0 < x < 25 , \end{aligned}\) which are illustrated in Figure 3.30, 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.30 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 \(\left(\right. 3 , 4 \left.\right) ,\) 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 \(\left(\right. 3 , −4 \left.\right) ,\) 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{d y}{d x}\) using implicit differentiation is described in the following problem-solving strategy.

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. Consequently, whereas \(\frac{d}{d x} \left(\right. \text{sin} x \left.\right) = \text{cos} x , \frac{d}{d x} \left(\right. \text{sin} y \left.\right) = \text{cos} y \frac{d y}{d x}\) because we must use the chain rule to differentiate \(\text{sin} y\) with respect to \(x .\)
  2. Rewrite the equation so that all terms containing \(\frac{d y}{d x}\) are on the left and all terms that do not contain \(\frac{d y}{d x}\) are on the right.
  3. Factor out \(\frac{d y}{d x}\) on the left.
  4. Solve for \(\frac{d y}{d x}\) by dividing both sides of the equation by an appropriate algebraic expression.

Example 3.68

Using Implicit Differentiation

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

Solution

Follow the steps in the problem-solving strategy.

\[\frac{d}{d x} \left(\right. x^{2} + y^{2} \left.\right) & = & \frac{d}{d x} \left(\right. 25 \left.\right) & & & \text{Step 1}.\text{ Differentiate both sides of the equation}. \\ \frac{d}{d x} \left(\right. x^{2} \left.\right) + \frac{d}{d x} \left(\right. y^{2} \left.\right) & = & 0 & & & \begin{matrix}\text{Step 1}.\text{1}.\text{ Use the sum rule on the left}. \\ \text{On the right} \frac{d}{d x} \left(\right. 25 \left.\right) = 0 .\end{matrix} \\ 2 x + 2 y \frac{d y}{d x} & = & 0 & & & \begin{matrix}\text{Step 1}.\text{2}.\text{ Take the derivatives},\text{ so} \frac{d}{d x} \left(\right. x^{2} \left.\right) = 2 x \\ \text{and} \frac{d}{d x} \left(\right. y^{2} \left.\right) = 2 y \frac{d y}{d x} .\end{matrix} \\ 2 y \frac{d y}{d x} & = & −2 x & & & \begin{matrix}\text{Step 2}.\text{ Keep the terms with} \frac{d y}{d x} \text{on the left}. \\ \text{Move the remaining terms to the right}.\end{matrix} \\ \frac{d y}{d x} & = & - \frac{x}{y} & & & \begin{matrix}\text{Step 4}.\text{ Divide both sides of the equation by} \\ 2 y . (\text{Step 3 does not apply in this case}.)\end{matrix}\]

Analysis

Note that the resulting expression for \(\frac{d y}{d x}\) 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{d y}{d x}\) in terms of \(x\) only, it is generally not possible to do so.

Example 3.69

Using Implicit Differentiation and the Product Rule

Assuming that \(y\) is defined implicitly by the equation \(x^{3} \text{sin} y + y = 4 x + 3 ,\) find \(\frac{d y}{d x} .\)

Solution

\[\frac{d}{d x} \left(\right. x^{3} \text{sin} y + y \left.\right) & = & \frac{d}{d x} \left(\right. 4 x + 3 \left.\right) & & & \text{Step 1}:\text{ Differentiate both sides of the equation}. \\ \frac{d}{d x} \left(\right. x^{3} \text{sin} y \left.\right) + \frac{d}{d x} \left(\right. y \left.\right) & = & 4 & & & \begin{matrix}\text{Step 1}.\text{1}:\text{ Apply the sum rule on the left}. \\ \text{On the right}, \frac{d}{d x} \left(\right. 4 x + 3 \left.\right) = 4 .\end{matrix} \\ \left(\right. \frac{d}{d x} \left(\right. x^{3} \left.\right) \cdot \text{sin} y + \frac{d}{d x} \left(\right. \text{sin} y \left.\right) \cdot x^{3} \left.\right) + \frac{d y}{d x} & = & 4 & & & \begin{matrix}\text{Step 1}.\text{2}:\text{ Use the product rule to find} \\ \frac{d}{d x} \left(\right. x^{3} \text{sin} y \left.\right) . \text{Observe that} \frac{d}{d x} \left(\right. y \left.\right) = \frac{d y}{d x} .\end{matrix} \\ 3 x^{2} \text{sin} y + \left(\right. \text{cos} y \frac{d y}{d x} \left.\right) \cdot x^{3} + \frac{d y}{d x} & = & 4 & & & \begin{matrix}\text{Step 1}.\text{3}:\text{ We know} \frac{d}{d x} \left(\right. x^{3} \left.\right) = 3 x^{2} . \text{Use the} \\ \text{chain rule to obtain} \frac{d}{d x} \left(\right. \text{sin} y \left.\right) = \text{cos} y \frac{d y}{d x} .\end{matrix} \\ \text{x}^{3} \text{cos} y \frac{d y}{d x} + \frac{d y}{d x} & = & 4 - 3 x^{2} \text{sin} y & & & \begin{matrix}\text{Step 2}:\text{ Keep all terms containing} \frac{d y}{d x} \text{on the} \\ \text{left}.\text{ Move all other terms to the right}.\end{matrix} \\ \frac{d y}{d x} \left(\right. \text{x}^{3} \text{cos} y + 1 \left.\right) & = & 4 - 3 x^{2} \text{sin} y & & & \text{Step 3}:\text{ Factor out} \frac{d y}{d x} \text{on the left}. \\ \frac{d y}{d x} & = & \frac{4 - 3 x^{2} \text{sin} y}{x^{3} \text{cos} y + 1} & & & \begin{matrix}\text{Step 4}:\text{ Solve for} \frac{d y}{d x} \text{by dividing both sides of} \\ \text{the equation by} \text{x}^{3} \text{cos} y + 1 .\end{matrix}\]

Example 3.70

Using Implicit Differentiation to Find a Second Derivative

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

Solution

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

\[\begin{aligned} \frac{d^{2} y}{d x^{2}} & = \frac{d}{d x} \left(\right. - \frac{x}{y} \left.\right) & & & \text{Differentiate both sides of} \frac{d y}{d x} = - \frac{x}{y} . \\ & = - \frac{\left(\right. 1 \cdot y - x \frac{d y}{d x} \left.\right)}{y^{2}} & & & \text{Use the quotient rule to find} \frac{d}{d y} \left(\right. - \frac{x}{y} \left.\right) . \\ & = \frac{− y + x \frac{d y}{d x}}{y^{2}} & & & \text{Simplify}. \\ & = \frac{− y + x \left(\right. - \frac{x}{y} \left.\right)}{y^{2}} & & & \text{Substitute} \frac{d y}{d x} = - \frac{x}{y} . \\ & = \frac{− y^{2} - x^{2}}{y^{3}} & & & \text{Simplify}. \end{aligned}\]

At this point we have found an expression for \(\frac{d^{2} y}{d x^{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^{2} y}{d x^{2}} = - \frac{25}{y^{3}} .\)

Checkpoint 3.48

Find \(\frac{d y}{d x}\) for \(y\) defined implicitly by the equation \(4 x^{5} + \text{tan} y = y^{2} + 5 x .\)

This lesson is part of:

Derivatives

View Full Tutorial

Track Your Learning Progress

Sign in to unlock unlimited practice exams, tutorial practice quizzes, personalized weak area practice, AI study assistance with Lexi, and detailed performance analytics.