# 2.12: Implicit Differentiation and Related Rates (2023)

1. Last updated
2. Save as PDF
• Page ID
71058
• $$\newcommand{\vecs}{\overset { \rightharpoonup} {\mathbf{#1}}}$$ $$\newcommand{\vecd}{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}}$$$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$$$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

## 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{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 $$\PageIndex{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)$$

Solution

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' \nonumber$
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*} \nonumber
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' \nonumber$
##### 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 $$\PageIndex{2}$$

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

Solution

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*} \nonumber

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

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 $$\PageIndex{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.

Solution

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}.\nonumber$ 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\nonumber$

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.\nonumber$

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*} \nonumber

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}}\nonumber$

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 $$\PageIndex{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.

Solution

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*} \nonumber

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 \nonumber$

Demand is falling by 1.37 million items per week.

##### Example $$\PageIndex{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.

Solution

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*} \nonumber

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 \nonumber$

Total daily cost is increasing by \$79 each day.

Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated: 18/01/2024

Views: 6151

Rating: 4.2 / 5 (53 voted)

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.