# 3.6 Implicit Differentiation and Related Rates

## Implicit Differentiation and Related Rates

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=r$ to get $y=\sqrt{5+3 x^{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

(a) $\frac{d}{dx}(y^3)$

(b) $\frac{d}{dx}(x^3y^2)$

and (c) $\frac{d}{dx}\ln\left(y\right)$

1. We need the chain rule since y is a function of x:$\frac{d}{dx}(y^3)=3y^2\frac{d}{dx}(y)=3y^2y'$
1. We need to use the product rule and the Chain Rule:$\frac{d}{d x}\left(x^{3} y^{2}\right)=x^{3} \frac{d}{d x}\left(y^{2}\right)+y^{2} \frac{d}{d x}\left(x^{3}\right)=x^{3} 2 y \frac{d y}{d x}+y^{2} 3 x^{2}=2 x^{3} 2 y y^{\prime}+3 y^{2} x^{2}$
1. We know$\frac{d}{dx}\ln\left(x\right)=\frac1{x},$ so we use that and the Chain Rule:$\frac{d}{dx}\ln\left(y\right)=\frac1{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 '$ .

### 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.

Long description: The equation is given as x^2+y^2=25. A tangent line is shown which decreases from left to right and is tangent to the circle at the point (3, 4).
We differentiate each side of the equation $x2 + y2 = 25$ and then solve for $y'$

$\frac{d}{dx}(x^2+y^2)=\frac{d}{dx}(25)$

$2x+2yy'=0$

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

$y' = – 3/4.$

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 can not explicitly solve for $y$ , and the only way of determining $y '$ is 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.

### 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.

We could get an approximate answer by calculating the area of the circle when the radius is 5 miles $( A = πr^2 = π(5 \;miles)2 ≈ 78.6 \;miles^2 )$ and 1 year later when the radius is 0.1 feet larger than before $( A = \pi r^2 = \pi(5.1 \;miles)^2 ≈ 81.7 \;\text{miles}^2 )$ and then finding
$$\frac{\triangle Area}{\triangle time} = \frac{(81.7 \;\text{mi}^2 – 78.6 \;\text{mi}^2 )}{(1 \;year)} = \frac{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$

$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{mile}{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:

$$\frac{d}{dt}(A)=\frac{d}{dt}(\pi r^2)$$

$$\frac{dA}{dt}=\pi 2r\frac{dr}{dt}$$

Plugging in the values we know for $r$ and $\frac{dr}{dt}$,

$$\frac{dA}{dt}=\pi 2(5\;miles)(.1\frac{miles}{year})=3.14\frac{miles^2}{year}$$

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

## Related Rates

When working with a related rates problem,

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

## Example 4

An oil tanker develops a leak and the oil slick is expanding in a circular pattern.  The radius of the circle is increasing at a constant rate of 10 feet per second.  When the radius of the oil slick is 20 feet, at what rate is the total area of the oil slick changing?

The quantities changing are the radius and area of the circle, both of which are increasing as a function of time.

We can use a formula from geometry for the area of a circle as the starting point.

$A = π r^2$

Now, we differentiate both sides of this equation with respect to time.   Notice that π is a constant.
$\frac{dA}{dt}=2\pi\;\frac{dr}{dt}$

We know that the rate of change of the radius as a function is time is known to be 10 feet per section so replace dr/dt with 10.
$\frac{dA}{dt}=2\pi\;\frac{dr}{dt}=2\pi\;(10)=20\pi$

Thus we conclude that the area of the oil slick is increasing by 20π which is approximately 62.83 square feet per second.

### Example 5

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.

$\frac{d}{dt}(q)=\frac{d}{dt}(\sqrt{5000-p^2})$

$\frac{d}{dt}(q)=\frac{d}{dt}(5000-p^2)^\frac12$

$\frac{dq}{dt}=\frac12(5000-p^2)^{-\frac12} \frac{d}{dt}(5000-p^2)$

$\frac{dq}{dt}=\frac12(5000-p^2)^{-\frac12} (-2p\frac{dp}{dt})$

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}=\frac12(5000-40^2)^{-\frac12} (-2\cdot 40\cdot 2)\approx -1.37$

Demand is falling by 1.37 million items per week. 