NOTE: You may view the original PDFs of the notes written in class by clicking on the link for the 1:30 Section or 2:30 Section, respectively.
Lecture 13: Implicit Differentiation
GOAL: Differentiate functions of the form \( F(x,y) = 0 \). Use this to find the derivatives of inverse trigonometric functions.
Recall the following:
-
If \( y \) is a function of \( x \), then by the Chain Rule:
\[ \begin{gathered} \frac{d}{dx}\left(y^2\right) = \frac{d}{dx}\left(\left[y(x)\right]^2\right) = 2y \cdot \frac{dy}{dx} \\[0.5em] \frac{d}{dx}\left(\sin(y)\right) = \frac{d}{dx}\left(\sin(y(x))\right) = \cos y \cdot \frac{dy}{dx} \\[0.5em] \frac{d}{dx}\left(\ln(y)\right) = \frac{d}{dx}\left(\ln(y(x))\right) = \frac{1}{y} \cdot \frac{dy}{dx} \end{gathered} \] -
Taking the derivative does not change equality.
Take the function \( y = 2x+1 \) as an example. We know \( y' = 2 \), but we can also do the following:
\[ \begin{array}{rcl} y - 2x - 1 &=& 0 \\ \frac{d}{dx}\left(y - 2x - 1\right) &=& \frac{d}{dx}(0) \\ y' - 2 &=& 0 \\ y' &=& 2 \end{array} \]
Motivating Question How can we find the equation of a line tangent to the unit circle \( x^2 + y^2 = 1 \)?
Answer: Recognize that \( y \) is a function of \( x \).
Figure 1
So, for any point \( (x,y) \) on the unit circle, we can find the slope of the tangent to the unit circle at the point \( (x,y) \).
Notice that \( \frac{dy}{dx} \) is a function of both \( x \) and \( y \); usually, this is the best we can do. However, we can make \( \frac{dy}{dx} \) solely a function of \( x \) in this particular example.
\[ \begin{array}{rcl} x^2 + y^2 &=& 1 \\ y^2 &=& 1 - x^2 \\ y &=& \pm\sqrt{1-x^2} \end{array} \]Hence,
\[ \frac{dy}{dx} = -\frac{x}{y} = -\frac{x}{\pm\sqrt{1-x^2}} \]Breaking into cases we get
\[ \frac{dy}{dx} = \begin{cases} -\dfrac{x}{\sqrt{1-x^2}} & \text{if } y > 0 \\[2ex] \dfrac{x}{\sqrt{1-x^2}} & \text{if } y < 0 \end{cases} \]\( x^2 + y^2 = 1 \) is an example of an implicit function. Finding \( \frac{dy}{dx} \) is called implicit differentiation.
Examples
| Explicit Functions | Implicit Functions |
|---|---|
| \( y = f(x) \) | \( F(x,y) = 0 \) |
| \( y = 2x - 1 \) | \( x^2 + y^2 - 1 = 0 \) |
| \( y = \frac{1}{x} \) | \( xy - 1 = 0 \) |
| \( y = e^{x^2} \) | \( e^{xy} + x^2 = 0 \) |
| \( y = \sin(x) \) | \( y\sin(xy) - \pi = 0 \) |
Example 1
Find the slope of the line tangent to the elliptic curve
\[ y^2 = x^3 - x + 1 \]at \( (x,y) = (0,1) \).
NOTE:
If we want to be proper, the first step is the verify \( (0,1) \) is actually on the curve. Replacing \( x \) with 0 and \( y \) with 1 we get
\[ \begin{array}{rcl} 1^2 &=& 0^3 - 0 + 1 \\ 1 &=& 1 \ \checkmark \end{array} \]For our purposes, you may assume the point given to you lies on the curve.
Figure 2
Example 2
Find \( \frac{dy}{dx} \) for the algebraic curve
\[ y^3 + yx^2 = x^3 + xy^2 \]We start by taking the derivative of both sides.
\[ \begin{array}{rcl} y^3 + yx^2 &=& x^3 + xy^2 \\ \frac{d}{dx}\left(y^3 + yx^2\right) &=& \frac{d}{dx}\left(x^3 + xy^2\right) \\ 3y^2\frac{dy}{dx} + \left[\frac{dy}{dx}x^2 + y(2x)\right] &=& 3x^2 + \left[(1)y^2 + x\left(2y\frac{dy}{dx}\right)\right] \\ 3y^2\frac{dy}{dx} + x^2\frac{dy}{dx} + 2xy &=& 3x^2 + y^2 + 2xy\frac{dy}{dx} \end{array} \]The next step is to bring every term with a \( \frac{dy}{dx} \) in it to the left-hand side, and the remaining terms to the right-hand side.
\[ \begin{array}{rcl} 3y^2\frac{dy}{dx} + x^2\frac{dy}{dx} + 2xy &=& 3x^2 + y^2 + 2xy\frac{dy}{dx} \\ 3y^2\frac{dy}{dx} + x^2\frac{dy}{dx} - 2xy\frac{dy}{dx} &=& 3x^2 + y^2 - 2xy \end{array} \]Factor out \( \frac{dy}{dx} \) and solve for \( \frac{dy}{dx} \).
\[ \begin{array}{rcl} 3y^2\frac{dy}{dx} + x^2\frac{dy}{dx} - 2xy\frac{dy}{dx} &=& 3x^2 + y^2 - 2xy \\ \left(3y^2 + x^2 - 2xy\right)\frac{dy}{dx} &=& 3x^2 + y^2 - 2xy \\ \frac{dy}{dx} &=& \frac{3x^2 + y^2 - 2xy}{3y^2 + x^2 - 2xy} \end{array} \]NOTE:
We can use this strategy to deal with basically any Implicit Differentiation problem.
Example 3
Find \( y' \) given \( xe^y = 9y \)
\[ \begin{array}{rcl} xe^y &=& 9y \\ \left[xe^y\right]' &=& \left[9y\right]' \\ (1)e^y + xe^y y' &=& 9y' \\ xe^y y' - 9y' &=& -e^y \\ \left[xe^y - 9\right]y' &=& -e^y \\ y' &=& \frac{-e^y}{xe^y - 9} \\ y' &=& \frac{e^y}{9 - xe^y} \end{array} \]Example 4
Find \( \frac{dy}{dx} \) given \( 10\sin(2x + 3y) = 11xy \)
\[ \begin{array}{rcl} 10\sin(2x + 3y) &=& 11xy \\ \frac{d}{dx}\left[10\sin(2x + 3y)\right] &=& \frac{d}{dx}\left[11xy\right] \\ 10\cos(2x + 3y)\left[2 + 3\frac{dy}{dx}\right] &=& 11y + 11x\frac{dy}{dx} \\ 20\cos(2x + 3y) + 30\cos(2x + 3y)\frac{dy}{dx} &=& 11y + 11x\frac{dy}{dx} \\ 30\cos(2x + 3y)\frac{dy}{dx} - 11x\frac{dy}{dx} &=& 11y - 20\cos(2x + 3y) \\ \left[30\cos(2x + 3y) - 11x\right]\frac{dy}{dx} &=& 11y - 20\cos(2x + 3y) \end{array} \]\[ \frac{dy}{dx} = \frac{11y - 20\cos(2x + 3y)}{30\cos(2x + 3y) - 11x} \]Example 5
Find \( \frac{dy}{dx} \) given \( \frac{1}{x} + \frac{1}{y} = 1 \)
\[ \begin{array}{rcl} \frac{1}{x} + \frac{1}{y} &=& 1 \\ \frac{d}{dx}\left[\frac{1}{x} + \frac{1}{y}\right] &=& \frac{d}{dx}(1) \\ -\frac{1}{x^2} - \frac{1}{y^2}\frac{dy}{dx} &=& 0 \\ \frac{1}{y^2}\frac{dy}{dx} &=& -\frac{1}{x^2} \\ \frac{dy}{dx} &=& -\frac{y^2}{x^2} \end{array} \]Example 6
Find \( \frac{dy}{dx} \) if \( \sqrt{x} + \sqrt{y} = 4 \)
\[ \begin{array}{rcl} \sqrt{x} + \sqrt{y} &=& 4 \\ \frac{d}{dx}\left[\sqrt{x} + \sqrt{y}\right] &=& \frac{d}{dx}\left[4\right] \\ \frac{1}{2\sqrt{x}} + \frac{1}{2\sqrt{y}}\frac{dy}{dx} &=& 0 \\ \frac{2\sqrt{y}}{2\sqrt{x}} + \frac{dy}{dx} &=& 0 \\ \frac{dy}{dx} &=& -\frac{\sqrt{y}}{\sqrt{x}} \\ \frac{dy}{dx} &=& -\sqrt{\frac{y}{x}} \end{array} \]Derivatives of Inverse Sine and Tangent
Implicit Differentiation is particularly helpful if we need to find the derivative of a differentiable function's inverse.
Example 7
Find \( \frac{dy}{dx} \) given \( y = \sin^{-1}(x) \)
\[ \begin{array}{rcl} y &=& \sin^{-1}(x) \\ \sin(y) &=& x \\ \frac{d}{dx}\left[\sin(y)\right] &=& \frac{d}{dx}\left[x\right] \\ \cos(y)\frac{dy}{dx} &=& 1 \\ \frac{dy}{dx} &=& \frac{1}{\cos(y)} \\ \frac{dy}{dx} &=& \frac{1}{\cos\left(\sin^{-1}(x)\right)} \end{array} \]NOTE:
In general, an inverse trig function inside of a trig function is not considered simplified. To simplify, let \( \theta = \sin^{-1} x \). Then, \( \frac{x}{1} = \sin\theta \), which we can use to make a right triangle.
Figure 3
Therefore,
\[ \begin{array}{rcl} \frac{dy}{dx} &=& \frac{1}{\cos\left(\sin^{-1}(x)\right)} \\ \frac{dy}{dx} &=& \frac{1}{\cos(\theta)} \\ \frac{dy}{dx} &=& \frac{1}{\sqrt{1-x^2}} \end{array} \]Example 8
Find \( \frac{dy}{dx} \) given \( y = \tan^{-1}(x) \)
\[ \begin{array}{rcl} y &=& \tan^{-1}(x) \\ \tan(y) &=& x \\ \frac{d}{dx}\left[\tan(y)\right] &=& \frac{d}{dx}\left[x\right] \\ \sec^2(y)\frac{dy}{dx} &=& 1 \\ \frac{dy}{dx} &=& \frac{1}{\sec^2(y)} \\ \frac{dy}{dx} &=& \frac{1}{\left[\sec\left(\tan^{-1}(x)\right)\right]^2} \end{array} \]Again, if \( \theta = \tan^{-1}x \). Then we can make a right triangle
Figure 4
So,
\[ \begin{array}{rcl} \frac{dy}{dx} &=& \frac{1}{\left[\sec(\theta)\right]^2} \\ \frac{dy}{dx} &=& \frac{1}{1+x^2} \end{array} \]