I'm trying to go through the solution for a SIS epidemic model, but I'm stuck figuring out the following steps.
So we have
$i′=r(k−i)i−αi$
And to solve this, they did a substitution $y=i^{−1}$. They integrated and came up with
$ye^{(rk−α)t}=∫re^{(rk−α)t}dt+C$
I have no idea how they ended up with this equation. So taking substitution $y = i^{-1}$, we get $\frac{dy}{dt} = -\frac{1}{i^2}$, but i don't know how to use that for the first equation.
Did they use separation of variables to solve this after the substitution? Anyone who could show me how they got to the second equation would be appreciated.
Thank you!
Regroup $$i′=r(k−i)i−αi = (rk-\alpha)i-ri^2$$
Divide both sides by $i^2$ to get $$i^{-2}i' =(rk-\alpha)i^{-1} -r$$
Let $$y=i^{-1}$$
We get $$ -y'=(rk-\alpha)y -r$$
This is a linear equation with the given solution.