Chapter 17 Product rule and integrating factors
Section 17.1 Derivatives of products
Let’s begin by revisiting Pattern 12.3.10. If function is a vertical scaling of another function with then when computing at a particular point we have
What if the scale factor isn’t actually constant, but itself is varying?
Over the very short time interval (or if is negative), we might assume that is approximately constant:
in But isn’t actually constant — a small variation in also causes a small variation in So what if we turn this around, and consider
as a vertical scaling of with varying scale factor Then just as before, we might now assume that is approximately constant:
And then a small variation in causes a small variation in which causes a variation of approximately
Since this is true at all points we may as well just write
Justification.
First, we have
To compute we compute the difference of and and divide by But in that difference calculation, the result won’t change if we “vertically shift” both terms by the same amount:
Using we have
By the algebra rules of fractions, we may divide each of these by before subtracting:
So then we have
Finally, since is assumed to be differentiable, it must be continuous, and so
From this, we have
as required.
Checkpoint 17.1.2. Another verification of the product rule.
Use Logarithmic differentiation instead of the Product Rule to compute
and simplify until you obtain the same formula as in Pattern 17.1.1.
Example 17.1.3. Applying the Product Rule.
Here are a few examples of applying the Product Rule. In the last example, we combine with the Chain Rule.
- Forset
Then
The first calculation in Example 17.1.3 actually tells us something about the antiderivatives of the logarithm.
Pattern 17.1.4. Integral of the natural logarithm.
Justification.
Turning the first calculation in Example 17.1.3 around, we see
Since is the derivative of then also is an antiderivative of and every other antiderivative must be a vertical shift of that particular one:
as required.
We can also combine the product rule with logarithmic differentiation to tackle derivatives that would have been more difficult to compute before.
Example 17.1.5. An exponential functin with a varying base.
We can’t apply Pattern 12.4.3, because the exponent is varying. We can’t apply Pattern 12.5.7 directly, because the base is varying. So instead we’ll take the logarithm of each side so that we can turn that varying exponent into a factor:
(We haven’t bothered with the absolute value brackets this time, since we have already restricted the domain so that is always positive.)
Remark 17.1.6.
and then combining the Chain Rule with the Product Rule. This alternative approach is essentially equivalent to what we have done in Example 17.1.5, but doesn’t involve implicit differentiation.
Checkpoint 17.1.7. A Quotient Rule.
Suppose is a rational function
Rewriting this as
combine the Product Rule with one of our two versions of the Chain Rule (Pattern 14.2.1 or Pattern 16.1.7) to produce a “Quotient Rule.” You should be able to simplify your final result into a rational expression involving and their derivatives.
Section 17.2 Integrating factors
Example 17.2.1. Mixing problem with variable source.
Let’s revisit our Mixing problem from Chapter 4, where fresh brine was entering a vat, and the volume of the vat was held constant by simultaneously draining liquid from the vat at the same rate that fresh brine was entering.
Now consider a variation of this problem. Perhaps the incoming brine is being produced by a machine that introduces salt into a fresh water supply. When the system is first started up, we might assume that opening the fresh water valve brings the flow rate up to speed nearly instantaneously. But salt moves more slowly, so perhaps the rate at which the salt is supplied causes it to take some time until the concentration of the incoming brine is near the design specifications.
We might model the incoming concentration with a function that begins at but then quickly ramps up to approach a horizontal asymptote at the desired concentration of 15 g⁄L. Maybe something like
To obtain a rate equation for this system, we use the same
analysis that we used in Example 4.2.4, but now our rate in is varying instead of constant. Remember that our analysis in that example was based on amount of salt in grams, not concentration. So letting represent the amount of salt in the tank at time we have
Writing as usual, let’s rearrange this equation to
Just as when we solved separable rate equations (Section 15.3), we would like to interpret each side as somehow the result of a differentiation. With the addition on the left-hand side, it could be the result of a Product Rule computation. It would look even more like that if the first term was
instead of just for some function To introduce this new factor, let’s multiply the whole rate equation by this (currently unknown) function
But the Product Rule pattern is
So for this to work, we would need
Luckily, we already know from Pattern 15.3.5 that the function
satisfies this new rate equation. (Note that we have chosen since we only need one appropriate function to use, not every possible such function.)
So with as above, our rate equation becomes
So now we explicitly have the left-hand side as a derivative calculation. Since the two sides are equal, let’s make them appear more the same by also interpreting the right-hand side as the result of a derivative calculation. Since
we can rewrite our modified rate equation as
This now says that the functions
have the same derivative. From Fact 13.4.6, we know that this means that they must be vertical shifts of each other:
where is an arbitrary constant.
We can use the same method to solve rate equations of a similar form.
Definition 17.2.5. First-order, linear rate equation.
We can use the same method as in Example 17.2.1 to solve such a rate equation. We would like to determine a function so that
is the same as the result of a Product Rule computation
For this to be true, we need to satisfy
Procedure 17.2.6. Solving a first order, linear rate equation.
To solve
- First use Procedure 15.3.3 to solve the separable rate equation
- Choose one particular solution function
and multiply the original rate equation through by it: - Integrate both sides:
- Finally, isolate
Remark 17.2.7.
The chosen function is called an integrating factor for the rate equation, as introducing it as an extra factor in each term allows us to undo the differentiation on the left-hand side — that is, it allows us to solve the equation by integrating.
Example 17.2.8. Using the procedure.
Suppose we would like to solve
It certainly doesn’t like a Separable rate equation, and at first glance it also doesn’t look it’s of the form in Definition 17.2.5. But we can rearrange:
So now we see that it is first-order linear, with
So first we need to solve
Recall that we only need one integrating factor not all possible ones, so we will take Then we can apply the exponential function to both sides to get
where is an arbitrary constant. (We have chosen the letter for the constant of integration here to avoid confusion with our previous constant of integration from solving for )
Remark 17.2.9.
You may have noticed that Example 17.2.8 is a bit contrived, since without all the hassle of solving for the integrating factor we might have chosen to multiply through by that factor just for algebraic reasons, to clear fractions:
At which point it should be fairly obvious that the left-hand side is indeed the result of a product rule