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

Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

Embed Size (px)

Citation preview

Page 1: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

1

Solution of Solution of ODEs ODEs using using Laplace Laplace TransformsTransforms

Process Dynamics and ControlProcess Dynamics and Control

Page 2: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

2

Linear Linear ODEsODEs

For linear ODEs, we can solve without integrating byusing Laplace transforms

Integrate out time and transform to Laplace domain

MultiplicationMultiplication

IntegrationIntegration

Page 3: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

3

Common TransformsCommon Transforms

Useful Useful Laplace Laplace TransformsTransforms1. Exponential1. Exponential

2. Cosine2. Cosine

Page 4: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

4

Common TransformsCommon Transforms

Useful Useful Laplace Laplace TransformsTransforms3. Sine3. Sine

Page 5: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

5

Common TransformsCommon Transforms

Operators1. Derivative of a function, ,

2. Integral of a function

Page 6: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

6

Common TransformsCommon Transforms

OperatorsOperators3. Delayed function

Page 7: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

7

Common TransformsCommon Transforms

Input Signals1. Constant1. Constant

2. Step2. Step

3. Ramp function3. Ramp function

Page 8: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

8

Common TransformsCommon Transforms

Input SignalsInput Signals4. Rectangular Pulse4. Rectangular Pulse

5. 5. Unit impulse

Page 9: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

9

Laplace Laplace TransformsTransforms

Final Value Theorem

Limitations:Limitations:

Initial Value Theorem

Page 10: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

10

Solution of Solution of ODEsODEs

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

The final aim is the solution of ordinary differentialequations.

ExampleExampleUsing Laplace Transform, solve

Result

Page 11: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

11

Solution of Solution of ODEsODEs

Cruise Control Example

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

Force ofEngine (u)

Friction

Speed (v)

Page 12: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

12

Solution of Solution of ODEsODEs

IsolateIsolate

and solveand solve

If the input is kept constantIf the input is kept constant

its its Laplace Laplace transformtransform

Leading toLeading to

Page 13: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

13

Solution of Solution of ODEsODEs

Solve by inverse Solve by inverse Laplace Laplace transform:transform: (tables)(tables)

Solution is obtained by aSolution is obtained by a getting the inverse getting the inverse Laplace Laplace transformtransformfrom a tablefrom a table AlternativelyAlternatively we can use partial fraction expansion to compute we can use partial fraction expansion to compute the solution usingthe solution using simple inverse transformssimple inverse transforms

Page 14: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

14

Solution of Linear Solution of Linear ODEsODEs

DC MotorDC Motor

System dynamics describes (negligible inductance)System dynamics describes (negligible inductance)

Page 15: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

15

Laplace Laplace TransformTransform

Expressing in terms of angular velocityExpressing in terms of angular velocity

Taking Taking Laplace Laplace TransformsTransforms

SolvingSolving

Note that this function can be written asNote that this function can be written as

Page 16: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

16

Laplace Laplace TransformTransform

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 withsuch functions

Page 17: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

17

Linear Linear ODEsODEs

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 theproduct 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 · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

18

Partial fraction ExpansionsPartial 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 · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

19

Partial Fraction ExpansionPartial Fraction Expansion

Heaviside expansion

For a rational function of the form

Constants are given by

Page 20: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

20

Partial Fraction ExpansionPartial Fraction Expansion

ExampleExample

The polynomialThe polynomial

has rootshas roots

It can be factored asIt can be factored as

By partial fraction expansionBy partial fraction expansion

Page 21: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

21

Partial Fraction ExpansionPartial Fraction Expansion

By By HeavisideHeaviside

becomesbecomes

By inverse By inverse laplacelaplace

Page 22: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

22

Partial Fraction ExpansionPartial Fraction Expansion

Heaviside expansion

For a rational function of the form

Constants are given by

Page 23: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

23

Partial Fraction ExpansionPartial Fraction Expansion

ExampleExample

The polynomialThe polynomial

has rootshas roots

It can be factored asIt can be factored as

By partial fraction expansionBy partial fraction expansion

Page 24: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

24

Partial Fraction ExpansionPartial Fraction Expansion

By By HeavisideHeaviside

becomesbecomes

By inverse By inverse laplacelaplace

Page 25: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

25

Partial Fraction ExpansionPartial Fraction Expansion

3. 3. has an irreducible quadratic factorhas an irreducible quadratic factor

Gives a pair of complex conjugates ifGives a pair of complex conjugates if

Can be factored in two waysCan be factored in two waysa)a) is factored asis factored as

b)b) oror asas

Page 26: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

26

Partial Fraction ExpansionPartial Fraction Expansion

Heaviside expansion

For a rational function of the form

Constants are given by

Page 27: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

27

PartialPartial Fraction ExpansionFraction Expansion

ExampleExample

The polynomialThe polynomial

has rootshas roots

It can be factored asIt can be factored as

By partial fraction expansionBy partial fraction expansion

Page 28: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

28

Partial Fraction ExpansionPartial Fraction Expansion

By By HeavisideHeaviside,,

which yieldswhich yields

Taking the inverseTaking the inverse laplacelaplace

Page 29: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

29

PartialPartial Fraction ExpansionFraction Expansion

The inverse The inverse laplacelaplace

Can be re-arranged toCan be re-arranged to

Page 30: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

30

PartialPartial Fraction ExpansionFraction Expansion

ExampleExample

The polynomialThe polynomial

has rootshas roots

It can be factored as (It can be factored as ( ))

Solving for A and B,Solving for A and B,

Page 31: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

31

Partial Fraction ExpansionPartial Fraction Expansion

Equating similar powers of s in,Equating similar powers of s in,

yieldsyields

hencehence

GivingGiving

Taking the inverseTaking the inverse laplacelaplace

Page 32: Solution of ODEs using Laplace Transforms · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

32

Partial Fraction ExpansionsPartial 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 · 2 Linear ODEs For linear ODEs, we can solve without integrating by using Laplace transforms Integrate out time and transform to Laplace

33

Partial Fraction ExpansionPartial Fraction Expansion

For a givenFor a given functionfunction

The polynomialThe polynomial has three distinct types ofhas three distinct types of rootsroots Real rootsReal roots

yields exponential termsyields exponential terms yieldsyields constant termsconstant terms

Complex rootsComplex roots yields exponentially weighted sinusoidalyields exponentially weighted sinusoidal

signalssignals yieldsyields pure sinusoidalpure sinusoidal signalsignal

A lot of information is obtained from the roots ofA lot of information is obtained from the roots of