Difference between revisions of "Implicit Differentiation"

From Grad Wiki
Jump to navigation Jump to search
Line 103: Line 103:
 
== Exercise 2: Find equation of tangent line ==
 
== Exercise 2: Find equation of tangent line ==
  
Find the equation of the tangent line to <math style="vertical-align: -13px">\tan y=\dfrac{y}{x}</math>&thinsp; at the point &thinsp; <math>\left(\frac{\pi}{4},\frac{\pi}{4}\right)</math>.
+
Find the equation of the tangent line to <math style="vertical-align: -4px">x^{2}+2xy-y^{2}+x=2</math>&thinsp; at the point <math>\left(1,0\right)</math>.
  
We first compute <math style="vertical-align: -5px">y'</math> by implicit differentiation. Note the derivative of the right side requires the quotient rule.
+
We first compute <math style="vertical-align: -5px">y'</math> by implicit differentiation.
  
 
::<math>\begin{array}{rcl}
 
::<math>\begin{array}{rcl}
\tan y & = & \dfrac{y}{x}\\
+
x^{2}+2xy-y^{2}+x & = & 2\\
\left(\sec^{2}y\right)y' & = & \dfrac{xy'-y}{x^{2}}\\
+
2x+2xy'+2y-2yy'+1 & = & 0\\
x^{2}y'\sec^{2}y & = & xy'-y\\
+
x+xy'+y-yy'+\frac{1}{2} & = & 0\\
x^{2}y'\sec^{2}y-xy' & = & -y\\
+
xy'-yy' & = & -x-y-\frac{1}{2}\\
y'\left(x^{2}\sec^{2}y-x\right) & = & -y\\
+
(x-y)y' & = & -(x+y+\frac{1}{2})\\
y' & = & \dfrac{-y}{x^{2}\sec^{2}y-x}
+
y' & = & -\dfrac{x+y+\frac{1}{2}}{x-y}
 
\end{array}</math>
 
\end{array}</math>
  
  
At the point &thinsp; <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  
+
At the point <math>\left(1,0\right)</math>, we have <math style="vertical-align: -1px">x=1</math> and <math>y=0</math>. Plugging these into our equation for <math style="vertical-align: -5px">y'</math> gives  
  
 
::<math>\begin{array}{rcl}
 
::<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}}\\
+
y' & = & -\dfrac{1+0+\frac{1}{2}}{1-0} = -\frac{3}{2}.\\
\\
+
 
& = & \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>
 
\end{array}</math>
  
  
This means the slope of the tangent line at &thinsp; <math>\left(\frac{\pi}{4},\frac{\pi}{4}\right)</math> is <math style="vertical-align: -13px">m=\dfrac{2}{2-\pi}</math>, and a point on this line is &thinsp; <math>\left(\frac{\pi}{4},\frac{\pi}{4}\right)</math>. Using the point-slope form of a line, we have
+
This means the slope of the tangent line at <math>\left(0,1\right)</math> is <math style="vertical-align: -13px">m=-\frac{3}{2}</math>, and a point on this line is <math>\left(1,0\right)</math>. Using the point-slope form of a line, we get
  
 
::<math>\begin{array}{rcl}
 
::<math>\begin{array}{rcl}
y-\frac{\pi}{4} & = & \frac{2}{2-\pi}\left(x-\frac{\pi}{4}\right)\\
+
y-0 & = & -\frac{3}{2}\left(x-1\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)}.
+
y & = & -\frac{3}{2}x+\frac{3}{2}.\\
 
\end{array}</math>
 
\end{array}</math>
  

Revision as of 13:24, 21 November 2015

Background

So far, you may only have differentiated functions written in the form Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y=f(x)} . But some functions are better described by an equation involving Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y} . For example, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x^{2}+y^{2}=16} describes the graph of a circle with center Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(0,0\right)} and radius 4, and is really the graph of two functions: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y=\pm\sqrt{16-x^{2}}} , the upper and lower semicircles:

Upper semicircle.png Lower semicircle.png

Sometimes, functions described by equations in Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y} are too hard to solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y} , for example Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x^{3}+y^{3}=6xy} . This equation really describes 3 different functions of x, whose graph is the curve:

Curve.png

We want to find derivatives of these functions without having to solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y} explicitly. We do this by implicit differentiation. The process is to take the derivative of both sides of the given equation with respect to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} , and then do some algebra steps to solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'} (or Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \dfrac{dy}{dx}} if you prefer), keeping in mind that is a function of throughout the equation.

Warm-up exercises

Given that is a function of , find the derivative of the following functions with respect to .

1)  

Solution:  
Reason:  
Think and view it as to see that the derivative is by the chain rule, but write it as .

2)  

Solution:  
Reason:  
and are both functions of which are being multiplied together, so the product rule says it's .

3)  

Solution:  
Reason:  
The function is inside of the cosine function, so the chain rule gives .

4)  

Solution:  
Reason:  
Write it as , and use the chain rule to get   , then simplify.

Exercise 1: Compute y'

Find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'} if Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sin y-3x^{2}y=8} .

Note the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sin y} term requires the chain rule, the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 3x^{2}y}   term needs the product rule, and the derivative of 8 is 0.

We get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{array}{rcl} \sin y-3x^{2}y & = & 8\\ \left(\cos y\right)y'-\left(3x^{2}y'+6xy\right) & = & 0\quad (\text{derivative of both sides with respect to } x)\\ \left(\cos y\right)y'-3x^{2}y' & = & 6xy\\ \left(\cos y-3x^{2}\right)y' & = & 6xy\\ y' & = & \dfrac{6xy}{\cos y-3x^{2}}. \end{array}}

Exercise 2: Find equation of tangent line

Find the equation of the tangent line to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x^{2}+2xy-y^{2}+x=2}   at the point Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(1,0\right)} .

We first compute Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'} by implicit differentiation.

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{array}{rcl} x^{2}+2xy-y^{2}+x & = & 2\\ 2x+2xy'+2y-2yy'+1 & = & 0\\ x+xy'+y-yy'+\frac{1}{2} & = & 0\\ xy'-yy' & = & -x-y-\frac{1}{2}\\ (x-y)y' & = & -(x+y+\frac{1}{2})\\ y' & = & -\dfrac{x+y+\frac{1}{2}}{x-y} \end{array}}


At the point Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(1,0\right)} , we have Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x=1} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y=0} . Plugging these into our equation for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'} gives

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{array}{rcl} y' & = & -\dfrac{1+0+\frac{1}{2}}{1-0} = -\frac{3}{2}.\\ \end{array}}


This means the slope of the tangent line at Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(0,1\right)} is Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle m=-\frac{3}{2}} , and a point on this line is Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(1,0\right)} . Using the point-slope form of a line, we get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{array}{rcl} y-0 & = & -\frac{3}{2}\left(x-1\right)\\ \\ y & = & -\frac{3}{2}x+\frac{3}{2}.\\ \end{array}}

Here's a picture of the curve and its tangent line:

Tangent line.png

Exercise 3: Compute y"

Find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y''} if Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle ye^{y}=x} .

Use implicit differentiation to find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'} first:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{array}{rcl} ye^{y} & = & x\\ ye^{y}y'+y'e^{y} & = & 1\\ y'\left(ye^{y}+e^{y}\right) & = & 1\\ y' & = & \dfrac{1}{ye^{y}+e^{y}}\\ & = & \left(ye^{y}+e^{y}\right)^{-1} \end{array}}


Now Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y''} is just the derivative of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(ye^{y}+e^{y}\right)^{-1}} with respect to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} . This will require the chain rule. Notice we already found the derivative of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle ye^{y}} to be Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle ye^{y}y'+y'e^{y}} .

So

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \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}}\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}}


But we mustn't leave Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'} in our final answer. So, plug Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y'=\dfrac{1}{e^{y}\left(y+1\right)}} back in to get

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \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}}


as our final answer.