## Section 5.2 Related Rates

As we have seen, \(\frac{dy}{dx}\) is the instantaneous rate of change of \(y\) with respect to \(x\text{.}\) In `[cross-reference to target(s) "chap-4-SymbolicDIfferentiation" missing or not unique]`

we learned techniques for finding \(\frac{dy}{dx}\) when \(y\) is defined as a function of \(x\text{.}\) In the last section we learned how to use implicit differentiation to find \(\frac{dy}{dx}\) when we were given an equation in \(x\) and \(y\text{.}\) In this section we want find \(\frac{dy}{dx}\) when \(x\) and \(y\) are both described in terms of another variable. As with the section on related rates, we will start with an example where we can solve the problem by eliminating the extra variable before differentiating, and then look at how to solve with related rates.

### Example 5.2.1. Change in revenue with respect to expense, doable two ways.

We can buy widgets for $10. The demand price of widgets is $20 minus 0.1 times the quantity to be sold. Find the derivative of revenue with respect to expense.

The revenue and cost functions for widgets depend on the quantity \(q\text{.}\) The formulas for revenue and cost are:

We can solve the second equation for quantity and substitute back into the first equation. This now gives us the revenue function in terms of cost (\(c\)).

It is straightforward to take the derivative:

Note that the derivative is positive for cost between $0 and $1000. This implies that the revenue is rising until the cost is $1000. After we hit a cost of $1000, the derivative becomes negative. This indicates that the revenue will actually decrease.

The alternative method is to differentiate the equations for revenue (\(r\)) and cost (\(c\)) with respect to quantity (\(q\)), and find the two derivatives \(\frac{d r}{d q}\) and \(\frac{d c}{d q}\text{,}\) then treat them as fractions. The derivative we want is the quotient of these fractions.

The revenue and cost functions for widgets are the same as above.

We now differentiate:

We divide these derivatives to get the desired derivative.

Substituting \(q =0.1 c\) gives the same solution we had from the first method.

When using the method of related rates, we act as if the derivatives are fractions that we can multiply or divide to obtain the appropriate fraction. We want to use a bit of caution with that approach, because it does not work with higher order derivatives, or with derivatives of functions of several variables. However, for derivatives of one variable the intuition works. Once again, if we zoom in far enough, the curve will look like a straight line and the derivative is the quotient of rise over run.

For the first example we could use both methods. We either use algebra to eliminate the extra variable, or find two rates of change and combine them to find the rate we are interested in. For some problems we will only have one choice, either because the algebra is too hard, or because we have been given partial information and the algebraic method is impossible.

### Example 5.2.2. Change in revenue with respect to expense, \(q\) elimination hard.

The cost (\(c(q)\)) and revenue (\(r(q)\)) equations for gizmos are both given in terms of quantity (\(q\))

Find the derivative of revenue with respect to cost (i.e. \(\frac{dr}{dc}\) when \(q=50\text{.}\)

Since the cost is quadratic in quantity, solving for revenue as a function of cost involves more work than we need for this problem. The appropriate derivatives are:

When \(q =50\text{,}\) we have

We divide these derivatives to get the desired derivative.

This means that when \(\quantity=50\text{,}\) there is an increase of $1.39 for every dollar increase in cost of investment.

### Example 5.2.3. Change in revenue with respect to expense, long variable names.

We have the following cost and revenue information for whatchamacallits:

Find the derivative of revenue with respect to cost when \(\quantity=100\text{.}\)

In this example we do not have a formula that lets us solve for revenue as a function of cost, so we must use the method of related rates. The other derivatives is:

When \(\quantity=100\text{,}\) we have \(\frac{d\revenue}{d\quantity} =50-0.02*100=48\text{.}\) Thus

Related rates are also useful when we are looking at a two-step process and we are interested in the rate of the combined process.

### Example 5.2.4. Composition of functions.

We are producing widgets (\(w\)). The manufacturing process turns goop (\(g\)) into sludge (\(s\)) and sludge into widgets. The yield equations in the appropriate units are:

or in shorthand notation: \(w(s)=4 s-0.1 s^2\text{,}\) and

or in shorthand notation: \(s(g)=3 g+.1 g^2\text{.}\)

Find the derivative of widgets with respect to goop when \(g=10\text{.}\)

We note that when \(g=10\text{,}\) we have \(s=3*10+.1*10^2=40\text{.}\) In this example we will take the derivatives of our equation. We will then multiply them to get the derivative we want.

When \(g=10\text{,}\) \(\frac{d w}{d s} =(4-0.02*40)=3.2\text{,}\) and \(\frac{d s}{d g}\text{.}\) We need to multiply the derivatives to cancel the \(d s\text{.}\)

Thus the rate of widget production is increasing by 16 units per increase in on unit of goop at that point.

We often run into situations where several quantities are related by some constraint or equation. In such situations we will want to know the rate at which quantities are changing with time. The technique of related rates gives us a way to move from one rate with respect to time to another. Recall the Cobb-Douglas equation from the last section:

where \(Y\text{,}\) \(L\text{,}\) and \(K\) represent total production, labor, and capital, respectively. If we know the rate of investment in capital equipment, we will be interested in the rate of change of labor with respect to time. An interesting question is to ask for the rate of change of capital with respect to labor, or how increasing or reducing capital investment will raise or lower labor costs.

### Example 5.2.5. Cobb-Douglas.

A gizmo manufacturer has a production function given by

The manufacturer currently uses 16 units of labor and 81 units of capital. The total production is constant but the manufacturer is investing in automation. The derivative of capital with respect to time is 5. How fast is the amount of labor needed changing?

We are gong to assume that both labor and capital are functions of time and the \(Y\) is a constant. We start by implicitly differentiating our equation with respect to time.

We now substitute in for the values of \(K\text{,}\) \(L\text{,}\) and \(\frac{dK}{dt}\text{,}\) which were given.

If capital is increasing at a rate of 2 per unit of time, then labor is decreasing at a rate of \(-0.1317\) per unit of time.

### Summary.

The related rates technique is an application of the chain rule. We use this technique when we have either three variables. We may want the rate of change of one variable with respect to a second, and those variables may be connected through equations using a third variable. We may also want to relate the rate of change of two variables with respect to time. We take advantage of the fact that we can think of a derivative as a fraction of two small values. We either want to multiply or divide theses fractions to obtain the desired derivative.

### Exercises Exercises: Related Rates Problems

#### 1.

Let \(y=3x+5\) and \(z=4y+7\text{.}\) Find \(\frac{dz}{dx}\) when \(x=2\) by solving for \(z\) as a function of \(x\) and taking the derivative, and also by finding \(\frac{dz}{dy}\) and \(\frac{dy}{dx}\) and using related rates to apply the chain rule.

- \begin{align*} z\amp =4y+7= 4(3x+5)+7=12x+27\\ \frac{dz}{dx}\amp=12 \end{align*}
- \begin{align*} z\amp =4y+7 \amp y\amp =3x+5\\ \frac{dz}{dy}\amp =4 \amp \frac{dy}{dx}\amp =3\\ \frac{dz}{dx}\amp =\frac{dz}{dy} \amp \frac{dy}{dx}\amp =4*3=12 \end{align*}

#### 2.

Let \(y=x^2-3x+5\) and \(z=y^2-y+6\text{.}\) Find \(dz/dx\) when \(x=1\) by solving for \(z\) as a function of \(x\) and taking the derivative, and also by finding \(\frac{dz}{dy}\) and \(\frac{dy}{dx}\) and using related rates to apply the chain rule.

#### 3.

Let \(y=1000*1.06^x\) and \(z=200y+3\text{.}\) Find \(\frac{dz}{dx}\) when \(x=5\text{.}\)

First find the derivative

Next plug in our value of \(x\text{:}\)

#### 4.

Let \(y=200*1.08^x+500x\) and \(z=y^2+y\text{.}\) Find \(\frac{dz}{dx}\) when \(x= 3\text{.}\)

#### 5.

Let \(y=3x+5\) and \(z=4x+7\text{.}\) Find \(\frac{dz}{dy}\) when \(x=2\) by solving for \(z\) as a function of \(y\) and taking the derivative, and also by finding \(\frac{dz}{dx}\) and\(\frac{dy}{dx}\) and using related rates to apply the chain rule.

If \(y=3x+5\) then \(x=\frac{y-5}{3}\text{.}\) Hence \(z=4x+7=\frac{4}{3} (y-5)+7=\frac{4}{3} y+\frac{1}{3}\text{,}\) so \(\frac{dz}{dy}=\frac{4}{3}\text{.}\)

\(\displaystyle \frac{dz}{dx}=4, \quad \frac{dy}{dx}=3,\quad\frac{dz}{dy}= \frac{dz/dx}{dy/dx}=\frac{4}{3}\)

#### 6.

Let \(y=x^2-3x+5\) and \(z=x^2+4x+5\text{.}\) Find \(\frac{dz}{dy}\) when \(x=3\text{.}\)

#### 7.

Let \(y=1000*1.05^x\) and \(z=100*(1+.5x)\text{.}\) Find \(\frac{dz}{dy}\) when \(x=10\text{.}\)

First find the derivative:

Next plug in our value of \(x\text{:}\)

#### 8.

Let \(y=100*1.08^x\) and \(z=100*1.02^x\text{.}\) Find \(\frac{dz}{dy}\) when x=10.

#### 9.

Let \(y=x^2-3x+5\) and \(\frac{dz}{dy} =3\text{.}\) Find \(\frac{dz}{dx}\) when \(x=7\text{.}\)

We want to find \(\frac{dz}{dx}\text{.}\) We know \(\frac{dz}{dy}\) and we can compute \(\frac{dy}{dx}\text{,}\) hence we compute:

#### 10.

Let \(y=500*.96^x\) and \(\frac{dz}{dy}=5\text{.}\) Find \(\frac{dz}{dx}\) when \(x=4\text{.}\)

#### 11.

Let \(y=x^2-5x+7\) and \(\frac{dz}{dx} =8\text{.}\) Find \(\frac{dz}{dy}\) when \(x=7\text{.}\)

We want to find \(\frac{dz}{dy}\text{.}\) We know \(\frac{dz}{dx}\) and we can compute \(\frac{dy}{dx}\text{,}\) hence we compute:

#### 12.

Let \(z=x^2-3x+5\) and \(\frac{dy}{dx} =3\text{.}\) Find dy/dz when x=7.

#### 13.

The revenue and expense equations for gizmos are

Find the derivative of revenue with respect to expense when \(\quantity=100\text{.}\)

If \(R= \revenue=30q-0.1q^2\text{,}\) then \(\frac{dR}{dq}=30-0.2q\text{.}\)

If \(E= \expense=500+10q\text{,}\) then \(\frac{dE}{dq}=10\text{.}\)

Combining the two rates we get

Hence at \(q =100\) we have that

#### 14.

The revenue and expense equations for widgets are

Find the derivative of revenue with respect to expense when \(\quantity=50\text{.}\)

#### 15.

The production of gadgets is a two step process:

Find the derivative of gadgets with respect to RawMaterial when \(\text{productA} =20\text{.}\)

Letâ€™s simplify the notation and write the two equations as

We want to find \(\frac{dg}{dr}\) when \(p = 20\text{.}\)

What do we have?

We know \(p = 20\) (given), but we need \(r\) to plug into the second part of the equation. The only function that tells us anything about \(r\) is \(p=50r+0.01 r^2\text{.}\) If \(p = 20\) this means \(20=50r+0.01 r^2\text{.}\) So \(0.01 r^2+50r-20=0\text{.}\)

By the quadratic equation we have \(r= \frac{-50\pm \sqrt{2500-4(0.01)(-20)}}{0.02}\text{.}\)

Using Wolfram Alpha we have that \(r = 0.4\text{.}\) Then

#### 16.

The production of whatchamacallits is a three step process:

Find the derivative of \(\text{whatchamacallits}\) with respect to \(\text{RawMaterial}\) when \(\text{productA} =15\text{.}\)

#### Exercise Group.

Find the indicated derivative for the production function.

##### 17.

Our production function is \(960=5L^{0.25} K^{0.75}\text{.}\) Find \(\frac{dL}{dt}\) if \(L=81\text{,}\) \(K=256\text{,}\) \(\frac{dK}{dt}=5\text{.}\)

Take the derivative with respect to \(t\text{:}\)

Solve for \(\frac{dL}{dt}\text{:}\)

If \(L=81\text{,}\) \(K=256\text{,}\) \(\frac{dK}{dt}=5\text{,}\) then we have \(\frac{dL}{dt}=-3 \frac{81}{256}5 \approx -4.75\text{.}\)

##### 18.

Our production function is \(4000=4L^.25 K^.75\text{.}\) Find \(\frac{dK}{dt}\) if \(L=1000\text{,}\) \(K=1000\text{,}\) \(\frac{dL}{dt}=10\text{.}\)