Skip to main content
Logo image

Active Calculus

Section 2.7 Derivatives of Functions Given Implicitly

In all of our studies with derivatives so far, we have worked with functions whose formula is given explicitly in terms of x. But there are many interesting curves whose equations involving x and y are impossible to solve for y in terms of x.
Figure 2.7.1. At left, the circle given by x2+y2=16. In the middle, the portion of the circle x2+y2=16 that has been highlighted in the box at left. And at right, the curve given by x3y3=6xy.
Perhaps the simplest and most natural of all such curves are circles. Because of the circle’s symmetry, for each x value strictly between the endpoints of the horizontal diameter, there are two corresponding y-values. For instance, in Figure 2.7.1, we have labeled A=(3,7) and B=(3,7), and these points demonstrate that the circle fails the vertical line test. Hence, it is impossible to represent the circle through a single function of the form y=f(x). But portions of the circle can be represented explicitly as a function of x, such as the highlighted arc that is magnified in the center of Figure 2.7.1. Moreover, it is evident that the circle is locally linear, so we ought to be able to find a tangent line to the curve at every point. Thus, it makes sense to wonder if we can compute dydx at any point on the circle, even though we cannot write y explicitly as a function of x.
We say that the equation x2+y2=16 defines y implicitly as a function of x. The graph of the equation can be broken into pieces where each piece can be defined by an explicit function of x. For the circle, we could choose to take the top half as one explicit function of x, namely y=16x2 and the bottom half as the explicit function y=16x2. The equation for the circle defines an implicit function of x.
The righthand curve in Figure 2.7.1 is called the folium of Descartes and is just one of many fascinating possibilities for implicitly given curves.
How can we find an equation for dydx without an explicit formula for y in terms of x? The following preview activity reminds us of some ways we can compute derivatives of functions in settings where the function’s formula is not known.

Preview Activity 2.7.1.

Let f be a differentiable function of x (whose formula is not known) and recall that ddx[f(x)] and f(x) are interchangeable notations. Using the f notation, determine the following derivative in terms of x and the unknown function f.
Be sure to type the multiplication symbol between variables or constants and f or f.
ddx[x2+f(x)]=
ddx[x2f(x)]=
ddx[c+x+(f(x))2]=
ddx[f(x2)]=
ddx[xf(x)+f(cx)+cf(x)]=

Subsection 2.7.1 Implicit Differentiation

We begin our exploration of implicit differentiation with the example of the circle given by x2+y2=16. How can we find a formula for dydx?
By viewing y as an implicit function of x, we think of y as some function whose formula f(x) is unknown, but which we can differentiate. Just as y represents an unknown formula, so too its derivative with respect to x, dydx, will be (at least temporarily) unknown.
So we view y as an unknown differentiable function of x and differentiate both sides of the equation with respect to x.
ddx[x2+y2]=ddx[16].
On the right, the derivative of the constant 16 is 0, and on the left we can apply the sum rule, so it follows that
ddx[x2]+ddx[y2]=0.
Note carefully the different roles being played by x and y. Because x is the independent variable, ddx[x2]=2x. But y is the dependent variable and y is an implicit function of x. Recall Preview Activity 2.7.1, where we computed ddx[f(x)2]. Computing ddx[y2] is the same, and requires the chain rule, by which we find that ddx[y2]=2y1dydx. We now have that
2x+2ydydx=0.
We solve this equation for dydx by subtracting 2x from both sides and dividing by 2y.
dydx=2x2y=xy.
There are several important things to observe about the result that dydx=xy. First, this expression for the derivative involves both x and y. This makes sense because there are two corresponding points on the circle for each value of x between 4 and 4, and the slope of the tangent line is different at each of these points.
Second, this formula is entirely consistent with our understanding of circles. The slope of the radius from the origin to the point (a,b) is mr=ba. The tangent line to the circle at (a,b) is perpendicular to the radius, and thus has slope mt=ab, as shown in Figure 2.7.2. In particular, the slope of the tangent line is zero at (0,4) and (0,4), and is undefined at (4,0) and (4,0). All of these values are consistent with the formula dydx=xy.
Figure 2.7.2. The circle given by x2+y2=16 with point (a,b) on the circle and the tangent line at that point, with labeled slopes of the radial line, mr, and tangent line, mt.

Example 2.7.3.

For the curve given implicitly by x3+y22xy=2, shown in Figure 2.7.4, find the slope of the tangent line at (1,1).
Figure 2.7.4. The curve x3+y22xy=2.
Solution.
We begin by differentiating the curve’s equation implicitly. Taking the derivative of each side with respect to x,
ddx[x3+y22xy]=ddx[2],
by the sum rule and the fact that the derivative of a constant is zero, we have
ddx[x3]+ddx[y2]ddx[2xy]=0.
For the three derivatives we now must execute, the first uses the simple power rule, the second requires the chain rule (since y is an implicit function of x), and the third necessitates the product rule (again since y is a function of x). Applying these rules, we now find that
3x2+2ydydx[2xdydx+2y]=0.
We want to solve this equation for dydx. To do so, we first collect all of the terms involving dydx on one side of the equation.
2ydydx2xdydx=2y3x2.
Then we factor the left side to isolate dydx.
dydx(2y2x)=2y3x2.
Finally, we divide both sides by (2y2x) and conclude that
dydx=2y3x22y2x.
Note that the expression for dydx depends on both x and y. To find the slope of the tangent line at (1,1), we substitute the coordinates into the formula for dydx, using the notation
dydx|(1,1)=2(1)3(1)22(1)2(1)=14.
This value matches our visual estimate of the slope of the tangent line shown in Figure 2.7.4.
Example 2.7.3 shows that it is possible when differentiating implicitly to have multiple terms involving dydx. We use addition and subtraction to collect all terms involving dydx on one side of the equation, then factor to get a single term of dydx. Finally, we divide to solve for dydx.
We use the notation
dydx|(a,b)
to denote the evaluation of dydx at the point (a,b). This is analogous to writing f(a) when f depends on a single variable.
There is a big difference between writing ddx and dydx. For example,
ddx[x2+y2]
gives an instruction to take the derivative with respect to x of the quantity x2+y2, presumably where y is a function of x. On the other hand,
dydx(x2+y2)
means the product of the derivative of y with respect to x with the quantity x2+y2. Understanding this notational subtlety is essential.

Activity 2.7.2.

Consider the curve defined by the equation x=y55y3+4y, whose graph is pictured in Figure 2.7.5.
  1. Explain why it is not possible to express y as an explicit function of x.
  2. Use implicit differentiation to find a formula for dy/dx.
  3. Use your result from part (b) to find an equation of the line tangent to the graph of x=y55y3+4y at the point (0,1).
  4. Use your result from part (b) to determine all of the points at which the graph of x=y55y3+4y has a vertical tangent line.
Figure 2.7.5. The curve x=y55y3+4y.
It is natural to ask where the tangent line to a curve is vertical or horizontal. The slope of a horizontal tangent line must be zero, while the slope of a vertical tangent line is undefined. Often the formula for dydx is expressed as a quotient of functions of x and y, say
dydx=p(x,y)q(x,y).
The tangent line is horizontal precisely when the numerator is zero and the denominator is nonzero, making the slope of the tangent line zero. If we can solve the equation p(x,y)=0 for either x and y in terms of the other, we can substitute that expression into the original equation for the curve. This gives an equation in a single variable, and if we can solve that equation we can find the point(s) on the curve where p(x,y)=0. At those points, the tangent line is horizontal.
Similarly, the tangent line is vertical whenever q(x,y)=0 and p(x,y)0, making the slope undefined.

Activity 2.7.3.

Consider the curve defined by the equation y(y21)(y2)=x(x1)(x2), whose graph is pictured in Figure 2.7.6. Through implicit differentiation, it can be shown that
dydx=(x1)(x2)+x(x2)+x(x1)(y21)(y2)+2y2(y2)+y(y21).
Use this fact to answer each of the following questions.
  1. Determine all points (x,y) at which the tangent line to the curve is horizontal. (Use technology appropriately to find the needed zeros of the relevant polynomial function.)
  2. Determine all points (x,y) at which the tangent line is vertical. (Use technology appropriately to find the needed zeros of the relevant polynomial function.)
  3. Find the equation of the tangent line to the curve at one of the points where x=1.
Figure 2.7.6. y(y21)(y2)=x(x1)(x2).

Activity 2.7.4.

For each of the following curves, use implicit differentiation to find dy/dx and determine the equation of the tangent line at the given point.
  1. x3y3=6xy,  (3,3)
  2. sin(y)+y=x3+x,  (0,0)
  3. 3xexy=y2,  (0.619061,1)

Subsection 2.7.2 Summary

  • In an equation involving x and y where portions of the graph can be defined by explicit functions of x, we say that y is an implicit function of x. A good example of such a curve is the unit circle.
  • We use implicit differentiation to differentiate an implicitly defined function. We differentiate both sides of the equation with respect to x, treating y as a function of x by applying the chain rule. If possible, we subsequently solve for dydx using algebra.
  • While dydx may now involve both the variables x and y, dydx still gives the slope of the tangent line to the curve. It may be used to decide where the tangent line is horizontal (dydx=0) or vertical (dydx is undefined), or to find the equation of the tangent line at a particular point on the curve.

Exercises 2.7.3 Exercises

1.

Find dy/dx in terms of x and y if x5yx3y1=0.
dydx=

2.

Find the slope of the tangent to the curve x2+4xy+y2=33 at (1,4).
The slope is .
(Enter undef if the slope is not defined at this point.)

3.

Find dy/dx by implicit differentiation.
x+y=2+x2y2
dy/dx=

4.

Find dy/dx by implicit differentiation.
ex2y=x+y
dy/dx=

5.

Find dydx in terms of x and y if xlny+y4=8lnx.
dydx=

6.

Find dy/dx in terms of x and y if arcsin(x5y)=xy5.
dydx=

7.

Find the slope of the tangent line to the ellipse x225+y24=1 at the point (x,y).
slope =
Are there any points where the slope is not defined? (Enter them as comma-separated ordered-pairs, e.g., (1,3), (-2,5). Enter none if there are no such points.)
slope is undefined at

8.

Find the slope of the tangent to the curve y2=x3xy+6 at (6,3)
dydx=
(Enter undef if the slope is not defined at this point.)

9.

g(x)+xsin(g(x))=x216andg(4)=0,
then g(4)=

10.

Use implicit differentiation to find an equation of the tangent line to the curve at the given point.
x2+y2=(2x2+2y2x)2,(0,1/2)
(cardioid)
y=

11.

Use implicit differentiation to find an equation of the tangent line to curve called the devil’s curve,defined by y2(y24)=x2(x27), at the point (0,2).
An equation of the tangent line to the devil’s curve at the given point is .
(Be sure to enter the entire equation of the line, including the "y=".

12.

Consider the curve given by the equation 2y3+y2y5=x42x3+x2. Find all points at which the tangent line to the curve is horizontal or vertical. Be sure to use a graphing utility to plot this implicit curve and to visually check the results of algebraic reasoning that you use to determine where the tangent lines are horizontal and vertical.

13.

For the curve given by the equation sin(x+y)+cos(xy)=1, find the equation of the tangent line to the curve at the point (π2,π2).

14.

Implicit differentiation enables us a different perspective from which to see why the rule ddx[ax]=axln(a) holds, if we assume that ddx[ln(x)]=1x. This exercise leads you through the key steps to do so.
  1. Let y=ax. Rewrite this equation using the natural logarithm function to write x in terms of y (and the constant a).
  2. Differentiate both sides of the equation you found in (a) with respect to x, keeping in mind that y is implicitly a function of x.
  3. Solve the equation you found in (b) for dydx, and then use the definition of y to write dydx solely in terms of x. What have you found?
You have attempted 1 of 13 activities on this page.