We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > Calculus Volume 1

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 yy implicitly in terms of xx.

Implicit Differentiation

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

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=25x2y=\sqrt{25-x^2}, y=25x2y = -\sqrt{25-x^2}, and y={25x2if5x<025x2if0x5y=\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}, which are illustrated in (Figure), are just three of the many functions defined implicitly by the equation x2+y2=25x^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 1. The equation x2+y2=25{x}^{2}+{y}^{2}=25 defines many functions implicitly.

If we want to find the slope of the line tangent to the graph of x2+y2=25x^2+y^2=25 at the point (3,4)(3,4), we could evaluate the derivative of the function y=25x2y=\sqrt{25-x^2} at x=3x=3. On the other hand, if we want the slope of the tangent line at the point (3,4)(3,-4), we could use the derivative of y=25x2y=−\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 dydx\frac{dy}{dx} 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 yy implicitly in terms of a variable xx, use the following steps:

  1. Take the derivative of both sides of the equation. Keep in mind that yy is a function of xx. Consequently, whereas ddx(sinx)=cosx,ddx(siny)=cosydydx\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 siny\sin y with respect to xx.
  2. Rewrite the equation so that all terms containing dydx\frac{dy}{dx} are on the left and all terms that do not contain dydx\frac{dy}{dx} are on the right.
  3. Factor out dydx\frac{dy}{dx} on the left.
  4. Solve for dydx\frac{dy}{dx} by dividing both sides of the equation by an appropriate algebraic expression.

Using Implicit Differentiation

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

Answer:

Follow the steps in the problem-solving strategy.

ddx(x2+y2)=ddx(25)Step 1. Differentiate both sides of the equation.ddx(x2)+ddx(y2)=0Step 1.1. Use the sum rule on the left.On the right,ddx(25)=0.2x+2ydydx=0Step 1.2. Take the derivatives, soddx(x2)=2xandddx(y2)=2ydydx.2ydydx=2xStep 2. Keep the terms withdydxon the left.Move the remaining terms to the right.dydx=xyStep 4. Divide both sides of the equation by2y.(Step 3 does not apply in this case.)\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}

Analysis

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

Using Implicit Differentiation and the Product Rule

Assuming that yy is defined implicitly by the equation x3siny+y=4x+3x^3 \sin y+y=4x+3, find dydx\frac{dy}{dx}.

Answer:

ddx(x3siny+y)=ddx(4x+3)Step 1: Differentiate both sides of the equation.ddx(x3siny)+ddx(y)=4Step 1.1: Apply the sum rule on the left.On the right,ddx(4x+3)=4.(ddx(x3)siny+ddx(siny)x3)+dydx=4Step 1.2: Use the product rule to findddx(x3siny).Observe thatddx(y)=dydx.3x2siny+(cosydydx)x3+dydx=4Step 1.3: We knowddx(x3)=3x2.Use thechain rule to obtainddx(siny)=cosydydx.x3cosydydx+dydx=43x2sinyStep 2: Keep all terms containingdydxon theleft. Move all other terms to the right.dydx(x3cosy+1)=43x2sinyStep 3: Factor outdydxon the left.dydx=43x2sinyx3cosy+1Step 4: Solve fordydxby dividing both sides ofthe equation byx3cosy+1.\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}

Using Implicit Differentiation to Find a Second Derivative

Find d2ydx2\frac{d^2 y}{dx^2} if x2+y2=25x^2+y^2=25.

Answer:

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

d2ydx2=ddx(xy)Differentiate both sides ofdydx=xy.=(1yxdydx)y2Use the quotient rule to findddx(xy).=y+xdydxy2Simplify.=y+x(xy)y2Substitutedydx=xy.=y2x2y3Simplify.\begin{array}{lllll} \frac{d^2 y}{dx^2} & =\large \frac{d}{dx}(-\frac{x}{y}) & & & \text{Differentiate both sides of} \, \frac{dy}{dx}=-\frac{x}{y}. \\ & = \large -\frac{(1 \cdot y-x\frac{dy}{dx})}{y^2} & & & \text{Use the quotient rule to find} \, \frac{d}{dx}(-\frac{x}{y}). \\ & = \large \frac{−y+x\frac{dy}{dx}}{y^2} & & & \text{Simplify.} \\ & = \large \frac{−y+x(-\frac{x}{y})}{y^2} & & & \text{Substitute} \, \frac{dy}{dx}=-\frac{x}{y}. \\ & = \large \frac{−y^2-x^2}{y^3} & & & \text{Simplify.} \end{array}

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

Find dydx\frac{dy}{dx} for yy defined implicitly by the equation 4x5+tany=y2+5x4x^5+ \tan y=y^2+5x.

Answer:

dydx=520x4sec2y2y\frac{dy}{dx}=\large \frac{5-20x^4}{\sec^2 y-2y}

Hint

Follow the problem solving strategy, remembering to apply the chain rule to differentiate tany\tan y and y2y^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.

Finding a Tangent Line to a Circle

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

Answer:

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

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

Using the point (3,4)(3,-4) and the slope 34\frac{3}{4} in the point-slope equation of the line, we then solve for yy to obtain the equation y=34x254y=\frac{3}{4}x-\frac{25}{4} ((Figure)).

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

Finding the Equation of the Tangent Line to a Curve

Find the equation of the line tangent to the graph of y3+x33xy=0y^3+x^3-3xy=0 at the point (32,32)(\frac{3}{2},\frac{3}{2}) ((Figure)). 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. Finding the tangent line to the folium of Descartes at (32,32)(\frac{3}{2},\frac{3}{2}).

Answer:

Begin by finding dydx.\frac{dy}{dx}.

ddx(y3+x33xy)=ddx(0)3y2dydx+3x2(3y+3xdydx)=0dydx=3y3x23y23x.\begin{array}{l} \frac{d}{dx}(y^3+x^3-3xy) = \frac{d}{dx}(0) \\ \\ 3y^2\frac{dy}{dx}+3x^2-(3y+3x\frac{dy}{dx}) = 0 \\ \\ \frac{dy}{dx} = \frac{3y-3x^2}{3y^2-3x}. \\ \\ \end{array}

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

dydx(32,32)=1\frac{dy}{dx}|_{(\frac{3}{2},\frac{3}{2})}=-1.

Finally, substitute into the point-slope equation of the line and solve for yy to obtain

y=x+3y=−x+3.

Applying Implicit Differentiation

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

Answer:

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

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

Differentiating, we have

8x+50ydydx=08x+50y\frac{dy}{dx}=0.

Solving for dydx\frac{dy}{dx}, we have

dydx=4x25y\frac{dy}{dx}=-\frac{4x}{25y}.

The slope of the tangent line is dydx(3,83)=950\frac{dy}{dx}|_{(3,\frac{8}{3})}=-\frac{9}{50}. The equation of the tangent line is y=950x+183200y=-\frac{9}{50}x+\frac{183}{200}. To determine where the line intersects the xx-axis, solve 0=950x+1832000=-\frac{9}{50}x+\frac{183}{200}. The solution is x=613x=\frac{61}{3}. The missile intersects the xx-axis at the point (613,0)(\frac{61}{3},0).

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

Answer: y=53x163y=\frac{5}{3}x-\frac{16}{3}

Hint

Using implicit differentiation, you should find that dydx=xy\frac{dy}{dx}=\frac{x}{y}.

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.

For the following exercises, use implicit differentiation to find dydx\frac{dy}{dx}.

1. x2y2=4x^2-y^2=4

2. 6x2+3y2=126x^2+3y^2=12

Answer:

dydx=2xy\frac{dy}{dx}=\frac{-2x}{y}

3. x2y=y7x^2 y=y-7

4. 3x3+9xy2=5x33x^3+9xy^2=5x^3

Answer:

dydx=x3yy2x\frac{dy}{dx}=\frac{x}{3y}-\frac{y}{2x}

5. xycos(xy)=1xy- \cos (xy)=1

6. yx+4=xy+8y\sqrt{x+4}=xy+8

Answer:

dydx=yy2x+4x+4x\frac{dy}{dx}=\large \frac{y-\frac{y}{2\sqrt{x+4}}}{\sqrt{x+4}-x}

7. xy2=x7−xy-2=\frac{x}{7}

8. ysin(xy)=y2+2y \sin(xy)=y^2+2

Answer:

dydx=y2cos(xy)2ysin(xy)xycosxy\frac{dy}{dx}=\large \frac{y^2 \cos(xy)}{2y- \sin(xy)-xy \cos xy}

9. (xy)2+3x=y2(xy)^2+3x=y^2

10. x3y+xy3=8x^3 y+xy^3=-8

Answer: dydx=3x2yy3x3+3xy2\frac{dy}{dx}=\large \frac{-3x^2 y-y^3}{x^3+3xy^2}

For the following exercises, find the equation of the tangent line to the graph of the given equation at the indicated point. Use a calculator or computer software to graph the function and the tangent line.

11. [T] x4yxy3=2,(1,1)x^4 y-xy^3=-2, \, (-1,-1)

12. [T] x2y2+5xy=14,(2,1)x^2 y^2+5xy=14, \, (2,1)

Answer: The graph has a crescent in each of the four quadrants. There is a straight line marked T(x) with slope −1/2 and y intercept 2. y=12x+2y=-\frac{1}{2}x+2

13. [T] tan(xy)=y,(π4,1)\tan (xy)=y, \, (\frac{\pi}{4},1)

14. [T] xy2+sin(πy)2x2=10,(2,3)xy^2 + \sin(\pi y)-2x^2=10, \, (2,-3)

Answer: The graph has two curves, one in the first quadrant and one in the fourth quadrant. They are symmetric about the x axis. The curve in the first quadrant goes from (0.3, 5) to (1.5, 3.5) to (5, 4). There is a straight line marked T(x) with slope 1/(π + 12) and y intercept −(3π + 38)/(π + 12). y=1π+12x3π+38π+12y=\large \frac{1}{\pi +12}x-\frac{3\pi +38}{\pi +12}

15. [T] xy+5x7=34y,(1,2)\frac{x}{y}+5x-7=-\frac{3}{4}y, \, (1,2)

16. [T] xy+sin(x)=1,(π2,0)xy+ \sin (x)=1, \, (\frac{\pi}{2},0)

Answer: The graph starts in the third quadrant near (−5, 0), remains near 0 until x = −4, at which point it decreases until it reaches near (0, −5). There is an asymptote at x = 0. The graph begins again near (0, 5) decreases to (1, 0) and then increases a little bit before decreasing to be near (5, 0). There is a straight line marked T(x) that coincides with y = 0. y=0y=0

17. [T] The graph of a folium of Descartes with equation 2x3+2y39xy=02x^3+2y^3-9xy=0 is given in the following graph. A folium is graphed which has equation 2x3 + 2y3 – 9xy = 0. It crosses over itself at (0, 0).
  1. Find the equation of the tangent line at the point (2,1)(2,1). Graph the tangent line along with the folium.
  2. Find the equation of the normal line to the tangent line in a. at the point (2,1)(2,1).

18. For the equation x2+2xy3y2=0x^2+2xy-3y^2=0,

  1. Find the equation of the normal to the tangent line at the point (1,1)(1,1).
  2. At what other point does the normal line in a. intersect the graph of the equation?

Answer:

a. y=x+2y=−x+2 b. (3,1)(3,-1)

19. Find all points on the graph of y327y=x290y^3-27y=x^2-90 at which the tangent line is vertical.

20. For the equation x2+xy+y2=7x^2+xy+y^2=7,

  1. Find the xx-intercept(s).
  2. Find the slope of the tangent line(s) at the xx-intercept(s).
  3. What does the value(s) in b. indicate about the tangent line(s)?

Answer:

a. (±7,0)(\pm \sqrt{7},0) b. Slope is -2 at both intercepts c. They are parallel since the slope is the same at both intercepts.

21. Find the equation of the tangent line to the graph of the equation sin1x+sin1y=π6\sin^{-1} x+\sin^{-1} y=\frac{\pi}{6} at the point (0,12)(0,\frac{1}{2}).

22. Find the equation of the tangent line to the graph of the equation tan1(x+y)=x2+π4\tan^{-1}(x+y)=x^2+\frac{\pi}{4} at the point (0,1)(0,1).

Answer:

y=x+1y=−x+1

23. Find yy^{\prime} and yy'' for x2+6xy2y2=3x^2+6xy-2y^2=3.

24. [T] The number of cell phones produced when xx dollars is spent on labor and yy dollars is spent on capital invested by a manufacturer can be modeled by the equation 60x3/4y1/4=324060x^{3/4}y^{1/4}=3240.

  1. Find dydx\frac{dy}{dx} and evaluate at the point (81,16)(81,16).
  2. Interpret the result of a.

Answer:

a. -0.5926 b. When $81 is spent on labor and $16 is spent on capital, the amount spent on capital is decreasing by $0.5926 per $1 spent on labor.

25. [T] The number of cars produced when xx dollars is spent on labor and yy dollars is spent on capital invested by a manufacturer can be modeled by the equation 30x1/3y2/3=36030x^{1/3}y^{2/3}=360.

(Both xx and yy are measured in thousands of dollars.)

  1. Find dydx\frac{dy}{dx} and evaluate at the point (27,8)(27,8).
  2. Interpret the result of a.

26. The volume of a right circular cone of radius xx and height yy is given by V=13πx2yV=\frac{1}{3}\pi x^2 y. Suppose that the volume of the cone is 85πcm385\pi \, \text{cm}^3. Find dydx\frac{dy}{dx} when x=4x=4 and y=16y=16.

Answer:

dydx=8\frac{dy}{dx}=-8

For the following exercises, consider a closed rectangular box with a square base with side xx and height yy.

27. Find an equation for the surface area of the rectangular box, S(x,y)S(x,y).

28. If the surface area of the rectangular box is 78 square feet, find dydx\frac{dy}{dx} when x=3x=3 feet and y=5y=5 feet.

Answer:

dydx=2.67\frac{dy}{dx}=-2.67

For the following exercises, use implicit differentiation to determine yy^{\prime}. Does the answer agree with the formulas we have previously determined?

29. x=sinyx= \sin y

30. x=cosyx= \cos y

Answer:

y=11x2y^{\prime}=-\frac{1}{\sqrt{1-x^2}}

31. x=tanyx= \tan y

Glossary

implicit differentiation
is a technique for computing dydx\frac{dy}{dx} for a function defined by an equation, accomplished by differentiating both sides of the equation (remembering to treat the variable yy as a function) and solving for dydx\frac{dy}{dx}

Licenses & Attributions