Update. I'm reordering this post to make the core question more clear.
Given the following problem:
Infection model: The number of people $N(t)$ affected by a pandemic at time $t$ is modelled by the differential equation. Where $r$ and $c$ are positive constants.
$\frac{dN}{dt} = r(1-c^{-1}N)N$
Which we had to show had a solution such that:
$e^{-rt} = \frac{N(t)^{-1} - c^{-1}}{N(0)^{-1} - c^{-1}}$
Why is the approach below using a definite Integral valid? The partial fractions and actual integration mechanics is fine. I just mean the method of turning this into a definite integral.
$\begin{align}\int_{N(0)}^{N(T)}\frac{c^{-1}}{1-c^{-1}N}dN + \int_{N(0)}^{N(T)}\frac{1}{N} dN = \int_0^Trdt \end{align}$
Additional Context
Using the example question above, and one other example, both taken from past exam papers. I show they can be solved using a method that seemed more obvious.
However i believe the definite integral method shown above, only seems to make sense for the infection model example. Therefore i want to understand:
- Under what conditions it makes sense to do this definite integral method, why it works, and what the intuition of knowing to do this would be? Particularly concerning the range of integration.
- I don't think this would have worked for the first example below (debt model)? If that's the case why is it applicable to one scenario and not the other.
Example 1: Debt model
Given the following debt model, first order linear ODE.
- $\frac{dD}{dt} - rD = -A$
We had to show that the solution looked like:
- $D(t) = D(0)e^{rt} + \frac{A}{r}(1 - e^{rt})$
We solve for the general solution using our integrating factor then solve for the arbitrary constant $C$ which gives $C = D(0) - \frac{A}{r}$, plug this in and rearrange giving the desired result.
- Brief experimentation suggested it wasn't obvious that the definite integral approach would have work here? Would it?
Example 2: (Infection model)
This is the question where the solution used a definite integral
The number of people $N(t)$ affected by a pandemic at time $t$ is modelled by the differential equation. Where $r$ and $c$ are positive constants.
$\frac{dN}{dt} = r(1-c^{-1}N)N$
Which we had to show had a solution such that:
$e^{-rt} = \frac{N(t)^{-1} - c^{-1}}{N(0)^{-1} - c^{-1}}$
Now this can be solved the same method as the debt model in example 1 (with a decent amount of algebra), in this case integrating the separable differential equation using partial fractions. The arbitrary constant we get is $C' = \frac{-N(0)}{N(0)-c}$
Plugging back in and rearranging gives the desired result.