107
Today • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE with a ramped forcing function Thursday, March 5, 2015

Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

  • Upload
    others

  • View
    8

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Today

• Solving ODEs using Laplace transforms

• The Heaviside and associated step and ramp functions

• ODE with a ramped forcing function

Thursday, March 5, 2015

Page 2: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

Thursday, March 5, 2015

Page 3: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

1. Does the denominator have real or complex roots? Complex.

Thursday, March 5, 2015

Page 4: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

1. Does the denominator have real or complex roots? Complex.

2. Complete the square.

=s + 6

s2 + 6s + 9 + 4

Thursday, March 5, 2015

Page 5: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

1. Does the denominator have real or complex roots? Complex.

2. Complete the square.

=s + 6

s2 + 6s + 9 + 4=

s + 6(s + 3)2 + 4

Thursday, March 5, 2015

Page 6: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

1. Does the denominator have real or complex roots? Complex.

2. Complete the square.

3. Put numerator in form (s+α)+β where (s+α) is the completed square.

=s + 6

s2 + 6s + 9 + 4=

s + 6(s + 3)2 + 4

=s + 3 + 3

(s + 3)2 + 4

Thursday, March 5, 2015

Page 7: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

1. Does the denominator have real or complex roots? Complex.

2. Complete the square.

3. Put numerator in form (s+α)+β where (s+α) is the completed square.

=s + 6

s2 + 6s + 9 + 4=

s + 6(s + 3)2 + 4

=s + 3 + 3

(s + 3)2 + 4

=s + 3

(s + 3)2 + 4+

3(s + 3)2 + 4

Thursday, March 5, 2015

Page 8: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

1. Does the denominator have real or complex roots? Complex.

2. Complete the square.

3. Put numerator in form (s+α)+β where (s+α) is the completed square.

4. Fix up coefficient of the term with no s in the numerator.

=s + 6

s2 + 6s + 9 + 4=

s + 6(s + 3)2 + 4

=s + 3 + 3

(s + 3)2 + 4

=s + 3

(s + 3)2 + 4+

3(s + 3)2 + 4

=s + 3

(s + 3)2 + 22+

32

2(s + 3)2 + 22

Thursday, March 5, 2015

Page 9: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Solve the equation with initial conditions y(0)=1, y’(0)=0 using Laplace transforms.

Y (s) =s + 6

s2 + 6s + 13

y�� + 6y� + 13y = 0

1. Does the denominator have real or complex roots? Complex.

2. Complete the square.

3. Put numerator in form (s+α)+β where (s+α) is the completed square.

4. Fix up coefficient of the term with no s in the numerator.

5. Invert.

=s + 6

s2 + 6s + 9 + 4=

s + 6(s + 3)2 + 4

=s + 3 + 3

(s + 3)2 + 4

=s + 3

(s + 3)2 + 4+

3(s + 3)2 + 4

=s + 3

(s + 3)2 + 22+

32

2(s + 3)2 + 22

y(t) = e−3t cos(2t) +32e−3t sin(2t)

Thursday, March 5, 2015

Page 10: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• What is the transformed equation for the IVP

L{f �(t)} = sF (s)− f(0)

y(0) = 2y� + 6y = e2t

L{e2t} =� ∞

0e(2−s)t dt

Y �(s) + 6Y (s) =1

s− 2

Y �(s) + 6Y (s) =1

s + 2

sY (s)− 2 + 6Y (s) =1

s− 2

(A)

(B)

(C)

(D)

(E) Explain, please.

sY (s) + 2 + 6Y (s) =1

s + 2

Thursday, March 5, 2015

Page 11: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• What is the transformed equation for the IVP

L{f �(t)} = sF (s)− f(0)

y(0) = 2y� + 6y = e2t

L{e2t} =� ∞

0e(2−s)t dt

Y �(s) + 6Y (s) =1

s− 2

Y �(s) + 6Y (s) =1

s + 2

sY (s)− 2 + 6Y (s) =1

s− 2

(A)

(B)

(C)

(D)

(E) Explain, please.

sY (s) + 2 + 6Y (s) =1

s + 2

Thursday, March 5, 2015

Page 12: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• What is the transformed equation for the IVP

L{f �(t)} = sF (s)− f(0)

y(0) = 2y� + 6y = e2t

L{e2t} =� ∞

0e(2−s)t dt

Y �(s) + 6Y (s) =1

s− 2

Y �(s) + 6Y (s) =1

s + 2

sY (s)− 2 + 6Y (s) =1

s− 2

(A)

(B)

(C)

(D)

(E) Explain, please.

L{y�(t)} = sY (s)− 2

sY (s) + 2 + 6Y (s) =1

s + 2

Thursday, March 5, 2015

Page 13: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• What is the transformed equation for the IVP

L{f �(t)} = sF (s)− f(0)

y(0) = 2y� + 6y = e2t

L{e2t} =� ∞

0e(2−s)t dt

Y �(s) + 6Y (s) =1

s− 2

Y �(s) + 6Y (s) =1

s + 2

sY (s)− 2 + 6Y (s) =1

s− 2

(A)

(B)

(C)

(D)

(E) Explain, please.

L{y�(t)} = sY (s)− 2

L{6y(t)} = 6Y (s)

sY (s) + 2 + 6Y (s) =1

s + 2

Thursday, March 5, 2015

Page 14: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• What is the transformed equation for the IVP

L{f �(t)} = sF (s)− f(0)

y(0) = 2y� + 6y = e2t

L{e2t} =� ∞

0e(2−s)t dt

Y �(s) + 6Y (s) =1

s− 2

Y �(s) + 6Y (s) =1

s + 2

sY (s)− 2 + 6Y (s) =1

s− 2

(A)

(B)

(C)

(D)

(E) Explain, please.

L{y�(t)} = sY (s)− 2

L{6y(t)} = 6Y (s)

L{e2t} =1

s− 2sY (s) + 2 + 6Y (s) =1

s + 2

Thursday, March 5, 2015

Page 15: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

Thursday, March 5, 2015

Page 16: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

sY (s)− 2 + 6Y (s) =1

s− 2

Thursday, March 5, 2015

Page 17: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

sY (s)− 2 + 6Y (s) =1

s− 2

=2

s + 6+

1(s− 2)(s + 6)

Y (s) =�

2 +1

s− 2

�/(s + 6)

y(t) = 2e−6t + L−1

�1

(s− 2)(s + 6)

Thursday, March 5, 2015

Page 18: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

sY (s)− 2 + 6Y (s) =1

s− 2

=2

s + 6+

1(s− 2)(s + 6)

Y (s) =�

2 +1

s− 2

�/(s + 6)

y(t) = 2e−6t + L−1

�1

(s− 2)(s + 6)

Thursday, March 5, 2015

Page 19: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

sY (s)− 2 + 6Y (s) =1

s− 2

1(s− 2)(s + 6)

=A

s− 2+

B

s + 6

=2

s + 6+

1(s− 2)(s + 6)

Y (s) =�

2 +1

s− 2

�/(s + 6)

y(t) = 2e−6t + L−1

�1

(s− 2)(s + 6)

Thursday, March 5, 2015

Page 20: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

sY (s)− 2 + 6Y (s) =1

s− 2

1(s− 2)(s + 6)

=A

s− 2+

B

s + 6

1 = A(s + 6) + B(s− 2)

1 = 8A(s = 2)

(s = −6) 1 = −8B

=2

s + 6+

1(s− 2)(s + 6)

Y (s) =�

2 +1

s− 2

�/(s + 6)

y(t) = 2e−6t + L−1

�1

(s− 2)(s + 6)

Thursday, March 5, 2015

Page 21: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

sY (s)− 2 + 6Y (s) =1

s− 2

1(s− 2)(s + 6)

=A

s− 2+

B

s + 6

1 = A(s + 6) + B(s− 2)

1 = 8A(s = 2)

(s = −6) 1 = −8B

=2

s + 6+

1(s− 2)(s + 6)

Y (s) =�

2 +1

s− 2

�/(s + 6)

y(t) = 2e−6t + L−1

�1

(s− 2)(s + 6)

y(t) = 2e−6t +18L−1

�1

s− 2− 1

s + 6

Thursday, March 5, 2015

Page 22: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• Find the solution to , subject to IC .y(0) = 2y� + 6y = e2t

sY (s)− 2 + 6Y (s) =1

s− 2

1(s− 2)(s + 6)

=A

s− 2+

B

s + 6

1 = A(s + 6) + B(s− 2)

1 = 8A(s = 2)

(s = −6) 1 = −8B

yh(t) = Ce−6t

=2

s + 6+

1(s− 2)(s + 6)

Y (s) =�

2 +1

s− 2

�/(s + 6)

y(t) = 2e−6t + L−1

�1

(s− 2)(s + 6)

y(t) = 2e−6t +18L−1

�1

s− 2− 1

s + 6

y(t) = 2e−6t +18e2t − 1

8e−6t

y(t) =158

e−6t +18e2t

C =158

yp(t) =18e2t

Thursday, March 5, 2015

Page 23: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• With a forcing term, the transformed equation is

ay�� + by� + cy = g(t)

a(s2Y (s)− sy(0)− y�(0)) + b(sY (s)− y(0)) + cY (s) = G(s)

Thursday, March 5, 2015

Page 24: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• With a forcing term, the transformed equation is

ay�� + by� + cy = g(t)

a(s2Y (s)− sy(0)− y�(0)) + b(sY (s)− y(0)) + cY (s) = G(s)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

transform of homogeneous solution with two degrees

of freedom

transform of particular solution

Thursday, March 5, 2015

Page 25: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• With a forcing term, the transformed equation is

ay�� + by� + cy = g(t)

a(s2Y (s)− sy(0)− y�(0)) + b(sY (s)− y(0)) + cY (s) = G(s)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• If denominator has unique real factors, use PFD and get

Yh(s) =A

s− r1+

B

s− r2

Thursday, March 5, 2015

Page 26: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• With a forcing term, the transformed equation is

ay�� + by� + cy = g(t)

a(s2Y (s)− sy(0)− y�(0)) + b(sY (s)− y(0)) + cY (s) = G(s)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• If denominator has unique real factors, use PFD and get

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Thursday, March 5, 2015

Page 27: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• With a forcing term, the transformed equation is

ay�� + by� + cy = g(t)

a(s2Y (s)− sy(0)− y�(0)) + b(sY (s)− y(0)) + cY (s) = G(s)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• If denominator has unique real factors, use PFD and get

• If denominator has repeated real factors, use PFD and get

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r+

B

(s− r)2

Thursday, March 5, 2015

Page 28: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

• With a forcing term, the transformed equation is

ay�� + by� + cy = g(t)

a(s2Y (s)− sy(0)− y�(0)) + b(sY (s)− y(0)) + cY (s) = G(s)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• If denominator has unique real factors, use PFD and get

• If denominator has repeated real factors, use PFD and get

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r+

B

(s− r)2→ yh(t) = Aert + Btert

Thursday, March 5, 2015

Page 29: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

Thursday, March 5, 2015

Page 30: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Thursday, March 5, 2015

Page 31: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2 ( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 32: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2 ( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 33: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2 ( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 34: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2 ( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 35: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α) + Aα

(s− α)2 + β2+

B

(s− α)2 + β2

( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 36: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α) + Aα

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α)

(s− α)2 + β2+

B + Aα

(s− α)2 + β2

( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 37: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α) + Aα

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α)

(s− α)2 + β2+

B + Aα

(s− α)2 + β2

( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 38: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =A(s− α)

(s− α)2 + β2+

B + Aα

β

β

(s− α)2 + β2

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α) + Aα

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α)

(s− α)2 + β2+

B + Aα

(s− α)2 + β2

( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 39: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Y (s) =(as + b)y(0) + ay�(0)

as2 + bs + c+

G(s)as2 + bs + c

• Unique real factors,

• Repeated factor,

Yh(s) =A

s− r1+

B

s− r2→ yh(t) = Aer1t + Ber2t

Yh(s) =A

s− r1+

B

(s− r2)2→ yh(t) = Aer1t + Bter1t

• No real factors, complete square, simplify and get

Yh(s) =A(s− α)

(s− α)2 + β2+

B + Aα

β

β

(s− α)2 + β2

Yh(s) =As

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α) + Aα

(s− α)2 + β2+

B

(s− α)2 + β2

Yh(s) =A(s− α)

(s− α)2 + β2+

B + Aα

(s− α)2 + β2

→ y(t) = e−αt

�A cos(βt) +

B + Aα

βsin(βt)

( A = ay(0), B = ay�(0) + by(0) )

Thursday, March 5, 2015

Page 40: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Yp(s) =G(s)

as2 + bs + c• Inverting the forcing/particular part .

Thursday, March 5, 2015

Page 41: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Yp(s) =G(s)

as2 + bs + c• Inverting the forcing/particular part .

• Usually a combination of similar techniques (PFD, manipulating constants) works.

Thursday, March 5, 2015

Page 42: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Yp(s) =G(s)

as2 + bs + c• Inverting the forcing/particular part .

• Usually a combination of similar techniques (PFD, manipulating constants) works.

• Which is the correct PFD form for ? Y (s) =s2 + 2s− 3

(s− 1)2(s2 + 4)

Thursday, March 5, 2015

Page 43: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Yp(s) =G(s)

as2 + bs + c• Inverting the forcing/particular part .

• Usually a combination of similar techniques (PFD, manipulating constants) works.

• Which is the correct PFD form for ? Y (s) =s2 + 2s− 3

(s− 1)2(s2 + 4)Y (s) =

A

(s− 1)2+

B

(s2 + 4)

Y (s) =A

s− 1+

B

(s− 1)2+

C

(s2 + 4)

Y (s) =A

s− 1+

B

(s− 1)2+

Cs + D

(s2 + 4)

Y (s) =As + B

(s− 1)2+

Cs + D

(s2 + 4)

(A)

(B)

(C)

(D)

(E) MATH 101 was a long time ago.

Thursday, March 5, 2015

Page 44: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Solving IVPs using Laplace transforms (6.2)

Yp(s) =G(s)

as2 + bs + c• Inverting the forcing/particular part .

• Usually a combination of similar techniques (PFD, manipulating constants) works.

• Which is the correct PFD form for ? Y (s) =s2 + 2s− 3

(s− 1)2(s2 + 4)Y (s) =

A

(s− 1)2+

B

(s2 + 4)

Y (s) =A

s− 1+

B

(s− 1)2+

C

(s2 + 4)

Y (s) =A

s− 1+

B

(s− 1)2+

Cs + D

(s2 + 4)

Y (s) =As + B

(s− 1)2+

Cs + D

(s2 + 4)

(A)

(B)

(C)

(D)

(E) MATH 101 was a long time ago.

Thursday, March 5, 2015

Page 45: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Laplace transforms (so far)

f(t) F (s)

11s

eat 1s− a

tnn!

sn+1

sin(at)a

s2 + a2

cos(at)s

s2 + a2

eatf(t) F (s− a)

f(ct) 1cF

�sc

Thursday, March 5, 2015

Page 46: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• In WW, uc(t) = u(t-c) = h(t-a)Thursday, March 5, 2015

Page 47: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• We use it to model on/off behaviour in ODEs.

Thursday, March 5, 2015

Page 48: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• We use it to model on/off behaviour in ODEs.

• For example, in LRC circuits, Kirchoff’s second law tells us that:

V1 + V2 + V3 = E(t)

inductor resistor capacitor

applied voltage

Thursday, March 5, 2015

Page 49: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• We use it to model on/off behaviour in ODEs.

• For example, in LRC circuits, Kirchoff’s second law tells us that:

V1 + V2 + V3 = E(t)

LI � + IR +1C

Q = E(t)inductor resistor capacitor

applied voltage

Thursday, March 5, 2015

Page 50: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• We use it to model on/off behaviour in ODEs.

• For example, in LRC circuits, Kirchoff’s second law tells us that:

V1 + V2 + V3 = E(t)

LI � + IR +1C

Q = E(t)

I = Q�inductor resistor capacitor

applied voltage

Thursday, March 5, 2015

Page 51: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• We use it to model on/off behaviour in ODEs.

• For example, in LRC circuits, Kirchoff’s second law tells us that:

V1 + V2 + V3 = E(t)

LI � + IR +1C

Q = E(t)

LQ�� + RQ� +1C

Q = E(t)

I = Q�inductor resistor capacitor

applied voltage

Thursday, March 5, 2015

Page 52: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• We use it to model on/off behaviour in ODEs.

• For example, in LRC circuits, Kirchoff’s second law tells us that:

V1 + V2 + V3 = E(t)

LI � + IR +1C

Q = E(t)

LQ�� + RQ� +1C

Q = E(t)

I = Q�

• If E(t) is a voltage source that can be turned on/off, then E(t) is step-like.

inductor resistor capacitor

applied voltage

Thursday, March 5, 2015

Page 53: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• We define the Heaviside function uc(t) =�

0 t < c,1 t ≥ c.

• We use it to model on/off behaviour in ODEs.

• For example, in LRC circuits, Kirchoff’s second law tells us that:

V1 + V2 + V3 = E(t)

LI � + IR +1C

Q = E(t)

LQ�� + RQ� +1C

Q = E(t)

I = Q�

• If E(t) is a voltage source that can be turned on/off, then E(t) is step-like.

• For example, turn E on at t=2 and off again at t=5:

inductor resistor capacitor

applied voltage

Thursday, March 5, 2015

Page 54: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Use the Heaviside function to rewrite g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

(A)

(B)

(C)

(D)

(E) Explain, please.

g(t) = u2(t) + u5(t)

g(t) = u2(t)− u5(t)

g(t) = u2(t)(1− u5(t))

g(t) = u5(t)− u2(t)

Thursday, March 5, 2015

Page 55: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Use the Heaviside function to rewrite g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

(A)

(B)

(C)

(D)

(E) Explain, please.

g(t) = u2(t) + u5(t)

g(t) = u2(t)− u5(t)

g(t) = u2(t)(1− u5(t))

g(t) = u5(t)− u2(t)

Thursday, March 5, 2015

Page 56: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Use the Heaviside function to rewrite g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

(A)

(B)

(C)

(D)

(E) Explain, please.

g(t) = u2(t) + u5(t)

g(t) = u2(t)− u5(t)

g(t) = u2(t)(1− u5(t))

g(t) = u5(t)− u2(t)

Thursday, March 5, 2015

Page 57: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Use the Heaviside function to rewrite g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

(A)

(B)

(C)

(D)

(E) Explain, please.

g(t) = u2(t) + u5(t)

g(t) = u2(t)− u5(t)

g(t) = u2(t)(1− u5(t))

g(t) = u5(t)− u2(t)

messier with transforms

Thursday, March 5, 2015

Page 58: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• What is the Laplace transform of

g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

= u2(t)− u5(t) ?

Thursday, March 5, 2015

Page 59: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• What is the Laplace transform of

g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

= u2(t)− u5(t) ?

L{uc(t)} =� ∞

0e−stuc(t) dt

Thursday, March 5, 2015

Page 60: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• What is the Laplace transform of

g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

= u2(t)− u5(t) ?

L{uc(t)} =� ∞

0e−stuc(t) dt

=� ∞

ce−st dt

Thursday, March 5, 2015

Page 61: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• What is the Laplace transform of

g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

= u2(t)− u5(t) ?

L{uc(t)} =� ∞

0e−stuc(t) dt

=� ∞

ce−st dt = −1

se−st

����∞

c

Thursday, March 5, 2015

Page 62: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• What is the Laplace transform of

g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

= u2(t)− u5(t) ?

L{uc(t)} =� ∞

0e−stuc(t) dt

=� ∞

ce−st dt = −1

se−st

����∞

c

=e−sc

s(s > 0)

Thursday, March 5, 2015

Page 63: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• What is the Laplace transform of

g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

= u2(t)− u5(t) ?

L{uc(t)} =� ∞

0e−stuc(t) dt

=� ∞

ce−st dt = −1

se−st

����∞

c

=e−sc

s(s > 0)

L{u2(t)− u5(t)} =e−2s

s− e−5s

s(s > 0)

Thursday, March 5, 2015

Page 64: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• What is the Laplace transform of

g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

= u2(t)− u5(t) ?

L{uc(t)} =� ∞

0e−stuc(t) dt

=� ∞

ce−st dt = −1

se−st

����∞

c

=e−sc

s(s > 0)

L{u2(t)− u5(t)} =e−2s

s− e−5s

s(s > 0)

L{f(t) + g(t)} =� ∞

0e−st(f(t) + g(t)) dt

=� ∞

0e−stf(t) dt +

� ∞

0e−stg(t) dt

= L{f(t)} + L{g(t)}

Recall:

Thursday, March 5, 2015

Page 65: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

Thursday, March 5, 2015

Page 66: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

Thursday, March 5, 2015

Page 67: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

Thursday, March 5, 2015

Page 68: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

Thursday, March 5, 2015

Page 69: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

Thursday, March 5, 2015

Page 70: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

Thursday, March 5, 2015

Page 71: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

L{k(t)} =� ∞

0e−stuc(t)f(t− c) dt

Thursday, March 5, 2015

Page 72: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

=� ∞

ce−stf(t− c) dt

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

L{k(t)} =� ∞

0e−stuc(t)f(t− c) dt

Thursday, March 5, 2015

Page 73: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

=� ∞

ce−stf(t− c) dt u = t− c, du = dt

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

L{k(t)} =� ∞

0e−stuc(t)f(t− c) dt

Thursday, March 5, 2015

Page 74: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

=� ∞

ce−stf(t− c) dt u = t− c, du = dt

=� ∞

0e−s(u+c)f(u) du

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

L{k(t)} =� ∞

0e−stuc(t)f(t− c) dt

Thursday, March 5, 2015

Page 75: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

=� ∞

ce−stf(t− c) dt u = t− c, du = dt

=� ∞

0e−s(u+c)f(u) du

= e−sc

� ∞

0e−suf(u) du

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

L{k(t)} =� ∞

0e−stuc(t)f(t− c) dt

Thursday, March 5, 2015

Page 76: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Suppose we know the transform of f(t) is F(s).

• It will be useful to know the transform of

= uc(t)f(t− c)

=� ∞

ce−stf(t− c) dt u = t− c, du = dt

=� ∞

0e−s(u+c)f(u) du

= e−sc

� ∞

0e−suf(u) du = e−scF (s)

k(t) =�

0 for t < c,f(t− c) for t ≥ c.

L{k(t)} =� ∞

0e−stuc(t)f(t− c) dt

Thursday, March 5, 2015

Page 77: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

y(0) = 0, y�(0) = 0.

Thursday, March 5, 2015

Page 78: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

• The transformed equation is

y(0) = 0, y�(0) = 0.

Thursday, March 5, 2015

Page 79: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

• The transformed equation is

s2Y (s) + 2sY (s) + 10Y (s) =e−2s

s− e−5s

s.

y(0) = 0, y�(0) = 0.

Thursday, March 5, 2015

Page 80: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

• The transformed equation is

s2Y (s) + 2sY (s) + 10Y (s) =e−2s

s− e−5s

s.

y(0) = 0, y�(0) = 0.

Y (s) =e−2s − e−5s

s(s2 + 2s + 10)

Thursday, March 5, 2015

Page 81: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

• The transformed equation is

s2Y (s) + 2sY (s) + 10Y (s) =e−2s

s− e−5s

s.

y(0) = 0, y�(0) = 0.

H(s) =1

s(s2 + 2s + 10)

Y (s) =e−2s − e−5s

s(s2 + 2s + 10)= (e−2s − e

−5s)H(s).

Thursday, March 5, 2015

Page 82: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

• The transformed equation is

s2Y (s) + 2sY (s) + 10Y (s) =e−2s

s− e−5s

s.

y(0) = 0, y�(0) = 0.

• Recall that L{uc(t)f(t− c)} = e−scF (s)H(s) =

1s(s2 + 2s + 10)

Y (s) =e−2s − e−5s

s(s2 + 2s + 10)= (e−2s − e

−5s)H(s).

Thursday, March 5, 2015

Page 83: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

• The transformed equation is

s2Y (s) + 2sY (s) + 10Y (s) =e−2s

s− e−5s

s.

y(0) = 0, y�(0) = 0.

• Recall that L{uc(t)f(t− c)} = e−scF (s)H(s) =

1s(s2 + 2s + 10)

Y (s) =e−2s − e−5s

s(s2 + 2s + 10)= (e−2s − e

−5s)H(s).

y(t) = u2(t)h(t− 2)− u5(t)h(t− 5)

Thursday, March 5, 2015

Page 84: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• Solve using Laplace transforms:

y�� + 2y� + 10y = g(t) =�

0 for t < 2 and t ≥ 5,1 for 2 ≤ t < 5.

• The transformed equation is

s2Y (s) + 2sY (s) + 10Y (s) =e−2s

s− e−5s

s.

y(0) = 0, y�(0) = 0.

• Recall that

• So we just need h(t) and we’re done.

L{uc(t)f(t− c)} = e−scF (s)H(s) =

1s(s2 + 2s + 10)

Y (s) =e−2s − e−5s

s(s2 + 2s + 10)= (e−2s − e

−5s)H(s).

y(t) = u2(t)h(t− 2)− u5(t)h(t− 5)

Thursday, March 5, 2015

Page 85: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

H(s) =1

s(s2 + 2s + 10)

Thursday, March 5, 2015

Page 86: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

H(s) =1

s(s2 + 2s + 10)

Thursday, March 5, 2015

Page 87: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

Thursday, March 5, 2015

Page 88: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

Thursday, March 5, 2015

Page 89: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

A =110

, B = − 110

, C = −15.

Thursday, March 5, 2015

Page 90: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

A =110

, B = − 110

, C = −15.

H(s) =110

1s− 1

10s

s2 + 2s + 10− 1

51

s2 + 2s + 10

Thursday, March 5, 2015

Page 91: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

A =110

, B = − 110

, C = −15.

H(s) =110

1s− 1

10s

s2 + 2s + 10− 1

51

s2 + 2s + 10

H(s) =110

1s− 1

10s

s2 + 2s + 1 + 9− 1

51

s2 + 2s + 1 + 9

Thursday, March 5, 2015

Page 92: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

A =110

, B = − 110

, C = −15.

H(s) =110

1s− 1

10s

s2 + 2s + 10− 1

51

s2 + 2s + 10

H(s) =110

1s− 1

10s

s2 + 2s + 1 + 9− 1

51

s2 + 2s + 1 + 9

H(s) =110

1s− 1

10s

(s + 1)2 + 9− 1

51

(s + 1)2 + 9

Thursday, March 5, 2015

Page 93: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

A =110

, B = − 110

, C = −15.

H(s) =110

1s− 1

10s

s2 + 2s + 10− 1

51

s2 + 2s + 10

H(s) =110

1s− 1

10s

s2 + 2s + 1 + 9− 1

51

s2 + 2s + 1 + 9

H(s) =110

1s− 1

10s

(s + 1)2 + 9− 1

51

(s + 1)2 + 9

• See Supplemental notes for the rest of the calculation: https://wiki.math.ubc.ca/mathbook/M256/Resources

Thursday, March 5, 2015

Page 94: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

y(t) = u2(t)h(t− 2)− u5(t)h(t− 5)A =110

, B = − 110

, C = −15.

H(s) =110

1s− 1

10s

s2 + 2s + 10− 1

51

s2 + 2s + 10

H(s) =110

1s− 1

10s

s2 + 2s + 1 + 9− 1

51

s2 + 2s + 1 + 9

H(s) =110

1s− 1

10s

(s + 1)2 + 9− 1

51

(s + 1)2 + 9

• See Supplemental notes for the rest of the calculation: https://wiki.math.ubc.ca/mathbook/M256/Resources

Thursday, March 5, 2015

Page 95: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

y(t) = u2(t)h(t− 2)− u5(t)h(t− 5)A =110

, B = − 110

, C = −15.

H(s) =110

1s− 1

10s

s2 + 2s + 10− 1

51

s2 + 2s + 10

H(s) =110

1s− 1

10s

s2 + 2s + 1 + 9− 1

51

s2 + 2s + 1 + 9

H(s) =110

1s− 1

10s

(s + 1)2 + 9− 1

51

(s + 1)2 + 9

• See Supplemental notes for the rest of the calculation: https://wiki.math.ubc.ca/mathbook/M256/Resources

Thursday, March 5, 2015

Page 96: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

• Inverting H(s) to get h(t):

Step function forcing (6.3, 6.4)

Partial fraction decomposition!

•Does factor? No real factors.s2 + 2s + 10

H(s) =1

s(s2 + 2s + 10)

H(s) =1

s(s2 + 2s + 10)=

A

s+

Bs + C

s2 + 2s + 10

y(t) = u2(t)h(t− 2)− u5(t)h(t− 5)A =110

, B = − 110

, C = −15.

H(s) =110

1s− 1

10s

s2 + 2s + 10− 1

51

s2 + 2s + 10

H(s) =110

1s− 1

10s

s2 + 2s + 1 + 9− 1

51

s2 + 2s + 1 + 9

H(s) =110

1s− 1

10s

(s + 1)2 + 9− 1

51

(s + 1)2 + 9

• See Supplemental notes for the rest of the calculation: https://wiki.math.ubc.ca/mathbook/M256/Resources

Thursday, March 5, 2015

Page 97: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y�� + 4y =

0 for t < 5,t−55 for 5 ≤ t < 10,1 for t ≥ 10.

y(0) = 0, y�(0) = 0.

Thursday, March 5, 2015

Page 98: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y�� + 4y =

0 for t < 5,t−55 for 5 ≤ t < 10,1 for t ≥ 10.

• Write g(t) is terms of uc(t):

(A)

(B)

(C)

(D)

g(t) = u5(t)− u10(t)

g(t) = u5(t)(t− 5)− u10(t)(t− 5)

g(t) = (u5(t)(t− 5)− u10(t)(t− 10))/5

g(t) = (u5(t)(t− 5)− u10(t)(t− 10))/10

y(0) = 0, y�(0) = 0.

Thursday, March 5, 2015

Page 99: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y�� + 4y =

0 for t < 5,t−55 for 5 ≤ t < 10,1 for t ≥ 10.

• Write g(t) is terms of uc(t):

(A)

(B)

(C)

(D)

g(t) = u5(t)− u10(t)

g(t) = u5(t)(t− 5)− u10(t)(t− 5)

g(t) = (u5(t)(t− 5)− u10(t)(t− 10))/5

g(t) = (u5(t)(t− 5)− u10(t)(t− 10))/10

y(0) = 0, y�(0) = 0.

Thursday, March 5, 2015

Page 100: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y�� + 4y =

0 for t < 5,t−55 for 5 ≤ t < 10,1 for t ≥ 10.

• Write g(t) is terms of uc(t):

(A)

(B)

(C)

(D)

g(t) = u5(t)− u10(t)

g(t) = u5(t)(t− 5)− u10(t)(t− 5)

g(t) = (u5(t)(t− 5)− u10(t)(t− 10))/5

g(t) = (u5(t)(t− 5)− u10(t)(t− 10))/10

y(0) = 0, y�(0) = 0.

g(t) = u5(t)15(t− 5)− u10(t)

15(t− 10)

g(t) = (u5(t)− u10(t))15(t− 5) + u10(t) · 1

Two methods:

1. Build from left to right, adding/subtracting what you need to make the next section:

2. Build each section independently:

Thursday, March 5, 2015

Page 101: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y(0) = 0, y�(0) = 0.

y�� + 4y = u5(t)15(t− 5)− u10(t)

15(t− 10)

Thursday, March 5, 2015

Page 102: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y(0) = 0, y�(0) = 0.

y�� + 4y = u5(t)15(t− 5)− u10(t)

15(t− 10)

s2Y + 4Y =15

e−5s − e−10s

s2

Thursday, March 5, 2015

Page 103: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y(0) = 0, y�(0) = 0.

y�� + 4y = u5(t)15(t− 5)− u10(t)

15(t− 10)

s2Y + 4Y =15

e−5s − e−10s

s2

Y (s) =15

e−5s − e−10s

s2(s2 + 4)

Thursday, March 5, 2015

Page 104: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y(0) = 0, y�(0) = 0.

y�� + 4y = u5(t)15(t− 5)− u10(t)

15(t− 10)

=15(e−5s − e

−10s)H(s)

s2Y + 4Y =15

e−5s − e−10s

s2

Y (s) =15

e−5s − e−10s

s2(s2 + 4)

Thursday, March 5, 2015

Page 105: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y(0) = 0, y�(0) = 0.

y�� + 4y = u5(t)15(t− 5)− u10(t)

15(t− 10)

=15(e−5s − e

−10s)H(s)

y(t) =15[u5(t)h(t− 5)− u10(t)h(t− 10)]

s2Y + 4Y =15

e−5s − e−10s

s2

Y (s) =15

e−5s − e−10s

s2(s2 + 4)

Thursday, March 5, 2015

Page 106: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y(0) = 0, y�(0) = 0.

y�� + 4y = u5(t)15(t− 5)− u10(t)

15(t− 10)

=15(e−5s − e

−10s)H(s)

y(t) =15[u5(t)h(t− 5)− u10(t)h(t− 10)]

Find h(t) given that .H(s) =1

s2(s2 + 4)

s2Y + 4Y =15

e−5s − e−10s

s2

Y (s) =15

e−5s − e−10s

s2(s2 + 4)

Thursday, March 5, 2015

Page 107: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE

Step function forcing (6.3, 6.4)

• An example with a ramped forcing function:

y(0) = 0, y�(0) = 0.

y�� + 4y = u5(t)15(t− 5)− u10(t)

15(t− 10)

=15(e−5s − e

−10s)H(s)

y(t) =15[u5(t)h(t− 5)− u10(t)h(t− 10)]

Find h(t) given that .H(s) =1

s2(s2 + 4)

h(t) =14t− 1

8sin(2t)

s2Y + 4Y =15

e−5s − e−10s

s2

Y (s) =15

e−5s − e−10s

s2(s2 + 4)

Thursday, March 5, 2015