Separation of variables is a method for solving first-order ODEs where you aim to rearrange the equation such that all terms involving the dependent variable \(y\) are on one side, and all terms involving the independent variable \(x\) are on the other. This allows you to treat each side as an indefinite integral:
- Arrange as: \( N(y) \frac{dy}{dx} = M(x) \)
- Separate variables: \( \int N(y) \, dy = \int M(x) \, dx \)
By integrating both sides separately, we can often solve for \(y\) as a function of \(x\). In our exercise, achieving separation was aided by a substitution that simplified the original equation. Once the variables were isolated on each side, integration led to the solution, modified by any constant determined using the initial condition.