Question
How to solve a separable differential equation by substitution
Original question: To solve this differential equation we first integrate both sides with respect to x to get, $$\int N(y)\frac{dy}{dx}\,dx=\int M(x)\,dx$$ Now, remember that y is really y(x) and so we can use the following substitution, $$u=y(x)\qquad du=y'(x)\,dx=\frac{dy}{dx}\,dx$$ Applying this substitution to the integral we get, $$\int N(u)\,du=\int M(x)\,dx$$
Expert Verified Solution
Expert intro: A separable differential equation is one of those problems where the setup matters more than the algebra. Once the variables are split correctly, the substitution step is usually simple.
Detailed walkthrough
If the differential equation has the separable form then we can rewrite it as
Now integrate both sides:
If your notes write the left side using , then the substitution just formalizes the idea that depends on .
So the workflow is:
- Separate the variables so all terms are on one side and all terms are on the other.
- Integrate both sides.
- Use the substitution if needed to make the left integral easier to read.
- Solve for if an explicit solution is possible.
For example, if then multiplying by gives and after integration you get That is the standard separable-equation pattern.
๐ก Pitfall guide
A frequent mistake is treating like a constant when integrating the left-hand side. If , then you cannot ignore the dependence on ; that is exactly why the substitution is helpful. Another common issue is forgetting the constant of integration after integrating both sides.
๐ Real-world variant
If the equation is not separable, this method does not apply directly. In that case you may need an integrating factor, a substitution, or a numerical method. If an initial condition such as is given, use it right after integrating to determine the constant .
๐ Related terms
separable differential equation, substitution, constant of integration
FAQ
What is the first step in solving a separable differential equation?
Separate the variables so that all terms involving y are on one side and all terms involving x are on the other.
Why use the substitution u = y(x)?
It reminds you that y depends on x and turns the left-hand integral into a standard integral in u after replacing dy/dx ยท dx with du.