Professional Documents
Culture Documents
ODE Problems
ODE Problems
ODE Problems
Jim Denier
d2y dy
(i) 2
4 5 y x 2 x 1 …(*)
dx dx
dy p
a1 2a2 x ︵ ︶
dx
.
.
.
3
d 2 yp
2 a2 ︵ ︶
dx 2
Equate coefficients
For x 2 terms : 5a2 1
67 13 1
For x terms : 5a1 8a2 1 a0 , a1 , a2
125 25 5
For const. terms : 5a0 4a1 2a2 1
67 13 1
y p a0 a1 x a2 x 2 x x2
125 25 5
67 13 1
Complete solution : y yh y p e 2 x ( A cos x B sin x) x x2
125 25 5
(ii).
d2y dy
2
12 36 y 5e 6 x x 2 ... 1)
dx dx
126Cx e 2Cxe a 2a x
2 6x 6x
1 2
36Cx e a a x a x 5e x
2 6x
0 1 2
2 6x 2
d2y dy
2
4 5y 0 …(1)
dt dt
(a)
Write (1) as two 1st order ODE’s
dy
y1 y ...(2) and y2 ...(3)
dt
dy1 dy2 d 2 y dy
y' from(3) y2 ...(4) and 2 from(1) 4 5y
dt dt dt dt
from(3) 4y2 5y1 ...(5)
Thus,
dy1 dy2
y2 and 4y2 5y1
dt dt
dy1
0 1 y1
y ' A y dt
2 5 4 y 2
dy
dt
(b)
0 1
Now solutions(eigenvalues) exist for : det( A I ) x 0 det 0
5 4
(0 )(4 ) (1)(5) 0
E
i
g
e
n
v
a
l
u
e
s
2 4 5 0 1 2 i, 2 2 i
(c)
An Eigenvector exists for each eigenvalue
When 1 2 i
0 (2 i ) 1 x1 0
5 4 (2 i ) x2 0
S
e
t
1
(2 i) x1 x2 0 x1 1 x2 2 i x (1)
2 i
S
e
t
5 x1 (2 i ) x2 0 x1 1 x2 2 i
Similarly, when 2 2 i
0 (2 i) 1 x1 0
5 4 (2 i ) x2 0
S
e
t
1
(2 i ) x1 x2 0 x1 1 x2 2 i x ( 2)
2 i
S
e
t
5 x1 (2 i ) x2 0 x1 1 x2 2 i
(1) ( 2)
A basisof solutionsexistsuch that: y c1 x e At c2 x eBt
1 (2i)t 1 (2i)t
y c1 e c2 e
2 i 2 i
OR
y1 c1e(2i )t c2e(2i)t
y2 c1 (2 i)e(2i)t c2 (2 i)e(2i )t
(d)
GET A REAL SOLUTION:
1 cos t sin t
y (1) e 2t cos t i sin t e 2t i
2 i 2 cos t sin t cos t 2 sin t
1 cos t sin t
y (1) e 2t cos t i sin t e 2t
i
2 i 2 cos t sin t cos t 2 sin t
To get a real solution we use Euler's formula:
1 (1)
y (1) NEW
2
y y (2)
1 / 2cos t cos t 1 / 2sin t sin t
1 / 2(2 cos t sin t 2 cos t sin t ) i 1 / 2(cos t 2 sin t (cos t 2 sin t ))
cos t 0
i
2 cos t sin t 0
y1 2t
cost sint
y e c1 - 2cost - sint c2 cost - 2sint
2
Lecture 5 & 6 Questions
1. (a)
-- A t
-:::. (\J
:::, 0
�
D
Cl I
0 0
�o i
2. (ENGSCI 314 Exam 2013)
3. (ENGSCI 314 Exam 2012)
Solution
The lower loop gives
L1 I 1′ + R1 ( I 1 − I 2 ) = E
Similarly, the upper loop gives
L2 I 2′ + R2 I 2 + R1 ( I 2 − I 1 ) = 0
Rearranging gives the system
⎛ R ⎞ ⎛R ⎞ E
I 1′ = ⎜⎜ − 1 ⎟⎟ I 1 + ⎜⎜ 1 ⎟⎟ I 2 +
⎝ L1 ⎠ ⎝ L1 ⎠ L1
⎛R ⎞ ⎛ R + R2 ⎞
I 2′ = ⎜⎜ 1 ⎟⎟ I 1 + ⎜⎜ − 1 ⎟⎟ I 2
⎝ 2⎠
L ⎝ L 2 ⎠
Substituting in the values gives the system
⎛ 3⎞ ⎛ 3⎞
I 1′ = ⎜ − ⎟ I 1 + ⎜ ⎟ I 2 + 6
⎝ 2⎠ ⎝ 2⎠
⎛ 3⎞ ⎛ 11 ⎞
I 2′ = ⎜ ⎟ I 1 + ⎜ − ⎟ I 2
⎝ 2⎠ ⎝ 2⎠
The characteristic equation for the homogeneous equation is
− 3/ 2 − λ 3/ 2
= λ2 + 7λ + 6 = 0 → λ = −1,−6
3/ 2 − 11 / 2 − λ
The eigenvectors are obtained from (−3 / 2 − λ ) x1 + (3 / 2) x 2 = 0 , and we get
⎡3⎤ ⎡1⎤
x (1) = ⎢ ⎥, x ( 2 ) = ⎢ ⎥
⎣1⎦ ⎣− 3⎦
For the particular solution, try the constant vector
⎡ A⎤
Ip = ⎢ ⎥
⎣B⎦
so that, substituting into the original system,
⎛ 3⎞ ⎛ 3⎞
0 = ⎜ − ⎟ A + ⎜ ⎟B + 6
⎝ 2⎠ ⎝ 2⎠
⎛ 3⎞ ⎛ 11 ⎞
0 = ⎜ ⎟ A + ⎜ − ⎟B
⎝ 2⎠ ⎝ 2⎠
which can be solved to get A = 11 / 2, B = 3 / 2 . The general solution is thus
⎡ I1 ⎤ ⎡3⎤ −t ⎡ 1 ⎤ −6t ⎡11 / 2⎤
⎢ I ⎥ = c1 ⎢1⎥ e + c 2 ⎢− 3⎥ e + ⎢ 3 / 2 ⎥
⎣ 2⎦ ⎣ ⎦ ⎣ ⎦ ⎣ ⎦
Using the initial conditions, I 1 (0) = I 2 (0) = 0 , so that
⎡0 ⎤ ⎡3⎤ ⎡ 1 ⎤ ⎡11 / 2⎤
⎢0⎥ = c1 ⎢1⎥ + c 2 ⎢− 3⎥ + ⎢ 3 / 2 ⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦ ⎣ ⎦
which can be solved to get c1 = −18 / 10, c 2 = −1 / 10 . The solution is thus
⎡ I 1 ⎤ ⎡− 5.4⎤ −t ⎡ − 0.1⎤ −6t ⎡5.5⎤
⎢ I ⎥ = ⎢ − 1.8 ⎥ e + ⎢+ 0.3⎥ e + ⎢1.5 ⎥
⎣ 2⎦ ⎣ ⎦ ⎣ ⎦ ⎣ ⎦
The steady state is obviously I 1 = 5.5, I 2 = 1.5 .
Lecture 7 Questions
(i) Let m1 10,000, m2 5,000 and k1 400,000, k 2 200,000 . Our system of
equations is (dividing across by 1000 )
10 y1 400 y1 200( y1 y 2 )
5 y 2 200( y 2 y1 )
(ii) or, in matrix form,
10 0 y1 600 200 y1
0 5 y 200 200 y
2 2
(iii) Guess that y x cos(t ) ,
(iv) Differentiate twice to get y 2 x cos(t ) , and substitute into the system to get
10 0 x1 600 200 x1
2 cos(t ) cos(t )
0 5 x 2 200 200 x 2
200 200 5 2
2 80 : 600 10 y
2 1
200 y 2 200 y1 200 y 2 0 x (1)
1
1
2 20 : 1
600 10 2 y1 200 y 2 400 y1 200 y 2 0 x ( 2 )
2
A cos 4t B sin 4t
C cos 4t D sin 4t
440 A 200C 0
440 B 200 D Fo
A C 0, B 3Fo / 320, D Fo / 64
200 A 120C 0
200 B 120 D 0
Lecture 8 Questions
(a) x 2 x, y x y
2 0
(i) The eigenvalues are the roots of 0 , 1, 2 .
1 1
(ii) Node
(iv) Unstable
(b) x 2 x y, y y
2 1
(ii) The eigenvalues are the roots of 0 , 1, 2 .
0 1
(iii) Saddle Point
(iv) Unstable
Lecture 9 Questions
(i)
Determine the equilibrium points
At equilibrium, x’=y’=x’’=y’’ = 0
0 2 x 2 y xy x 2 y /( 2 y ) ...(1)
0 2 x y xy Subst .in(1) y (2 3 y ) 0 …(2)
(8 / 3) 3 / 2 u 0
4/3
(3 / 2) v 0
(8 / 3) 3/ 2
62 25 12 0
4/3 (3 / 2)
25 337
12
Hence, the eigenvalues are Real & both positive An Unstable node