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 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.

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.

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