Separable differential equation

From Calculus

Definition

Form of the differential equation

The term separable is used for a first-order differential equation that, up to basic algebraic manipulation, is of the form:

dydx=f(x)g(y)

where x is the independent variable and y is the dependent variable.

Separable differential equations can be described as first-order first-degree differential equations where the expression for the derivative in terms of the variables is a multiplicatively separable function of the two variables.

Solution method and formula: general solution

It can be solved by rearranging and integrating:

dyg(y)=f(x)dx

It suffices to have just one freely floating additive constant in the answer because the additive constants coming from the two integrals can be merged into one.

In general, the solution to this is a relational solution family, i.e., it is in the form of an implicit function rather than an explicit description of y as a function of x. However, it may be possible to manipulate the solution in order to write y explicitly as a function of x.

Stationary solutions

In addition to the above formula of general solutions, it is also possible that there exist additional solutions that are stationary solutions. These are solutions of the form:

y=k,where g(k)=0

This family of solutions is usually a discrete, often finite, family of solutions. It may be possible to find an elegant way of writing the general solution that also manages to encompass the stationary solutions.

The term general solution is somewhat ambiguous. Some people use it to refer to the solutions obtained by the solution method of integration, even if that excludes the stationary solutions. Others use the term to refer to all solutions, inclusive of the stationary solutions.

Particular cases

Where the derivative depends only on the dependent variable

This is the case of a first-order autonomous differential equation of degree one (usually, x is replaced by the letter t denoting time, and y is replaced by the letter x):

dydx=g(y)

Here, we get:

dyg(y)=1dx

Note that performing the integration expresses x in terms of y. We need to then do algebraic manipulation to express y explicitly in terms of x.

Again, we need to take care of additional solutions of the form:

y=k,where g(k)=0

Where the derivative depends only on the independent variable

This is a situation where the function depends only on x:

dydx=f(x)

We get:

y=f(x)dx

This is a straightforward explicit functional description.

Note that in this case, there are no additional solutions that we need to worry about.

Examples

Example without stationary solutions

Consider the differential equation:

dydx=(x2+1)(y2+4)

Note first that y2+4=0 has no solution, so the differential equation has no stationary functional solutions. We rearrange to get the general solution:

dyy2+4=(x2+1)dx

Integrating, we get:

12arctan(y/2)=x33+x+C

Note that the constant C is only put at one place rather than separate constants for each integration, because the multiple constants can be absorbed into a single one.

The above gives a family of relational solutions. If we wish, we could convert these to functional solutions, though we need to be somewhat careful when doing so in general. In this case, a naive manipulation would give:

y=2tan(2x33+2x+2C)

We do lose some information in the process (namely that 2x33+2x+2C is in the range of arctan) but that information was artificial anyway so this is not an issue.

Example with stationary solutions

Consider the differential equation:

dydx=(x+1)(y+1)

This has a stationary solution y=1 (a constant function). Assuming y1, we can rearrange to get:

dyy+1=(x+1)dx

This integrates to give:

ln|y+1|=x22+x+C

Exponentiating both sides, we get:

|y+1|=eCexp(x22+x)

Let k=eCsgn(y+1). Note that k0. We get:

y+1=kexp(x22+x)

Rearranging, we can get y as an explicit function of x:

y=kexp(x22+x)1

Note that currently we have the restriction k0. However, we see that allowing k=0 gives the stationary solution, so that we can combine the stationary solution into the general solution and get, with kR a parameter:

y=kexp(x22+x)1

Example with additional subtlety: partially stationary solutions

Since the example we consider here is an autonomous differential equation, we use somewhat different notation: we denote the depedent variable by x and the independent variable by t. The differential equation is:

dxdt=1x2

This differential equation has two stationary solutions: x=1 and x=1.

We first make a couple of observations:

  • x must be a non-decreasing function of t everywhere on its domain, because the derivative is nonnegative.
  • x[1,1] for all t, because that is necessary for the right side to make sense.
  • In particular, if x=1 at a given value t=t0, we must have x=1 for all tt0, and if x=1 at a given value t=t1, we must have x=1 for all tt1.

Solving for non-stationary solutions, we get:

arcsinx=t+C

This gives:

x=sin(t+C),t(Cπ/2,C+π/2)

The solution extends continuously to the boundary points, so we get:

x=sin(t+C),t[Cπ/2,C+π/2]

Now, at the endpoint Cπ/2, x=1. By the observations made above, x must be equal to -1 for all tCπ/2, and x must be equal to 1 for all tC+π/2. The general non-stationary solution is thus:

x={1,tCπ/2sin(t+C),Cπ/2<t<C+π/21,tC+π/2,CR

The complete list of global solutions is the above general solution family and the two stationary solutions x=1 and x=1.