Chapter 15 Reversing the Chain Rule
Section 15.1 Integrating a derivative
Pattern 13.6.2 tells us that we may use an antiderivative to compute an integral:
if What if we apply the above to an integral of a derivative? A function is an antiderivative of its own derivative, so we have
Since is the rate of accumulation of the quantity this equality is stating the obvious: accumulation is equal to accumulation.
In differential notation, we could write
Recall that this integral is a sum of small
calculations over tiny time intervals of duration But also, is essentially an average rate calculation over a short time interval of duration If we assume that these two calculations are aligned to use the same βvalueβ, we could write
and so
Notice that we have changed the bounds of integration to reflect the fact that in our second integral, is now being considered as the independent variable instead of the dependent one. Finally, we apply Property 1 of Pattern 6.3.11 to this new integral to obtain
What if we apply all of the above to a derivative that has been calculated using the chain rule? Suppose is a function of and is a function of Then ultimately is a function of and the Chain Rule says that
If we are computing an integral
we would need to know in order to use an analysis like that in (βΆβΆ). So instead, we will use as an intermediate variable:
giving us
The hope is that this second integral is either something for which we already have a formula, or for which it is simpler to guess an antiderivative.
Example 15.1.2. Integrating the Chain Rule.
where Letβs pretend we donβt know the formula for and work in reverse. We can use to compute
where we have adjusted the bounds of integration to
when we converted to an integral in terms of This new integral is one we know how to deal with:
Using antiderivative
we have
Remembering that we actually do know notice that this result is the same as computing
Section 15.2 Method of substitution
In general, it is difficult to recognize an integrand as a derivative function that is the result of a chain rule. Even in Example 15.1.2, we had to go backwards one step from the final result of Example 14.2.5 by reintroducing the in both numerator and denominator in order to make it work. So we create a slightly more general procedure that can be tried when we merely suspect that we have such an integrand that might be the result of a chain rule.
Procedure 15.2.1. Method of substitution.
Remark 15.2.2. Method of substitution is structured βtrial-and-errorβ.
When we try this method, usually we guess at first and tweak to match. But it is often not obvious what to try β sometimes we try some version of and it leads to a dead end. In that case, we either try a different substitution by choosing a different or we try a different method all together. No matter what we try, our strategy when using substitution is to recognize the integrand as a product of two functions, where the second is related to the derivative of some βpartβ of the first.
Example 15.2.3. Integral of a horizontal scaling.
Example 15.2.4. Integral of a horizontal shift.
Example 15.2.5. Another trig example.
We can also use substitution to compute indefinite integrals.
Example 15.2.6. Substitution in an indefinite integral.
For
we recognize so letβs try substituting As with a previous example, the factor of in is missing in our integrand, so we must artificially introduce it.
However, we werenβt interested in the antidervivatives of we wanted the antiderivatives of We need to substitute back in for
Sometimes there are multiple choices for the substitution.
Example 15.2.7. Choosing the substitution.
Checkpoint 15.2.8. Choosing a different substitution.
Repeat Example 15.2.7, but this time choose You will arrive at a seemingly different answer, but Fact 13.4.6 says that your result should be a vertical shift of the result computed in Example 15.2.7. Determine how.
Somewhat similar to Example 15.2.4, we can sometimes use substitution to βshiftβ a complicated expression to another place in the integrand.
Example 15.2.9. Shifting a sum from the denominator to the numerator.
For
the integrand would be easier to deal with if there wasnβt a plus sign in the denominator. So letβs try substituting Since we first reorganize the integrand, artificially introducing that factor of
So
Now that we have shifted the sum in the original denominator to be a difference in the numerator, we can manipulate the integrand algebraically before integrating:
Section 15.3 Separable rate equations
Recall that a rate equation relates a quantity to its rate of variation. Our goal in solving a rate equation is to relate the quantity directly to the independent variable. Since a rate of variation is a derivative function, ultimately solving a rate equation involves recognizing and reversing the differentiation. When we can βseparateβ the variables involved in a rate function to either side of a rate equation, on one side we can reverse the differentiation by reversing the chain rule.
Example 15.3.1. A first example.
Consider the rate equation
Letβs simply write instead of But letβs also replace with since is the rate of variation of Finally, weβll also do a little algebraic rearrangement.
The first term on the left now looks the type of result we would obtain when applying the chain rule during an implicit differentiation computation:
Our goal is to relate quantity to the independent variable directly, and if we could reverse the process above and return to an equality involving and then we could attempt to isolate to achieve our goal.
To reverse a suspected differentiation process, let us antidifferentiate both sides of our re-arranged rate equation. First, weβll tackle the right-hand side of (β ), since it is straight-forward:
For now, let us choose the specific antiderivative with By definition of antiderivative, our calculation above says
Again, let us choose the specific antiderivative with Then our calculation above says that
However, Corollary 13.4.7 states that two derivatives can only be equal when the two functions being differentiated are vertical shifts of one another. In other words, we must have
for some unknown constant
We now at least have obtained an implicit expression relating to Itβs not always possible to isolate but in this case we can use the Quadratic formula to obtain a βlowerβ and an βupperβ solution:
Our two classes of solutions both involve the parameter which would have to be determined using a known or desired initial value. For example, if we want a solution of the βupperβ type (with the plus sign before the square root) that satisfies we could solve for
So the solution that satisfies is
Note that there is no solution of the βlowerβ type (with the minus sign before the square root) that satisfies since that would require to be a negative value.
Definition 15.3.2. Separable rate equation.
Ultimately, the problem in Example 15.3.1 was solved by reversing differentiation, also known as antidifferentiating.
Procedure 15.3.3. Solving a separable rate equation.
Example 15.3.4. Solving exponential decay.
Letβs once again revisit Example 4.2.3, which involved the rate equation
In Example 12.5.8 we verified that an horizontally-transformed exponential function can be a solution to this type of rate equation. Now weβll solve this equation to verify that exponential functions are the only possible solutions.
To isolate we undo the logarithm by taking the exponential of each side.
Now, the exponentials on the left are always positive, but the inside the absolute value brackets could be positive or negative, so again we really have a βlowerβ and βupperβ solution
However, as is an arbitrary constant, together can take on any non-zero value, so we unify these two solutions by letting represent either of
Letβs record the pattern of the solution to the previous example.
Pattern 15.3.5. Solution to proportional rate equation.
As one last example, letβs return to the rate equation from Example 4.2.11.
Example 15.3.6.
In Example 4.2.11 we considered the rate equation
This is somewhat similar to Example 15.3.1, except this time the solution will involve logarithms, because after separating variables we will have reciprocal functions on both sides.
Because of the product in the denominator, the left-hand side looks like something you get after obtaining a common denominator. In fact, combining
into a single fraction leads to our left-hand side above (without the ).
For each of the right-hand side and the second term on the left-hand side, we could perform a substitution similarly to Example 15.2.4, but we can probably just guess-and-check these antiderivatives using the logarithm:
where the original addition on the left has turned into subtraction to correct the extra negative we would get from the chain rule if we differentiated to check our answer.
Finally, we would like to solve for if possible. We use the properties of the logarithm to combine the two terms on the left, and then apply the exponential function to βundoβ the logarithm.
where is an arbitrary constant. This general solution appears different from the one previously provided in Example 4.2.11, but this solution can be converted into that solution by substituting
where also represents an arbitrary constant.
Checkpoint 15.3.7.
In Example 15.3.6, letting represent implies that cannot be zero, since an exponential is never Verify that setting in the final formula for actually does lead to a valid particular solution, by substituting that version of (and its derivative) into the left-hand and right-hand sides of the original rate equation.