Implicit Differentiation#
Explicit versus Implicit Functions#
Definition
Suppose we have an equation relating two variables: \(x\) and \(y\). If \(y\) is isolated on one side of the equation, we say that \(y\) is explicitly defined as a function of \(x\), or simply, \(y\) is a function of \(x\). If \(y\) is not isolated on one side of the equation, we say that \(y\) is defined implicitly in terms of \(x\), or \(y\) is an implicit function of \(x\).
Explicit Functions
\(y = x^2 - 3\)
\(y = \sqrt{x + 7}\)
Implicit Functions
\(x^2 + xy - y = 1\)
\(x^3 + y^3 + yx - 4 = 0\)
Computing Derivatives Implicitly
When computing the derivative of a function involving \(x\) and \(y\) (where we treat \(y\) as a function of \(x\)), it may be helpful to replace \(y\) with \(f(x)\) and recall the general power rule:
Example 1#
Differentiate by treating \(y\) as a function of \(x\)
Compute the derivative of \(x^2 y^3\) with respect to \(x\) by treating \(y\) as a function of \(x\).
Step 1: Replace \(y\) with \(f(x)\).
Since we are treating \(y\) as a function of \(x\), we can rewrite \(x^2 y^3\) as
Step 2: Differentiate with respect to \(x\).
Since \(x^2[f(x)]^3\) is a product of two functions of \(x\), namely \(x^2\) and \([f(x)]^3\), we begin by using the product rule.
Step 3: And finally, replace \(f(x)\) with \(y\) and \(f'(x)\) with \(y'\).
How to Differentiate Implicitly#
The Method of Implicit Differentiation
Suppose we are given an equation relating the variables \(x\) and \(y\). In other words, \(y\) is defined implicitly as a function of \(x\) by the given equation. We can compute the derivative of \(y\) with respect to \(x\) using the following technique.
Differentiate both sides of the equation with respect to \(x\).
If given, plug in specific values of \(x\) and \(y\) into the resulting equation.
Solve for \(y'\) in terms of \(x\) and \(y\).
a. Put all terms with a factor of \(y'\) on the left side of the equation and everything else on the side of the equation.
b. Factor out \(y'\) from each term on the left side of the equation.
c. Divide both sides by the appropriate factor to solve for \(y'\).
Example 2#
Implicit differentiation
Find \(\dfrac{dy}{dx}\) where \(y\) is defined implicitly by \({x^2}y - x^4 + y^3 = 1\).
Step 1: Replace \(y\) with \(f(x)\).
Step 2: Differentiate both sides with respect to \(x\).
Notice the use of the product rule to compute the derivative of \(x^2f(x)\) and the general power rule to compute the derivative of \([f(x)]^3\).
Step 3: Rearrange terms so that only terms involving \(f'(x)\) are on the left side.
Step 4: Factor out \(f'(x)\) on the left side of the equation.
Step 5: Solve for \(f'(x)\).
Step 6: And finally, replace \(f(x)\) with \(y\) and \(f'(x)\) with \(y'\) (or \(\frac{dy}{dx}\)).
Observation
Once we get used to the idea of thinking of \(y\) as a function of \(x\), it’s not necessary to replace \(y\) with \(f(x)\). Instead, we can use the general power rule written in the following form:
Example 3#
Implicit differentiation
Find the equation of the line tangent to the curve defined implicitly by
at the point \((2,1)\).
Step 1: Differentiate both sides with respect to \(x\).
See Implicit Differentiation, Example 1 above for how to differentiate \(x^2y^3\) implicitly.
Step 2: Plug in specific values of \(x\) and \(y\).
Since we want to find the slope of the line tangent to the curve at the point \((2,1)\), plug in \(x=2\) and \(y=1\).
Step 3: Simplify and rearrange terms.
Step 4: Solve for \(\dfrac{dy}{dx}\).
Step 5: Use the point-slope equation of a line: \(y = m(x-a) + b\).
The equation of the line tangent to the curve at the point \((2,1)\) is
Example 4#
Implicit Differentiation
Find \(\dfrac{dy}{dx}\) at \((2,0)\) where \(y\) is defined implicitly by
Step 1: Differentiate both sides with respect to \(x\).
Left-Hand Side:
Right-Hand Side:
Therefore,
Step 2: Plug in the values \(x=2\) and \(y=0\).
Step 3: Expand both sides of the equation so that each side is written as a sum.
Step 4: Rearrange terms.
Subtract \(1\) from both sides and subtract \(\dfrac{7}{4}\dfrac{dy}{dx}\) from both sides.
Step 5: Solve for \(\dfrac{dy}{dx}\).
Multiply both sides by \(4\):
Observation
Alternatively, we could multiply both sides of the equation in Step 2 by \(4\) to get
Now rearranging terms is a little easier since we don’t have to deal with any fractions.
Example 5#
Compute elasticity of demand using implicit differentiation
The demand equation for Dr. Hager’s Make Math Great Again video series is given by
where \(p\) is the wholesale unit price in dollars and \(x\) is the quantity demanded in units of a thousand. Compute the elasticity of demand when \(x=2\).
Observation
Ordinarily when we compute elasticity of demand, the first thing we do is find \(x = f(p)\) by solving for \(x\) in terms of \(p\) in the given demand equation. However in this case, solving for \(x\) is easier said than done. So instead, we will use implicit differentiation to compute \(f'(p)\) when the time comes.
Step 1: Compute the unit price \(p\) when \(x=2\).
Step 2: Compute \(f(10)\).
Recall that \(x=f(p)\) is the quantity demanded (in thousands) when the unit price is \(p\) dollars. We were given \(x=2\) (and used that to determine \(p=10\) in Step 1), which is equivalent to saying \(f(10) = 2\).
Step 3: Compute \(f'(10)\)
Compute the derivative of both sides of the demand equation (\(p = -4x^2 - 2x + 30\)) with respect to \(p\). Here is where we use implicit differentiation by thinking of \(x\) as a function of \(p\) (i.e., \(x=f(p)\)).
Now plug in \(x=2\) to get
and therefore \(x' = f'(10) = -1/18\).
Step 4: Compute elasticity of demand.
Compute elasticity of demand using the values \(p=10\), \(f(10) = 2\), and \(f'(10) = -1/18\).