Separation of Variables: Learn It 1

  • Solve differential equations by separating variables
  • Apply separation of variables to real-world problems

Separation of Variables

Many differential equations can be solved using a powerful technique called separation of variables. This method works when the equation has a special structure that allows us to separate the [latex]x[/latex] and [latex]y[/latex] terms completely.

separable differential equation

A separable differential equation is any equation that can be written in the form:

[latex]y^{\prime} = f(x)g(y)[/latex]

The term “separable” refers to the fact that the right-hand side can be separated into a function of [latex]x[/latex] times a function of [latex]y[/latex].

Here are examples of separable differential equations.

Example 1: [latex]y^{\prime} = (x^2 - 4)(3y + 2)[/latex]

  • Here [latex]f(x) = x^2 - 4[/latex] and [latex]g(y) = 3y + 2[/latex]

Example 2: [latex]y^{\prime} = 6x^2 + 4x[/latex]

  • Here [latex]f(x) = 6x^2 + 4x[/latex] and [latex]g(y) = 1[/latex]

Example 3: [latex]y^{\prime} = \sec y + \tan y[/latex]

  • Here [latex]f(x) = 1[/latex] and [latex]g(y) = \sec y + \tan y[/latex]

Example 4: [latex]y^{\prime} = xy + 3x - 2y - 6[/latex]

  • This can be factored as [latex](x + 3)(y - 2)[/latex], so [latex]f(x) = x + 3[/latex] and [latex]g(y) = y - 2[/latex]

Example 3 above is also called an autonomous differential equation because the right-hand side depends only on [latex]y[/latex], not on [latex]x[/latex].

The Method of Separation of Variables

If a differential equation is separable, you can solve it using the method of separation of variables.

Problem-Solving Strategy: Separation of Variables

  1. Check for constant solutions: Find any values of [latex]y[/latex] that make [latex]g(y) = 0[/latex]. These correspond to constant solutions.
  2. Separate the variables: Rewrite the differential equation in the form [latex]\frac{dy}{g(y)} = f(x)dx[/latex].
  3. Integrate both sides: [latex]\int \frac{dy}{g(y)} = \int f(x)dx[/latex].
  4. Solve for [latex]y[/latex]: Solve the resulting equation for [latex]y[/latex] if possible.
  5. Apply initial conditions: If an initial condition exists, substitute the appropriate values for [latex]x[/latex] and [latex]y[/latex] into the equation and solve for the constant.
CautionImportant note!
[latex]\\[/latex]
Step 4 states “solve for [latex]y[/latex] if possible” because it’s not always possible to obtain [latex]y[/latex] as an explicit function of [latex]x[/latex]. Often we must be satisfied with finding [latex]y[/latex] as an implicit function of [latex]x[/latex].

Find a general solution to the differential equation [latex]y^{\prime} =\left({x}^{2}-4\right)\left(3y+2\right)[/latex] using the method of separation of variables.

Watch the following video to see the worked solution to example above.

For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.

You can view the transcript for this segmented clip of “4.3.1” here (opens in new window).

Using the method of separation of variables, solve the initial-value problem

[latex]y^{\prime} =\left(2x+3\right)\left({y}^{2}-4\right),y\left(0\right)=-3[/latex].