Docsity

Solutions to Math 331 Midterm 3B: Differential Equations with Laplace Transforms, Exams of Mathematics

Toggle sidebar
bg1
Math 331: Differential Equations
Solutions of Midterm 3B
Department of Mathematics and Statistics
University of Massachusetts
Instructor: Dr Alain Bourget April 22, 2005
Question 1: Use Laplace transform to find the solution of the following initial value problem.
(y00 −2y0+ 2y= 10uπ(t) sin 2t
y(0) = y0(0) = 0
Solution: First, we apply Laplace transform on both sides of the equation to get
s2Y(s)−sy(0) −y0(0) −2(sY (s)−y(0)) + 2Y(s) = 10L{uπ(t) sin 2t}(s)
where Y(s) = L{y(t)}(s). Since sin 2t= sin(2t−2π), we deduce that
L{uπ(t) sin 2t}(s) = L{uπ(t) sin 2(t−π)}(s) = 2e−πs
s2+ 4.
From the initial condition, we then obtain
(s2−2s+ 2)Y(s) = 20 e−πs
s2+ 4 ⇐⇒ Y(s) = 20e−πs
(s2+ 4)(s2−2s+ 2).
To compute the inverse Laplace transform of Y(s), we must first use a partial fraction decomposition.
20
(s2+ 4)(s2−2s+ 2) =As +B
s2+ 4 +Cs +D
s2−2s+ 2
This implies
20 = (As +B)(s2−2s+ 2) + (Cs +D)(s2+ 4)
= (A+C)s3+ (−2A+B+D)s2+ (2A−2B+ 4C)s+ (2B+ 4D).
Comparing the coefficients, we obtain the system
A+C= 0
−2A+B+D= 0
2A−2B+ 4C= 0
2B+ 4D= 20
=⇒(A=−C
B= 10 −2D=⇒(−2C+D= 10
2C+ 4D= 10 =⇒
D= 4
C=−3
A= 3
B= 2
Thus, we obtain
Y(s) = (3s+ 2)e−πs
s2+ 4 −(3s−4)e−π s
s2−2s+ 2
=(3s+ 2)e−πs
s2+ 4 −(3s−4)e−π s
(s−1)2+ 1
= 3 se−πs
s2+ 4 +2e−πs
s2+ 4 −3(s−1)e−πs
(s−1)2+ 1 +e−πs
(s−1)2+ 1
Finally, we take the inverse Laplace transform to obtain y(t).
y(t) = L−1{Y(s)}(t)
= 3L−1½se−πs
s2+ 4¾+L−1½2e−πs
s2+ 4¾−3L−1½(s−1)e−πs
(s−1)2+ 1¾+L−1½e−πs
(s−1)2+ 1¾
= 3uπ(t) cos 2(t−π) + uπ(t) sin 2(t−π)−3uπ(t)et−πcos(t−π) + uπ(t)et−πsin(t−π)
=uπ(t)£3 cos 2t+ sin 2t+ 3et−πcos t−et−πsin t¤
pf2

Partial preview of the text

Download Solutions to Math 331 Midterm 3B: Differential Equations with Laplace Transforms and more Exams Mathematics in PDF only on Docsity!

Math 331: Differential Equations Solutions of Midterm 3B Department of Mathematics and Statistics University of Massachusetts

Instructor: Dr Alain Bourget April 22, 2005

Question 1: Use Laplace transform to find the solution of the following initial value problem.

{ y′′^ − 2 y′^ + 2y = 10uπ (t) sin 2t y(0) = y′(0) = 0

Solution: First, we apply Laplace transform on both sides of the equation to get

s^2 Y (s) − sy(0) − y′(0) − 2(sY (s) − y(0)) + 2Y (s) = 10L{uπ (t) sin 2t}(s) where Y (s) = L{y(t)}(s). Since sin 2t = sin(2t − 2 π), we deduce that

L{uπ (t) sin 2t}(s) = L{uπ (t) sin 2(t − π)}(s) = 2 e−πs s^2 + 4

From the initial condition, we then obtain

(s^2 − 2 s + 2)Y (s) = 20 e−πs s^2 + 4 ⇐⇒ Y (s) = 20 e−πs (s^2 + 4)(s^2 − 2 s + 2)

To compute the inverse Laplace transform of Y (s), we must first use a partial fraction decomposition. 20 (s^2 + 4)(s^2 − 2 s + 2)

As + B s^2 + 4

Cs + D s^2 − 2 s + 2 This implies 20 = (As + B)(s^2 − 2 s + 2) + (Cs + D)(s^2 + 4) = (A + C)s^3 + (− 2 A + B + D)s^2 + (2A − 2 B + 4C)s + (2B + 4D).

Comparing the coefficients, we obtain the system     

A + C = 0

− 2 A + B + D = 0

2 A − 2 B + 4C = 0

2 B + 4D = 20

A = −C

B = 10 − 2 D

− 2 C + D = 10

2 C + 4D = 10

D = 4

C = − 3

A = 3

B = 2

Thus, we obtain

Y (s) = (3s + 2)e−πs s^2 + 4

(3s − 4)e−πs s^2 − 2 s + 2 = (3s^ + 2)e

−πs s^2 + 4 − (3s^ −^ 4)e

−πs (s − 1)^2 + 1 = 3 se

−πs s^2 + 4 +^2 e

−πs s^2 + 4 − 3 (s^ −^ 1)e

−πs (s − 1)^2 + 1

  • e

−πs (s − 1)^2 + 1 Finally, we take the inverse Laplace transform to obtain y(t). y(t) = L−^1 {Y (s)}(t) = 3 L−^1

se−πs s^2 + 4

+ L−^1

2 e−πs s^2 + 4

− 3 L−^1

(s − 1)e−πs (s − 1)^2 + 1

+ L−^1

e−πs (s − 1)^2 + 1

= 3 uπ (t) cos 2(t − π) + uπ (t) sin 2(t − π) − 3 uπ (t)et−π^ cos(t − π) + uπ (t)et−π^ sin(t − π) = uπ (t)

[

3 cos 2t + sin 2t + 3et−π^ cos t − et−π^ sin t

]

Question 2: Use Laplace transform to find the solution of the following initial value problem.

{ y(4)^ − y = δ(t − π/6) sin t cos t y(0) = y′(0) = y′′(0) = 0, y′′′(0) = − 1

Solutions: First, we apply the Laplace transform to obtain

s^4 Y (s) + 1 − Y (s) = L{δ(t − π/6) sin t cos t}(s)

0

e−stδ(t − π/6) sin t cos t dt

= e−st^ cos t sin t

t=π/ 6 = e−πs/^6 cos(π/6) sin(π/6)

=

4 e

−sπ/ 6

Thus, we deduce that Y (s) =

e−sπ/^6 s^4 − 1

s^4 − 1

The partial fraction decomposition yields 1 s^4 − 1

(s^2 − 1)(s^2 + 1)

=^1

s^2 − 1

s^2 + 1

Therefore, Y (s) =

[

e−πs/^6 s^2 − 1 −^

e−πs/^6 s^2 + 1

]

[

s^2 − 1 −^

s^2 − 1

]

Finally we take the inverse Laplace transform to recover y(t).

y(t) =

[

L−^1

e−πs/^6 s^2 − 1

− L−^1

e−πs/^6 s^2 + 1

}]

[

L−^1

s^2 − 1

− L−^1

s^2 + 1

}]

uπ/ 6 (t) [sinh(t − π/6) − sin(t − π/6)] −

[sinh t − sin t]

Question 3: Use Laplace transform to find the solution of the following initial value problem. Express your answer in a convolution integral. Identify the Green function. { y′′^ + 6y′^ + 5y = cosh αt y(0) = 0, y′(0) = 0

Solution: First, we apply Laplace transform to get

(s^2 + 6s + 5)Y (s) = L {cosh αt}. This implies

Y (s) =

s^2 + 6s + 5 · L {cosh^ αt} = 1 (s + 3)^2 − 4 · L {cosh αt}

=

(s + 3)^2 − 4 · L {cosh αt}

= 1 2

L

e−^3 t^ sinh 2t

· L {cosh αt} = L

(e−^3 t^ sinh 2t) ∗ (cosh αt)

(s). Taking the inverse Laplace transform, we finally obtain

y(t) =

2 (e

− 3 t (^) sinh 2t) ∗ (cosh αt) =^1 2

∫ (^) t

0

e−3(t−τ^ )^ sinh 2(t − τ ) cosh ατ dτ.

The Green function is G(t, τ ) = e−3(t−τ^ )^ sinh 2(t − τ ).