Complex Analysis, Differential Equations, and Laplace Transform
Complex Analysis, Differential Equations, and Laplace Transform
Peter Avitabile
Mechanical Engineering Department
University of Massachusetts Lowell
z = x + jy = x + iy
Where: i = j = −1
Real part of the function Re(z) = x
Imaginary part of the function Im(z) = y
Addition
z1 = x1 + jy1
z1 + z 2 = (x1 + x 2 ) + j(y1 + y 2 )
z 2 = x 2 + jy 2
z1 · z1 * = x12 + y12
where: z1* = complex conjugate
and: z1* = x – jy
if: z1 = x + jy
Division
x1 + jy1 x1 + jy1 x 2 − jy 2
= ∗
x 2 + jy 2 x 2 + jy 2 x 2 − jy 2
=
( x1x 2 + y1y 2 ) + j(y1x 2 − y 2 x1 )
x 22 + y22
22.451 Dynamic Systems – Mathematical Topics 3 Dr. Peter Avitabile
Modal Analysis & Controls Laboratory
Example – Complex Number Multiplication
= −6 + j19 + 10 = 4 + j19
− 1 + j3
2 + j5
Solution:
− 1 + j3 2 − j5 13 + j11 13 j11
⋅ = = +
2 + j5 2 − j5 29 29 29
Given: z = −1 + 2 j Evaluate: zz *
Solution:
zz* = (− 1 + 2 j)(− 1 − 2 j)
= (− 1) + (2 ) = 5
2 2
Location of Complex
Conjugates in the
Complex Plane
− x ± jy
x = r cos θ
y = r sin θ
z = x + jy
jθ
e = cos θ + j sin θ
z = x + jy = r cos θ + j r sin θ
z = r (cos θ + j sin θ) = r e jθ
r = z = Re{z} + Im{z} = x 2 + y 2 2 2
y −1
θ = tan (θpositive in ccw direction )
x
Solution:
−1
3 π
=
z = 12 = 2 3 θ = tan 6
3
π
j
6
z=2 3e
22.451 Dynamic Systems – Mathematical Topics 10 Dr. Peter Avitabile
Modal Analysis & Controls Laboratory
Example
Determine the location and the phase angle of
the complex number:
2
−1 + j
Solution: Express this number in standard
rectangular form by multiplying its numerator and
denominator by the conjugate of the denominator.
2 −1− j − 2 − 2 j
⋅ = = −1 − j
−1+ j −1− j 1+1
Location = third quadrant
Phase Angle = +225º or -135º
Division
z1 r1 j(θ −θ )
= e 1 2
z 2 r2
Complex Conjugate
− jθ1
z1* = re
z ⋅ z* = re jθ ⋅ re − jθ = r 2
1 1
s = σ + jω
s m + a1s m −1 + K + a m −1s + a m
G (s) = K
s n + b1s n −1 + K + b n −1s + b n
N(s)
= (where m < n )
D(s)
G (s) = K
(s − z1 )(s − z 2 )K (s − z m )
(s − p1 )(s − p 2 )K (s − pn )
The roots of the numerator are referred to as ZEROS.
The roots of the denominator are referred to as POLES.
a1 a2 an
G (s) = + +K
s − p1 s − p 2 s − pn
c 2 k
ζ = ; cc = 2mωn ; ωn =
cc m
Flowrate
IN
RA & R
h + h = qi (t)
g g
Flowrate
Level OUT
g 1
h& + h = qi (t)
RA A
As a result, the system’s time constant is identified as:
RA
τ=
g
Homogeneous Solution
1
x& + x = 0 τ > 0
τ
Characteristic Equation
1 1
λ+ =0⇒λ =−
τ τ
The solution becomes
−t
x ( t ) = ce τ
Ax& + Bx = f ( t )
dx f(t)
τ + x =
dt B
In standard form:
dx 1 f(t)
+ x =
dt τ A
22.451 Dynamic Systems – Mathematical Topics 22 Dr. Peter Avitabile
Modal Analysis & Controls Laboratory
Step Response – First Order
−t
y( t ) = Ce τ + yp (t)
95.0
86.5
Percentage of Response
63.2
τ 2τ 3τ
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (sec)
dy 1
=
dt τ
22.451 Dynamic Systems – Mathematical Topics 26 Dr. Peter Avitabile
Modal Analysis & Controls Laboratory
Step Response – First Order
Ax& + Bx = f ( t )
1
Transfer
x(s) A
Function is =
f(s) (s + AB )
22.451 Dynamic Systems – Mathematical Topics 28 Dr. Peter Avitabile
Modal Analysis & Controls Laboratory
Step Response – First Order
Using MATLAB and the equivalent Laplace form,
the system transfer function is described as
1
−1
1 B A
S + =
A A B
S +
A
› NUM = [0 1/A];
Step Response - First Order
Percentage of Response
› step(NUM,DEN) 63.2
τ 2τ 3τ
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (sec)
Homogeneous Solution
λ2 + 2ζωn λ + ωn 2 = 0
The solution is
x h = Ae ( −α +βj)t
+ Be ( −α −βj)t
⇒ x h =e
− αt
(Ae jβ t
+ Be − jβt )
Recall that:
e jθ = cos θ + j sin θ; e − jθ = cos θ − j sin θ
Then,
sin (β t + φ )
−αt c
xh = ce
α =
2 m
−
c
t 4mk − c 2
xh = ce 2 m sin t + φ
2m
k
ωn = natural frequency =
m
⇒x=e − ζωn t
sin (ωd t + φ)
where ωd = ωn 1 − ζ 2
1.5
0.5
Magnitude
0
0 0.5 1 1.5 2 2.5 3
-0.5
-1
-1.5
Tim e (sec)
x = c1e λ t + c 2e λ t
1 2
Recall
eθ = sinh θ + coshθ; e−θ = sinh θ − coshθ
Then
x = c3 sinh λ1t + c 4 cosh λ 2 t
Solution of this type will always be of the form
of a lag in the system.
Damping ζ > 1
0.1
0.09
0.08
0.07
0.06
Amplitude
0.05
0.04
0.03
0.02
0.01
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (sec)
c
λ1 = λ1 = − Two REAL REPEATED Roots
2m
x = c1e λ t + c 2 te λ t
1 2
ζ < 1
ζ = 1
ζ > 1
X – Conjugate ζ < 1
Poles λ1 = −ζωn + jωd
– Repeated ζ = 1
Roots
– Real Roots ζ > 1 λ1, 2 = −ζωn
TIME
RESPONSE
TIME
TIME
DEGREE OF TIME
FREEDOM
ζ = 0.7
MECHANICAL
ζ = 1.0
TIME σ
TIME
STABLE UNSTABLE
Alternative:
Convolution Integral
(very difficult)
Closed-Form Solution
Inverse Rearrange terms into
or
Laplace good form
Numerical Solution
µs
Unit Step
s
Unit Ramp 1
s2
Unit Pulse 1
s
Unit Impulse (Dirac 1
delta function)
ω
Unit Sinusoid SIN
s2 + ω 2
s
COS
s2 + ω 2
Exponential 1
s+a
22.451 Dynamic Systems – Mathematical Topics 60 Dr. Peter Avitabile
Modal Analysis & Controls Laboratory
Laplace Transform
•Unit Step
∞
L{u s (t )} = u s ( s ) = ∫ u s (t ) e − st dt
0
u s − st ∞ us us
= − e |0 = − 0 − − =
s s s
•Unit Ramp
∞
L{u s (t )} = ur ( s ) = ∫ t e − st dt
0
e −st ∞ ∞ e −st e −st ∞ 1
=t |0 − ∫ dt = |0 = 2
−s 0 −s −s 2
s
•Inverse Laplace
Requires manipulation of Laplace domain equation to get in a
suitable form to apply L -1.
•If G(s) and H(s) have known inverses g(t) and h(t),
then the product of GH can be obtained by the
convolution integral.
t
= ∫ g (τ ) h(t − τ )dt = ( g ⊗ h)(t )
0
•The Equation
1
x& + x = δ( t ) x0 = 0
τ
•Laplace
1
s X(s) + X(s) = 1
τ
1
(s + ) X(s) = 1 look up inverse laplace
τ
1 −t
X(s) = ∴ x ( t ) = e τ
1
s+
τ
22.451 Dynamic Systems – Mathematical Topics 63 Dr. Peter Avitabile
Modal Analysis & Controls Laboratory
Laplace – First Order ODE
integrate
+ s& 1 s SCOPE
1
s
- Normalize
Step to A coef
= 1/A
Multiply by
B/A
•Simulink
•File Æ New Model (workspace appears)
Select the following items and place them on the
worksheet
Unit Step (from Sources) – change amplitude
Sum (from Math) – need + and –
Gain (from Math) – change gain value
Integrator (from Continuous)
Scope (from Sinks)
2 2
(s + 2ζω n s + ωn ) X (s) = 1
1
∴ X(s) =
s 2 + 2ζω n s + ωn 2
1 −1 ωd
x(t ) = L ⋅ 2
ωd ( s + σ ) + ωd
2
1
= e −σt sin ωd t
ωd
1
= e −ζωt sin ωd t
ωd
2 1 2
(s + 2 ζω n s + ωn ) x (s) =
s
1 1
∴ X(s) = ⋅
s s 2 + 2 ζωn s + ωn 2
&x& + 2 ζω n x& + ωn 2 x = f ( t )
•Laplace
(s 2 + 2 ζω n s + ωn 2 ) x (s)
= F(s) + (s + 2 ζω n )x(0) + x& (0)
Applied Force and
Initial Conditions
F(s) (s + 2 ζω n )x(0) + x& (0)
x(s) = 2 2
+ 2
s + 2 ζω n s + ω n s + 2 ζω n s + ω n
2
OR…
General Equation is
1
&x& = [F( t ) − kx − cx& ]
m
m&x& + cx& + kx = F( t )
This example is
100&x& + 40 x& + 1000 x = F( t )