Professional Documents
Culture Documents
First-Order ODEs
Physical laws and relations are almost always described by differential equations
F ( x, y, y ) 0 ,
y f ( x, y ) .
A function
y h (x )
Example:
1
dy
y 2 x c (c is an arbitrary constant) is a family of solutions of y 2 . Such a
dx
solution containing an arbitrary constant c is called a general solution (通解) of the
ODE. If we choose a specific c (e.g., 1 or 0 or -1) we obtain what is called a particular
solution (特解) of the ODE. A particular solution does not contain any arbitrary
constants.
Example:
※ Modeling (模擬)
2
Three steps:
Solve the ODE to the get the familiar law of free fall y gt 2 2 .
3
1.3 Separable ODEs (可分離常微分方程). Modeling
g ( y ) y f ( x)
by purely algebraic manipulations. Then we can integrate on both sides with respect
to x, obtaining
g ( y) ydx f ( x)dx c .
On the left we can switch to y as the variable of integration. By calculus, y dx dy ,
so that
g ( y)dy f ( x)dx c
This method is called the method of separating variables (分離變數法).
Example:
Solve y ( x 2) y 2 0 .
Solution:
dy
( x 2) y 2 0
dx
dy
( x 2) dx
y2
1 x2
2x c
y 2
1 2
y 2 .
x 2 2 x c x 4 x 2c
2
y f ( y x) .
4
Here, f is any (differentiable) function of y x , such as y x 2 , ln y x , and so on.
The form of such an ODE suggests that we set y x u ; thus
dy
y ux and y u x u .
dx
u x u f (u ) or u x f (u ) u .
du dx
.
f (u ) u x
Example:
2 xyy 3 y 2 x 2 , y (1) 2 .
Solution:
dy y x
2 3
dx x y
y dy 1
Now let u and y u x u , thus we have 2 (u x u ) 3u
x dx u
1 u2 1
2u x u
u u
u du dx
2
u 1 x
2
ln (u 2 1) ln x c
u 2 1 cx
y x cx 1
y x 5x 1 .
5
1.4 Exact ODEs (正合常微分方程式). Integrating Factors (積分因子)
u u
du dx dy .
x y
M ( x, y )dx N ( x, y ) dy 0
u u
du dx dy
x y
du 0 .
u ( x, y ) c .
This is called the implicit form (隱式形式), in contrast with a solution y h (x) as
defined in §1.1, which is also called an explicit solution (顯式解).
u u
Comparing M ( x, y )dx N ( x, y ) dy 0 and du dx dy , we see that the
x y
former is an exact differential if there is some function u ( x, y ) such that
u u
(a) M (b) N
x y
M 2u 2u N
.
y yx xy x
6
This condition is not only necessary but also sufficient for
M ( x, y )dx N ( x, y ) dy 0 to be an exact differential equation.
u Mdx k ( y)
u
To determine k ( y ) , we derive u y from u Mdx k ( y) , use N to get
y
dk dy , and integrate dk dy to get k.
Example:
Solution:
M sin x sinh y
N cos x cosh y
M N
sin x cosh y ∴ the ODE is exact
y x
Determination of u ( x, y )
u dk ( y )
cos x cosh y N cos x cosh y k ( y ) c
y dy
u cos x sinh y c .
7
P( x, y ) dx Q( x, y ) dy 0
P( x, y ) F ( x, y ) dx Q( x, y ) F ( x, y ) dy 0
Example:
Solution:
F ( x, y ) ( y x 2 ) dx F ( x, y ) dy 0
( y x 2 ) F y F Fx reduces to
( y x 2 ) e x dx e x dy 0
Determination of u ( x, y )
u ( y x 2 ) e x dx ye x x 2 e x 2 xe x 2e x k ( y)
u
e x k ( y) e x k ( y ) 0 k ( y ) const.
y
8
1.5 Linear ODEs ( 線 性 常 微 分 方 程). Bernoulli Equation ( 柏 努 利 方 程 式 ).
Population Dynamics (族群動態)
A 1st order linear ODE is defined when the differential equation is linear in both y ( x)
and its first order derivative dy ( x) / dx . That is, there is no multiplication between
y ( x) and dy ( x) / dx in the 1st order ODE. Therefore, a first-order ODE is said to be
linear if it can be written as
y p ( x) y r ( x)
y p ( x) y 0
dy
p ( x) y 0
dx
dy
p( x) dx
y
Thus
ln y p( x) dx c *
y ( x ) ce
p ( x ) dx
.
Rewrite y p ( x) y r ( x) as
9
F ( py r ) Fy ( py r ) Fp Fx
y
dF
Fp Fx then p ( x) dx
F
Therefore
F ( x, y ) F ( x ) e
pdx
e ( y py ) (e y) e
pdx pdx pdx
r
By integrating the second and third terms of these three expressions with respect to x
e y e
pdx pdx
r dx c
y( x) e h e h r dx c , h( x) p( x) dx .
Example:
2
y y 2 (1 ln x)
x
Solution:
2 1
h( x ) dx 2 ln x , e h
x x2
x3 x3 x3 2x 3 x 3
2 x 2 (1 ln x) dx 2 ln x 2 ln x
3 3 9 9 3
1 2x3 x 3
y ( x) 2 2 ln x c .
x 9 3
10
※ Reduction to Linear Form. Bernoulli Equation
y p ( x) y g ( x) y a .
u ( x) y ( x)
1 a
Then
u (1 a ) y a y (1 a ) y a ( gy a py ) (1 a ) ( g pu )
u (1 a) pu (1 a) g
Example:
1
y y (1 ln x) y 3
x
Solution:
du dy
Let u y 2 then 2 y 3 .
dx dx
2
u u 2 (1 ln x) .
x
11