A common differential equation is of the form . In this situation, the equation can be solved by a technique called “separation of variables”. It involves putting all the y terms on one side of the equation and all the x terms on the other side. Then integration on both sides leads to a solution. Let’s look at a couple of examples.

Example 1

Solve: with the initial condition

First, multiply both sides by y^{2 }and by dx to separate the variables (all the y terms on one side and all the x terms on the other):

Note that dy/dx isn’t really a fraction, but you can treat it as a fraction to separate the variables. Now you have an exact differential on each side, so you can integrate both sides:

Why isn’t there a constant of integration on the left side? Well, there was, but we subtracted it and combined it with the constant of integration on the right so there is only one constant. Always do it this way, and put the constant on the independent variable side. Now solve for y:

Why didn’t we multiply the constant by 3? Well, we did, but a constant times three is still a constant, so we simplified it. Always keep your constant as simple as possible. Now solve for the constant, using the initial condition given:

Example 2:

Solve: with the initial condition

As before, separate the variables:

Note that the dy and dx terms must always be in the numerator. Now integrate and solve for y:

Wait, how did the constant move from the exponent to the coefficient? It’s a simplification trick. Proceed as follows:

But e^{C} is a constant too, so just call it C. Where did the absolute value sign go? Because C can be either positive or negative, we can drop the absolute value sign around the y. Let’s finish the problem by solving for C: