Skip to main content
Logo image

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:
\begin{equation*} \ccmint{a}{b}{q(t)}{t} = Q(b) - Q(a) \end{equation*}
if \(Q'(t) = q(t)\text{.}\) What if we apply the above to an integral of a derivative? A function is an antiderivative of its own derivative, so we have
\begin{equation*} \ccmint{a}{b}{q'(t)}{t} = q(b) - q(a) \text{.} \end{equation*}
Since \(q'(t)\) is the rate of accumulation of the quantity \(q(t)\text{,}\) this equality is stating the obvious: accumulation is equal to accumulation.
In differential notation, we could write
\begin{gather} \ccmint{a}{b}{\dqdt}{t} = q(b) - q(a)\text{.}\tag{✶} \end{gather}
Recall that this integral is a sum of small
\begin{equation*} \text{accumulation} = \text{rate} \times \text{duration} \end{equation*}
calculations over tiny time intervals of duration \(dt\text{.}\) But also, \(dq/dt\) is essentially an average rate calculation over a short time interval of duration \(dt\text{.}\) If we assume that these two calculations are aligned to use the same \(dt\) “value”, we could write
\begin{equation*} \dqdt \, dt = dq \text{,} \end{equation*}
and so
\begin{gather} \ccmint{a}{b}{\dqdt}{t} = \ccmint{q(a)}{q(b)}{}{q}\text{.}\tag{✶✶} \end{gather}
Notice that we have changed the bounds of integration to reflect the fact that in our second integral, \(q\) 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
\begin{align*} \ccmint{a}{b}{\dqdt}{t} \amp = \ccmint{q(a)}{q(b)}{}{q} \\ \amp = \ccmint{q(a)}{q(b)}{1}{q} \\ \amp = 1 \cdot \bbrac{q(b) - q(a)} \\ \amp = q(b) - q(a) \text{,} \end{align*}
just as in (✶).

Example 15.1.1. Integrating a derivative.

Consider \(q(t) = \sin(t)\text{,}\) so that \(q'(t) = \cos(t)\text{.}\) Then
\begin{equation*} dq = \dqdt \, dt = \cos(t) dt \text{,} \end{equation*}
so we can compute
\begin{align*} \ccmint{-\pi/2}{\pi/2}{\cos(t)}{t} \amp = \ccmint{\sin(-\pi/2)}{\sin(\pi/2)}{}{q} \\ \amp = \ccmint{\sin(-\pi/2)}{\sin(\pi/2)}{}{q} \\ \amp = \ccmint{-1}{1}{}{q} \\ \amp = 1 - (-1) \\ \amp = 2 \text{,} \end{align*}
which agrees with the many previous computations of this accumulation that we have made before.
What if we apply all of the above to a derivative that has been calculated using the chain rule? Suppose \(q\) is a function of \(u\) and \(u\) is a function of \(t\text{.}\) Then ultimately \(q\) is a function of \(t\text{,}\) and the Chain Rule says that
\begin{equation*} \dqdt = \dqdu \cdot \dudt \text{.} \end{equation*}
If we are computing an integral
\begin{equation*} \ccmint{a}{b}{\dqdt}{t} \text{,} \end{equation*}
we would need to know \(q(t)\) in order to use an analysis like that in (✶✶). So instead, we will use \(u\) as an intermediate variable:
\begin{equation*} \dqdt \, dt = \dqdu \cdot \dudt \, dt = \dqdu \, du \text{,} \end{equation*}
giving us
\begin{equation*} \ccmint{a}{b}{\dqdt}{t} = \ccmint{u(a)}{u(b)}{\dqdu}{u} \text{.} \end{equation*}
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.

Consider \(q(t) = \sqrt{t^2 + 1}\text{.}\) In Example 14.2.5 we used the substitution \(u = t^2 + 1\) to compute
\begin{equation*} q'(t) = \frac{t}{\sqrt{t^2 + 1}} = \frac{2 t}{2 \sqrt{t^2 + 1}} \text{,} \end{equation*}
where \(du/dt = 2 t\text{.}\) Let’s pretend we don’t know the formula for \(q(t)\) and work in reverse. We can use \(u\) to compute
\begin{align*} \ccmint{2}{3}{\frac{t}{\sqrt{t^2 + 1}}}{t} \amp = \ccmint{2}{3}{\frac{2 t}{2 \sqrt{t^2 + 1}}}{t}\\ \amp = \ccmint{2}{3}{\frac{1}{2 \sqrt{t^2 + 1}} \cdot (2 t)}{t} \\ \amp = \ccmint{2}{3}{\frac{1}{2 \sqrt{t^2 + 1}} \cdot \dudt}{t} \\ \amp = \ccmint{5}{10}{\frac{1}{2 \sqrt{u}}}{u} \text{,} \end{align*}
where we have adjusted the bounds of integration to
\begin{align*} u(2) \amp = 2^2 + 1 \amp u(3) \amp = 3^2 + 1 \\ \amp = 5 \amp \amp = 9 \end{align*}
when we converted to an integral in terms of \(u\text{.}\) This new integral is one we know how to deal with:
\begin{align*} \ccmint{2}{3}{\frac{t}{\sqrt{t^2 + 1}}}{t} \amp = \ccmint{5}{10}{\frac{1}{2 \sqrt{u}}}{u}\\ \amp = \frac{1}{2} \ccmint{5}{10}{u^{-1/2}}{u} \end{align*}
Using antiderivative
\begin{equation*} U(t) = \frac{u^{1/2}}{1/2} \text{,} \end{equation*}
we have
\begin{align*} \ccmint{2}{3}{\frac{t}{\sqrt{t^2 + 1}}}{t} \amp = \frac{1}{2} \ccmint{5}{10}{u^{-1/2}}{u}\\ \amp = \cancel{\frac{1}{2}} \left( \frac{{10}^{1/2}}{\cancel{1/2}} - \frac{5^{1/2}}{\cancel{1/2}} \right) \\ \amp = \sqrt{10} - \sqrt{5} \text{.} \end{align*}
Remembering that we actually do know \(q(t)\text{,}\) notice that this result is the same as computing
\begin{equation*} \ccmint{2}{3}{\dqdt}{t} = q(3) - q(2) \text{.} \end{equation*}

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 \(2\) 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.

Remark 15.2.2. Method of substitution is structured “trial-and-error”.

When we try this method, usually we guess at \(u\) first and tweak \(g\) to match. But it is often not obvious what \(u\) to try — sometimes we try some version of \(u\) and it leads to a dead end. In that case, we either try a different substitution by choosing a different \(u\text{,}\) 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.

For
\begin{equation*} \ccmint{0}{\pi/10}{\cos(5 t)}{t} \text{,} \end{equation*}
consider \(u = 5 t\) with \(du/dt = 5\text{.}\) Since our integrand doesn’t involve a multiple of \(5\) outside of the cosine function, we need to introduce one:
\begin{equation*} \cos(t) = \frac{\cos(5 t)}{5} \cdot 5 = \frac{\cos(5 t)}{5} \cdot \dudt \text{.} \end{equation*}
So our \(g(t)\) is
\begin{equation*} g(t) = \frac{\cos(5 t)}{5} \qquad\implies\qquad g(u) = \frac{\cos(u)}{5} \text{,} \end{equation*}
and our new bounds of integration are
\begin{align*} u(0) \amp = 5 \cdot 0 \amp u(\pi/10) \amp = 5 \cdot \pi/10 \\ \amp = 0 \amp \amp = \pi/2 \end{align*}
and we can calculate
\begin{align*} \ccmint{0}{\pi/10}{\cos(5 t)}{t} \amp = \ccmint{0}{\pi/2}{\frac{\cos(u)}{5}}{u} \\ \amp = \frac{1}{5} \ccmint{0}{\pi/2}{\cos(u)}{u} \\ \amp = \frac{1}{5} \bbrac{\sin(\pi/2) - \sin(0)} \\ \amp = \frac{1}{5} (1 - 0) \\ \amp = \frac{1}{5} \text{,} \end{align*}
where we have used the antiderivative \(\sin(u)\) for \(\cos(u)\text{.}\)

Example 15.2.4. Integral of a horizontal shift.

For
\begin{equation*} \ccmint{0}{e^3 - 1}{\frac{1}{t + 1}}{t} \text{,} \end{equation*}
we could probably guess an antiderivative involving a logarithm. But we can also be more systematic using substitution. Using
\begin{equation*} u = t + 1 \qquad\implies\qquad \dudt = 1 \end{equation*}
and
\begin{align*} u(0) \amp = 0 + 1 \amp u(e^3 - 1) \amp = (e^3 - 1) + 1 \\ \amp = 1 \amp \amp = e^3 \end{align*}
we have
\begin{align*} \ccmint{0}{e^3 - 1}{\frac{1}{t + 1}}{t} \amp = \ccmint{0}{e^3 - 1}{\frac{du/dt}{t + 1}}{t} \\ \amp = \ccmint{1}{e^3}{\frac{1}{u}}{u} \text{.} \end{align*}
Using the antiderivative \(\ln\abs{u}\) for \(1/u\text{,}\) we have
\begin{align*} \ccmint{0}{e^3 - 1}{\frac{1}{t + 1}}{t} \amp = \ln\abs{e^3} - \ln\abs{1} \\ \amp = 3 - 0 \\ \amp = 3 \text{.} \end{align*}

Example 15.2.5. Another trig example.

For
\begin{equation*} \ccmint{0}{\pi/2}{\cos(t) \sin^2(t)}{t} \text{,} \end{equation*}
we recognize that \(\cos(t)\) is the derivative of \(\sin(t)\text{,}\) so if we substitute
\begin{align*} u \amp = \sin(t) \amp \dudt \amp = \cos(t) \end{align*}
and
\begin{align*} u(0) \amp = 0 \amp u(\pi/2) = 1 \end{align*}
we have
\begin{align*} \ccmint{0}{\pi/2}{\cos(t) \sin^2(t)}{t} \amp = \ccmint{0}{\pi/2}{{\bbrac{\sin(t)}}^2 \dudt}{t}\\ \amp = \ccmint{0}{1}{u^2}{u} \\ \amp = \frac{1^3}{3} - \frac{0^3}{3} \\ \amp = \frac{1}{3} \text{.} \end{align*}
We can also use substitution to compute indefinite integrals.

Example 15.2.6. Substitution in an indefinite integral.

For
\begin{equation*} \ccmiint{t e^{t^2}}{t} \end{equation*}
we recognize \(d(t^2)/dt = 2 t\text{,}\) so let’s try substituting \(u = t^2\text{.}\) As with a previous example, the factor of \(2\) in \(du/dt\) is missing in our integrand, so we must artificially introduce it.
\begin{align*} \ccmiint{t e^{t^2}}{t} \amp = \ccmiint{\frac{e^{t^2}}{2} \cdot (2 t)}{t} \\ \amp = \ccmiint{\frac{e^{t^2}}{2} \cdot \dudt }{t} \\ \amp = \ccmiint{\frac{e^u}{2}}{u} \\ \amp = \frac{e^u}{2} + C \text{.} \end{align*}
However, we weren’t interested in the antidervivatives of \(g(u) = e^u/2\text{,}\) we wanted the antiderivatives of \(f(t) = t e^{t^2}\text{.}\) We need to substitute back in for \(u\text{:}\)
\begin{align*} \ccmiint{t e^{t^2}}{t} \amp = \frac{e^u}{2} + C \\ \amp = \frac{e^{t^2}}{2} + C \text{.} \end{align*}
Sometimes there are multiple choices for the substitution.

Example 15.2.7. Choosing the substitution.

For
\begin{equation*} \ccmiint{\sin(t) \cos(t)}{t} \text{,} \end{equation*}
each of the two factors in the integrand is related to the derivative of the other. Let’s choose \(u = \sin(t)\) so that \(du/dt = \cos(t)\text{.}\) Then,
\begin{align*} \ccmiint{\sin(t) \cos(t)}{t} \amp = \ccmiint{\sin(t) \cdot \dudt}{t} \\ \amp = \ccmiint{u}{u} \\ \amp = \frac{u^2}{2} + C \\ \amp = \frac{\sin^2(t)}{2} + C \text{.} \end{align*}

Checkpoint 15.2.8. Choosing a different substitution.

Repeat Example 15.2.7, but this time choose \(u = \cos(t)\text{.}\) 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
\begin{equation*} \ccmiint{\frac{t^5}{t^2 + 1}}{t} \text{,} \end{equation*}
the integrand would be easier to deal with if there wasn’t a plus sign in the denominator. So let’s try substituting \(u = t^2 + 1\text{.}\) Since \(du/dt = 2 t\text{,}\) we first reorganize the integrand, artificially introducing that factor of \(2\text{.}\)
\begin{align*} \ccmiint{\frac{t^5}{t^2 + 1}}{t} \amp = \ccmiint{\frac{ 2 t \cdot t^4 }{2 (t^2 + 1)}}{t} \\ \amp = \ccmiint{\frac{t^4}{2 (t^2 + 1)} \cdot (2 t)}{t} \\ \amp = \ccmiint{\frac{t^4}{2 (t^2 + 1)} \cdot \dudt}{t} \text{.} \end{align*}
What about that numerator of \(t^4\text{?}\) Luckily, it can be expressed as a function of \(u\text{:}\)
\begin{gather*} t^2 + 1 = u \\ t^2 = u - 1 \\ t^4 = (u - 1)^2 \text{.} \end{gather*}
So
\begin{align*} \ccmiint{\frac{t^5}{t^2 + 1}}{t} \amp = \ccmiint{\frac{t^4}{2 (t^2 + 1)} \cdot \dudt}{t} \\ \amp = \ccmiint{\frac{(u - 1)^2}{2 u}}{u} \text{.} \end{align*}
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:
\begin{align*} \ccmiint{\frac{t^5}{t^2 + 1}}{t} \amp = \ccmiint{\frac{(u - 1)^2}{2 u}}{u} \\ \amp = \ccmiint{\frac{u^2 - 2 u + 1}{2 u}}{u} \\ \amp = \ccmiint{\frac{u}{2} - 1 + \frac{1}{2 u}}{u} \\ \amp = \frac{u^2}{4} - u + \frac{1}{2} \ln\abs{u} + C \\ \amp = \frac{(t^2 + 1)^2}{4} - (t^2 + 1) + \frac{1}{2} \ln\abs{t^2 + 1} + C \text{.} \end{align*}

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
\begin{equation*} r(t) = \frac{t^2 + 1}{2 q(t) + 1} \text{.} \end{equation*}
Let’s simply write \(q\) instead of \(q(t)\text{.}\) But let’s also replace \(r(t)\) with \(dq/dt\text{,}\) since \(dq/dt\) is the rate of variation of \(q\text{.}\) Finally, we’ll also do a little algebraic rearrangement.
\begin{gather} r(t) = \frac{t^2 + 1}{2 q(t) + 1} \notag\\ \dqdt = \frac{t^2 + 1}{2 q + 1} \notag\\ (2 q + 1) \dqdt = t^2 + 1\tag{†}\\ 2 q \cdot \dqdt + \dqdt = t^2 + 1 \text{.}\notag \end{gather}
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:
\begin{align*} \text{formula in } q \amp = \text{formula in } t \\ \amp \downarrow d/dt \text{ ?} \\ (2 q + 1) \dqdt \amp = t^2 + 1 \text{.} \end{align*}
Our goal is to relate quantity \(q\) to the independent variable \(t\) directly, and if we could reverse the process above and return to an equality involving \(q\) and \(t\) then we could attempt to isolate \(q\) 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:
\begin{equation*} \ccmiint{t^2 + 1}{t} = \frac{t^3}{3} + t + C \text{.} \end{equation*}
For now, let us choose the specific antiderivative with \(C = 0\text{.}\) By definition of antiderivative, our calculation above says
\begin{equation*} t^2 + 1 = \opddt \left( \frac{t^3}{3} + t \right) \text{.} \end{equation*}
Antidifferentiating the left-hand side of (†), involves computing
\begin{equation*} \ccmiint{(2 q + 1) \dqdt}{t} \text{.} \end{equation*}
But this looks like an integral involving the method of substitution, just with \(q\) in place of \(u\text{:}\)
\begin{equation*} \ccmiint{(2 q + 1) \dqdt}{t} = \ccmiint{2 q + 1}{q} = q^2 + q + C \text{.} \end{equation*}
Again, let us choose the specific antiderivative with \(C = 0\text{.}\) Then our calculation above says that
\begin{equation*} (2 q + 1) \dqdt = \opddt (q^2 + q) \text{.} \end{equation*}
Combining these separate expressions for the two sides of (†) back into an equality, we have
\begin{gather*} (2 q + 1) \dqdt = t^2 + 1 \\ \opddt (q^2 + q) = \opddt \left( \frac{t^3}{3} + t \right) \text{.} \end{gather*}
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
\begin{equation*} q^2 + q = \frac{t^3}{3} + t + K \end{equation*}
for some unknown constant \(K\text{.}\)
We now at least have obtained an implicit expression relating \(q\) to \(t\text{.}\) It’s not always possible to isolate \(q\text{,}\) but in this case we can use the Quadratic formula to obtain a “lower” and an “upper” solution:
\begin{gather*} q^2 + q = \frac{t^3}{3} + t + K\\ 3 q^2 + 3 q = t^3 + 3 t + K \\ 3 q^2 + 3 q - (t^3 + 3 t + K) = 0 \end{gather*}
\begin{align*} q(t) \amp = \frac{-3 - \sqrt{9 + 12 (t^3 + 3 t + K)}}{6} \amp q(t) \amp = \frac{-3 + \sqrt{9 + 12 (t^3 + 3 t + K)}}{6}\\ \amp = \frac{-3 - \sqrt{K + 12 (t^3 + 3 t)}}{6} \text{,} \amp \amp = \frac{-3 + \sqrt{K + 12 (t^3 + 3 t)}}{6} \text{.} \end{align*}
Notice that we have replaced \(9 + 12 K\) with just \(K\text{,}\) since if \(K\) is an arbitrary value, then so is \(9 - 12 K\text{.}\)
Our two classes of solutions both involve the parameter \(K\text{,}\) 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 \(q(0) = 2\text{,}\) we could solve for \(K\text{:}\)
\begin{gather*} 2 = \frac{-3 + \sqrt{K + 12 (0^3 + 3 \cdot 0)}}{6} \\ 15 = \sqrt{K} \\ 225 = K \text{.} \end{gather*}
So the solution that satisfies \(q(0) = 2\) is
\begin{equation*} q(t) = \frac{-3 + \sqrt{225 + 12 (t^3 + 3 t)}}{6} \text{.} \end{equation*}
Note that there is no solution of the “lower” type (with the minus sign before the square root) that satisfies \(q(0) = 2\text{,}\) since that would require \(\sqrt{K}\) to be a negative value.

Definition 15.3.2. Separable rate equation.

A rate equation that can be expressed in the form
\begin{equation*} m(q) \cdot \dqdt = n(t) \end{equation*}
for some functions \(m\) and \(n\) is called separable.
Ultimately, the problem in Example 15.3.1 was solved by reversing differentiation, also known as antidifferentiating.

Example 15.3.4. Solving exponential decay.

Let’s once again revisit Example 4.2.3, which involved the rate equation
\begin{equation*} \frac{r(t)}{q(t)} = - k \text{.} \end{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.
\begin{gather*} \frac{1}{q} \cdot \dqdt = -k \\ \ccmiint{\frac{1}{q} \cdot \dqdt}{t} = \ccmiint{-k}{t} \\ \ccmiint{\frac{1}{q}}{q} = \ccmiint{-k}{t} \\ \ln\abs{q} = -k t + C \text{.} \end{gather*}
To isolate \(q\text{,}\) we undo the logarithm by taking the exponential of each side.
\begin{gather*} \exp\bbrac{\ln\abs{q}} = e^{-k t + C} \\ \abs{q} = e^C \cdot e^{-k t} \text{.} \end{gather*}
Now, the exponentials on the left are always positive, but the \(q\) inside the absolute value brackets could be positive or negative, so again we really have a “lower” and “upper” solution
\begin{align*} q \amp = e^C \cdot e^{-k t} \amp q \amp = - e^C \cdot e^{-k t} \end{align*}
However, as \(C\) is an arbitrary constant, together \(\pm e^C\) can take on any non-zero value, so we unify these two solutions by letting \(A\) represent either of \(\pm e^C\text{:}\)
\begin{equation*} q(t) = A e^{-k t} \text{.} \end{equation*}
Notice that \(A\) represents the initial value \(q(0)\text{,}\) since \(e^0 = 1\text{.}\)
One last thing to consider is that if \(A = \pm e^C\text{,}\) then \(A = 0\) is not possible. And that’s good, because \(q = 0\) would not work in
\begin{equation*} \frac{r(t)}{q(t)} = - k \text{.} \end{equation*}
However, if we rearrange this to
\begin{equation*} r(t) = - k q(t) \text{,} \end{equation*}
then \(q(t) = 0\) would in fact be a solution, since then \(q'(t) = 0\) also, so
\begin{align*} \text{LHS} \amp = r(t) \amp \text{RHS} \amp = -k q(t) \\ \amp = q'(t) \amp \text{RHS} \amp = -k \cdot 0 \\ \amp = 0 \amp \text{RHS} \amp = 0 \text{.} \end{align*}
Let’s record the pattern of the solution to the previous example.
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
\begin{equation*} r(t) = \frac{q(t) \cdot \bbrac{1 - q(t)}}{t + 1} \text{.} \end{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.
\begin{equation*} \frac{1}{q (1 - q)} \cdot \dqdt = \frac{1}{t + 1} \text{.} \end{equation*}
Because of the product in the denominator, the left-hand side looks like something you get after obtaining a common denominator. In fact, combining
\begin{equation*} \frac{1}{q} + \frac{1}{1 - q} \end{equation*}
into a single fraction leads to our left-hand side above (without the \(dq/dt\)).
\begin{gather*} \left(\frac{1}{q} + \frac{1}{1 - q}\right) \cdot \dqdt = \frac{1}{t + 1} \\ \ccmiint{\frac{1}{q} + \frac{1}{1 - q}}{q} = \ccmiint{\frac{1}{t + 1}}{t} \end{gather*}
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:
\begin{equation*} \ln\abs{q} - \ln\abs{1 - q} = \ln\abs{t + 1} + C \text{,} \end{equation*}
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 \(\ln\abs{1 - q}\) to check our answer.
Finally, we would like to solve for \(q\) 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.
\begin{gather*} \ln\abs{\frac{q}{1 - q}} = \ln\abs{t + 1} + C \\ \exp\left(\ln\abs{\frac{q}{1 - q}}\right) = \exp\bbrac{\ln\abs{t + 1} + C} \\ \abs{\frac{q}{1 - q}} = \exp\bbrac{\ln\abs{t + 1}} \cdot e^C \\ \abs{\frac{q}{1 - q}} = e^C \abs{t + 1} \\ \frac{q}{1 - q} = \pm e^C (t + 1) \end{gather*}
Replace \(\pm e^C\) with arbitrary \(A\text{:}\)
\begin{gather*} q = A (t + 1)(1 - q) \\ q = A (t + 1) - A (t + 1) q \\ q + A (t + 1) q = A (t + 1) \\ \bbrac{ 1 + A (t + 1) } q = A (t + 1) \\ q(t) = \frac{A (t + 1)}{ 1 + A (t + 1) } \text{,} \end{gather*}
where \(A\) 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
\begin{equation*} A = \frac{c}{1 -c} \text{,} \end{equation*}
where \(c\) also represents an arbitrary constant.

Checkpoint 15.3.7.

In Example 15.3.6, letting \(A\) represent \(\pm e^C\) implies that \(A\) cannot be zero, since an exponential is never \(0\text{.}\) Verify that setting \(A = 0\) in the final formula for \(q(t)\) actually does lead to a valid particular solution, by substituting that version of \(q(t)\) (and its derivative) into the left-hand and right-hand sides of the original rate equation.