2.8: Implicit Functions
( \newcommand{\kernel}{\mathrm{null}\,}\)
We now turn to the topic of implicit differentiation. We say that y is an implicit function of x if we are given an equation σ(x,y)=τ(x,y)which determines y as a function of x. An example is x+xy=2y. Implicit differentiation is a way of finding the derivative of y without actually solving for y as a function of x. Assume that dy/dx exists. The method has two steps:
Step 1: Differentiate both sides of the equation σ(x,y)=τ(x,y) to get a new equation d(σ(x,y))dx=d(τ(x,y))dx.The Chain Rule is often used in this step.
Step 2: Solve the new Equation (2.8.1) for dy/dx. The answer will usually involve both x and y.
In each of the examples below, we assume that dy/dx exists and use implicit differentiation to find the value of dy/dx.
Given the equation x+xy=2y, find dy/dx.
Solution
Step 1: d(x+xy)dx=d(2y)dx. We find each side by the Sum and Product Rules, d(x+xy)dx=dx+d(xy)dx=dx+x dy+y dxdx=1+xdydx+y.d(2y)dx=2dydx.
Thus our new equation is 1+xdydx+y=2dydx.
Step 2: Solve for dy/dx. 2dydx−xdydx=1+ydydx=1+y2−x.
We can check our answer by solving the original equation for y and using ordinary differentiation: x+xy=2y2y−xy=x.y=x2−x.
By the Quotient Rule, dydx=(2−x)⋅1−x(−1)(2−x)2=2(2−x)2.
A third way to find dy/dx is to solve the original equation for x, find dx/dy, and then use the Inverse Function Rule. x+xy=2yx=2y1+ydxdy=(1+y)⋅2−2y⋅1(1+y)2=2(1+y)2dydx=12(1+y)2
To see that our three answers dydx=1+y2−x,dydx=2(2−x)2,dydx=12(1+y)2are all the same we substitute x2−x for y: dydx=1+y2−x=1+x2−x2−x=2(2−x)2.dydx=12(1+y)2=12(1+x2−x)2=2(2−x)2
In Example 2.8.1, we found dy/dx by three different methods.
(a) Implicit differentiation. We get dy/dx in terms of both x and y.
(b) Solve for y as a function of x and differentiate directly. This gives dy/dx in terms of x only.
(c) Solve for x as a function of y, find dx/dy directly, and use the Inverse Function Rule. This method gives dy/dx in terms of y only.
Given y+√y=x2, find dy/dx.
Solution
d(y+√y)dx=d(x2)dxdydx+12y−1/2dydx=2xdydx=2x1+12y−1/2
This answer can be used to find the slope at any point on the curve. For example, at the point (√2,1) the slope is 2√21+12⋅1−1/2=2√23/2=4√23
while at the point (−√2,1) the slope is 2(−√2)1+12⋅1−1/2=−4√23.
To get dy/dx in terms of x, we solve the original equation for y using the quadratic formula: y+√y−x2=0√y=−1±√1+4x22
Since √y≥0, only one solution may occur: √y=−1+√1+4x22.
Then y=(−1+√1+4x22)2
The graph of this function is shown in Figure 2.8.1. By substitution we get dydx=2x1+12y−1/2=2x1+(−1+√1+4x2)−1.

Often one side of an implicit function equation is constant and has derivative zero.
Given x2−2y2=4, y≤0, find dy/dx.
Solution
d(x2−2y2)dx=d(4)dxd(x2−2y2)dx=2x−4ydydxd(4)dx=02x−4ydydx=0dydx=−2x−4y=x2y
Solving the original equation for y, we get −2y2=4−x2,y≤0;y2=x2−42,y≤0;y=−√x2−42.
Thus dy/dx in terms of x is dydx=x2y=x−2√x2−42=−x2(x2−4).
The graph of this function is shown in Figure 2.8.2.

Implicit differentiation can even be applied to an equation that does not by itself determine y as a function x. Sometimes extra inequalities must be assumed in order to make y a function of x.
Given x2+y2=1,find dy/dx. This equation does not determine y as a function of x; its graph is the unit circle. Nevertheless we differentiate both sides with respect to x and solve for dy/dx, 2x+2ydydx=0,dydx=−xy.
We can conclude that for any system of formulas S which contains the Equation (2.8.2) and also determines y as a function of x, it is true that dydx=−xy.
We can use Equation (2.8.3) to find the slope of the line tangent to the unit circle at any point on the circle. The following examples are illustrated in Figure 2.8.3.

dydx=0 at (0,−1),dydx=−1√3 at (12,√32),dydx=√8 at (√83,−13),dydx is undefined at (−1,0).
The system of formulas x2+y2=1,y≥0gives usy=√1−x2,dydx=−xy=−x√1−x2.
Find the slope of the line tangent to the curve x5y3+xy6=y+1.at the points (1,1), (1,−1), and (0,−1).
Solution
The three points are all on the curve, and the first two points have the same x coordinate, so Equation (2.8.4) does not by itself determine y as a function of x.
We differentiate with respect to x, d(x5y3+xy6)dx=d(y+1)dx,5x4y3+x5⋅3y2 dydx+y6+6xy5 dydx=dydx,
and then solve for dy/dx, 5x4y3+y6+(3x5y2+6xy5−1)dydx=0,dydx=−5x4y3+y63x5y2+6xy5−1.
Substituting, we get dydx=−68 at (1,1).dydx=−1 at (1,−1).dydx=+1 at (0,−1).
Equation (2.8.5) for dy/dx is true of any system S of formulas which contains Equation (2.8.4) and determines y as a function of x.
Here is what generally happens in the method of implicit differentiation. Given an equation τ(x,y)=σ(x,y)between two terms which may involve the variables x and y, we differentiate both sides of the equation and obtain d(τ(x,y)dx=d(σ(x,y)dx.
We then solve Equation (2.8.7) to get dy/dx equal to a term which typically involves both x and y. We can conclude that for any system of formulas which contains Equation (2.8.6) and determines y as a function of x, Equation (2.8.7) is true. Also, Equation (2.8.7) can be used to find the slope of the tangent line at any point on the curve τ(x,y)=σ(x,y).
Problems for Section 2.8
In Problems 1-26, find dy/dx by implicit differentiation. The answer may involve both x and y.
1. | xy=1 | 2. | 2x2−3y2=4,y≤0 |
3. | x3+y3=2 | 4. | x3=y5 |
5. | y=1/(x+y) | 6. | y2+3y−5=x |
7. | x−2+y−2=1 | 8. | xy3=y+x |
9. | x2+3xy+y2=0 | 10. | x/y+3y=2 |
11. | x5=y2−y+1 | 12. | √x+√y=x+y |
13. | y=√xy+1 | 14. | x4+y4=5 |
15. | xy2−3x2y+x=1 | 16. | 2xy−2+x−2=y |
17. | y=sin(xy) | 18. | y=cos(x+y) |
19. | x=cos2y | 20. | x=siny+cosy |
21. | y=ex+2y | 22. | ey=x2+y |
23. | ex=lny | 24. | lny=sinx |
25. | y2=ln(2x+3y) | 26. | ln(cosy)=2x+5 |
In Problems 27-33, find the slope of the line tangent to the given curve at the given point or points.
27. | x2+xy+y2=7 at (1,2) and (−1,3). |
28. | x+y3=y at (0,0),(0,1),(0,−1),(−6,2). |
29. | x2−y2=3 at (2,1),(2,−1),(√3,0). |
30. | tanx=y at (π/4,1) |
31. | 2sin2x=3cosy at (π/3,π/3) |
32. | y+ey=1+lnx \text{ at } (1, 0)\) |
33. | esinx=lny at (1,0) |
34. | Given the equation x2+y2=1, find dy/dx and d2y/dx2. |
35. | Given the equation 2x2−y2=1, find dy/dx and d2y/dx2. |
36. | Differentiating the equation x2=y2 implicitly, we get dy/dx=x/y. This is undefined at the point (0,0)\(.Sketchthegraphoftheequationtoseewhathappensatthepoint\((0,0). |