A calculus of the absurd
10.8 Implicit differentiation
This is "just" an application of the chain rule!
What is
\(\seteqnumber{0}{10.}{51}\)\begin{equation} \frac {d}{dx} y^2 \end{equation}
This depends very much on what \(y\) is. Usually, however, when \(y\) is written, what is really meant is \(y(x)\). Therefore, here, we really have
\(\seteqnumber{0}{10.}{52}\)\begin{equation} \frac {d}{dx} \left [ (y(x))^2 \right ] \end{equation}
If we define a new function \(f(y)\) equal to \(y^2\), we then have
\(\seteqnumber{0}{10.}{53}\)\begin{equation} \frac {d}{dx} \left [f(y(x))\right ] \end{equation}
We can then use the chain rule 7373 Explained in the section above.
\(\seteqnumber{0}{10.}{54}\)\begin{equation} \frac {d}{dx} \left [f(y(x))\right ] = \frac {df}{dy} \cdot \frac {dy}{dx} \end{equation}
As we know that \(\frac {d}{dy} \left [ f(y) \right ] = 2y\), we can then write the derivative of \(y^2\) with respect to \(x\) as
\(\seteqnumber{0}{10.}{55}\)\begin{equation} 2y \frac {dy}{dx} \end{equation}
10.8.1 Optimisation using implicit differentiation
Solution: The main thing here is to clearly define the problem in terms of algebraic relations (i.e. equations) which make it easy to solve the problem using differentiation.
What we’re trying to maximise is the distance of some unknown point - which we’ll call \((x, y)\) - from the point \((1, 1)\). We’re not after any old point, though! For our points \(x\) and \(x\) we also require that \((x-4)^2 + (y-4)^2 = 81\) (as they must lie on the circle).
We can define a function which outputs the distance between \((1, 1)\) and any two points \((x, y)\) as
\(\seteqnumber{0}{10.}{57}\)\begin{equation} f(x) = \sqrt {(x-1)^2 + (y-1)^2} \label {distance from 1,1} \end{equation}
7474 Note that even though \(y\) appears in this function, the function is still just a function of \(x\) as \(y\) is a function of \(x\) - we just write \(y\) instead of \(y(x)\) as it saves space.
We then know that this function’s turning points (and thus the minima and maxima) will be when
\(\seteqnumber{0}{10.}{58}\)\begin{equation} \frac {d}{dx} \left [ f(x) \right ] = 0 \end{equation}
We can find the derivative using implicit differentiation
\(\seteqnumber{0}{10.}{59}\)\begin{align} \frac {d}{dx} \left [ \sqrt {(x-1)^2 + (y-1)^2} \right ] &= \frac {1}{2} \frac {\frac {d}{dx} \left [ (x-1)^2 + (y-1)^2 \right ] } {\sqrt {(x-1)^2 + (y-1)^2}} \\ &= \frac {1}{2} \frac {\left [ 2(x-1) + 2(y-1)\frac {dy}{dx} \right ] } {\sqrt {(x-1)^2 + (y-1)^2}} \end{align}
and we want to know when this is equal to zero, which means that we can write that
\(\seteqnumber{0}{10.}{61}\)\begin{align} & \frac {1}{2} \frac {\left [ 2(x-1) + 2(y-1)\frac {dy}{dx} \right ] } {\sqrt {(x-1)^2 + (y-1)^2}} = 0 \\ & \left [ 2(x-1) + 2(y-1)\frac {dy}{dx} \right ] = 0 \label {distance function derivative without derivative eliminated} \end{align}
What we’d usually try to do here is substitute either \(x\) for \(y\) or \(y\) for \(x\) into the function which gives us the relationship between \(x\) and \(y\) (in this case, C, as defined in Equation 10.57). Currently, though, this isn’t possible as there’s a \(\frac {dy}{dx}\) throwing a spanner in the works. If we differentiate Equation 10.57, however, we can then express \(\frac {dy}{dx}\) in terms of \(x\) and \(y\), and thus eliminate it from the equation.
\(\seteqnumber{0}{10.}{63}\)\begin{align} & \frac {d}{dx} \left [ (x-4)^2 + (y-4)^2 \right ] = \frac {d}{dx} \left [ 81 \right ] \\ & 2(x-4) + 2(y-4) \frac {dy}{dx} = 0 \\ & (x-4) + (y-4) \frac {dy}{dx} = 0 \\ & \frac {dy}{dx} = \frac {-(x-4)}{(y-4)} \\ & \frac {dy}{dx} = \frac {4-x}{y-4} \end{align}
Returning to Equation 10.63, we can now elimate \(\frac {dy}{dx}\).
\(\seteqnumber{0}{10.}{68}\)\begin{align} & 2(x-1) + 2(y-1)\frac {dy}{dx} = 0 \\ & (x-1) + (y-1)\frac {dy}{dx} = 0 \\ & \frac {dy}{dx} = \frac {1-x}{y-1} \\ & \frac {4-x}{y-4} = \frac {1-x}{y-1} \\ & (4-x)(y-1) = (1-x)(y-4) \\ & 4y - 4 - xy + x = y - 4 - xy + 4x \\ & 3y = 3x \\ & y = x \end{align}
We can now subsitute this equation into \(C\) (aka Equation 10.57), and find the values we’ve been after all this time.
\(\seteqnumber{0}{10.}{76}\)\begin{align} & (x-4)^2 + (y-4)^2 = 81 \\ & (x-4)^2 + (x-4)^2 = 81 \\ & 2(x-4)^2 = 81 \\ & (x-4)^2 = \frac {81}{2} \\ & x-4 = \pm \sqrt {\frac {81}{2}} \\ & x = 4 \pm \sqrt {\frac {81}{2}} \end{align}
Because \(x=y\) there are two cases: in the first
\(\seteqnumber{0}{10.}{82}\)\begin{equation} x,y = 4 + \sqrt {\frac {81}{2}} \end{equation}
In the second case instead
\(\seteqnumber{0}{10.}{83}\)\begin{equation} x,y = 4 - \sqrt {\frac {81}{2}} \end{equation}
Plugging the two possible values of \(x\) and \(y\) into \(f(x)\) (hello again distance function - last seen in Equation 10.58), we get (using a handy pocket calculator) that \(x,y = 4 + \sqrt {\frac {81}{2}}\) is the further point from \((1, 1)\), and thus the furthest point is
\(\seteqnumber{0}{10.}{84}\)\begin{equation} x,y = 4 + \sqrt {\frac {81}{2}} \end{equation}