Professional Documents
Culture Documents
Linear DE
where
are called coefficients and
is a function of
Variable coefficients
Coefficients with variable such as , , in it.
Normally will be written as , , or
Constant coefficients
Coefficients with constants such as 2, 5, in it.
Will be written as or
1
Chapter 2: Second Order Differential Equations SSE1793
Homogenous Equation
When
Non-Homogenous Equation
When
Example 2.1.1:
1. y 7 y 10 y 0
Linear / Non-linear
Constant Coefficients / Variable Coefficients
Homogenous / Non-homogenous Equation
2. yy 3 y 5 y 5x
2 2
Linear / Non-linear
Constant Coefficients / Variable Coefficients
Homogenous / Non-homogenous Equation
Linear / Non-linear
Constant Coefficients / Variable Coefficients
Homogenous / Non-homogenous Equation
2
Chapter 2: Second Order Differential Equations SSE1793
Linearly independent
Linearly dependent
At least one of
Example 2.1.2:
Solution:
a) Given that y1 sin x and y2 4sin x . Equation
can be rewritten as
4C2 sin x
sin x ,
C1
gives .
Since , this equation is linearly dependent
3
Chapter 2: Second Order Differential Equations SSE1793
4
Chapter 2: Second Order Differential Equations SSE1793
dy d2y
y emt ; memt ; m2emt
dt dt 2 (ii)
mt
2) The solution y e must satisfy (i). Insert (ii) -> (i) gives the
characteristic (auxiliary) equation:
am 2 bm c 0 (iii)
5
Chapter 2: Second Order Differential Equations SSE1793
Example 2.2.1:
Solve y '' 5 y ' 6 y 0.
Solution:
1) Use the characteristic equation:
m 2 5m 6 0.
Example 2.2.2:
Solve y y 11 y 0.
Solution:
1) Use the characteristic equation:
m 2 m 11 0.
1 45
2) Find the roots : m
2 2
1 45 1 45
m1 , m2 .
2 2
3) The general solution is
y( x) Aem1x Bem2 x .
6
Chapter 2: Second Order Differential Equations SSE1793
Example 2.2.3:
Solve y 6 y 9 y 0
Solution:
1) Use the characteristic equation:
m 6m 9 0
2
Example 2.2.4:
Solve y 10 y 26 y 0.
Solution:
1) Use the characteristic equation:
m 2 10m 26 0.
10 100 4( 26)
2) Find the roots : m
2
10 4 10 4i 2
5i
2 2
5 ; 1
3) The general solution is
y( x) e5 x ( A cos x B sin x)
7
Chapter 2: Second Order Differential Equations SSE1793
Example 2.2.5:
Solve the initial value problem: y 6 y 16 y 0 ; y (0) 1, y(0) 0.
y ' e 3t A 7 sin 7t 7 B cos 7t A cos 7t B sin 7t ( 3e 3t )
3
0 7B A 3 7 B 3 B .
7
5) The solution is
3
y(t ) e3t cos 7t sin 7t
7
Exercise 2.2
8
Chapter 2: Second Order Differential Equations SSE1793
where
y (x) is the solution of the homogeneous equation and y (x) is
h p
9
Chapter 2: Second Order Differential Equations SSE1793
Example 2.3.1:
Solve y y 2 y 2 x 4 x 2
(i)
Solution:
Step 1 : Find yh (x) : m m20
2
(m 1)(m 2) 0 m 2,1
y ( x) Ae
h
2 x
Be x
yp ( x) 2C2 x C1
(iii)
yp ( x) 2C2
10
Chapter 2: Second Order Differential Equations SSE1793
Therefore,
1
C 1
2
C 1
1
C
0
2
1
y p ( x) x 2 x
2
Final Answer:
1
y ( x) Ae 2 x
Be x x
x 2
2
What is the y p ( x )
Example 2.3.2: for this f (x)
Solve y " 2 y ' x
Solution:
Step 1 : yh A Be
2 x
y C
p 1
y 0
p
Compare to yh again
Step 3 : Choose new y p with r 1; Try and now, this y p is
y ( x ) x C x C
p 1 0 correct!!
1 1
C1 ; C0
4 4
1
y p ( x 2 x)
4
Final Answer:
1
y ( x) A Be 2 x
( x x)
2
4
11
Chapter 2: Second Order Differential Equations SSE1793
Case 2: For f (x) is the form Ce mx . Notes: Choose the smallest r, (r = 0,1,2).
Chosen to ensure that no term in y p ( x )
Seek y p x r Demx . is in the corresponding yh ( x) .
Example 2.3.3:
Solve y y 2 y 5e .
3x
(i)
What is the y p ( x )
Solution: for this f (x)
Step 1: Find yh (x) .
m m2 0
2
(m 2)(m 1) 0 m 2,1 ,
y ( x) Ae
h
2 x
Be x
(ii)
Equate coefficients:
(9 D 3D 2 D)e 5e 3x 3x
1
10 D 5 D
2
1 3x
yp e
2
Final Answer:
1
y( x) y y Ae h p
2 x
Be e x 3x
12
Chapter 2: Second Order Differential Equations SSE1793
Example 2.3.4:
What is the y p ( x )
Solve y 2 y 3e
2 x
. for this f (x)
2 x
Solution: Identify that f(x) in form Ce .
Step 1: Find yh : m 2 2m 0
m(m 2) 0
m 0,2
yh ( x) A Be2 x Look! This term is
already appears in yh . We
Step 2: Find yp Try r = 0; have to modify this y p .
y De
p
2 x
Choose new y p !!
y = Dxe
p
2 x
yp De 2 x 2 Dxe 2 x
Compare to yh again
and now, this y p is
yp 4 De 2 x 4 Dxe 2 correct!!
3
D =
2
Final Answer:
3
y ( x) A Be 2 x
xe 2 x
13
Chapter 2: Second Order Differential Equations SSE1793
Example 2.3.5:
Solve y y 2 y sin x. (i)
What is the y p ( x )
Solution:
for this f (x)
Identify that f(x) in form sin x .
Step 1: Find yh :
yh ( x) Ae2 x Be x
Equate coefficients:
3 1
C , D cos x
10 10
3 1
y p sin x cos x
10 10
Final Answer:
3 1
y ( x) Ae 2 x Be x sin x cos x
10 10
14
Chapter 2: Second Order Differential Equations SSE1793
f ( x) f1 ( x) f 2 ( x) f3 ( x) ..... f n ( x)
then
y p ( x) y p1 ( x) y p 2 ( x) y p 3 ( x) ..... y pn ( x) .
f ( x) y p ( x)
Pn ( x)e mx x C x C x .... C x C e
r
n
n
n 1
n 1
1 0
mx
Notes: Choose the smallest r, (r = 0,1,2). Chosen to ensure that no term in y p ( x ) is in the
corresponding yh ( x) .
15
Chapter 2: Second Order Differential Equations SSE1793
Solution:
Step 1: Find yh ( x)
m 2m 8 0
2
m 2 m 4 0 m 2, 4
Step 2: Find y p ( x )
x
Try: y p ( x ) e (C1 x C0 ) (iii)
y ( x ) Ae 2 x Be 4 x xe x
1
9
16
Chapter 2: Second Order Differential Equations SSE1793
What is the y p ( x )
Example 2.3.7:
for this f (x)
Solve y y 2 y e
x
x (i)
Solution:
Step1: Characteristic Equation:
y ( x) Ae Be
h
2x x
(ii)
Step 2: Write y p y p1 y p 2
Step 3: Find y p1 Look!! This is same with yh .
Try y p 1 De
x
Try new yp
y xDe
p1
x
y De xDe
p1
x x
y 2 De xDe
p1
x x
y x yh x y p1 x y p 2 x
1 1 1
Ae 2 x Be x xe x x
3 2 4
17
Chapter 2: Second Order Differential Equations SSE1793
Exercise 2.3.1:
[Ans: NO]
a) y '' 2 y y x e
1 x
[Ans: Yes]
b) 5 y '' 3 y 2 y x cos5 x
3
[Ans: N0]
c) y '' 4 y 3cos(e )
x
[Ans: Yes]
d) y '' 3 y y cos x
2
y 2 y 3 y f ( x)
x [Ans: y x C x C e ] x
e) 3 xe p 1 0
18
Chapter 2: Second Order Differential Equations SSE1793
19
Chapter 2: Second Order Differential Equations SSE1793
y1 y2
W y1 y2 y2 y1
y1 y2
y2 f ( x ) y1 F ( x)
u ( x) dx C ; v( x) dx D
aW aW
y uy1 vy2
20
Chapter 2: Second Order Differential Equations SSE1793
Example 2.3.8:
Find the solution for y y sec x (i)
Solution :
Step 1 : Identify a = 1, f(x) = sec x. Both are arbitrary
choices, where we
can let y1 ( x) sin x
Step 2: Find root y y 0 : and y2 ( x) cos x
m 2 1 0 m 2 1 i 2 m i . and we can let
arbitrary constants A
yh x A cos x B sin x (ii) and B equal to 1.
Notes: Constant a is the coefficients for y” in actual equations. We can let the actual
equations in easier form so that a = 1. For example, if we are given this function
1 sec x
3 y y sec x , we can write the equation in this form y y .
3 3
21
Chapter 2: Second Order Differential Equations SSE1793
Example 2.3.9:
Find the solution for y 4 y 4 y x 1e
2x
by using variation
of parameters.
Solution:
Step 1 : a = 1 and f(x) = (x+1)e2x
y f x xe 2x
x 1 e 2x
u x 2
dx 4x
dx x x 1dx x x dx
2
W e
3 2
x x
u x
C
3 2
y f x e x 1 e 2x 2x
v x 1
dx dx ( x 1)dx
4x
W e
x2
v x x D Check your answer by
2 using the method of
undetermined coefficients.
Step 5 : General solution:
x3 x 2
y uy1 vy2 e Ce 2 x Dxe 2 x
2x
6 2
22
Chapter 2: Second Order Differential Equations SSE1793
Exercise 2.3.2
Solve the following differential equations
1. y 4 y tan 2 x
2. y 2 y 3 y 6
3. y '' 4 y 2sin x
6. x '' 4 x ' 4 x te 2t
23
Chapter 2: Second Order Differential Equations SSE1793
b
y
where
m = inertia
b = damping
k=stiffness
f (t ) = force vibration.
Undamped; b 0 Damped; b 0
Free vibration; my ky 0 my by ky 0
f (t ) 0
->Homogeneous
24
Chapter 2: Second Order Differential Equations SSE1793
y
The motion of a
mass in case 1 is
called simple
harmonic motion
25
Chapter 2: Second Order Differential Equations SSE1793
Notes:
Given k1 cos t k 2 sin t , we can write this as
k1 k 2
2 2 k1
cos t
k2
sin t
2 2 2 2
k
1 k 2 k 1 k 2
i.e
k1 k2
k1 cos t k2 sin t k1 k2 2
cos t
2
sin t
k2 k 2 k1 k2
2 2
1 2
where
k1 k2
sin , cos
k12 k2 2 k12 k2 2
k1
sin k12 k2 2
tan arctan
k1
cos k2
k2
k12 k2 2
k1 cos t k 2 sin t
k1 k 2 sin cos t cos sin t
2 2
k1 k 2 sin t
2 2
k1 cos t k 2 sin t
k1 k 2 cos cos t sin sin t
2 2
k1 k 2 cos t
2 2
26
Chapter 2: Second Order Differential Equations SSE1793
1) b 4mk
2
Underdamped or Oscillatory Motion
2m , 2m 2m
The general solution to (i) is
y (t ) k e k e
1
r1t
2
r2t
27
Chapter 2: Second Order Differential Equations SSE1793
3) b 4mk
2
Critical damped Motion Two repeated roots
28
Chapter 2: Second Order Differential Equations SSE1793
Example 2.4.1
Solve the initial boundary problem for undamped mechanical
system.
d2y
m 2 ky F cos t (i)
dt
y0 y 0 0 where
k
m
Solution:
Find homogeneous solution of (i).
Rewrite (i) as
d2y k F
2
y cos t (ii)
dt m m
Set 2
k
m
, k
m
29
Chapter 2: Second Order Differential Equations SSE1793
To find const and D and C, substitute (iv) a,b,c into (ii). Equate
coefficients of cos t and sin t
m( C 2 cos t D 2 sin t ) k ( C cos t D sin t ) F0 cos t
F
D0 , C
m 2 2
F
y x A cos t B sin t cos t
m
2 2
(v)
Final Answer:
F F
y t cos t cos t
m 2 2
m
2 2
30
Chapter 2: Second Order Differential Equations SSE1793
4mk b 2 F
y t Ae ( b /2 m ) t
sin t sin( t )
2 m (k m ) b
2 2 2
______________________________________________________________________________
Exercise 2.4.1:
31
Chapter 2: Second Order Differential Equations SSE1793
32
Chapter 2: Second Order Differential Equations SSE1793
Example 2.4.3:
The series RLC circuit has a voltage source given by E t 100 V ,
a resistor R 20 , an inductor L 10H , and a capacitor
c 6260 . If the initial current and the initial charge on the
1
capacitor are both zero, determine the current in the circuit for t>0.
Solution:
The equation :
dI q
L RI E t (i)
dt c
The initial conditions: q 0 0 , I 0 0
The information:
L 10 , R 20 , E t 100 , c 6260
1
33
Chapter 2: Second Order Differential Equations SSE1793
d 2I
L 2 R
dI 1 dq
d
E t
dt dt c dt dt
d 2I
L 2 R
dI 1
I
d
E t (ii)
dt dt c dt
In our case L 10 , R 20 , E t 100 , c 6260
1
Step 3: Need to find A & B . Substitute the Initial condition given into
(iv):
I 0 0 0 A
I t Be t sin 25t (v)
34
Chapter 2: Second Order Differential Equations SSE1793
RI 0
dI condition t = 0,
L 100 I = 0.
dt t o c
dI dI 100
L 100 10
dt t o dt t o L
From (iv),
dI
dt
B e t sin 25t e t 25 cos 25t
100 B 25 B
10 2
25 5
Final answer:
2 t
I t e sin 25t
5
Method 2 : Solve the non-homogeneous equation
Step 1:
dq dI d 2 q
We know I , substitute to equation (i):
dt dt dt 2
d 2q dq q
L 2 R E t (vi)
dt dt c
In our case L 10 , R 20 , E t 100 , c 6260 ,
1
35
Chapter 2: Second Order Differential Equations SSE1793
d 2q dq
10 2 20 6260q 100
dt dt
Or
This is a nonhomogenous
d 2q dq
2
10 626q 10 equation. Can you remember
how to solve this?? You have
dt dt to find qh and q p !!!
Step 2:
Then find qh and q p
Differentiate (vii)
dq
From I.C: dt
0 at t 0
0 25 B A
A 10 2 1
B
25 625 25 3130 1505
The final answer :
I t
2 t
e sin 25t
5
Exercise 2.4.2
37