Skip to content

It is important to know how to solve differential equations.

In this section ONLY First Order Linear Differential equations will be mentioned.

Common form

dydx+P(x)y=Q(x)

this is the typical form for all the First Order Linear Differential equations,in which y and its first derivative appear linearly. By choosing different functions P(x) and Q(x), this form represents any first-order linear differential equation.

P(x) and Q(x) are two functions only about variable x.

Solution

To solve first order linear equation, it is important to introduce a integral factor μ.

Integrating factor

We first try to solve the equation like indefinite integral, but obviously, it is impossible to calculate [dydx+P(x)y]dx in most cases, so, just as how we think about integration by parts, we turn to the fomula of the derivative of the product, known as

(xy)=xy+xy,

we try to make the left side of the equation to derivative of the product of two functions so that it will be simple to do the indefinite integral by two sides of the equation.

But how to make y+P(x)y to the form of the derivative of the product of two functions? Since P(x) is a function about x, suppose that we have a function μ which is also about x, we multiply the both sides of the equation by μ, so the left side becomes

μy+μP(x)y,

suppose that it can be modified to the form μy+μy, it is simple to find out that μ must equals to μP(x), shown as

μ=μP(x),

we move μ and μ together and do the indefinite integral, it is

μμdx=P(x)dx,

which actually can be written as

lnμ=P(x)dx+C,

then we make bothe sides the exponent of e, it is

μ=eP(x)dx

and that is our integrating factor.

We may notice that in the exponent of e, the indefinite integral produces a constant C, but since it is in the exponent, it will be eliminated at last.

How to solve

We have integral factor μ now, simply multiply it to the both sides of the function, do the indefinite integral with x and y separately by each sides, and we have the final equation

μy=μQ(x)dx,

symplify it and replace μ by eP(x)dx, we have

y=eP(x)dx·eP(x)dxQ(x)dx

which is the general solution of the first order linear equation.

BE CAREFUL that in the right side of the equation, the constant C of the indefinite integral should be multiplied by μ