Difference between revisions of "Implicit Differentiation"
Line 19: | Line 19: | ||
− | == | + | == Examples == |
1. Find <math>y'</math> if <math>\sin y-3x^{2}y=8</math>. | 1. Find <math>y'</math> if <math>\sin y-3x^{2}y=8</math>. | ||
− | [ | + | [Think <math>y=f\left(x\right)</math> and momentarily view the equation as <math>\sin f\left(x\right)-3x^{2}f\left(x\right)=8</math> |
− | to realize that the <math>\sin | + | to realize that the <math>\sin f\left(x\right)</math> term requires |
− | the chain rule and the <math>3x^{2} | + | the chain rule and the <math>3x^{2}f\left(x\right)</math> term needs the |
− | product rule when | + | product rule when differentiating, while the derivative |
of 8 is just 0.] | of 8 is just 0.] | ||
− | + | Then we get | |
− | + | ::<math>\begin{array}{rcl} | |
− | \begin{array}{rcl} | ||
\sin y-3x^{2}y & = & 8\\ | \sin y-3x^{2}y & = & 8\\ | ||
− | \left(\cos y\right)\cdot y'-\left(3x^{2}y'+6xy\right) & = & 0\quad\ | + | \left(\cos y\right)\cdot y'-\left(3x^{2}y'+6xy\right) & = & 0\quad \text{(derivative of both sides with respect to x)}\\ |
\left(\cos y\right)\cdot y'-3x^{2}y' & = & 6xy\\ | \left(\cos y\right)\cdot y'-3x^{2}y' & = & 6xy\\ | ||
\left(\cos y-3x^{2}\right)y' & = & 6xy\\ | \left(\cos y-3x^{2}\right)y' & = & 6xy\\ | ||
y' & = & \dfrac{6xy}{\cos y-3x^{2}} | y' & = & \dfrac{6xy}{\cos y-3x^{2}} | ||
− | \end{array} | + | \end{array}</math> |
− | \ | + | |
+ | 2. Find the equation of the tangent line to <math>\tan y=\dfrac{y}{x}</math> | ||
+ | at the point <math>\left(\frac{\pi}{4},\frac{\pi}{4}\right)</math>. | ||
+ | |||
+ | We first compute <math>y'</math> by implicit differentiation. Note the derivative | ||
+ | of the right side requires the quotient rule. | ||
+ | |||
+ | ::<math>\begin{array}{rcl} | ||
+ | \tan y & = & \dfrac{y}{x}\\ | ||
+ | \left(\sec^{2}y\right)\cdot y' & = & \dfrac{xy'-y}{x^{2}}\\ | ||
+ | x^{2}y'\cdot\sec^{2}y & = & xy'-y\\ | ||
+ | x^{2}y'\cdot\sec^{2}y-xy' & = & -y\\ | ||
+ | y'\left(x^{2}\sec^{2}y-x\right) & = & -y\\ | ||
+ | y' & = & \dfrac{-y}{x^{2}\sec^{2}y-x} | ||
+ | \end{array}</math> | ||
+ | |||
+ | |||
+ | |||
+ | At the point <math>\left(\frac{\pi}{4},\frac{\pi}{4}\right)</math> we have <math>x=\frac{\pi}{4}</math> | ||
+ | and <math>y=\frac{\pi}{4}</math>. Plugging these into our equation for <math>y'</math> | ||
+ | gives | ||
+ | |||
+ | ::<math>\begin{array}{rcl} | ||
+ | y' & = & \dfrac{-\frac{\pi}{4}}{\left(\frac{\pi}{4}\right)^{2}\sec^{2}\left(\frac{\pi}{4}\right)-\frac{\pi}{4}}\\ | ||
+ | & = & \dfrac{-\frac{\pi}{4}}{\frac{\pi^{2}}{16}\cdot2-\frac{\pi}{4}}\\ | ||
+ | & = & -\dfrac{\pi}{4}\cdot\dfrac{8}{\pi^{2}-2\pi}\\ | ||
+ | & = & \dfrac{2}{2-\pi} | ||
+ | \end{array}</math> | ||
+ | |||
+ | |||
+ | This means the slope of the tangent line at <math>\left(\frac{\pi}{4},\frac{\pi}{4}\right)</math> | ||
+ | is <math>m=\dfrac{2}{2-\pi}</math>, and a point on this line is <math>\left(\frac{\pi}{4},\frac{\pi}{4}\right)</math>. | ||
+ | Using the point-slope form of a line, we have | ||
+ | |||
+ | ::<math>\begin{array}{rcl} | ||
+ | y-\frac{\pi}{4} & = & \frac{2}{2-\pi}\left(x-\frac{\pi}{4}\right)\\ | ||
+ | y & = & \frac{2}{2-\pi}x-\frac{\pi}{2\left(2-\pi\right)}+\frac{\pi}{4}\\ | ||
+ | y & = & \frac{2}{2-\pi}x-\frac{\pi^{2}}{4\left(2-\pi\right)} | ||
+ | \end{array}</math> | ||
+ | |||
+ | 3. Find <math>y''</math> if <math>ye^{y}=x</math>. | ||
+ | |||
+ | Use implicit differentiation to find <math>y'</math> first: | ||
+ | |||
+ | ::<math>\begin{array}{rcl} | ||
+ | y\cdot e^{y} & = & x\\ | ||
+ | y\cdot e^{y}y'+y'\cdot e^{y} & = & 1\\ | ||
+ | y'\left(ye^{y}+e^{y}\right) & = & 1\\ | ||
+ | y' & = & \dfrac{1}{ye^{y}+e^{y}}\\ | ||
+ | & \textrm{or} & \left(ye^{y}+e^{y}\right)^{-1} | ||
+ | \end{array}</math> | ||
+ | |||
+ | |||
+ | Now <math>y''</math> is just the derivative of <math>\left(ye^{y}+e^{y}\right)^{-1}</math> | ||
+ | with respect to <math>x</math> (remember <math>y=f\left(x\right)</math>). This will require | ||
+ | the chain rule. Note that we already found the derivative of <math>ye^{y}</math> | ||
+ | to be <math>ye^{y}y'+y'e^{y}</math>. So | ||
+ | |||
+ | ::<math>\begin{array}{rcl} | ||
+ | y'' & = & -1\left(ye^{y}+e^{y}\right)^{-2}\left(ye^{y}y'+y'e^{y}+e^{y}y'\right)\\ | ||
+ | & = & \dfrac{-1}{\left(ye^{y}+e^{y}\right)^{2}}\cdot\left(ye^{y}y'+2y'e^{y}\right)\\ | ||
+ | & = & -\dfrac{y'e^{y}\left(y+2\right)}{\left(e^{y}\right)^{2}\left(y+1\right)^{2}}\\ | ||
+ | & = & -\dfrac{y'\left(y+2\right)}{e^{y}\left(y+1\right)^{2}} | ||
+ | \end{array}</math> | ||
+ | |||
+ | |||
+ | But we mustn't leave <math>y'</math> in our final answer. So, plug <math>y'=\dfrac{1}{e^{y}\left(y+1\right)}</math> | ||
+ | back in to get | ||
+ | |||
+ | <math>\begin{array}{rcl} | ||
+ | y'' & = & -\dfrac{\frac{1}{e^{y}\left(y+1\right)}\left(y+2\right)}{e^{y}\left(y+1\right)^{2}}\\ | ||
+ | & = & -\dfrac{y+2}{\left(e^{y}\right)^{2}\left(y+1\right)^{3}} | ||
+ | \end{array}</math> | ||
+ | |||
+ | |||
+ | as our final answer. |
Revision as of 22:48, 16 November 2015
Background
So far, you may only have differentiated functions written in the form . But some functions are better described by an equation involving and . For example, describes the graph of a circle with center and radius 4, and is really the graph of two functions: .
Sometimes, functions described by equations in and are too hard to solve for , for example . This equation really describes 3 different functions of x, whose graph is the curve:
We want to find derivatives of these functions without having to solve for explicitly. We can do this by implicit differentiation, in which we take the derivative of both sides of our equation with respect to , and do some algebra steps to solve for (or if you prefer), keeping in mind that is a function of throughout the equation.
Examples
1. Find if .
[Think and momentarily view the equation as to realize that the term requires the chain rule and the term needs the product rule when differentiating, while the derivative of 8 is just 0.]
Then we get
2. Find the equation of the tangent line to at the point .
We first compute by implicit differentiation. Note the derivative of the right side requires the quotient rule.
At the point we have and . Plugging these into our equation for gives
This means the slope of the tangent line at
is , and a point on this line is .
Using the point-slope form of a line, we have
3. Find if .
Use implicit differentiation to find first:
Now is just the derivative of
with respect to (remember ). This will require
the chain rule. Note that we already found the derivative of
to be . So
But we mustn't leave in our final answer. So, plug
back in to get
as our final answer.