Notes 8 DEs
Notes 8 DEs
Laplace Transform
1 1
Example 8.1.1 (i) L{1} = , (ii) L{eat } = .
s s−a
Just by direct computation of improper integrals: for any s > 0,
Z ∞
1 ∞ 1 1 1
L{1} = e−st · 1dt = − e−st = − lim e−st + =
0 s 0 t→∞ s s s
which is well-defined for any s > 0. On the other hand, for any s > a,
Z ∞ Z ∞
at −st at 1 −st ∞ 1
L{e } = e · e dt = e−(s−a)t dt = − e =
0 0 s−a 0 s−a
b s
Exercise (i) L{sin bt} = , (ii) L{cos bt} = .
s2 + b2 s2 + b2
Just recall that
Z
eau
eau sin budu = (a sin bu − b cos bu) + C
a2 + b2
Z
eau
eau cos budu = (a cos bu + b sin bu) + C
a2 + b2
49
50
With these properties, initial value problems for linear ODEs with constant coefficients
can be transformed into problems in algebraic equations.
L−1 ❄
y(t) ✛ F (s)
Inverse Laplace Transform
Partial fraction decompositions are quite often used when looking for inverse Laplace
transform.
51
p(s)
Recall that a proper rational rational function of the form , where p(s), q(s) are
q(s)
real polynomials with deg p(s) < deg q(s), can be expressed in terms of simple partial
fractions of the following types:
A A A
Type 1: , , ··· ;
s−a (s − a)2 (s − a)n
Cs + D Cs + D Cs + D
Type 2: 2 2
, 2 2 2
, ··· ,
(s − a) + b ((s − a) + b ) ((s − a)2 + b2 )m
depending on how q(s) is factored as a product of linear factors, or as a product of of
linear factors and quadratic factors without real root. Theoretically speaking, if you use
complex numbers, then q(s) can be completely factored as the product of linear factors,
and the rational function can be decomposed into the sum of the first type of (complex)
simple partial factions.
Additional properties of Laplace transform and basic Laplace transform formulas can
be used to identify the inverse Laplace transform.
Example 8.1.3 Find the inverse Laplace transform of the given rational function. L−1 .)
3s − 5 2 1 L−1
(i) = + , −→ 2et + e2t .
(s − 1)(s − 2) s−1 s−2
3s2 − 5s 1 2 2 L−1
(ii) = + + , −→ et + 2tet + 2e2t .
(s − 1)2 (s − 2)2 s − 1 (s − 1)2 s−2
4s2 − 10s + 9 4s2 − 10s + 9 1 3s − 2
(iii) 2 = 2 2 = + 2 ,
2s + 5})
(s − 2)(s| − {z (s − 2)[ (s − 1) + 2 ] s − 2 s − 2s + 5
| {z }
no real root completing squares
3 i 3 i
3s − 2 2 − 4 2 + 4
(iv) Note that if complex numbers are used, = +
(s − 1)2 + 22 s − 1 − 2i s − 1 + 2i
s4 + 4s2 − 10s + 9 A Bs + C Ds + E
(v) 2 2
= + 2 2
+ ,
(s − 2)(s − 2s + 5) s − 2 (s − 1) + 2 [(s − 1)2 + 22 ]2
where the constants A, B, C, D, E can be found by comparing the coefficients on
both sides of:
s4 + 4s2 − 10s + 9 = A(s2 − 2s + 5)2 + (Bs + C)(s − 2)(s2 − 2s + 5) + (Ds + E)(s − 2).
Exercise Work out the details of the last two examples (iv) and (v).
where the “input function” g(t) is only piecewise continuous, or is certain impulse func-
tion (which causes sudden change in y ′ at a certain instant).
(
0 if 0 ≤ t < c
uc (t) =
1 if t ≥ c 1
c t
Others:
(
0 if 0 ≤ t < a
1 if 0 ≤ t < c
1 − uc (t) = , ua (t) − ub (t) = 1 if a ≤ t < b ,
0 if t ≥ c
0 if t ≥ b
“unit signal stopped at t = c” “unit signal between t = a and t = b”
1 1
c t a b t
53
The effect of multiplying ua (t) − ub (t) to f (t) is like cutting the left (t < a) and right
(t ≥ b) tails of f (t):
0 if 0 ≤ t < a
y = f (t) y = [ua (t) − ub (t)]f (t)
[ua (t) − ub (t)]f (t) = f (t) if a ≤ t < b
0 if t ≥ b
t a b t
The unit step functions are often used when dealing with initial value problems
where the “input function” g(t) is defined piecewise, i.e., defined by different expressions
over some disjoint intervals.
Example 8.2.1 Solve the following initial value problem for a spring-mass system with
piecewise defined forcing function:
0 if 0 ≤ t < 2
′′
y + 4y = f (t) = t − 2 if 2 ≤ t < 8 , y(0) = 0, y ′ (0) = 0.
6 if 8 ≤ t
(Roughly speaking, there is no external force applied to the system initially at rest until
t = 2, when an external force of magnitude t − 2 is applied to the system during the time
interval 2 ≤ t < 8. The external force is kept at a constant 6 units starting at t = 8.)
54
Using unit step functions, the forcing term f (t) can be expressed as:
hence, by applying L,
1 −2s 1 −8s
(s2 +4)Y (s) = L{u2 (t)(t−2)}−L{u8 (t)(t−8)} = e−2s L{t}−e−8s L{t} = e − 2e
s2 s
1 1 1 1 1
Y (s) = (e−2s − e−8s ) 2 2 = (e−2s − e−8s ) · 2− · 2
s (s + 4) 4 s 4 (s + 4)
1 1 1 1
Y (s) = e−2s L{t − sin 2t} − e−8s L{t − sin 2t}
4 2 4 2
Take the inverse Laplace transform:
h1 1 i 1 1
y(t) = u2 (t) (t − 2) − sin 2(t − 2) − u8 (t) (t − 8) − sin 2(t − 8) .
4 8 4 8
In piecewise defined form:
0 if 0 ≤ t < 2
1 1
y(t) = 4 (t − 2) − 8 sin 2(t − 2) if 2 ≤ t < 8
3 1 1
2 − 8 sin 2(t − 2) + 8 sin 2(t − 8) if 8 ≤ t
′′ ′′ ′′
y + 4y = 0
y + 4y = t − 2
y + 4y = 6
y(0) = 0, y ′ (0) = 0 → initial values: y(2), y ′ (2) → initial values: y(8), y ′ (8)
0≤t<2 2≤t<8 8≤t
Exercise Solve these three initial value problems and check that they agree with the
solution obtained by the Laplace transform method.
−τ τ − τ2 τ
2
55
It is not hard to see then for any t 6= 0, δ(t) = lim dτ (t) = 0, since when τ < |t|,
τ →0
1
dτ (t) = 0. However, δ(0) = lim = ∞.
τ →0 2τ
δ(t) is not a function in usual sense. The main properties we are going to use are as
follows.
Basic Properties of δ(t)
(i) δ(t) = 0 if t 6= 0;
Z ∞ Z ∞
means
(ii) The “integral” of δ(t) is defined by: δ(t)dt = lim dτ (t)dt = 1
−∞ τ →0 −∞
is the change in momentum caused by the force acting during the time interval a ≤ t ≤
Z b
b. In mechanics, the integral F (t)dt of time-dependent force function is called the
a
impulse imparted by the force during the time interval a ≤ t ≤ b.
So, the delta function δ(t) can be thought of as a mathematical
Z ∞ gadget to describe
a sudden force applied at the instant t = 0, with unit impulse δ(t)dt = 1 which in
−∞
effect results in a sudden change of momentum by 1 N·s.
In other physical problems modelled by second order linear equations, “impulse” may
have different physical meanings.
Here the delta function δ(t − 5) can be interpreted as a forcing term of impulse 1 applied
to a damped spring-mass system at the instant t = 5.
By Laplace transform, we have
(2s2 + s + 2)F (s) = L{δ(t − 5)} = e−5s
√
e−5s 1 e−5s 15
F (s) = 2s2 +s+2
= 2 (s+ 1 )2 + 15 = 12 e−5s L{ √415 e−t/4 sin 4 t}
4 16
56
Using the Laplace transform property e−cs L{f (t)} = L{uc (t)f (t − c)}, the inverse Laplace
transform of F (s) is
√ 0
if t < 5
2 − t−5 15
y(t) = √ u5 (t)e 4 sin (t − 5) = √
15 4 √2 e− t−5
15
4 sin
15 4 (t − 5) if t ≥ 5
If you calculate the derivative y ′ (t) at t = 5 by the two formulas for t < 5 and
′ (5) = 0, and the right-sided derivative
t > 5 respectively, the left-sided derivative is y−
′ 1
is y+ (5) = 2 . Roughly speaking, if you punch the mass with a unit impulse force at the
instant t = 5, you will cause a jump in its velocity by 12 m/s at that moment, i.e. a
change of momentum at t = 5 by 1 Ns.
2y ′′ = −y ′ − 2y + δ(t − 5)
where 2 is the mass, y ′′ = v ′ is the acceleration, i.e., rate of change of the velocity function
v = y ′ . If you compute the impulse over a short time interval containing t = 5,
Z 5+ Z 5+
mv ′ dt = −y ′ − 2y + δ(t − 5)dt
5− 5−
Z 5+
mv(5+ ) − mv(5− ) = −y(5+ ) + y(5− ) − 2 ydt + 1 = 1
5−
| {z }
= 0, as y(t) is continuous
i.e., the effect of the impulse force δ(t − 5) is causing a jump in the velocity at the instant
t = 5:
1 1
v(5+ ) − v(5− ) = =
m 2
Theorem If F (s) = L{f (t)} and G(s) = L{g(t)} both exist for s > a ≥ 0, then the
inverse Laplace transform of the product F (s)G(s) is given by the convolution integral
(f ∗ g)(t) of f and g defined by
Z t Z t
(f ∗ g)(t) = f (t − τ )g(τ )dτ = f (τ )g(t − τ )dτ = L−1 {F (s)G(s)}
0 0
Z ∞ Z ∞
−st
= g(τ ) e uτ (t)f (t − τ )dt dτ
0 0
Z ∞ Z ∞
= g(τ ) (L{uτ (t)f (t − τ )}) dτ = g(τ ) e−sτ F (s) dτ = F (s)G(s)
0 0
Remark Note that
Z t Z ∞
f (t − τ )g(τ )dτ = f (t − τ )g(τ )uτ (t)dτ
0 0
Example 8.4.1 H(s) = s12 = 1s · 1s = L{1}L{1}. Therefore its inverse Laplace transform
is given by the convolution integral of the constant functions f (t) = 1, g(t) = 1:
Z t
−1 1
L { 2 } = (1 ∗ 1)(t) = 1 · 1dt = t
s 0
1
Example 8.4.2 (s−a)(s−b) = L{eat }L{ebt }, (a < b) hence by takeing the convolution
integral of f (t) = eat and g(t) = ebt :
Z t
1
L −1
= ea(t−τ ) ebt dτ
(s − a)(s − b)) 0
Z t h 1 it 1
= eat e(b−a)τ dτ = eat e(b−a)τ = (ebt − eat )
0 b−a 0 b−a
which agrees with the result obtained by the method of partial fractions:
( )
1 1
1 − b−a 1 at 1 bt
L−1 = L−1 + b−a =− e + e
(s − a)(s − b)) s−a s−b b−a b−a