4 Ordinary Differential Equations
4 Ordinary Differential Equations
1
Ordinary Differential Equations — Introduction © Wei-Chau Xie
x(t) x, x, x
k F(t) kx F(t)
m m
Definition
3
Ordinary Differential Equations — Introduction © Wei-Chau Xie
dn y dn−1y dy
an(x) n + an−1(x) n−1 + · · · + a1(x) + a0(x) y = f(x)
dx dx dx
If a0(x), a1(x), . . . , an(x) are constants, the ordinary differential equation is said
to have constant coefficients. Otherwise it is said to have variable coefficients.
Example
d2 y
. + 2 y = sin 3x Second-order linear with constant coefficients
dx2
dy 2
. + 2 y = sin 3x First-order nonlinear
dx
2
2 y
d dy
. x 2
+ 2x − y = ln x Second-order linear with variable coefficients
dx dx
4
Ordinary Differential Equations — Introduction © Wei-Chau Xie
Example
∂ 2u ∂ 2u
. + = f(x, y) Poisson’s equation in two-dimensions
∂x2 ∂y2
∂ 2u 1 ∂u
. 2
= Heat equation in one-dimension
∂x c ∂t
5
Ordinary Differential Equations — Introduction © Wei-Chau Xie
Example
7
Ordinary Differential Equations — Introduction © Wei-Chau Xie
8
Ordinary Differential Equations — Introduction © Wei-Chau Xie
9
First-Order Differential Equations — Method of Separation of Variables © Wei-Chau Xie
Case 1: If φ( y) =
/ 0, divide the DE by φ( y):
1
dy = f(x) dx
φ( y)
| {z }
| {z }
Contains y only Contains x only
General solution can be obtained by integrating both sides
Z Z
1
dy = f(x) dx + C C = arbitrary constant
φ( y)
10
First-Order Differential Equations — Method of Separation of Variables © Wei-Chau Xie
Example
dy
Solve = 2x y
dx
Case 1: y = 0 is a solution.
Case 2: y = / 0, divide the DE by y and integrate both sides
Z Z
1
. dy = 2x dx + C
y
2 2
. ln y = x + C =⇒ y = ex +C =⇒ y = ±eC · ex
2
11
First-Order Differential Equations — Method of Separation of Variables © Wei-Chau Xie
Example
dy 6x5 + 2x + 1
Solve the IVP = y
, y(0) = π
dx cos y + e
sin π + eπ = C =⇒ C = eπ
The solution of the IVP is
12
First-Order Differential Equations — Method of Separation of Variables © Wei-Chau Xie
Example
dr sin ϕ + e 2r sin ϕ
Solve =
dϕ 3e r + e r cos ϕ
13
First-Order Differential Equations — Linear First-Order Equations © Wei-Chau Xie
The roles of x and y may be exchanged to give linear first-order DE of the form
dx
+ P( y)·x = Q( y)
dy
14
First-Order Differential Equations — Linear First-Order Equations © Wei-Chau Xie
Example
dy
Solve = 5 y + 3e5x
dx
dy
Rewrite the DE in the standard form + P(x)· y = Q(x):
dx
dy
. − 5 · y = 3e5x, P(x) = −5, Q(x) = 3e5x
dx
Z Z R
. P(x) dx = −5 dx = −5x, e P(x)dx = e−5x
Z R Z
P(x)dx
. Q(x)e dx = 3e5x · e−5x dx = 3x
R hZ R i
− P(x)dx P(x)dx
. y=e Q(x)e dx + C = e5x (3x + C)
15
First-Order Differential Equations — Linear First-Order Equations © Wei-Chau Xie
Example
1
Solve y′ =
x − 3y
dy 1 dx
. = =⇒ = x − 3y
dx x − 3y dy
dx
. − 1 · x = −3 y, P( y) = −1, Q( y) = −3 y
dy
Z Z R
. P( y) dy = −1 · dy = − y, e P( y)dy = e−y
Z R Z
P( y)dy − y − 1 −y
. Q( y)e dy = −3 y · e−y dy = −3 e = 3( y + 1)e−y
(−1)2
R hZ R i
. x = e− P( y)dy
Q( y)e P( y)dy
dy + C
. = e y [3( y + 1)e−y + C] = 3( y + 1) + Ce y
16
Applications of First-Order Differential Equations — Heating and Cooling © Wei-Chau Xie
17
Applications of First-Order Differential Equations — Heating and Cooling © Wei-Chau Xie
dT
By Newton’s Law of Cooling = −k(T − Tm)
dt
T: Temperature of the thermometer at time t
Tm: Outside temperature, Tm = −10◦C
The DE can be written as
dT
. + k·T = kTm, P(t) = k, Q(t) = kTm Linear first-order
dt
18
Applications of First-Order Differential Equations — Heating and Cooling © Wei-Chau Xie
Z R Z R Z
P(t)dt P(t)dt
. P(t) dt = kt, e = ekt, Q(t)e dt = kTm · ekt dt = Tm ekt
R hZ R i
− P(t)dt P(t)dt
. T=e Q(t) e dx + C = e−kt (Tm ekt + C)
. ∴ T = −10 + C e−kt
t· ln 32 2 t
. ∴ T(t) = −10 + 30·e = −10 + 30·
3
2 2 10
At t = 2: T(2) = −10 + 30· = = 3.33◦C
3 3
2 t =⇒ 2 t 1 2 1
When T = −5: −5 = −10 + 30· = =⇒ t· ln = ln
3 3 6 3 6
1
ln
6
t= = 4.4 min
2
ln
3
19
Applications of First-Order Differential Equations — Radioactive Decay Law © Wei-Chau Xie
20
Applications of First-Order Differential Equations — Radioactive Decay Law © Wei-Chau Xie
1 =⇒ 1
e−λt1/2 = − λt1/2 = ln = − ln 2
2 2
ln 2 ln 2
∴ t1/2 = or λ=
λ t1/2
21
Applications of First-Order Differential Equations — Motion of a Particle © Wei-Chau Xie
Example
A motor boat is travelling at a speed v0 and the motor is turned off at time
t = 0. The resistance from air is proportional to the velocity, i.e., Rair = −αv,
and the resistance from water is proportional to the square of the velocity, i.e.,
Rwater = −βv2, in which α and β are positive constants. Determine the velocity
of the boat for t > 0.
x, v, a
αv
βv2
22
Applications of First-Order Differential Equations — Motion of a Particle © Wei-Chau Xie
1 v β v − kβ t
. ln = − t+C =⇒ = Ce m
k v+k m v+k
v0
At t = 0, v = v0 =⇒ = C · e0
v0 + k
v0 v0 β v0
∴ C= = α = α+βv
v0 + k v0 + 0
β
β v0 α − αt
− αt · ·e m − αt
Cke m α + β v0 β α v0 e m
v(t) = = =
− αt
m
β v0 − αt
m − αt
1 − Ce 1− ·e (α+βv0) − βv0 e m
α + β v0
23
Applications of First-Order Differential Equations — Mixture Problem © Wei-Chau Xie
Inflow
Q in , c in
Volume = 1000
Amount of salt = s(t)
s(t) Outflow
Concentration c(t) =
1000 Qout , cout
24
Applications of First-Order Differential Equations — Mixture Problem © Wei-Chau Xie
s(t)
s(t) = Amount of salt in the tank at time t =⇒ Salt concentration c(t) =
1000
Inflow
Flow rate Qin = 10 (L/min)
Salt concentration cin = 0.2 (kg/L)
Outflow
Flow rate Qout = 10 (L/min)
s(t)
Salt concentration cout = c(t) = (kg/L)
1000
Consider time interval 1t:
. 1s = Change of amount of salt in 1t
. = (Amount of salt in inflow in 1t) − (Amount of salt in outflow in 1t)
. = cin Qin 1t − cout Qout 1t
s
. = 0.2 × 10 × 1t − × 10 × 1t
1000
25
Applications of First-Order Differential Equations — Mixture Problem © Wei-Chau Xie
ds s
Divide by 1t and take the limit 1→0 =⇒ =2−
dt 100
ds 1 1
. + ·s = 2, P(t) = , Q(t) = 2 Linear first-order
dt 100 100
Z Z R Z t t
t P(t)dt
. P(t) dt = , Q(t)e dt = 2 · e 100 dt = 200 e 100
100
R hZ R i
. s(t) = e− P(t)dt Q(t) e P(t)dt dx + C
t t t
− 100 −
. =e 200 e 100 + C = 200 + C e 100
C is determine from the initial condition: t = 0, s = 50
t
0 − 100
50 = 200 + C e =⇒ C = −150 =⇒ s(t) = 200 − 150 e
50
− 100
At t = 50 min: s(50) = 200 − 150 e = 109.02 kg
t
− 100
When t → ∞: lim s(t) = lim 200 − 150 e = 200 kg
t→∞ t→∞
26
Applications of First-Order Differential Equations — Tank Problem © Wei-Chau Xie
Initial Gd(NO3)3
concentration
C0 = 12 mg/L
Flow rate
Q= 2,300 L/min
27
Applications of First-Order Differential Equations — Tank Problem © Wei-Chau Xie
Outflow = Q1t
Amount of Gd(NO3)3 removed = C(t)·Q1t·α
At time t+1t, the Gd(NO3)3 concentration is C(t+1t).
Amount of Gd(NO3)3 in calandria is C(t+1t)·V.
Z Z
1 1 V
dC = − dt + D, τ= Variable separable
C τ αQ
t
ln C = − + D =⇒ C(t) = D e−t/τ
τ
When t = 0, C(0) = C0 =⇒ D = C0
C(t) V C(t)
∴ C(t) = C0 e−t/τ =⇒ t = −τ ln =− ln
C0 αQ C0
29
Applications of First-Order Differential Equations — Chemical Reaction © Wei-Chau Xie
αβ (1 − e−k̄ t)
∴ x(t) =
α − β e−k̄ t
31
Applications of First-Order Differential Equations — Chemical Reaction © Wei-Chau Xie
a (M+N) 50 (1+4)
. x(10) = 30, α= = = 250
M 1
b (M+N) 32 (1+4)
. β= = = 40
N 4
32
Applications of First-Order Differential Equations — Chemical Reaction © Wei-Chau Xie
88
− 10t ln 25
1000 1 − e
x(t) =
− 10t ln 25
88
25 − 4 e
− 23 ln 88
25
1000 1 − e
At time t = 15: x(15) = = 34.79
− 23 ln 88
25 − 4e 25
88
− 10t ln 25
1000 1 − e 1000
When t → ∞: lim x(t) = = = 40
t→∞ 88
− 10t ln 25 25
25 − 4 e
After a long long time, 40 grams of compound C is produced, which uses 8
grams of chemical A and all 32 grams of chemical B. Since there is no chemical
B left, the chemical reaction stops.
33
Linear Ordinary Differential Equations © Wei-Chau Xie
Using the D-operator, the general nth-order linear ODE can be rewritten as
n n−1
dy
a (x) D + an−1(x) D + · · · + a1(x) D + a0(x) y = F(x), Dy ≡
| n {z } dx
φ(D )
. ∴ φ(D ) y = F(x)
34
Linear Ordinary Differential Equations © Wei-Chau Xie
35
Linear Ordinary Differential Equations — Complementary Solutions © Wei-Chau Xie
φ(D ) y = 0
36
Linear Ordinary Differential Equations — Complementary Solutions © Wei-Chau Xie
λ = a =⇒ yC = C eax
λ = α ±iβ =⇒ yC = eα x(A cos βx + B sin βx)
If the characteristic equation φ(λ)=0 has a p-fold root λ = a
p−1
λ = a, a, . . . , a =⇒ yC = C0 + C1 x + · · · + Cp−1 x e ax
| {z } | {z }
p times polynomial of degree p−1
If φ(λ)=0 has a pair of complex roots λ = α±iβ of p-fold
αx p−1
λ = α±iβ, . . . , α±iβ =⇒ yC = e [ A0 + A1 x + · · · + Ap−1 x cos βx
p−1
+ B0 + B1 x + · · · + Bp−1 x sin βx ]
| {z } | {z }
p times polynomials of degree p−1
37
Linear Ordinary Differential Equations — Complementary Solutions © Wei-Chau Xie
Example
Solve y ′′ − 9 y = 0
Example
Solve (D 2 + 2 D + 2) y = 0
38
Linear Ordinary Differential Equations — Complementary Solutions © Wei-Chau Xie
Example
Solve (D 2 − 4D + 4) y = 0.
Example
Given the characteristic numbers of a DE, write the complementary solution.
1. λ = 2, 2, 2, 0, 0
yC = (C0 + C1 x + C2 x2) e2x + (D0 + D1 x)
√
2. λ = 1 ± i 3, −2, −2, 0, −1
x
√ √
yC = e (A cos 3x + B sin 3x) + (C0 + C1 x) e −2x + D0 + D1 e −x
3. λ = 1, 1, −1, ±i, ±i
yC = (C0 + C1 x) ex + D e−x + [(A0 + A1 x) cos x + (B0 + B1 x) sin x]
39
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
40
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
Example
Find yP for y ′′ + 4 y ′ − 2 y = 2x2 − 3x + 6.
−2C2 = 2 =⇒ C2 = −1
1 5
8C2 − 2C1 = −3 =⇒ C1 = (8C2 + 3) = −
2 2
2C2 + 4C1 − 2C0 = 6 =⇒ C0 = C2 + 2C1 − 3 = −9
5
∴ yP = −x2 − x−9 Particular solution
2
41
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
Example
Solve (D 2 − 3 D + 2) y = 4 e3x.
yC = C1 ex + C2 e2x
∴ 2C = 4 =⇒ C=2 =⇒ yP = 2 e3x
42
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
Example
Find yP for y ′′ − y ′ + y = 2 sin 3x.
yP′′ − yP′ + yP = (−9A cos 3x − 9B sin 3x) − (−3A sin 3x + 3B cos 3x)
+ (A cos 3x + B sin 3x)
= (−8A − 3B) cos 3x + (3A − 8B) sin 3x
= 2 sin 3x
Equate coefficients of corresponding terms
16
−8A − 3B = 0 A = −
73
=⇒
3A − 8B = 2 B = 6
73
16 6
∴ yP = − cos 3x + sin 3x Particular solution
73 73
43
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
Example
Solve (D 2 − 2 D − 3) y = 4x − 5 + 6x e2x.
(D 2 −2 D −3) yP = [4B1 e2x +4(B1 x+B0)e2x] −2 [A1 +B1 e2x +2(B1 x+B0)e2x]
−3 [A1 x+A0 +(B1 x+B0)e2x]
= −3A1 x − (2A1 +3A0) + [(2B1 −3B0) − 3B1 x] e2x
= 4x − 5 + 6x e2x
44
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
∴ y = yC + yP
−x 4
3x 23 4 2x
= C1 e + C2 e − x + − 2x + e General solution
3 9 3
45
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
Example
Given the complementary solution yC and the right-hand side F(x) of the DE, specify
the form of yP using the method of undetermined coefficients.
(1) yC = c1 ex + c2 e2x + (d0 + d1x)e−x, F(x) = 3ex + 2e3x − x e−x
3ex C1 ex c1 ex x·C1 ex
2e3x C2 e3x --
---
---
-- --
---
---
--
−x e−x (D0 + D1 x)e−x (d0 + d1x)e−x x2 ·(D0 + D1 x)e−x
2−x C0 + C1 x c0 + c1 x + c2 x2 x3 ·(C0 + C1 x)
sin x A1 cos x + B1 sin x --
---
---
-- --
---
---
--
− cos 2x A2 cos 2x+B2 sin 2x a cos 2x + b sin 2x x·(A2 cos 2x+B2 sin 2x)
47
Linear Ordinary Differential Equations — Particular Solutions © Wei-Chau Xie
Example
Solve y ′′ − 2 y ′ + y = ex.
yP′′ − 2 yP′ + yP = (2Cex + 4Cxex + Cx2 ex) − 2(2Cxex + Cx2 ex) + Cx2 ex
= 2Cex = ex
1 =⇒ 1
2C = 1 =⇒ C= yP = x2 ex
2 2
1
∴ y = yC + yP = (C0 + C1 x)ex + x2 ex General solution
2
48
Applications of Linear Differential Equations © Wei-Chau Xie
k k
F(t)
c m c m
49
Applications of Linear Differential Equations © Wei-Chau Xie
k
F(t)
c m
x(t) x, x, x
k kx
F(t) F(t)
c m m
cx
k
c m
x(t) x, x, x
x0(t) k k(x−x0)
c m c (x−x0) m
x0(t) x(t)
k
c m
x(t) x, x, x
x0(t) k k(x−x0)
c m c (x−x0) m
P
Newton’s Second Law requires ma = F:
m · ẍ(t) = −k(x−x0) − c(ẋ− ẋ0)
53
Applications of Linear Differential Equations © Wei-Chau Xie
Complementary DE ẍ + 2ζ ω0 ẋ + ω02 x = 0
p
Characteristic equation λ2 + 2ζ ω0 λ + ω02 = 0 =⇒ 2
λ = ω0 −ζ ± ζ −1
Underdamped System 0 6 ζ < 1
Most engineering structures fall in this category with ζ usually less than 10%.
p
2
λ = ω0 −ζ ± i 1−ζ = −ζ ω0 ± iωd
p
where ωd = ω0 1−ζ 2 is the damped natural circular frequency.
xC(t) = e −ζ ω0t(A cos ωd t + B sin ωd t)
A and B are determined from the initial conditions x(0) = x0 and ẋ(0) = v0:
v0 +ζ ω0 x0
A = x0, B=
ωd
v +ζ ω x
∴ xC(t) = e −ζ ω0t x0 cos ωd t + 0 0 0
sin ωd t , 0 6 ζ < 1.
ωd
54
Applications of Linear Differential Equations © Wei-Chau Xie
x0 Amplitude a
Period T = 2π
ω0
t
ϕ
ω0 a cos(ω0 t − ϕ)
−a
55
Applications of Linear Differential Equations © Wei-Chau Xie
2π
Period T =
ω0
ω0 is called the natural circular frequency of the system, unit rad/sec.
ω0 1 cycles
The natural frequency is f = = , unit or Hz.
2π T sec
The maximum displacement is
s
v 2
max xC(t) = a = x20 + 0 = amplitude of the motion
ω0
56
Applications of Linear Differential Equations © Wei-Chau Xie
ϕ t
ωd
−1
xC(t)
a
a e−ζω0t
58
Applications of Linear Differential Equations © Wei-Chau Xie
F0 1 −1 2ζ ω0
.xP(t) = q sin(t−ϕ), ϕ = tan
m (ω2 −2)2 +(2ζ ω )2 ω02 −2
0 0
Excitation frequency
Let r = = = Frequency ratio
ω0 Undamped natural frequency
F 1 F 1 k
. xP(t)max = 0 q
= 0p , ω02 =
m (ω2 −2)2 +(2ζ ω )2 k (1−r ) +(2ζ r)
2 2 2 m
0 0
59
Applications of Linear Differential Equations © Wei-Chau Xie
x (t) 1
P max
=p = Dynamic Magnification Factor
xstatic (1−r2)2 +(2ζ r)2
7
ζ= 0
Dynamic Magnification Factor (DMF)
5 ζ= 0.1
3
ζ = 0.2
2
ζ= 0.3
1
r= ω
0
0 0.5 1 1.5 2 2.5
60
Applications of Linear Differential Equations © Wei-Chau Xie
The smaller the damping coefficient, the larger the amplitudes of dynamic
response.
When ζ = 0 and = ω0, a response of unbound amplitude occurs and the
system is in resonance.
61
Applications of Linear Differential Equations © Wei-Chau Xie
Resonance
When ζ = 0 and = ω0, the equation of motion becomes
F0 F0
ẍP + ω02 xP = sin ω0t =⇒ xP(t) = − t cos ω0t
m 2mω0
xP(t)
62
The Laplace Transform © Wei-Chau Xie
63
The Laplace Transform © Wei-Chau Xie
Example
Determine the Laplace transform of f(t) = 1.
Z ∞
−st 1 −st∞ 1
F(s) = L 1 = e · 1 dt = − e = , s >0
0 s t=0 s
Example
Determine the Laplace transforms of f(t) = sin ωt and f(t) = cos ωt.
Z ∞ Z ∞ ∞
iωt 1
e−st · eiωt dt = e−(s−iω)t dt = − e−(s−iω)t
. L e =
0 0 s−iω t=0
1 s + iω s + iω
. = = = , s >0
s−iω (s−iω)(s+iω) s2 + ω2
. ∵ cos ωt = Re(eiωt), sin ωt = Im(eiωt) eiωt = cos ωt+ i sin ωt
s
iωt
. ∴ L cos ωt = Re[L e ]=
s2 + ω2
L sin ωt = Im[L e ] = 2 ω 2
iωt
.
s +ω
64
The Laplace Transform © Wei-Chau Xie
65
The Laplace Transform © Wei-Chau Xie
Example
Determine the Laplace transform of f(t) = eat.
Z ∞
at
Solution 1: F(s) = L e = e−st · eat dt Definition
0
Z ∞
−(s−a)t 1 −(s−a)t∞ 1
. = e dt = − e = , s >a
0 s−a t=0 s−a
at
Solution 2: F(s) = L e · 1 = L 1 s→(s−a) Property of Shifting
1 1
. = =
s s→(s−a) s−a
66
The Laplace Transform © Wei-Chau Xie
Example
Determine the Laplace transform of f(t) = tn, n=0, 1, . . . .
L t =1 L 1 = 12 ,
1
. n = 1: L 1 =
s s s
L t =2 L t = 2 · 12 = 2·13
2
. n = 2:
s s s s
3 3 2 3 2·1 3·2·1
. n = 3: L t = L t = · 3 = 4
s s s s
. ··· ···
n n!
In general, L t = n+1 , n = 0, 1, . . . 0!=1
s
67
The Heaviside Step Function © Wei-Chau Xie
H(t−a)
1
t
0 a
1 −as
. L H(t −a) = e , s >0
s
. L f(t −a) H(t −a) = e −as F(s), s>a>0
68
The Heaviside Step Function © Wei-Chau Xie
Example
3
Evaluate (a) L (t−2) H(t−2) (b) L sin t H(t−2π )
−2s 3! 6 −2s
3
−2s
3
(a) L (t−2) H(t−2) = e L t = e 4
= 4 e
s s
(b) L sin t H(t−2π ) = L sin(t−2π ) H(t−2π )
e−2π s
. = e−2π s L sin t = 2
s +1
69
The Heaviside Step Function © Wei-Chau Xie
The Heaviside step function is very useful in dealing with functions with
discontinuities or piecewise smooth functions.
( f (t)
0, t< t0
f(t) = t0 t
f1(t), t >t0
f 1(t)
= f1(t)H(t−t0)
( f (t)
f2(t), t< t0
f(t) = f 2(t)
0, t >t0
t
t0
= f2(t) [1−H(t−t0)]
0, t< a f (t)
f(t) = g(t), a< t< b g(t)
0, t >b t
a b
= g(t) [H(t−a) − H(t−b)]
70
Impulse Functions © Wei-Chau Xie
Impulse Functions
Consider an impulse function f(t) over a time interval t0 < t< t0 +ε with constant
amplitude I/ε as shown in Figure (a).
f (t) f (t) f (t)
Area =I
Area =I
I
ε2
Area =I I
ε1
t t t
t0 ε1 t0+ε1 t0 ε2 t0+ε2 t0
ε→0
(a) (b) (c)
71
The Dirac Delta Function © Wei-Chau Xie
72
The Dirac Delta Function © Wei-Chau Xie
Z (
t 0, t< a dH(t−a)
5. δ(t−a)dt = H(t−a) = =⇒ = δ(t−a)
−∞ 1, t >a dt
Z ∞
6. L δ(t−a) = e−st · δ(t−a)dt = e−as, a >0 Shifting property
0
Z ∞
7. L f(t) δ(t−a) = e−st · f(t)δ(t−a)dt = e−as f(a), a >0
0
73
The Inverse Laplace Transform © Wei-Chau Xie
at
2. L e f(t) = F(s−a) =⇒ L −1 F(s−a) = e L F(s) = e at f(t)
at −1
n
3. L t f(t) = (−1)n F (n)(s) =⇒ L −1 F (n)
(s) = (−1)n tn f(t)
−as
4. L f(t−a)H(t−a) = e−as F(s) =⇒ L −1 e F(s) = f(t −a) H(t −a)
74
The Inverse Laplace Transform © Wei-Chau Xie
Example
−1
2s 1 4
Evaluate L F(s) , where F(s) = 2
+ 3
− .
s +4 s s−1
−1
2s 1 4
. L F(s) = L −1 2 + L −1 3 − L −1
s +4 s s−1
s 1 2! 1
. = 2 L −1 2 2 + L −1 3 − 4 L −1
s +2 2 s s−1
1 2
. = 2 cos 2t + t − 4 et
2
75
The Inverse Laplace Transform © Wei-Chau Xie
Example
s 1
Evaluate L −1 2
+ 3
.
s + 6s + 11 (s−3)
−1 s 1 −1 (s+3) − 3 1 −1 2
.L + =L + L
s2 + 6s + 11 (s−3)3 (s+3)2 + 2 2 (s−3)3
−1 s+3 −1 1 1 −1 2
. =L − 3L + L
(s+3)2 + 2 (s+3)2 + 2 2 (s−3)3
−1
at −1
L F(s−a) = e L F(s)
−3t
( √ )
−3t −1 s 3e −1 2 1 3t −1 2!
. =e L √ − √ L √ + e L
2
s + ( 2) 2 2 2
s + ( 2) 2 2 s3
√ 3 −3t √ 1
. =e −3t
cos 2t − √ e sin 2t + e 3t t2
2 2
76
The Inverse Laplace Transform © Wei-Chau Xie
Example
e−π s
Evaluate L −1 2
.
s +9
1 1 3 1
. ∵ L −1 2 = L −1 2 2 = sin 3t
s +9 3 s +3 3
−π s
−1 e 1
.∴ L = sin 3(t−π ) H(t−π )
2
s +9 3
−1
−as
L e F(s) = f(t−a) H(t−a)
1
. = − sin 3t H(t−π )
3
77
The Inverse Laplace Transform © Wei-Chau Xie
Example
1
Evaluate L −1 2 2
.
s (s +1)
1 1
. ∵ L −1 2 = t, L −1 2 = sin t
s s +1
Z t
1 1 1
. ∴ L −1 2 2 = L −1 2 · 2 = t ∗ sin t = (t−u) sin u du
s (s +1) s s +1 0
Z t t Z t
. =− (t−u) d(cos u) = −(t−u) cos u + cos u du = t − sin t
0 u=0 0
78
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
79
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
−1
Taking the inverse transform y(t)= L Y(s) gives the solution of the DE.
80
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
Example
Solve the initial value problem (IVP) y ′′ + 4 y = 4t, y(0) = 1, y ′(0) = 5.
Let Y(s)= L y(t) . Taking the Laplace transform of both sides of the DE yields
2 ′ 1
. [s Y(s) − s y(0) − y (0)] + 4 Y(s) = 4 · s2
2 4
. (s + 4) Y(s) = 2 + s + 5
s
Solving for Y(s) leads to
4 s 5
. Y(s) = + +
s2(s2 +4) s2 +4 s2 +4
1 1 s 5 1 s 4
. = 2 − 2 + 2 + 2 = 2 + 2 + 2
s s +4 s +4 s +4 s s +4 s +4
Taking the inverse Laplace transform gives
−1 1 s 2
−1
−1 −1
. y(t) = L Y(s) = L +L +2L
s2 s2 +22 s2 +22
. = t + cos 2t + 2 sin 2t
81
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
Example
Solve the IVP y ′′ + 2 y ′ + 5 y = f(t), t > 0, y(0) = 1, y ′(0) = 3, where
(
1, 0 6 t < 2
f(t) =
0, t > 2
Using the Heaviside step function, f(t) can be written as
1 e−2s
. f(t) = 1 − H(t−2) =⇒ L f(t) = L 1 − L H(t−2) = −
s s
Taking the Laplace transform of both sides of the DE yields
2 ′ 1−e−2s
. [s Y(s) − s y(0) − y (0)] + 2 [s Y(s) − y(0)] + 5 Y(s) = s
2 1−e−2s
. (s + 2s + 5) Y(s) = +s+5
s
Solving for Y(s) leads to
1−e−2s s+5 1−e−2s n 1 s+2 o (s+1) + 4
.Y(s) = + 2 = − 2 +
s(s2 +2s+5) s +2s+5 5 s s +2s+5 (s+1)2 +4
−1 1 (s+1) 1 2 −t 1
.∵ L − − · =t−e cos 2t − sin 2t
s (s+1)2 +22 2 (s+1)2 +22 2
−1
at −1
L F(s−a) = e L F(s)
−1 −2s 1 (s+1) 1 2
.∴ L e − − ·
s (s+1)2 +22 2 (s+1)2 +22
−(t−2) 1
. = (t−2) − e [ cos 2(t−2) − 2 sin 2(t−2)] H(t−2)
−1
−as
L e F(s) = f(t−a) H(t−a)
Taking the inverse Laplace transform gives
−1
. y(t) = L Y(s)
n
1 −t 1
5 [
. = t−e cos 2t − sin 2t ]
2
o
1
. − (t−2) − e−(t−2) [ cos 2(t−2) − sin 2(t−2)] H(t−2)
2
. + e−t cos 2t + 2e−t sin 2t
83
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
Example
Solve the IVP y ′′ + y = 4 δ(t−2π ), y(0) = 1, y ′(0) = 0.
Let Y(s)= L y(t) . Taking the Laplace transform of both sides of the DE yields
2 ′
. [s Y(s) − s y(0) − y (0)] + Y(s) = 4 L δ(t−2π )
. (s2 + 1) Y(s) = 4 e−2π s + s
4 e−2π s s
Solving for Y(s) leads to Y(s) = 2 + 2
s +1 s +1
Taking the inverse Laplace transform gives
−2π s
4 e s
. y(t) = L −1 Y(s) = L −1 + L −1
s2 +1 s2 +1
84
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
Example
Solve the IVP y ′′ − 2 y ′ + 5 y = 2 δ(t−3), y(0) = 0, y ′(0) = 1.
Let Y(s)= L y(t) . Taking the Laplace transform of both sides of the DE yields
2 ′
. [s Y(s) − s y(0) − y (0)] − 2 [s Y(s) − y(0)] + 5 Y(s) = 2 L δ(t−3)
2 −3s 2 e−3s + 1
. (s − 2s + 5) Y(s) = 2 e + 1 =⇒ Y(s) =
(s−1)2 +22
1
. = et−3 sin 2(t−3) H(t−3) + et sin 2t
2
−as
−1
L e F(s) = f(t−a) H(t−a)
85
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
Example
Z t
3
Find y(t) where y(t) = t + sin(t−u) y(u) du.
0
Let Y(s)= L y(t) . Take the Laplace transform of both sides of the equation
Z t
3
. L y(t) = L t + L sin(t−u) y(u) du
0
s2 +1 6 6 6
Solving for Y(s) leads to Y(s) = · = +
s2 s4 s4 s6
3! 1 −1 5! 3 1 5
. ∴ y(t) = L −1 Y(s) = L −1 4 + L = t + t
s 20 s6 20
86
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
Example
Z t
Find y(t) where y(t) = 3t2 − e−t − et−u y(u) du.
0
Let Y(s)= L y(t) . Take the Laplace transform of both sides of the equation
Z t
2 −t
. L y(t) = 3 L t − L e − L et−u y(u) du
0
Z t
t−u
t 1
.∵ L e y(u) du = L e L y(t) =
s−1
Y(s) Convolution integral
0
2! 1 1 1 6 1
. ∴ Y(s) = 3· 3 − − Y (s) =⇒ 1+ Y (s) = 3 −
s s+1 s−1 s−1 s s+1
s−1 6 1 6 6 1 1
. ∴ Y(s) = − = 3 − 4 − +
s s3 s+1 s s s+1 s(s+1)
6 6 1 1 1
. = 3 − 4 − + −
s s s+1 s s+1
2! 3! 1 1
. ∴ y(t) = L −1 Y(s) = 3 L −1 3 − L −1 4 + L −1 − 2 L −1
s s s s+1
. = 3t2 − t3 + 1 − 2e−t
87
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
Example
Determine the current i(t) in the series RLC circuit shown when R = 2 ,
L = 0.1 H, C = 0.1 F, and V(t) = 120t−120t H(t−1).
i R V(t)
120
V(t) L 120 t
0 1 t
C
Let I(s)= L i(t) .
Z t Z t
.L i(u)du = L i(u) · 1du
−∞ −∞
1
. = L 1 L i(t) = I(s) Convolution integral
s
.L t H(t−1) = L [(t−1)+1] H(t−1)
e−s e−s
. = L (t−1) H(t−1) + L H(t−1) = 2 +
s s
Take the Laplace transform of both sides of the equation
1 1 e−s e−s
.0.1 [s I(s) − i(0)] + 2 I(s) + 10· I(s) = 120· 2 − 120 2
+
s s s s
10 1−e−s e−s
. 0.1 s + 2 + I(s) = 120 −
s s2 s
10 0.1 s2 + 2 s + 10 s2 + 20 s + 100
. ∵ 0.1 s + 2 + = =
s s 10 s
89
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
90
Solving Differential Equations Using the Laplace Transform © Wei-Chau Xie
n o
−10t −10(t−1)
. = 12 1 − (10t+1) e − H(t−1) − [90(t−1) + 1] e H(t−1)
91