112
Today • Solving ODEs using Laplace transforms • The Heaviside and associated step and ramp functions • ODE with a ramped forcing function

Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

  • Upload
    others

  • View
    11

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Today

• Solving ODEs using Laplace transforms

• The Heaviside and associated step and ramp functions

• ODE with a ramped forcing function

Page 2: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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

Page 3: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

Page 4: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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.

Page 5: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

Complex.

Page 6: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

=s + 6

s2 + 6s + 9 + 4

Complex.

Page 7: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

=s + 6

s2 + 6s + 9 + 4=

s + 6(s + 3)2 + 4

Complex.

Page 8: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

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

=s + 6

s2 + 6s + 9 + 4=

s + 6(s + 3)2 + 4

Complex.

Page 9: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

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

Complex.

Page 10: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

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

Complex.

Page 11: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

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

Complex.

Page 12: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

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

Complex.

Page 13: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

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

Complex.

Page 14: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - complex

• 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?

2. Complete the square in the denominator.

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)

Complex.

Page 15: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

Y (s) =s + 6

s2 + 6s + 5

y�� + 6y� + 5y = 0

Page 16: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

Y (s) =s + 6

s2 + 6s + 5

y�� + 6y� + 5y = 0

Page 17: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

Y (s) =s + 6

s2 + 6s + 5

y�� + 6y� + 5y = 0

Real.

Page 18: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

Y (s) =s + 6

s2 + 6s + 5

y�� + 6y� + 5y = 0

Real.

Page 19: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

=s + 6

s2 + 6s + 9− 4Y (s) =

s + 6s2 + 6s + 5

y�� + 6y� + 5y = 0

Real.

Page 20: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

=s + 6

(s + 3)2 − 4=s + 6

s2 + 6s + 9− 4Y (s) =

s + 6s2 + 6s + 5

y�� + 6y� + 5y = 0

Real.

Page 21: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

=s + 6

(s + 3)2 − 4=s + 6

s2 + 6s + 9− 4Y (s) =

s + 6s2 + 6s + 5

y�� + 6y� + 5y = 0

=s + 6

(s + 1)(s + 5)

Real.

Page 22: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

3. Partial fraction decomposition.

=s + 6

(s + 3)2 − 4=s + 6

s2 + 6s + 9− 4Y (s) =

s + 6s2 + 6s + 5

y�� + 6y� + 5y = 0

=s + 6

(s + 1)(s + 5)

Real.

Page 23: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

3. Partial fraction decomposition.

=s + 6

(s + 3)2 − 4=s + 6

s2 + 6s + 9− 4Y (s) =

s + 6s2 + 6s + 5

y�� + 6y� + 5y = 0

=s + 6

(s + 1)(s + 5)

=54

· 1s + 5

− 14

· 1s + 1

Real.

(partial fraction decomposition)

Page 24: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

3. Partial fraction decomposition.

4. Invert. Recall that .

=s + 6

(s + 3)2 − 4=s + 6

s2 + 6s + 9− 4Y (s) =

s + 6s2 + 6s + 5

y�� + 6y� + 5y = 0

=s + 6

(s + 1)(s + 5)

=54

· 1s + 5

− 14

· 1s + 1

Real.

L{eat} =1

s− a

(partial fraction decomposition)

Page 25: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - real

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

1. Does the denominator have real or complex roots?

2. Factor the denominator (factor directly, complete the square or QF).

3. Partial fraction decomposition.

4. Invert. Recall that .

=s + 6

(s + 3)2 − 4=s + 6

s2 + 6s + 9− 4Y (s) =

s + 6s2 + 6s + 5

y�� + 6y� + 5y = 0

=s + 6

(s + 1)(s + 5)

=54

· 1s + 5

− 14

· 1s + 1

y(t) =54

e−5t − 14

e−t

Real.

L{eat} =1

s− a

(partial fraction decomposition)

Page 26: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - nonhomog

• 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

Page 27: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - nonhomog

• 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

Page 28: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - nonhomog

• 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

Page 29: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - nonhomog

• 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

Page 30: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms - nonhomog

• 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

Page 31: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

Page 32: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

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

s− 2

Page 33: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• 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)

Page 34: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• 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)

Page 35: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• 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)

Page 36: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• 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)

Page 37: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• 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

Page 38: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• 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

Page 39: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• With a forcing term, the equation

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

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

has Laplace transform

• Solving for Y(s):

Page 40: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

• With a forcing term, the equation

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 (y(0) and y’(0)

act like C1 and C2.

transform of particular solution

has Laplace transform

• Solving for Y(s):

Page 41: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

as2 + bs + c+

G(s)as2 + bs + c

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

Page 42: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

as2 + bs + c+

G(s)as2 + bs + c

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

Yh(s) =A

s− r1+

B

s− r2

Page 43: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

as2 + bs + c+

G(s)as2 + bs + c

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

Yh(s) =A

s− r1+

B

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

Page 44: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

as2 + bs + c+

G(s)as2 + bs + c

• If denominator has distinct 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

Page 45: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

as2 + bs + c+

G(s)as2 + bs + c

• If denominator has distinct 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

L{1} =1s

L{t} =1s2

L{tn} =n!

sn+1L{eatf(t)} = F (s− a)

Page 46: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

as2 + bs + c+

G(s)as2 + bs + c

• If denominator has distinct 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

L{1} =1s

L{t} =1s2

L{tn} =n!

sn+1L{eatf(t)} = F (s− a)

Page 47: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

Page 48: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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

Page 49: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 50: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 51: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 52: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 53: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 54: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 55: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 56: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 57: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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) )

Page 58: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

Yp(s) =G(s)

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

Page 59: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

Yp(s) =G(s)

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

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

Page 60: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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)

Page 61: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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.

Page 62: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Solving IVPs using Laplace transforms

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.

Page 63: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Page 64: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

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

0 t < c,1 t ≥ c.

• In WW, uc(t) = u(t-c) = h(t-a)

Page 65: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

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

0 t < c,1 t ≥ c.

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

Page 66: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 67: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 68: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 69: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 70: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 71: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 72: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 73: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 74: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 75: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 76: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• What is the Laplace transform of

g(t) =�

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

= u2(t)− u5(t) ?

Page 77: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 78: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 79: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 80: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 81: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 82: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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:

Page 83: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

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

Page 84: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 85: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 86: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 87: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 88: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 89: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 90: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 91: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 92: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 93: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 94: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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

Page 95: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 96: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 97: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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.

Page 98: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 99: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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).

Page 100: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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).

Page 101: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 102: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

Step function forcing

• 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)

Page 103: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

H(s) =1

s(s2 + 2s + 10)

Page 104: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

Partial fraction decomposition!

H(s) =1

s(s2 + 2s + 10)

Page 105: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

Partial fraction decomposition!

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

H(s) =1

s(s2 + 2s + 10)

Page 106: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

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

Page 107: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

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.

Page 108: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

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.

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

Page 109: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

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.

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

Page 110: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

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.

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

Page 111: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

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.

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

Page 112: Solving ODEs using Laplace transforms • The Heaviside and ...€¦ · Solving IVPs using Laplace transforms - complex • Solve the equation with initial conditions y(0)=1, y’(0)=0

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

Step function forcing

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.

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