Implicit differentiation
In a nutshell
If a function cannot easily be arranged such that you have it in the form y=f(x) or x=g(y), then you cannot differentiate explicitly, which is what you have been doing so far. Instead, you can differentiate the function as it is implicitly.
Explicit vs. implicit
A function of the form y=f(x) or x=g(y) is given explicitly. On one side is a y or an x, and on the other side is a function in terms of the other variable. A function in the form f(x,y) is a function in terms of both x and y. The equation 0=f(x,y) is given implicitly.
Example 1
The following functions are given implicitly.
4xy+x2−y3=6sin(x−y)=0y2x−6xy=−9x
Using the chain rule
Recall that when you denote differentiation, you use dxd, meaning to differentiate with respect to x. It is commonly seem as dxdy. meaning you are differentiating y with respect to x.
Suppose you have a function of y, f(y), but since it is part of a larger, implicit function, you need to differentiate with respect to x, you will use the chain rule. In this case, you will use it in this form:
dxd→dxdy×dyd
In other words, you have converted the differentiation operation into one in terms of y. All you have to do is to multiply by dxdy. The general form when differentiating a function f(y) with respect to x is
dxd(f(y))=f′(y)dxdy
Example 2
Differentiate the following with respect to x:
5y2+7y=4x3
Apply dxd to both sides:
dxd(5y2+7y)=dxd(4x3)
The right-hand side can be done as expected, since it is in terms of x:
dxd(5y2+7y)=12x2
The left-hand side however requires the chain rule:
dxdy×dyd(5y2+7y)dxdy(10y+7)=12x2=12x2
Rearranging this to obtain the equation for the gradient gives:
dxdy=10y+712x2
Note: When implicitly differentiating, it is common that your expression for dxdy will be a function of both x and y.
Example 3
Differentiate the following with respect to x:
0=2y+xy3
Apply dxd to both sides:
dxd(0)0=dxd(2y+xy3)=dxd(2y+xy3)
To differentiate the right-hand side, approach term by term:
0=dxd(2y)+dxd(xy3)=dxdydyd(2y)+dxd(xy3)=2dxdy+dxd(xy3)
To differentiate the second term, you will use the product rule:
0=2dxdy+dxd(xy3)=2dxdy+(dxd(x))y3+x(dxd(y3))=2dxdy+(1)y3+x(dxdydyd(y3))=2dxdy+y3+x(dxdy(3y2))=2dxdy+y3+3xy2dxdy
You can now rearrange this to give an equation for dxdy:
0dxdy=2dxdy+y3+3xy2dxdy=dxdy(2+3xy2)+y3=−2+3xy2y3
Common derivatives
Below are some frequently occuring derivatives. You may want to commit them to memory.
dxd(yn)dxd(xy)=nyn−1dxdy=xdxdy+y
where n is a constant.