















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















NB! These notes are used by myself. They are provided to students as a supplement to the textbook. They can not substitute the textbook.
—Laplace Transform is used to handle piecewise continuous or impulsive force.
Topics:
Definition: Given a function f (t), t ≥ 0, its Laplace transform F (s) = L{f (t)} is defined as
F (s) = L{f (t)} =.
0
e−stf (t) dt = lim. A→∞
0
e−stf (t) dt
We say the transform converges if the limit exists, and diverges if not.
Next we will give examples on computing the Laplace transform of given functions by defini- tion.
Example 1. f (t) = 1 for t ≥ 0.
F (s) = L{f (t)} = lim A→∞
0
e−st^ · 1 dt = lim A→∞ −
s e−st
A
0
= lim A→∞ −
s
e−sA^ − 1
s , (s > 0)
Example 2. f (t) = et.
F (s) = L{f (t)} = lim A→∞
0
e−steatdt = lim A→∞
0
e−(s−a)tdt = lim A→∞ −
s − a e−(s−a)t
A
0 = (^) Alim→∞ −
s − a
e−(s−a)A^ − 1
s − a , (s > a)
Example 3. f (t) = tn, for n ≥ 1 integer.
F (s) = (^) Alim→∞
0
e−sttndt = (^) Alim→∞
tn^ e−st −s
A
0
0
ntn−^1 e−st −s dt
n s lim A→∞
0
e−sttn−^1 dt = n s L{tn−^1 }.
So we get a recursive relation
L{tn} = n s L{tn−^1 }, ∀n,
which means L{tn−^1 } = n − 1 s L{tn−^2 }, L{tn−^2 } = n − 2 s L{tn−^3 }, · · ·
By induction, we get
L{tn} = n s L{tn−^1 } = n s
(n − 1) s L{tn−^2 } = n s
(n − 1) s
(n − 2) s L{tn−^3 }
= · · · = n s
(n − 1) s
(n − 2) s
s
n! sn
s
n! sn+^ , (s > 0)
Example 4. Find the Laplace transform of sin at and cos at.
Method 1. Compute by definition, with integration-by-parts, twice. (lots of work...)
Method 2. Use the Euler’s formula
eiat^ = cos at + i sin at, ⇒ L{eiat} = L{cos at} + iL{sin at}.
By Example 2 we have
L{eiat} =
s − ia
1(s + ia) (s − ia)(s + ia)
s + ia s^2 + a^2
s s^2 + a^2
Comparing the real and imaginary parts, we get
L{cos at} = s s^2 + a^2 , L{sin at} = a s^2 + a^2 , (s > 0).
Remark: Now we will use
0 instead of limA→∞
0 , without causing confusion.
For piecewise continuous functions, Laplace transform can be computed by integrating each integral and add up at the end.
Example 5. Find the Laplace transform of
f (t) =
1 , 0 ≤ t < 2 , t − 2 , 2 ≤ t.
6.2: Solution of initial value problems (4)
Topics:
Properties of Laplace transform:
L{f (n)(t)} = snL{f (t)} − sn−^1 f (0) − sn−^2 f ′(0) − · · · − sf (n−2)(0) − f (n−1)(0).
Remarks:
Proof:
L{f ′(t)} =
0
e−stf ′(t)dt = e−stf (t)
∞ 0
0
(−s)e−stf (t)dt = −f (0) + sL{f (t)}.
L{f ′′(t)} = sL{f ′(t)} − f ′(0) = s(sL{f (t)} − f (0)) − f ′(0) = s^2 L{f (t)} − sf (0) − f ′(0).
F ′(s) = d ds
0
e−stf (t)dt =
0
∂s (e−st)f (t)dt =
0
(−t)e−stf (t)dt = L{−tf (t)}.
L{eatf (t)}
0
e−steatf (t)dt =
0
e−(s−a)tf (t)dt = F (s − a).
By using these properties, we could find more easily Laplace transforms of many other func- tions.
Example 1.
From L{tn} = n! sn+^ , we get L{eattn} = n! (s − a)n+^
Example 2.
From L{sin bt} = b s^2 + b^2 , we get L{eat^ sin bt} = b (s − a)^2 + b^2
Example 3.
From L{cos bt} = s s^2 + b^2
, we get L{eat^ cos bt} = s − a (s − a)^2 + b^2
Example 4.
L{t^3 + 5t − 2 } = L{t^3 } + 5L{t} − 2 L{ 1 } =
s^4
s^2
s
Example 5.
L{e^2 t(t^3 + 5t − 2)} =
(s − 2)^4
(s − 2)^2
s − 2
Inverse Laplace transform. Definition:
L−^1 {F (s)} = f (t), if F (s) = L{f (t)}.
Technique: find the way back.
Some simple examples:
Example 10.
L−^1
s^2 + 4
s^2 + 2^2
s^2 + 2^2
sin 2t.
Example 11.
(s + 5)^4
(s + 5)^4
(s + 5)^4
e−^5 tL−^1
s^4
e−^5 tt^3.
Example 12.
s + 1 s^2 + 4
s s^2 + 4
s^2 + 4
= cos 2t
sin 2t.
Example 13.
s + 1 s^2 − 4
s + 1 (s − 2)(s + 2)
s − 2
s + 2
e^2 t^ +
e−^2 t.
Here we used partial fraction to find out:
s + 1 (s − 2)(s + 2)
s − 2
s + 2
Solutions of initial value problems.
We will go through one example first.
Example 14. (Two distinct real roots.) Solve the initial value problem by Laplace transform,
y′′^ − 3 y′^ − 10 y = 2, y(0) = 1, y′(0) = 2.
Step 1. Take Laplace transform on both sides: Let L{y(t)} = Y (s), and then
L{y′(t)} = sY (s) − y(0) = sY − 1 , L{y′′(t)} = s^2 Y (s) − sy(0) − y′(0) = s^2 Y − s − 2.
Note the initial conditions are the first thing to go in!
L{y′′(t)} − 3 L{y′(t)} − 10 L{y(t)} = L{ 2 }, ⇒ s^2 Y − s − 2 − 3(sY − 1) − 10 Y =
s
Now we get an algebraic equation for Y (s).
Step 2: Solve it for Y (s):
(s^2 − 3 s − 10)Y (s) =
s
Step 3: Take inverse Laplace transform to get y(t) = L−^1 {Y (s)}. The main technique here is partial fraction.
Y (s) = s^2 − s + 2 s(s − 5)(s + 2)
s
s − 5
s + 2
A(s − 5)(s + 2) + Bs(s + 2) + Cs(s − 5) s(s − 5)(s + 2)
Compare the numerators:
s^2 − s + 2 = A(s − 5)(s + 2) + Bs(s + 2) + Cs(s − 5).
The previous equation holds for all values of s. Set s = 0: we get − 10 A = 2, so A = −^15. Set s = 5: we get 35B = 22, so B = 2235. Set s = −2: we get 14C = 8, so C = 47.
Now, Y (s) is written into sum of terms which we can find the inverse transform:
y(t) = AL−^1 {
s
s − 5
s + 2
e^5 t^ +
e−^2 t.
Example 16. (Complex roots.)
y′′^ − 2 y′^ + 2y = e−t, y(0) = 0, y′(0) = 1.
Before we solve it, let’s use the method of undetermined coefficients to find out which terms will be in the solution.
r^2 − 2 r + 2 = 0, (r − 1)^1 + 1 = 0, r 1 , 2 = 1 ± i,
yH = c 1 et^ cos t + c 2 et^ sin t, Y = Ae−t,
so the solution should have the form:
y = yH + Y = c 1 et^ cos t + c 2 et^ sin t + Ae−t.
The Laplace transform would be
Y (s) = c 1 s − 1 (s − 1)^2 + 1
(s − 1)^2 + 1
s + 1
c 1 (s − 1) + c 2 (s − 1)^2 + 1
s + 1
This gives us idea on which terms to look for in partial fraction.
Now let’s use the Laplace transform:
Y (s) = L{y}, L{y′} = sY − y(0) = sY, L{y′′} = s^2 Y − sy(0) − y(0) = s^2 Y − 1.
s^2 Y − 1 − 2 sY + 2Y =
s + 1
, ⇒ (s^2 − 2 s + 2)Y (s) =
s + 1
s + 2 s + 1
Y (s) = s + 2 (s + 1)(s^2 − 2 s + 2)
s + 2 (s + 1)((s − 1)^2 + 1)
s + 1
B(s − 1) + C (s − 1)^2 + 1
Compare the numerators:
s + 2 = A((s − 1)^2 + 1) + (B(s − 1) + C)(s + 1).
Set s = −1: 5A = 1, A = 15. Compare coefficients of s^2 -term: A + B = 0, B = −A = −^15. Set any value of s, say s = 0: 2 = 2A − B + C, C = 2 − 2 A + B = 95.
Y (s) =
s + 1
s − 1 (s − 1)^2 + 1
(s − 1)^2 + 1
y(t) =
e−t^ −
et^ cos t +
et^ sin t.
We see this fits our prediction.
Example 17. (Pure imaginary roots.)
y′′^ + y = cos 2t, y(0) = 2, y′(0) = 1.
Again, let’s first predict the terms in the solution:
r^2 + 1 = 0, r 1 , 2 = ±i, yH = c 1 cos t + c 2 sin t, Y = A cos 2t
so y = yH + Y = c 1 cos t + c 2 sin t + A cos 2t,
and the Laplace transform would be
Y (s) = c 1 s s^1 + 1
s^2 + 1
s s^2 + 4
Now, let’s take Laplace transform on both sides:
s^2 Y − 2 s − 1 + Y = L{cos 2t} = s s^2 + 4
(s^2 + 1)Y (s) = s s^2 + 4
Y (s) = 2 s^3 + s^2 + 9s + 4 (s^2 + 4)(s^2 + 1)
As + B s^2 + 1
Cs + D s^2 + 4
Comparing numerators, we get
2 s^3 + s^2 + 9s + 4 = (As + B)(s^2 + 4) + (Cs + D)(s^2 + 1).
One may expand the right-hand side and compare terms to find A, B, C, D, but that takes more work. Let’s try by setting s into complex numbers. Set s = i, and remember the facts i^2 = −1 and i^3 = −i, we have
− 2 i − 1 + 9i + 4 = (Ai + B)(−1 + 4), 3 + 7i = 3B + 3Ai, B = 1, A =
Set now s = 2i:
− 16 i − 4 + 18i + 4 = (2Ci + D)(−3), 0 + 2i = − 3 D − 6 Ci, D = 0, C = −
So Y (s) =
s s^2 + 1
s^2 + 1
s s^2 + 4 and y(t) =
cos t + sin t −
cos 2t.
6.3: Step functions (2)
Topics:
We use steps functions to form piecewise continuous functions.
Unit step function(Heaviside function):
uct =
0 , 0 ≤ t < c, 1 , c ≤ t.
for c ≥ 0. A plot of uc(t) is below:
(^0) c
u c
t
1
For a given function f (t), if it is multiplied with uc(t), then
uctf (t) =
0 , 0 < t < c, f (t), c ≤ t.
We say uc picks up the interval [c, ∞).
Example 1. Consider
1 − uc(t) =
1 , 0 ≤ t < c, 0 , c ≤ t.
A plot of this is given below
(^0) c
u c
t
1
1−
We see that this function picks up the interval [0, c).
Example 2. Rectangular pulse. The plot of the function looks like
b
0
u
t
1
a b
a −u
for 0 ≤ a < b < ∞. We see it can be expressed as
ua(t) − ub(t)
and it picks up the interval [a, b).
Example 3. For the function
g(t) =
f (t), a ≤ t < b 0 , otherwise
We can rewrite it in terms of the unit step function as
g(t) = f (t) ·
ua(t) − ub(t)
Example 4. For the function
f t =
sin t, 0 ≤ t < 1 , et, 1 ≤ t < 5 , t^2 5 ≤ t,
we can rewrite it in terms of the unit step function as we did in Example 3, treat each interval separately
f (t) = sin t ·
u 0 (t) − u 1 (t)
u 1 (t) − u 5 (t)
In following examples we will compute Laplace transform of piecewise continuous functions with the help of the unit step function.
Example 5. Given
f (t) =
sin t, 0 ≤ t < π 4 , sin t + cos(t − π 4 ), π 4 ≤ t.
It can be rewritten in terms of the unit step function as
f (t) = sin t + uπ 4 (t) · cos(t −
π 4
(Or, if we write out each intervals
f (t) = sin t(1 − uπ 4 (t)) + (sin t + cos(t − π 4 ))uπ 4 (t) = sin t + uπ 4 (t) · cos(t − π 4
which gives the same answer.)
And the Laplace transform of f is
F (s) = L{sin t} + L{uπ 4 (t) · cos(t − π 4
s^2 + 1
Example 6. Given
f (t) =
t, 0 ≤ t < 1 , 1 , 1 ≤ t.
It can be rewritten in terms of the unit step function as
f (t) = t(1 − u 1 (t)) + 1 · u 1 (t) = t − (t − 1)u 1 (t).
The Laplace transform is
L{f (t)} = L{t} − L{(t − 1)u 1 (t)} =
s^2 − e−s^
s^2
Example 7. Given
f (t) =
0 , 0 ≤ t < 2 , t + 3, 2 ≤ t.
We can rewrite it in terms of the unit step function as
f (t) = (t + 3)u 2 (t) = (t − 2 + 5)u 2 (t) = (t − 2)u 2 (t) + 5u 2 (t).
The Laplace transform is
L{f (t)} = L{(t − 2)u 2 (t)} + 5L{u 2 (t)} = e−^2 s^
s^2
s
Example 8. Given
g(t) =
1 , 0 ≤ t < 2 , t^2 , 2 ≤ t.
We can rewrite it in terms of the unit step function as
g(t) = 1 · (1 − u 2 (t)) + t^2 u 2 (t) = 1 + (t^2 − 1)u 2 (t).
Observe that
t^2 − 1 = (t − 2 + 2)^2 − 1 = (t − 2)^2 + 4(t − 2) + 4 − 1 = (t − 2)^2 + 4(t − 2) + 3 ,
we have g(t) = 1 +
(t − 2)^2 + 4(t − 2) + 3
u 2 (t).
The Laplace transform is
L{g(t)} =
s
s^3
s^2
s
Example 9. Given
f (t) =
0 , 0 ≤ t < 3 , et, 3 ≤ t < 4 , 0 , 4 ≤ t.
We can rewrite it in terms of the unit step function as
f (t) = et^ (u 3 (t) − u 4 (t)) = u 3 (t)et−^3 e^3 − u 4 (t)et−^4 e^4.
The Laplace transform is
L{g(t)} = e^3 e−^3 s^
s − 1 − e^4 e−^4 s^
s − 1
s − 1
e−3(s−1)^ − e−4(s−1)
6.4: Differential equations with discontinuous forcing
functions (1)
Topics:
Next we study initial value problems with discontinuous force. We will start with an example.
Example 1. (Damped system with force, complex roots) Solve the following initial value problem
y′′^ + y′^ + y = g(t), g(t) =
0 , 0 ≤ t < 1 , 1 , 1 ≤ t, ,^ y(0) = 1,^ y
Let L{y(t)} = Y (s), so L{y′} = sY − 1 and L{y′′} = s^2 Y − s. Also we have L{g(t)} = L{u 1 (t)} = e−s^1 s. Then
s^2 Y − s + sY − 1 + Y = e−s^
s
which gives
Y (s) =
e−s s(s^2 + s + 1)
s + 1 s^2 + s + 1
Now we need to find the inverse Laplace transform for Y (s). We have to do partial fraction first. We have 1 s(s^2 + s + 1)
s
Bs + C s^2 + s + 1
Compare the numerators on both sides:
1 = A(s^2 + s + 1) + (Bs + C) · s
Set s = 0, we get A = 1.
Compare s^2 -term: 0 = A + B, so B = −A = −1.
Compare s-term: 0 = A + C, so C = −A = −1.
So
Y (s) = e−s
s
s + 1 s^2 + s + 1
s + 1 s^2 + s + 1
We work out some detail
s + 1 s^2 + s + 1
s + 1 (s + 12 )^2 + (
√ 3 2 )
(s + 12 ) + √^13 ·
√ 3 2 (s + 12 )^2 + (
√ 3 2 )
so
L−^1
s + 1 s^2 + s + 1
= e−^ (^12) t
cos
t +
sin
t
We conclude
y(t) = u 1 (t)
1 − e−^ (^12) (t−1)
cos
(t − 1) − sin
(t − 1)
+e−^ (^12) t
cos
t +
sin
t
Remark: There are other ways to work out the partial fractions.
Extra question: What happens when t → ∞?
Answer: We see all the terms with the exponential function will go to zero, so y → 1 in the limit. We can view this system as the spring-mass system with damping. Since g(t) becomes constant 1 for large t, and the particular solution (which is also the steady state) with 1 on the right hand side is 1, which provides the limit for y.
Further observation:
e−^ (^12) t
c 1 cos
t + c 2 sin
t
and these terms do appear in the solution.