Separable differential equations

Separable differential equations are the simplest differential equations. They are of the following form:

yf(x)g(y)=0

where f(x) is a function of x and g(y) is a function of y. This equation can be formally rearranged into

dyg(y)=f(x)dx

which can be integrated as

dyg(y)=f(x)dx.

This method of solving differential equations is called the separation of variables.



Example. Let us solve the differential equation

y=xy.

If y=0 (constant), the given differential equation is clearly satisfied. Thus, y=0 is a solution.

Next, suppose y0. By separating variables, we have

dyy=xdx.

Integrating both sides,

logy=dyy=xdx=12x2+c

where c is a constant. Thus, we have

(Eq:egode)y=Ce12x2

where we set C=ec. But this solution includes the case when y=0 (constant) if we set C=0. Thus, the general solution is given by (Eq:egode). □

Remark. The solution as in (Eq:egode) is called a general solution since it includes all possible solutions. In contrast, a solution like y=e12x2 is called a special solution as it is a special case where C=1. □


Example. Consider a body with mass m falling in the air under the gravity of Earth. Let v=v(t) be the velocity of the body at time t. The air resistance is given by kv. Then the equation of motion is given by

mdvdt=mgkv

where g is the gravity of Earth. Given the initial condition v(0)=0, let us solve this differential equation. By separating the variables, we have

dvmgkv=dtm.

Integrating both sides gives

log|mgkv|=ktm+C

where C is a constant. By the initial condition v(0)=0, we have

C=log(mg).

Thus,

v(t)=mgk(1ekmt).

In the above example, we solved a differential equation that satisfied a given initial condition. Such a problem is called an initial value problem.

Homogeneous differential equations

A differential equation of the form

dydx=f(yx)

is said to be homogeneous. In this case, if we let u=yx, or y=ux, we have y=u+ux so that

dudx=dydxux=f(u)ux.

Since this is separable, we can find u=u(x), and thereby y=y(x)=u(x)x.


Example. Let's solve

y=xyx2+y2.

This can be rearranged to

y=yx1+(yx)2.

Thus, it is homogeneous. Let u=yx, and we have y=u+xu so the given ODE becomes

u+xu=u1+u2

which is rearranged to

1+u2u3du=dxx.

Integrating both sides, we have

12u2log|u|=log|x|+C.

This results in

x22y2=log|y|+C.

(The solution y=y(x) is given as an implicit function.) □

Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic