In this section, we will learn that even when y is not explicitly expressed in terms of x, we can apply differentiation rules to find dy/dx. This is called implicit differentiation. 

 

In most of the functions that we have encountered, the dependent variable, y, has been explicitly expressed in terms of the independent variable, x, as in y=sinxx,ory=xx2+1. In general, y is an explicit function of x if y=f(x). However, sometimes we have to deal with equations of the form F(x,y)=0, where the equation is not solved for y, such as x2+y2=4, or x33xy+y3=0. In such cases, we say y is implicitly expressed in terms of x; if a value of x is given, a value or values of y may be determined. Sometimes, we can solve these equations for y in terms of x, thereby y becomes an explicit function (or perhaps several functions) of x. For example, we can solve the equation x2+y2=4 (this is the equation of a circle of radius 2 centered at the origin) for y and obtain: y=4x2,andy=4x2. We may state that the equation x2+y2=4 implicitly defines two functions
f(x)=4x2,andg(x)=4x2.
The graph of f is the upper semicircle and the graph of g is the lower semicircle (see Figure 1).

(a) Graph of x2+y2=4 (b) Graph of y=4x2 (c) Graph of y=4x2
Figure 1

If we can solve explicitly for y, then we can differentiate it as before.

Example 1

If x2+y2=4, find dydx.

Solution

We discussed that y can be written as y=f(x)=4x2 or y=g(x)=4x2. We can easily compute the derivatives of f and g by the chain rule:
f(x)=ddx4x2(u=4x2)=ddu(u)dudx=12u(2x)=2x24x2=xf(x)=xy,
whenever y=f(x)0. Similarly, we can show g(x)=x4x2=xg(x)=xy, whenever y=g(x)0. So in general, we can write
dydx=xyif y0.

Sometimes it is very difficult or even impossible to solve an implicit relation for y. For example, solving the equation x33xy+y3=0 for y in terms of x is difficult (computer algebra systems such as Mathematica, Maple, and Sympy can solve this equation for y, but the expressions that they give are complicated and long). This equation represents a curve that is called the folium of Descartes (see Figure 2), and implicitly defines infinitely many functions (for example see, Figure 3).

 

Figure 2. The folium of Descartes with its asymptote (dashed line).

 

Figure 3: Graphs of three functions implicitly defined by x3+y33xy=0

 

If we assume that y can be defined as one or more differentiable functions of x, we can apply the chain rule to find dy/dx directly without solving the equation. In this method that is known as implicit differentiation, we differentiate both sides of an equation with respect to x and treat y as a differentiable function of x. Then, we try to solve for dy/dx.

Example 2

If x2+y2=4, find dy/dx using implicit differentiation.

Solution

We assume dy/dx exists and apply ddx to both sides of the equation:
ddx(x2+y2)=ddx4 [Recall that the derivative of a constant is zero] ddxx2+ddxy2=0 (i)2x+2ydydx=0. For the last step, we have used the chain rule:
ddx(y2)=ddy(y2)dydx=2ydydx. We can solve Equation (i) for dy/dx and obtain:
dydx=xy.

 

  • Note that in implicit differentiation only those values of the variables which satisfy the original relation can be substituted in the derivative.

 

 

Example 3

Find the equation of the tangent line to the curve described by x3+y33xy=0 at (23,43).

Solution

First of all, we note that x=23 and y=43 satisfy x3+y33xy=0. Differentiating with respect to x, we obtain:
ddx(x3)+ddx(y3)3ddx(xy)=0,3x2+3y2dydx3y3xdydx=0,dydx(3y23x)=3(yx2)dydx=yx2y2x.
The slope of the tangent at (23,43) is thus
y=yx2y2x2|x=23,y=43=43(23)2163+43=4343163+43=0.
This shows that the tangent to this curve is horizontal and its equation becomes y=43. The following figure shows the curve described by the equation x3+y33xy=0 and its tangent at the point (23,43)(1.26,1.587).

 

Figure 4. The curve described by x3+y33xy=0 and its tangent at (23,43).

 

Example 4

If x23xy+2y2=3, find dydx.

Solution

Here we can solve for y (because it is a quadratic equation in terms of y), but it is better if we assume that y exists and apply ddx to both sides of the equation:
ddx(x23xy+2y2)=ddx3ddx(x2)3ddx(xy)+2ddx(y2)=02x3(ydxdx+xdydx)+2×2ydydx=02x3y3xdydx+4ydydx=0

thus dydx(4y3x)=3y2x, and finally
dydx=3y2x4y3x.

 

Higher Order Derivatives Using Implicit Differentiation

Higher order derivatives can also be obtained by application of implicit differentiation. We will illustrate how to do that by means of the following example.

Example 5

If x2+y2=4, find d2ydx2.

Solution

In Examples 1 and 2, we showed dydx=xy. We now apply the quotient rule to find y.
d2ydx2=ddx(xy)=dxdxyxdydxy2(substitute dydx=x/y)=yx(xy)y2=y+x2yy2=y2+x2y3(because x2+y2=4)=4y3

Example 6

If y3xy1=0, find d2ydx2.

Solution

First we need to find dy/dx. In doing so, we use implicit differentiation.
3y2dydxyxdydx0=0dydx(3y2x)=y

dydx=y3y2x. Then, we apply the quotient rule to find y.
d2ydx2=dydx(3y2x)yddx(3y2x)(3y2x)2=y3y2x(3y2x)y(6ydydx1)(3y2x)2=yy(6y23y2x1)(3y2x)2=y(3y2x)y(6y2(3y2x))(3y2x)3=2xy(2y2x)3.

Example 7

Given x2a2+y2b2=1, find d2ydx2.
[The above equation is the equation of an ellipse.]

Solution

First we need to find dy/dx. Using implicit differentiation, we obtain:
1a2dx2dx+1b2dy2dx=ddx(1),2a2x+2b2ydydx=0,
dydx=b2xa2y. Now we can apply the quotient rule to find d2y/dx2:
d2ydx2=b2a2dxdxyxdydxy2=b2a2yx(b2xa2y)y2=b2a4a2y2+b2x2y3
If we multiply both sides of x2a2+y2b2=1 by a2b2, we can conclude that b2x2+a2y2=a2b2. Thus
d2ydx2=b2a4a2b2y3=b4a2y3.