Skip to main content
Logo image

Applied Calculus

Section 4.7 Derivatives of Functions Given Implicitly

This section corresponds to 3.12 Implicit Differentiation in the workbook.
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 4.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 lemniscate 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 that is strictly between the endpoints of the horizontal diameter, there are two corresponding y-values. For instance, on the left side of Figure 4.7.1 above, we have labeled A=(3,7) and B=(3,7). These points demonstrate that the circle fails the vertical line test and indicate that it is impossible to represent the circle through a single function of the form y=f(x). However, portions of the circle, such as the highlighted arc that is magnified in the center of Figure 4.7.1, can be represented explicitly as a function of x. 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 function of x, namely y=16x2, and the bottom half as y=16x2, both of which are explicit functions. So, the implicit function x2+y2=16 defines two explicit functions of x.
The righthand curve in Figure 4.7.1 above is called a lemniscate and is just one of many fascinating possibilities for implicitly given curves.
The question we want to address in this section is “how can we find an equation for dydx without an explicit formula for y in terms of x?” The following example reminds us of some ways we can compute derivatives of functions in settings where the function’s formula is not known.

Example 4.7.2.

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. Compute the following derivatives; note that each function you must differentiate is a combination of: explicit functions of x, the unknown function f, and an arbitrary constant c.
  1. ddx[x2+f(x)]
  2. ddx[x2f(x)]
  3. ddx[c+x+f(x)2]
  4. ddx[f(x2)]
  5. ddx[xf(x)+f(cx)+cf(x)]
Hint.
  1. Use the sum rule.
  2. Use the product rule.
  3. Remember that c is a constant. You have a choice of which rule to use to differentiate f(x)2.
  4. f(x2) is a composite function.
  5. Use the structure of each term in the sum to determine which rules are appropriate.
Answer.
  1. 2x+f(x).
  2. 2xf(x)+x2f(x).
  3. 1+2f(x)f(x).
  4. 2xf(x2).
  5. f(x)+xf(x)+cf(cx)+cf(x).
Solution.
  1. Applying the sum rule, we see that
    ddx[x2+f(x)]=ddx[x2]+ddx[f(x)]=2x+f(x).
  2. Applying the product rule, we find
    ddx[x2f(x)]=ddx[x2]f(x)+x2ddx[f(x)]=2xf(x)+x2f(x).
  3. Applying the sum rule yields
    ddx[c+x+f(x)2]=ddx[c]+ddx[x]+ddx[f(x)2]=1+ddx[f(x)2].
    Using the chain rule
     1 
    Note that we could instead use the product rule.
    to differentiate the final term, we end up with
    ddx[c+x+f(x)2]=1+2f(x)ddx[f(x)]=1+2f(x)f(x).
  4. We use the chain rule and calculate
    ddx[f(x2)]=f(x2)ddx[x2]=2xf(x2).
  5. We start with the sum rule:
    ddx[xf(x)+f(cx)+cf(x)]=ddx[xf(x)]+ddx[f(cx)]+ddx[cf(x)].
    We now apply the product rule to the first term, the chain rule to the middle term, and the constant multiple rule to the final term. This gives us
    ddx[xf(x)+f(cx)+cf(x)]=([f(x)+xf(x)]+[cf(cx)]+c[f(x)]=(f(x)+xf(x)+cf(cx)+cf(x).

Subsection 4.7.1 Implicit Differentiation

Example 4.7.3.

We begin our exploration of implicit differentiation with the example of the circle described 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 Example 4.7.2, 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.
It is important to observe that 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.

Example 4.7.4.

For the curve given implicitly by x3+y22xy=2, shown below in Figure 4.7.5, find the slope of the tangent line at (1,1).
Figure 4.7.5. The curve x3+y22xy=2.
We begin by differentiating the curve’s equation implicitly. Taking the derivative of each side with respect to x yields
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]2ddx[xy]=0.
For the three derivatives we now must execute, the first uses the 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+2ydydx2[y+xdydx]=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 out 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 4.7.5.
Example 4.7.4 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.

Example 4.7.6.

Consider the curve defined by the equation x=y55y3+4y, whose graph is pictured below in Figure 4.7.7.
  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 dydx.
  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).
Figure 4.7.7. The curve x=y55y3+4y.
Hint.
  1. Does the graph pass the vertical line test?
  2. Note, for instance, that ddx[y5]=5y4dydx.
  3. Remember the meaning of dydx|(0,1).
Answer.
  1. The graph of the curve fails the vertical line test.
  2. dydx=15y415y2+4.
  3. y=16x+1.
Solution.
  1. Because the graph of the curve fails the vertical line test, y cannot be a function of x. This also confirms our intuition that there is not an algebraic means by which we can rearrange the equation x=y55y3+4y to write y in terms of x.
  2. We differentiate implicitly, taking the derivative of each side with respect to x:
    ddx[x]=ddx[y55y3+4y].
    We then evaluate the derivative on the left and use the sum rule on the right to find that
    1=ddx[y5]ddx[5y3]+ddx[4y].
    Viewing y as a function of x and using the chain and constant multiple rules, we now have
    1=5y4dydx15y2dydx+4dydx.
    Factoring yields
    1=dydx(5y415y2+4),
    and therefore
    dydx=15y415y2+4.
  3. To find an equation of the line tangent to the graph of x=y55y3+4y at the point (0,1), we only need the slope of the tangent line. Hence we compute
    dydx|(0,1)=15(1)415(1)2+4=16.
    Therefore, the equation of the tangent line is
    y1=16(x0),
    or y=16x+1.

Example 4.7.8.

For each of the following curves, use implicit differentiation to find dydx and determine the equation of the tangent line at the given point.
  1. x3y3=6xy,  (3,3)
  2. ln(y)=x3y+1,  (0,1)
  3. 3xexy=y2,  (0.619,1)
Hint.
  1. Note that ddx[6xy] requires the product rule.
  2. With y being a function of x, ddx[ln(y)] requires the chain rule.
  3. To calculate ddx[xexy], first use the product rule and temporarily defer computing ddx[exy].
Answer.
  1. dydx=3x26y3y2+6x, and the tangent line has equation y3=1(x+3).
  2. dydx=3x21y+1, and the tangent line has equation y=1.
  3. dydx=3exy3xyexy2y+3x2exy, and the tangent line is y1=0.235(x0.619).
Solution.
  1. Differentiating with respect to x,
    ddx[x3y3]=ddx[6xy],
    so that by the chain and product rules we have
    3x23y2dydx=6y+6xdydx.
    Rearranging to get all terms with dydx on the same side, it follows that
    3x26y=(3y2dydx+6xdydx=((3y2+6x)dydx.
    Thus we have established that
    dydx=3x26y3y2+6x.
    Evaluating at the point (3,3), we have dydx|(3,3)=3(3)26(3)3(3)2+6(3)=1. Thus the tangent line has equation y3=1(x+3), or y=x+6.
  2. After differentiating with respect to x, we have
    1ydydx=3x2dydx.
    Taking the usual steps to solve for dydx, we find that
    dydx=3x21y+1.
    Evaluating the slope of the tangent line at (0,1), we have
    dydx|(0,1)=3(0)211+1=0,
    and thus the tangent line at (0,1) has equation y=0(x0)+1, which can be simplified to y=1.
  3. Differentiating both sides with respect to x yields
    ddx[3xexy]=ddx[y2].
    On the left side, we need to start with the product rule; the right side requires the chain rule because y is a function of x. Applying these rules gives us
    3exy+3xddx[exy]=2ydydx.
    To continue differentiating the left side, we need the chain rule followed by the product rule:
    3exy+3xddx[exy]=(3exy+3x(exyddx[xy])=(3exy+3xexy(yxdydx)=(3exy3xyexy3x2exydydx.
    We now have the equation
    3exy3xyexy3x2exydydx=2ydydx.
    Since we need to solve for dydx, we combine like terms before factoring and dividing to end up with
    3exy3xyexy=(2ydydx+3x2exydydx=((2y+3x2exy)dydx(3exy3xyexy2y+3x2exy=(dydx.
    Evaluating at the point (0.619,1), we find the slope of the tangent line to be
    dydx|(0.619,1)=3e0.6193(0.619)e0.6192+3(0.619)2e0.6190.235.
    Hence the tangent line equation is y1=0.235(x0.619).

Subsection 4.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.

Exercises 4.7.3 Exercises

1. Implicit differentiation in a polynomial equation.

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

2. Implicit differentiation in an equation with logarithms.

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

3. Slope of the tangent line to an implicit curve.

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

4. Equation of the tangent line to an implicit curve.

Use implicit differentiation to find an equation of the tangent line to the curve 2xy3+xy=9 at the point (3,1).
The equation
 2 
/webwork2_files/helpFiles/Entering-Equations.html
defines the tangent line to the curve at the point (3,1).