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

thumb_up100%(1 rated)

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 dydx=M(x)N(y),\frac{dy}{dx}=\frac{M(x)}{N(y)}, then we can rewrite it as N(y)โ€‰dy=M(x)โ€‰dx.N(y)\,dy=M(x)\,dx.

Now integrate both sides: โˆซN(y)โ€‰dy=โˆซM(x)โ€‰dx.\int N(y)\,dy=\int M(x)\,dx.

If your notes write the left side using y=y(x)y=y(x), then the substitution u=y(x),du=yโ€ฒ(x)โ€‰dx=dydxโ€‰dxu=y(x),\qquad du=y'(x)\,dx=\frac{dy}{dx}\,dx just formalizes the idea that yy depends on xx.

So the workflow is:

  1. Separate the variables so all yy terms are on one side and all xx terms are on the other.
  2. Integrate both sides.
  3. Use the substitution u=y(x)u=y(x) if needed to make the left integral easier to read.
  4. Solve for yy if an explicit solution is possible.

For example, if N(y)โ€‰dydx=M(x),N(y)\,\frac{dy}{dx}=M(x), then multiplying by dxdx gives N(y)โ€‰dy=M(x)โ€‰dx,N(y)\,dy=M(x)\,dx, and after integration you get โˆซN(y)โ€‰dy=โˆซM(x)โ€‰dx+C.\int N(y)\,dy=\int M(x)\,dx+ C. That is the standard separable-equation pattern.

๐Ÿ’ก Pitfall guide

A frequent mistake is treating yy like a constant when integrating the left-hand side. If y=y(x)y=y(x), then you cannot ignore the dependence on xx; that is exactly why the substitution u=y(x)u=y(x) 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 y(x0)=y0y(x_0)=y_0 is given, use it right after integrating to determine the constant CC.

๐Ÿ” 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.

chat