We begin by separating the variables and writing
Integrating both sides of the equation with respect to the independent variable shows that
Next, we notice that the left-hand side allows us to change the variable of antidifferentiation from to In particular, so we now have
This equation says that two families of antiderivatives are equal to each other. Therefore, when we find representative antiderivatives of both sides, we know they must differ by an arbitrary constant Antidifferentiating and including the integration constant on the right, we find that
It is not necessary to include an arbitrary constant on both sides of the equation; we know that and are in the same family of antiderivatives and must therefore differ by a single constant.
Finally, we solve the last equation above for as a function of which gives
Of course, the term on the right-hand side represents 3 times an unknown constant. It is, therefore, still an unknown constant, which we will rewrite as We thus conclude that the function
is a solution to the original differential equation for any value of
Notice that because this solution depends on the arbitrary constant we have found an infinite family of solutions. This makes sense because we expect to find a unique solution that corresponds to any given initial value.
For example, if we want to solve the initial value problem
we know that the solution has the form for some constant We therefore must find the appropriate value for that gives the initial value Hence,
which shows that The solution to the initial value problem is then