Em 2 Sol 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

EM2 Solved problems—Laplace & Fourier transform pHabala 2003

EM2 Solved problems—Laplace & Fourier transform


Find the Laplace transform of the following functions:
Rt
1. f (t) = t sin(2t); 2. f (t) = e−3t cos(3t); 3. f (t) = e3s ds;
0
sin(t), t ∈ [0, π);

4. f (t) = (t + 2) · 1(t − 3); 5. f (t) = 6. f (t) = | sin(t)|.
0, elsewhere;

Find the inverse Laplace transform of the following functions:


2p −3p
7. F (p) = (p2 +1)(p+1) ; 8. F (p) = p28e
+2p+5 ;

1−e−p e−p e−p


9. F (p) = p2 − p + p−1 , sketch the graph of this f (t) = L−1 {F (p)}.

Use the Laplace transform to solve the following problems:


10. y 0 − y = (x + 2)e2x , y(0) = 3.
1, t ∈ [0, π);

11. ÿ + y = y(0+ ) = 2, ẏ(0+ ) = 1.
0, elsewhere,
Rt
12. y 0 + 4 y(s) ds = 6, y(0+ ) = 1.
0

t ∈ [0, π2 );

0
sin(t),
13. y − y = y(0) = 4.
0, elsewhere,
t ∈ [0, 1);

t,
14. ẋ − x = x(0+) = −1.
0, elsewhere,

15. Use the Laplace transform to find the general solution of y 00 + y = 8e2t sin(t).

t ∈ [0, 1);

t,
16. Consider the function f (t) =
1, t ∈ [1, 2).
Find its Fourier series, its sine Fourier series, and its cosine Fourier series.
For each series determine its sum.
EM2 Solved problems—Laplace & Fourier transform pHabala 2003

Solutions
1. We first use the rule for L{t f (t)} to get rid of t:
d
0 4p
L{sin(2t)} = − p22+4 =

L{t sin(2t)} = − dp (p2 +4)2 .

2. We first use the rule for L{eat f (t)} to get rid of the exponential:
L{e−3t cos(3t)} = L{cos(3t)} = p2p+9 p+3
= (p+3) 2 +9 =
p+3
p2 +6p+18 .

p−(−3) p+3
It is also possible to first get rid of 3t, since it is everywhere in the function. We use the choice
f (t) = e−t cos(t), then f (3t) is the given function. Using the appropriate formula we get rid
of 3t, then we continue as above (get rid of exponential, transform cosine). When doing two
operations, one has to be careful about the proper order of grammar  rules:
−3t −t
1 1
= 31 p2p+1

L{e cos(3t)} = 3 L{e cos(t)} = 3 L{cos(t)}


p/3 p−(−1) p/3 p+1 p/3
p 1
1 p+1 1 p/3+1 9+3 p+3

= 3 2
(p+1) +1
= 3 (p/3+1)2 +1 = p2 2p
= p2 +6p+18 .
p/3 9 + 3 +2

3. We use the rule for integrals:


nRt o
L e3s ds = p1 L{e3t } = 1 1
p p−3 = 1
p(p−3) .
0

4. We have to use the shift rule. There are two ways to do it:
a) We change the given function t + 2 to feature the expression t − 3 just like the jump function,
then use the shift rule:
L{(t + 2) · H(t − 3)} = L{([t − 3] + 5) · H(t − 3)} = e−3p L{(t + 5) · H(t)} = e−3p p12 + p5 .


b) It is also possible to use the shift rule and think of it as a substitution, for t − 3 one puts,
say, s, so t = s + 3:
L{(t + 2) · H(t − 3)} = e−3p L{([s + 3] + 2) · H(s)} = e−3p L{(s + 5) · H(s)} = e−3p p12 + p5 .


5. There are two possibilities. First, one can use the definition:
R∞ Rπ
L{f (t)} = f (t)e−pt dt = sin(t)e−pt dt.
0 0
This integral is standard (two integrations by parts, then solving an equation), but it is a long
calculation. It might be easier to express the given function as a product of sine and a discrete
unit signal on the interval [0, π]:
f (t) = sin(t) · [H(t) − H(t − π)] = sin(t)H(t) − sin(t)H(t − π).
Thus (see the previous problem)
L{f (t)} = L{sin(t)H(t) − sin(t)H(t − π)} = L{sin(t)H(t)} − L{sin(t)H(t − π)}
= 1
p2 +1 − e−πp L{sin(s + π)H(s)} = 1
p2 +1 − e−πp L{− sin(s)H(s)}
e−πp +1
= 1
p2 +1 + e−πp p21+1 = p2 +1 .

6. There is no rule for the absolute value. One possibility is to use the definition, but integrating
absolute value is a problem, such an integral would have to be split depending on whether the
sine is positive or negative.
It will be therefore easier to think of f as a function that is periodic with T = π, since indeed,
when you draw the graph, you find out that the function f is actually just one “hill” of the sine
repeated over and over. In fact, the first period, fT , is exactly the function from part d). By
the theorem on periodic functions and the previous part,
L{fT } e−πp +1
L{f (t)} = 1−e −πp = (p2 +1)(1−e−πp ) .

7. To find the
 inverse, it is enough
 to decompose the fraction into partial fractions:
L−1 (p2 +1)(p+1)
2p
= L−1 pp+1
2 +1 − 1
p+1

= L−1 p2 +1 + L−1 p21+1 − L−1 p−(−1)


p
= cos(t) + sin(t) − e−t .
   1
EM2 Solved problems—Laplace & Fourier transform pHabala 2003

8. First we will use the appropriate rule to get rid of the exponential. The inverse Laplace of
the remaining fraction is done first by completing a square, then by using the shift rule for the
inverse Laplace and finally using the dictionary:
 −3p
L−1 p28e −1 8 −1 8
 
+2p+5 = L 2
p +2p+5 t−3
· H(t − 3) = L (p+1) +4 t−3 · H(t − 3)
2
= e−t L−1 p2 +2 · H(t − 3) = e−t 4 sin(2t)
 8  
2 · H(t − 3)
t−3 t−3
0, t ∈ [0, 3);

3−t

= 4e sin 2(t − 3) · H(t − 3) = 3−t

4e sin 2(t − 3) , t ≥ 3.
When rewriting the answer as a split function, we used the fact that H(t − 3) = 0 for t < 3 and
H(t − 3) = 1 for t ≥ 3.
Note how t − 3 was substituted back: It also became a part of the exponential, due to the order
in which the rules were used. It is possible to also first handle the shift, then the rest:
 −3p −1 8e−3(p+1)+3
 −3p+3 3 −3p
L−1 p28e = e−t L−1 8ep2 +4 = e−t L−1 4·2e e
 
+2p+5 = L (p+1)2 +4 p2 +4
 −3p
= e−t 4e3 L−1 2e = 4e3−t L−1 p2 +2
 2
p2 +4 2 · H(t − 3)
t−3
= 4e3−t sin(2t) · H(t − 3) = 4e3−t sin 2(t − 3) · H(t − 3).
 
t−3
Now the substitution of t − 3 applied only to the sine part itself, because e3−t was already done,
it was not a part of the inverse Laplace when the “get rid of exponential” rule was applied.
9. We just have to use the rule for getting rid of exponential and then the dictionary:
−p
e−p e−p
L−1 1−e −1 1 −1
   −p 1 1 1

p 2 − p + p−1 = L p 2 − L e p2 + p − p−1
−1 1 1 1
· H(t − 1) = t − t + 1 − et
 
=t−L p2 + p − p−1
· H(t − 1)
t−1 t−1
t−1 t−1
= t − ([t − 1] + 1 − e ) · H(t − 1) = t + (e − t) · H(t − 1)


 0, t < 0;
= t, t ∈ [0, 1);

 t−1
e , t ≥ 1.
y

0 1 x

10. We apply the Laplace transform to both sides of the equation, denoting Y = L{y}:
L{y 0 − y} = L{(x + 2)e2x } =⇒ L{y}0 − L{y} = L{x + 2}

p−2
1 2

=⇒ [pL{y} − y(0+ )] − L{y} = p2 + p
p−2
1 2
=⇒ pY − 3 − Y = (p−2) 2 + p−2

1 2
=⇒ (p − 1)Y = 3 + (p−2) 2 + p−2 .
3 1 2
Therefore Y (p) = p−1 + (p−1)(p−2)2 + (p−1)(p−2) .

To find y(t) we use the inverse Laplace transform. First we need to replace the rational functions
in Y with partial fractions:
EM2 Solved problems—Laplace & Fourier transform pHabala 2003

2 2 2
(p−1)(p−2) = p−2 − p−1
1 1 1 1
(p−1)(p−2)2 = p−1 − p−2 + (p−2)2 .
2 1 1
Thus Y (p) = p−1 + p−2 + (p−2) 2.

Consequently
y(t) = L−1 p−1 = L−1 + L−1 + L−1
 2 1 1
 2
 1
 1

+ p−2 + (p−2)2 p−1 p−2 (p−2)2

= 2et + e2t + e2t L−1 p12 = 2et + e2t + e2t t, t ≥ 0.




Since the equation and the solution exist on the whole real line, it is very likely that the solution
actually works on IR. This would have to be checked by substituting y into the equation and
indeed it works.
11. We apply the Laplace transform to both sides. It might be a good idea to first figure out
the Laplace transform on the right. We can do it by definition, since this should be easy:
Rπ  −pt π −πp
L{f (t)} = e−pt dt = e−p 0 = 1−ep .
0
Alternative:
L{f (t)} = L{H(t) − H(t − π)} = p1 − e−πp L{H(t)} = p1 − e−πp p1 .
The left hand-side transforms (denoting Y = L{y}) like this:
L{ÿ + y} = [p2 Y − 2p − 1] + Y = Y (p2 + 1) − 2p − 1.
Therefore the equation becomes
Y (p2 + 1) = 1 + 2p + p1 − e−πp p1 =⇒ Y = p21+1 + p22p 1
+1 + p(p2 +1) − e
−πp 1
p(p2 +1) .
Thus y(t) = L−1 p21+1 + p22p 1 −πp 1

+1 + p(p2 +1) − e p(p2 +1) . The inverse Laplace of the first two
terms is easy, for the other two we use the partial fractions decomposition:
1 2p 1 p −πp 1 p
 
Y (p) = p2 +1 + p2 +1 + p − p2 +1 − e p − 2
p +1
1 1 p −πp 1 p

= p + p2 +1 + p2 +1 − e p − p2 +1
Thus
y(t) = L−1 p1 + p21+1 + p2p+1 − e−πp p1 − p2p+1
 

= 1 + sin(t) + cos(t) − L−1 p1 − p2p+1



· H(t − π)
t−π

= 1 + sin(t) + cos(t) − 1 − cos(t) · H(t − π)
t−π

= 1 + sin(t) + cos(t) − 1 − cos(t − π) · H(t − π)

= 1 + sin(t) + cos(t) − 1 + cos(t) · H(t − π)
1 + sin(t) + cos(t), t ∈ [0, π);

=
sin(t), t ≥ π.
12. We again (surprise surprise!) use the Laplace transform denoting Y = L{y}:
Zt Zt
 0
L{y 0 } + 4L

L y + 4 y(s) ds = L{6} =⇒ y(s) ds = 6L{1}
0 0
2
=⇒ pY − 1 + 4 Yp
= 6 p1
=⇒ p Y − p + 4Y = 6.
Thus Y (p2 + 4) = 6 + p and therefore Y (p) = p26+4 + p2p+4 .
Consequently 
y(t) = L−1 p26+4 + p2p+4 = 3L−1 p2 +2
 p
+ L−1 p2 +2
 2
2 2 = 3 sin(2t) + cos(2t), t ≥ 0.
Again, the solution probably works for all t ∈ IR.
13. How do we transform the right-hand side (denoted by f (t))?
R π/2
By definition: L{f (t)}= 0 sin(t)e−ptdt. This is not an easy integral. We try another way
and write f (t) = sin(t) H(t) − H t − π2 . Then
EM2 Solved problems—Laplace & Fourier transform pHabala 2003

−π2 pL
L{f (t)} = L{sin(t)H(t)} − L sin(t)H t − π2 = 1 π
   
p2 +1 − e sin s + 2 H(s)
π π
= p21+1 − e− 2 p L{cos(s)H(s)} = p21+1 − e− 2 p p2p+1 .
Thus the whole equation transforms as
π π
pY − 4 − Y = p21+1 − e− 2 p p2p+1 =⇒ Y = p−1 4 1
+ (p2 +1)(p−1) p
− e− 2 p (p2 +1)(p−1) .
Partial fractions decomposition yields
1 1 1 1
1 2 p+ 2 p − 12 p+ 12
(p2 +1)(p−1) = p−1 − p2 +1 , (p2 +1)(p−1) = p−1 + p2 +1 .
2 2

Thus 9 1 1
 1
− 12 p+ 12

2 p+ 2 −π p
Y = p−1 − p2 +1 − e
2 2
p−1 + p2 +1
2
.
Consqeuently
π
y(t) = L−1 92 p−1 − 12 p2p+1 − 12 p21+1 − e− 2 p 12 p−1 − 12 p2p+1 + 12 p21+1
 1 1


= 29 et − 12 cos(t) − 12 sin(t) − L−1 12 p−1 − 12 p2p+1 + 21 p21+1


 1
H t − π2

t−π/2
1 t− π
= 2 e − 2 cos(t) − 2 sin(t) − 2 e 2 − cos t − 2 + sin t − π2 H t − π2
9 t 1 1 π
  
π
= 29 et − 12 cos(t) − 12 sin(t) − 12 et− 2 − sin(t) − cos(t) H t − π2
 
( 9 t 1 1 π
2 e − 2 cos(t) − 2 sin(t), t ∈ [0, 2 );
= π
9−e− 2 t
2 e , t ≥ π2 .
14. We denote the function on the right by f (t) and first calculate its Laplace transform. One
possibility is the definition, using integration by parts:
R1 h −pt i1 R1 −p −p
L{f } = te−pt dt = t e−p + p1 e−pt dt = − e p − ep2 + p12 .
0 0 0
Alternatively, one can write f (t) = t · H(t) − t · H(t − 1) and use the grammar:  
L{f } = L{t} − L{tH(t − 1)} = p12 − e−p L{(s + 1)H(s)} = p12 − e−p p12 + p1 .
Either way, applying the Laplace transform to both sides of the given equations and denoting
L{x} = X we get
−p −p −p
−1 e−p
[pX + 1] − X = p12 − ep2 − e p =⇒ X = p+1 1
+ p2 (p+1) − p2e(p+1) − p(p+1) .
Partial fractions decomposition yields p(p+1) = p − p+1 and p2 (p+1) = p+1 + p2 − p1 . We
1 1 1 1 1 1

substitute into X and get X(p) = p12 − p1 − e−p p12 .


Thus (using the inverse Laplace transform and a bit of grammar)
t − 1, t ∈ (0, 1];

−1 1

x(t) = t − 1 − L p 2 · H(t − 1) = t − 1 − (t − 1) · H(t − 1) =
t−1 0, elsewhere.
15. Since we want a general solution, we need to introduce parameters, namely we need two, a
and b. On the other hand, we need to know two initial conditions to be able to apply LT to y 00 .
Thus we decide to set y(0+ ) = a, y 0 (0+ ) = b.
Transforming the equation and using L{e2t sin(t)} = L{sin(t)} leads to

p−2
8 ap b
2
[p Y − ap − b] + Y = =⇒
(p−2)2 +1 Y = + + (p2 +1)(p82 −4p+5) .
p2 +1 p2 +1
We apply partial fractions:
8 Ap+B Cp+D
(p2 +1)(p2 −4p+5) = p2 +1 + p2 −4p+5 =⇒ A = 1, B = 1, C = −1, D = 3.
Thus
−p+3
y(t) = L−1 p2ap b p+1

+1 + p2 +1 + p2 +1 + p2 −4p+5

= L−1 (a+1)p b+1 p−2 1



2
p +1 + 2
p +1 − 2
(p−2) +1 + 2
(p−2) +1
2t −1 2t −1
 p  1
= (a + 1) cos(t) + (b + 1) sin(t) − e L p2 +1 + e L p2 +1

= A cos(t) + B sin(t) − e2t cos(t) + e2t sin(t), t ≥ 0.


We check that this solution in fact works on IR.
For solutions using “classical” approach see Solved problems—ODE of order 2.
EM2 Solved problems—Laplace & Fourier transform pHabala 2003


16. a) The Fourier series: T = 2, ω = T = π.
RT R1 R2
a0 = T2 f (t) dt = t dt + 1 dt = 32 ;
0 0 1
2
RT R1 R2
ak = T f (t) cos(kωt) dt = t cos(kπt) dt + cos(kπt) dt
0 0 1
h
1
i1
1
R1 h
1
i2
= t kπ sin(kπt) − kπ sin(kπt) dt + kπ sin(kπt)
0 0 1
h i1
1 1 −1 1 1

= kπ sin(kπ) − kπ kπ cos(kπt) + kπ sin(2kπ) − kπ sin(kπ)
0
= 0 + k21π2 (cos(kπ) − cos(0)) + 0 = k21π2 ((−1)k − 1).
RT R1 R2
bk = T2 f (t) sin(kωt) dt = t sin(kπt) dt + sin(kπt) dt
0 0 1
h i1 h R1 i2
= t −1
kπ cos(kπt) cos(kπt) dt + −1
+ 1

kπ cos(kπt)
0 0 1
i1
h
= −1 1 1 1

kπ cos(kπ) + kπ kπ sin(kπt) − kπ cos(2kπ) − cos(kπ)
0 
= −1 1 1 1
k

kπ (−1) + k2 π 2 sin(kπ) − sin(0) − kπ 1 − (−1)k = − kπ .
∞ 
Thus f ∼ 12 · 23 + 1 1
P k

k2 π 2 ((−1) − 1) cos(kπt) − kπ sin(kπt) .
k=1
On the left: Periodic extension of f . On the right: The sum of this series by the Jordan criterion.

−4 −2 0 1 2 4 −4 −2 0 1 2 4
π π
b) The sine Fourier series: T = 2, ω = = T 2.
a0 = an = 0;
RT R1 R2
bk = T2 f (t) sin(kωt) dt = t sin k π2 t dt + sin k π2 t dt
 
0 0 1
h i 1 R1 h i 2
t −2 k π2 t 2
k π2 t −2
k π2 t

= kπ cos + kπ cos dt + kπ cos
0 0 1
i1
h
= −2 2 π 2 π 2
cos(kπ) − cos k π2
 
kπ cos k 2 + kπ kπ sin k 2 t − kπ
0
= −2 π 4 π 2
(−1)k − cos k π2 = 4
sin k π2 − kπ
2
    
kπ cos k 2 + 2
k π 2 sin k 2 − sin(0) − kπ k2 π 2 (−1)k .
∞ 
4 π 2
sin k π2 t .
P  k
 
Thus f ∼ k2 π 2 sin k 2 − kπ (−1)
k=1
On the left: Odd periodic extension of f . On the right: The sum of this series by the Jordan
criterion.

−4 −2 0 1 2 4 −4 −2 0 1 2 4
b) The cosine Fourier series: T = 2, ω = Tπ = π
2.
RT R1 R2
bn = 0; a0 = T2 f (t) dt = t dt + 1 dt = 32 ;
0 0 1
2
RT R1 R2
t cos k π2 t dt + cos k π2 t dt
 
ak = T f (t) cos(kωt) dt =
0 0 1
2
h i 1 R1 i 2 h
sin k π2 t 2
sin k π2 t dt + kπ
2
sin k π2 t

= t kπ − kπ
0 0 1
h i1
2 −2
sin k π2 − 2 π 2
sin(kπ) − sin k π2
  
= kπ kπ kπ cos k 2 t + kπ
0
EM2 Solved problems—Laplace & Fourier transform pHabala 2003

2
sin k π2 + k24π2 cos k π2 − cos(0) − kπ 2
sin k π2 = 4
cos k π2 − 1 .
     
= kπ k2 π 2
∞ 
Thus f ∼ 34 + 4 π π
P   
2
k π 2 cos k 2 − 1 cos k 2 .
t
k=1
Even periodic extension of f , it is also the sum of this series by the Jordan criterion.

−4 −2 0 1 2 4

You might also like