Skip to content

1stODE

Separable Variable Method

for any ODE satisfying

dydx=g(x)h(y)

linear Equation


standard form

y+P(x)y=f(x)

integrating factor

M(x)=eP(x)dx

solving method

  1. standard form

    y+Py=f
  2. multiple M(x)

    yM+PMy=fM
  3. notice that

    M=PM
  4. thus (form 2.)

    My+My=Mf
  5. according to product rule

    ddx(My)=Mf
  6. integrate both sides

    My=Mfdx+c
  7. check initial value and singular points 1


Exact Equation

Any 1st ODE can be written as

M(x,y)dx+N(x,y)dy=0

If f(x,y), s.t.

df(x,y)=f(x,y)xdx+f(x,y)ydy=0

which means

f(x,y)x=M(x,y)
and
f(x,y)x=N(x,y)

, then

M(x,y)dx+N(x,y)dy=0

is an Exact Equation.


for an exact equation

M(x,y)dx+N(x,y)dy=0

due to

df(x,y)=f(x,y)xdx+f(x,y)ydy=0

we know that

f(x,y)=c

solution to exact equation

M(x,y)dx+N(x,y)dy=0
  1. check the 1st ODE is exact equation

    My=Nx=fxy
  2. then

    f(x,y)=Mdx+g(y)
  3. and we can get g(y) by

    yf(x,y)=N(x,y)
  4. solve

    f(x,y)=c

modify non-exact equations to exact equations

given a 1st ODE which isn't exact equation

M(x,y)dx+N(x,y)dy=0

meaning

MyNx

we can try to find an integrating factor μ s.t.

μMdx+μNdy=0

is an exact equation.


check if this equation satisfy either

1. > > \(h(y)=NxMyM\) > > is independent to x. (dependent to y alone)

or

2. > > \(h(x)=MyNxN\) > > is independent to y. (dependent to x alone)

if neither of these condition were satisfied, the equation cannot be exact equation.

otherwise, the equation can be multiplied by μ to become exact equation, and solve by the method mentioned above.

  1. μ(y)=eh(y)dy

or

  1. μ(x)=eh(x)dx

see proof.

homogeneous Equation

There are two different definition of homogeneous equation.

homogeneous Linear Equation

The constant term of linear Equation is zero

In 1st ODE case

y+P(x)y=f(x)

The equation is homogeneous if f(x) = 0

see further definition.

homogeneous 1st ODE

以下兩種定義等價。

  • ODE in y=f(x,y) form

    The equation is homogeneous if

    y=f(x,y)=f(tx,ty)
  • ODE in Mdx+Ndy=0 form

    If M(x,y) and N(x,y) are homogeneous functions of the same degree, then the 1st ODE is homogeneous.


Quick Check Guide : sum of powers (指數之和)


Solution to 1st ODE

Set y=ux, dy=udx+xdu,

then use separable variable method


Bernoulli's Equations

aka 白努力 equation

standard form

y+P(x)y=f(x)yn

Solution

Assume

u=y1n

according to chain rule, we can write

dydx=11nun1ndudx

代入 standard form

11nun1ndudx+P(x)u11n=f(x)un1ndudx+P(x)(1n)u=(1n)f(x)

then use the method of solving linear 1st ODE.


Ax + By + C

If the 1st ODE has the form

dydx=f(Ax+By+C),(B0)

set u=Ax+By+C

then

du=Adx+Bdydydx=1BdudxAB1BdudxAB=f(u)

and solve it by any method above.


  1. singular points

    x s.t.

    P(x)orf(x)

    singular points cannot be solution.