Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.8: Implicit Differentiation

( \newcommand{\kernel}{\mathrm{null}\,}\)

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.

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=x2+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 yx2=1 defines the function y=x2+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=25x2

and

y={25x2,if 25x<025x2,if 0x25

which are illustrated in Figure 3.8.1, are just three of the many functions defined implicitly by the equation x2+y2=25.

1) circle, radius 5. 2) top half of circle; 3) bottom half of circle; 4) Q2 & Q4 part of circle
Figure 3.8.1:The equation x2+y2=25 defines many functions implicitly. Graph 1 is a circle centered at the origin with radius 5. Graph 2 is the upper semicircle of the same circle, extending from x=5 to x=5. Graph 3 is the lower semicircle of the same circle, extending from x=5 to x=5. Graph 4 is the second quadrant and the fourth quadrant portions of the same circle.

If we want to find the slope of the line tangent to the graph of x2+y2=25 at the point (3,4), we could evaluate the derivative of the function y=25x2 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=25x2. 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 dydx 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 ddx(sinx)=cosx and ddx(siny)=cosydydx because we must use the chain rule to differentiate siny with respect to x.
  2. Rewrite the equation so that all terms containing dy/dx are on the left and all terms that do not contain dy/dx are on the right.
  3. Factor out dy/dx on the left.
  4. Solve for dy/dx by dividing both sides of the equation by an appropriate algebraic expression.
Example 3.8.1: Using Implicit Differentiation

Assuming that y is defined implicitly by the equation x2+y2=25, find dydx.

Solution

Follow the steps in the problem-solving strategy.

Table 3.8.1: Problem solving strategy for Example 3.8.1
ddx(x2+y2)=ddx(25) Step 1. Differentiate both sides of the equation.
ddx(x2)+ddx(y2)=0 Step 1.1. Use the sum rule on the left.On the right ddx(25)=0.
2x+2ydydx=0 Step 1.2. Take the derivatives, so ddx(x2)=2x and ddx(y2)=2ydydx.
2ydydx=2x Step 2. Keep the terms with dydx on the left.Move the remaining terms to the right.
dydx=xy Step 4. Divide both sides of the equation by 2y.(Step 3 does not apply in this case.)
Analysis

Note that the resulting expression for dydx is in terms of both the independent variable x and the dependent variable y. Although in some cases it may be possible to express dydx in terms of x only, it is generally not possible to do so.

Watch the accompanying video for a visual demonstration of this concept.
  • Video Length: 2 minutes 38 seconds
  • Context: Implicit Differentiation. Find dydx if x2+y2y3=1
Example 3.8.2: Using Implicit Differentiation and the Product Rule

Assuming that y is defined implicitly by the equation x3siny+y=4x+3, find dydx.

Solution
Table 3.8.2: Problem solving strategy for Example 3.8.2
ddx(x3siny+y)=ddx(4x+3) Step 1: Differentiate both sides of the equation.
ddx(x3siny)+ddx(y)=4 Step 1.1: Apply the sum rule on the left.On the right, ddx(4x+3)=4.
(ddx(x3)siny+ddx(siny)x3)+dydx=4 Step 1.2: Use the product rule to find ddx(x3siny).Observe that ddx(y)=dydx.
3x2siny+(cosydydx)x3+dydx=4 Step 1.3: We know ddx(x3)=3x2.Use the chain rule to obtain ddx(siny)=cosydydx.
x3cosydydx+dydx=43x2siny Step 2: Keep all terms containing dydx on the left. Move all other terms to the right.
dydx(x3cosy+1)=43x2siny Step 3: Factor out dydx on the left.
dydx=43x2sinyx3cosy+1 Step 4: Solve for dydx by dividing both sides of the equation by x3cosy+1.
Example 3.8.3: Using Implicit Differentiation to Find a Second Derivative

Find d2ydx2 if x2+y2=25.

Solution

In Example 3.8.1, we showed that dydx=xy. We can take the derivative of both sides of this equation to find d2ydx2.

d2ydx2=ddy(xy)Differentiate both sides of dydx=xy.=(1yxdydx)y2Use the quotient rule to find ddy(xy).=y+xdydxy2Simplify.=y+x(xy)y2Substitute dydx=xy.=y2x2y3Simplify.

At this point we have found an expression for d2ydx2. If we choose, we can simplify the expression further by recalling that x2+y2=25 and making this substitution in the numerator to obtain d2ydx2=25y3.

Watch the accompanying video for a visual demonstration of this concept.
  • Video Length: 3 minutes 29 seconds
  • Context: This video demonstrates finding the Second Derivative Using Implicit Differentiation: Find d2ydx2 in terms of x and y. y2=2x+y
Exercise 3.8.1

Find dydx for y defined implicitly by the equation 4x5+tany=y2+5x.

Hint

Follow the problem solving strategy, remembering to apply the chain rule to differentiate tany and y2.

Answer

dydx=520x4sec2y2y

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

Find the equation of the line tangent to the curve x2+y2=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.8.1, we found dydx=xy.

The slope of the tangent line is found by substituting (3,4) into this expression. Consequently, the slope of the tangent line is dydx|(3,4)=34=34.

Using the point (3,4) and the slope 34 in the point-slope equation of the line, we obtain the equation y=34x254 (Figure).

Circle radius 5 with center (0,0). Tanget line to circle at (3,-4)Click and drag to move

Figure 3.8.2: The line y=34x254 is tangent to x2+y2=25 at the point (3,4) with a slope of 34.
Example 3.8.5: Finding the Equation of the Tangent Line to a Curve

Find the equation of the line tangent to the graph of y3+x33xy=0 at the point (32,32) (Figure). This curve is known as the folium (or leaf) of Descartes.

Graph of a line that creates a loop that crosses over itself. Tangent line at (1.5,1.5)
Figure 3.8.3: Finding the tangent line to the folium of Descartes at (32,32). The folium of Descartes has a continuous graph containing nearly a straight line with slope 1 in the second and the fourth quadrant. The two sections come together at the origin and form a loop in the first quadrant.
Solution

Begin by finding dydx.

ddx(y3+x33xy)=ddx(0)

3y2dydx+3x2(3y+dydx3x)=0

dydx=3y3x23y23x.

Next, substitute (32,32) into dydx=3y3x23y23x to find the slope of the tangent line:

dydx|(32,32)=1.

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

y=x+3.

Example 3.8.6: Applying Implicit Differentiation

In a simple video game, a rocket travels in an elliptical orbit whose path is described by the equation 4x2+25y2=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,83), where will it intersect the x-axis?

Solution

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

4x2+25y2=100 at (3,83) intersects the x-axis. Begin by finding dydx implicitly.

Differentiating, we have

8x+50ydydx=0.

Solving for dydx,

we have

dydx=4x25y.

The slope of the tangent line is dydx|(3,83)=950. The equation of the tangent line is y=950x+183200. To determine where the line intersects the x-axis, solve 0=950x+183200. The solution is x=613. The missile intersects the x-axis at the point (613,0).

Watch the accompanying video for a visual demonstration of this concept.
  • Video Length: 4 minutes 35 seconds
  • Context: This video demonstrates using implicit differentiation to find the equation of the tangent Line: Find the equation of the tangent line to the graph of 143xy+4yx=x at the point (2,3).
Exercise 3.8.2

Find the equation of the line tangent to the hyperbola x2y2=16 at the point (5,3).

Hint

dydx=xy

Answer

y=53x163

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.

Glossary

Implicit differentiation
This is a technique for computing dydx for a function defined by an equation, accomplished by differentiating both sides of the equation (remembering to treat the variable y as a function) and solving for dydx

Contributors and Attributions

  • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.


This page titled 3.8: Implicit Differentiation is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Doli Bambhania, Rani Fischer, Lisa Mesh, and Danny Tran via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?