Professional Documents
Culture Documents
Review - Solutions of Ordinary Differential Equations: Example
Review - Solutions of Ordinary Differential Equations: Example
dy
=C
dt
Example:
y = y(t)
ty
dy
=C
dt
2
Solve: y / 2 = C ln ( t ) + C1
C
dt
t
dy
+ P ( x) y = Q ( x)
dx
( Pdx )
Solve: This leads to an exact differential on the LHS, which can be solved
easily.
d3y
dx 3
d2y
dx 2
dy
+ 6y = 0
dx
(D3 - 4D2 + D + 6) y = 0
Factor the LHS: Here, (D + 1) (D - 2) (D - 3) y = 0
Find the roots of the LHS: Here the roots are -1, 2, and 3
Solve: y = C1e x + C2 e 2 x + C3e3 x
Example:
y = y(x)
d y
Example:
y = y(x)
dx 2
a2 y = 0
d y
+ a2y = 0
dx 2
dn y
dx n
: Here,
d3y
dx
+ P ( x)
d2y
dy
+ = Q ( x)
2
dx
dx
d2y
dy
, F3 y
dx
dx
Split equation into N first-order equations, one for each F:
F1
, F2
dF3 dy
dF1 d 3 y
dF2 d 2 y
d 2 y dy
= 3 = Q( x) P ( x) 2 ,
=
= 2 ,
dx dx
dx dx
dx
dx
dx
dx
Define derivative array in standard Runge-Kutta form, in terms of the
N unknowns, F1, F2, ..., FN:
dF
dF
dF
D1 1 = Q( x) P( x) F1 F2 2 , D2 2 = F1 , D3 3 = F2
dx
dx
dx
Solve simultaneously for F1, F2, ..., FN using the Runge-Kutta
numerical technique and the boundary conditions.