solution of odes using laplace transforms...alternatively we can use partial fraction expansion to...

33
1 Solution of ODEs using Laplace Transforms Process Dynamics and Control

Upload: others

Post on 25-Oct-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

1

Solution of ODEs using Laplace Transforms

Process Dynamics and Control

Page 2: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

2

Linear ODEs

■  For linear ODEs, we can solve without integrating by using Laplace transforms

■  Integrate out time and transform to Laplace domain

Multiplication

Integration

Page 3: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

3

Common Transforms

Useful Laplace Transforms 1. Exponential 2. Cosine

Page 4: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

4

Common Transforms

Useful Laplace Transforms 3. Sine

Page 5: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

5

Common Transforms

Operators 1. Derivative of a function, , 2. Integral of a function

Page 6: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

6

Common Transforms

Operators 3. Delayed function

Page 7: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

7

Common Transforms

Input Signals 1. Constant 2. Step 3. Ramp function

L [f(t)] =

Z 1

0ate�stdt = � ate�st

s

�1

0

+

Z 1

0

ae�st

sdt =

a

s2

Page 8: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

8

Common Transforms

Input Signals 4. Rectangular Pulse 5. Unit impulse

Page 9: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

9

Laplace Transforms

Final Value Theorem Limitations: Initial Value Theorem

Page 10: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

10

Solution of ODEs

We can continue taking Laplace transforms and generate a catalogue of Laplace domain functions.

The final aim is the solution of ordinary differential

equations.

Example Using Laplace Transform, solve Result

Page 11: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

11

Solution of ODEs Cruise Control Example

➤  Taking the Laplace transform of the ODE yields (recalling the Laplace transform is a linear operator)

Force of Engine (u)

Friction

Speed (v)

Page 12: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

12

Solution of ODEs

■  Isolate

and solve

➤ If the input is kept constant

its Laplace transform ➤ Leading to

Page 13: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

13

Solution of ODEs

■  Solve by inverse Laplace transform: (tables)

➤  Solution is obtained by a getting the inverse Laplace transform from a table ➤ Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms

Page 14: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

14

Solution of Linear ODEs

■  DC Motor

■  System dynamics describes (negligible inductance)

Page 15: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

15

Laplace Transform

■  Expressing in terms of angular velocity

➤ Taking Laplace Transforms

➤ Solving

➤ Note that this function can be written as

Page 16: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

16

Laplace Transform

Assume then the transfer function gives directly Cannot invert explicitly, but if we can find such that

we can invert using tables. Need Partial Fraction Expansion to deal with

such functions

Page 17: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

17

Linear ODEs

We deal with rational functions of the form where degree of > degree of

is called the characteristic polynomial of the function The roots of are the poles of the function Theorem:

Every polynomial with real coefficients can be factored into the product of only two types of factors ➤  powers of linear terms and/or ➤  powers of irreducible quadratic terms,

Page 18: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

18

Partial fraction Expansions

1. has real and distinct factors expand as 2. has real but repeated factor expanded

Page 19: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

19

Partial Fraction Expansion

Heaviside expansion For a rational function of the form Constants are given by

Page 20: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

20

Partial Fraction Expansion

Example

The polynomial

has roots

It can be factored as

By partial fraction expansion

Page 21: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

21

Partial Fraction Expansion

By Heaviside

➤  becomes

➤ By inverse laplace

Page 22: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

22

Partial Fraction Expansion

Heaviside expansion For a rational function of the form Constants are given by

↵n�1 =d

ds

✓(s+ b)n

p(s)

q(s)

◆�

s=�b

↵1 =1

n!

dn

dsn

✓(s+ b)n

p(s)

q(s)

◆�

s=�b

Page 23: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

23

Partial Fraction Expansion

Example

The polynomial

has roots

It can be factored as

By partial fraction expansion

Page 24: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

24

Partial Fraction Expansion

By Heaviside

➤  becomes

➤ By inverse laplace

Page 25: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

25

Partial Fraction Expansion

3. has an irreducible quadratic factor

➤  Gives a pair of complex conjugates if

➤  Can be factored in two ways a)  is factored as

b)  or as

Page 26: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

26

Partial Fraction Expansion

Heaviside expansion For a rational function of the form Constants are given by

Page 27: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

27

Partial Fraction Expansion

Example The polynomial

has roots

It can be factored as

By partial fraction expansion

Page 28: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

28

Partial Fraction Expansion

By Heaviside, which yields Taking the inverse laplace

Page 29: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

29

Partial Fraction Expansion

The inverse laplace Can be re-arranged to

Page 30: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

30

Partial Fraction Expansion

Example The polynomial

has roots

It can be factored as ( )

Solving for A and B,

Page 31: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

31

Partial Fraction Expansion

Equating similar powers of s in, yields hence Giving Taking the inverse laplace

Page 32: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

32

Partial Fraction Expansions

Algorithm for Solution of ODEs

➤ Take Laplace Transform of both sides of ODE ➤ Solve for

➤ Factor the characteristic polynomial ➨  Find the roots (roots or poles function in Matlab) ➨  Identify factors and multiplicities

➤ Perform partial fraction expansion ➤ Inverse Laplace using Tables of Laplace Transforms

Page 33: Solution of ODEs using Laplace Transforms...Alternatively we can use partial fraction expansion to compute the solution using simple inverse transforms 14 Solution of Linear ODEs DC

33

Partial Fraction Expansion

■  For a given function

■  The polynomial has three distinct types of roots ➤ Real roots

➨  yields exponential terms ➨  yields constant terms

➤ Complex roots ➨  yields exponentially weighted sinusoidal

signals ➨  yields pure sinusoidal signal

■  A lot of information is obtained from the roots of