Separation of variables
Appearance
Occasionally a differential equation allows a separation of variables, which we here exemplify rather than define. The differential equation
may be written as
Pretend that dy and dx are numbers, so that both sides of the equation may be multiplied by dx. Also divide both sides by y(1 − y). We get
Integrating both sides, we get
which, via partial fractions, becomes
and then
A bit of algebra gives a solution for y:
One may check that if B is any positive constant, this function satisfies the differential equation.