For full functionality of this site it is necessary to enable JavaScript. Here are the instructions how to enable JavaScript in your web browser.

Section 2.11: Implicit Differentiation and Related Rates

Implicit Differentiation

In our work up until now, the functions we needed to differentiate were either given explicitly, such as \( y=x^2+e^x \), or it was possible to get an explicit formula for them, such as solving \( y^3-3x^2=5 \) to get \( y=\sqrt[3]{5+3x^2} \). Sometimes, however, we will have an equation relating \(x\) and \(y\) which is either difficult or impossible to solve explicitly for \(y\), such as \( y+e^y=x^2 \). In any case, we can still find \(y' = f'(x)\) by using implicit differentiation.

The key idea behind implicit differentiation is to assume that \(y\) is a function of \(x\) even if we cannot explicitly solve for \(y\). This assumption does not require any work, but we need to be very careful to treat \(y\) as a function when we differentiate and to use the Chain Rule.

Example 1

Assume that \(y\) is a function of \(x\). Calculate

  1. \( \frac{d}{dx}\left( y^3 \right) \)
  2. \( \frac{d}{dx}\left( x^3y^2 \right) \)
  3. \( \frac{d}{dx}\left( \ln(y) \right) \)
  1. We need the chain rule since y is a function of x: \[ \frac{d}{dx}\left( y^3 \right)=3y^2\frac{dy}{dx}\overset{\text{or}}{=}3y^2y' \]
  2. We need to use the product rule and the Chain Rule: \[ \begin{align*} \frac{d}{dx}\left( x^3y^2 \right) & = x^3\frac{d}{dx}\left( y^2 \right)+y^2\frac{d}{dx}\left( x^3\right) \\ & = x^32y\frac{dy}{dx}+y^23x^2 \\ \overset{\text{or}}{=}& 2x^3yy'+3y^2x^2 \end{align*} \]
  3. We know \( \frac{d}{dx}\left( \ln(x) \right) =\frac{1}{x} \), so we use that and the Chain Rule: \[ \frac{d}{dx}\left( \ln(y) \right)=\frac{1}{y}\cdot y' \]

Implicit Differentiation

To determine \(y'\), differentiate each side of the defining equation, treating \(y\) as a function of \(x\), and then algebraically solve for \(y'\).

(The last example in the following video gets rather messy – don't worry too much if you can't follow all of the simplifications at the end.)

Example 2

Find the slope of the tangent line to the circle \(x^2 + y^2 = 25\) at the point (3,4) using implicit differentiation.

We differentiate each side of the equation \(x^2 + y^2 = 25\) and then solve for \(y'\): \[ \begin{align*} \frac{d}{dx}\left(x^2+y^2\right) & = \frac{d}{dx}(25)\\ 2x+2yy' & = 0 \end{align*} \]

Solving for \(y'\), we have \( y'=-\frac{2x}{2y}=-\frac{x}{y} \), and, at the point (3,4), \[y'=-\frac{3}{4}.\]

tangent to circle

In the previous example, it would have been easy to explicitly solve for \(y\), and then we could differentiate \(y\) to get \(y'\). Because we could explicitly solve for \(y\), we had a choice of methods for calculating \(y'\). Sometimes, however, we cannot explicitly solve for \(y\), and the only way of determining \(y'\) is to use implicit differentiation.

Related Rates

If several variables or quantities are related to each other and some of the variables are changing at a known rate, then we can use derivatives to determine how rapidly the other variables must be changing.

Here is a link to the examples used in the videos in this section: Related Rates.

Example 3

Suppose the border of a town is roughly circular, and the radius of that circle has been increasing at a rate of 0.1 miles each year. Find how fast the area of the town has been increasing when the radius is 5 miles.

picture

We could get an approximate answer by calculating the area of the circle when the radius is 5 miles (\( A = \pi r^2 = \pi (5 \text{ miles})^2 \approx 78.6 \text{ miles}^2 \) ) and 1 year later when the radius is 0.1 feet larger than before (\(A = \pi r^2 = \pi (5.1 \text{ miles})^2 \approx 81.7 \text{ miles}^2\) ) and then finding \[ \frac{\Delta \text{Area}}{\Delta \text{time}}=\frac{81.7 \text{ mi}^2 - 78.6 \text{ mi}^2}{1 \text{ year}} = 3.1 \text{ mi}^2/\text{yr}.\] This approximate answer represents the average change in area during the 1 year period when the radius increased from 5 miles to 5.1 miles, and would correspond to the secant slope on the area graph.

To find the exact answer, though, we need derivatives. In this case both radius and area are functions of time: \[r(t)=\text{ radius at time } t \qquad A(t)=\text{ area at time } t\]

We know how fast the radius is changing, which is a statement about the derivative: \( \frac{dr}{dt}=0.1\frac{\text{mile}}{\text{year}} \). We also know that \(r = 5\) at our moment of interest.

We are looking for how fast the area is increasing, which is \( \frac{dA}{dt} \).

Now we need an equation relating our variables, which is the area equation: \[A=\pi r^2.\]

Taking the derivative of both sides of that equation with respect to \(t\), we can use implicit differentiation: \[ \begin{align*} \frac{d}{dt}\left( A \right) & = \frac{d}{dt}\left( \pi r^2 \right)\\ \frac{dA}{dt} & = \pi 2r\frac{dr}{dt} \end{align*} \]

Plugging in the values we know for \(r\) and \(\frac{dr}{dt}\), \[ \frac{dA}{dt}=\pi 2(5\text{ miles})\left(0.1\frac{\text{miles}}{\text{year}}\right)=\pi\frac{\text{miles}^2}{\text{year}}\]

So the area of the town is increasing by approximately 3.14 square miles per year when the radius is 5 miles.

Related Rates

When working with a related rates problem,

  1. Draw a picture (if possible).
  2. Identify the quantities that are changing, and assign them variables.
  3. Find an equation that relates those quantities.
  4. Differentiate both sides of that equation with respect to time.
  5. Plug in any known values for the variables or rates of change.
  6. Solve for the desired rate.

Example 4

A company has determined the demand curve for their product is \( q=\sqrt{5000-p^2} \), where \(p\) is the price in dollars, and \(q\) is the quantity in millions. If weather conditions are driving the price up $2 a week, find the rate at which demand is changing when the price is $40.

The quantities changing are \(p\) and \(q\), and we assume they are both functions of time, \(t\), in weeks. We already have an equation relating the quantities, so we can implicitly differentiate it. \[ \begin{align*} \frac{d}{dt}(q) & = \frac{d}{dt}\left(5000-p^2\right)^{1/2} \\ \frac{dq}{dt} & = \frac{1}{2}\left(5000-p^2\right)^{-1/2}\frac{d}{dt}\left(5000-p^2\right) \\ \frac{dq}{dt} & = \frac{1}{2}\left(5000-p^2\right)^{-1/2}\left(-2p\frac{dp}{dt}\right) \end{align*} \]

Using the given information, we know the price is increasing by $2 per week when the price is $40, giving \( \frac{dp}{dt}=2 \) when \(p = 40\). Plugging in these values, \[ \frac{dq}{dt} = \frac{1}{2}\left(5000-40^2\right)^{-1/2}\left(-2(40)(2)\right) \approx -1.37 \]

Demand is falling by 1.37 million items per week.

Example 5

The total daily cost for producing \(x\) items in a day is \(TC(x) = 300,000 + 4x + \frac{200,000}{x}. If production has been ramping up by 20 items a day, find the rate at which total daily cost is increasing, if they are currently producing 2,000 items.

The quantities changing are \(x\) and \(TC\), and we assume they are both functions of time, \(t\), in days. We already have an equation relating the quantities, so we can implicitly differentiate it. \[ \begin{align*} \frac{d}{dt}(TC) & = \frac{d}{dt}\left(300,000 + 4x + 200,000x^{-1}\right) \\ \frac{d TC}{dt} & = 4\frac{dx}{dt} - 200,000x^(-2)\frac{dx}{dt}\\ \frac{d TC}{dt} & = \left(4 - \frac{200,000}{x^2}\right)\frac{dx}{dt}\\ \end{align*} \]

We know the quantity produced is increasing by 20 items per week when the production is 2,000 items, giving \( \frac{dx}{dt}=20 \) when \(x = 2000\). Plugging in these values, \[ \frac{d TC}{dt} = \left(4 - \frac{200,000}{2000^2}\right)(20) = 79 \]

Total daily cost is increasing by $79 each day.