The techniques we learned allow us to differentiate the functions like y=3x2+sin(x) or y=esin(x)tan(x), or, in general, y=f(x). But what to do if we can't express y in terms of x or if the expression would be very complex?
Consider x2+y2=16. This is the equation of a circle, and we can solve it for y: y=±16−x2. But here we obtained two functions and we have more work than earlier.
For example, x3+y3=2xy can be solved for y, but the expression would be very complex, and, finally, x2+y4=sin(x+y) can't be solved explicitly for x.
What to do in such cases?
Fortunately, we don't need to express y in terms of x. We can use implicit differentiation. This consists in differentiating both sides of the equation with respect to x and then solving the resulting equation for y′. We assume that the given equation determines y implicitly as a differentiable function of x, so that the method of implicit differentiation could be applied.
Example 1. Find the equation of the tangent line to x2+y2=25 at the point (3,4).
To find the slope of the tangent line, we need the derivative of the function. Here, the function is given implicitly; so, we use implicit differentiation.
Differentiate both sides of the equation with respect to x and remember that y is a function of x.
dxd(x2+y2)=dxd(25)
dxd(x2)+dxd(y2)=0
2x+2ydxdy=0.
Notice how we used the chain rule while differentiating y2 : dxd(y2)=dyd(y2)⋅dxdy=2ydxdy.
Solving for dxdy gives dxdy=−yx.
Therefore, at the point (3,4), the slope of the tangent line is −43, and the equation of the tangent line is y−4=−43(x−3), or y=−43x+425.
As can be seen, implicit differentiation can make differentiation easier and can save loads of time.
Example 2. Where is the tangent line horizontal or vertical to x3+y3=3xy (folium of Descartes)?
Differentiating both sides of the equation with respect to x, we obtain dxd(x3+y3)=dxd(3xy), or dxd(x3)+dxd(y3)=3dxd(xy).
To differentiate xy, we need to use the product rule: dxd(xy)=dxd(x)y+xdxd(y)=y+xdxdy.
To differentiate y3, we need to use the chain rule: dxdy3=dyd(y3)⋅dxdy=3y2dxdy.
So, the equation can be rewritten as
3x2+3y2dxdy=3(y+xdxdy).
Solving for dxdy gives dxdy=y2−xy−x2.
The tangent line is horizontal when dxdy=0, or y−x2=0, which gives y=x2.
If we now substitute y in the initial equation with the obtained expression, we have that x3+(x2)3=3x⋅x2, or x6−2x3=0.
Thus, the tangent line is horizontal when either x=0 or x=231.
So, the tangent line is horizontal at the points (0,0) and (231,(231)2)=(231,232)≈(1.26,1.59).
The tangent line is vertical when the denominator in the expression for dxdy is 0, or y2=x. Another method is to observe that the equation of the curve is unchanged when x and y are interchanged, so the curve is symmetric about the line y=x. This means that the horizontal tangents at (0,0) and (231,232) correspond to the vertical tangents at (0,0) and (232,231).
Example 3. Find y′=dxdy, where sin(x+y)=ex2y2.
We use the chain rule and the product rule.
dxd(sin(x+y))=dxd(ex2y2)
cos(x+y)⋅dxd(x+y)=ex2y2⋅dxd(x2y2)
cos(x+y)(1+y′)=ex2y2(dxd(x2)y2+x2dxd(y2))
cos(x+y)(1+y′)=ex2y2(2xy2+2yx2y′)
cos(x+y)+cos(x+y)y′=2xy2ex2y2+2yx2ex2y2y′.
Solving for y′ gives y′=2yx2ex2y2−cos(x+y)cos(x+y)−2xy2ex2y2.
Since, from the equation of a curve, sin(x+y)=ex2y2, we can write equivalently y′=2yx2sin(x+y)−cos(x+y)cos(x+y)−2xy2sin(x+y).