Laplace Transformation
Laplace Transformation
Laplace Transformation
MCE 309 - System Dynamics and Control
Fall 2024
like
where c(t) is the output and r (t) is the input, c (m) is the mth time
derivative of c(t), f (...) and g (...) are some functions of their
corresponding input arguments.
r (t)
α(t) c 2 (t) =
r¨(t)
After simplifications, the order of system may reduce. This reduces the
complexity of the model and gives more insight to the designer.
assuming that the mass of the spring is negligible, dashpot behaves linearly
and the mass is rigid.
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 5 / 117
Mathematical Modeling
Transfer Functions
Transfer functions can be used only with linear systems which is a limiting
factor of its use cases. However they yield for insight about the system
compared to a differential equations.
Transfer Functions
The input, output functions and their derivatives appear throughout the
equation making it difficult for the designer to develop an insight.
Transfer Functions
Transfer Functions
C (s) = G (s)R(s)
where all functions are in the s-domain, C (s) is the output, R(s) is the
input and G (s) is the system dynamics.
The input-output relation of a cascaded system can easily be obtained as
Complex Variables
Complex Functions
A complex function, G (s) : C → C, is a function of s ∈ C which has a real
and an imaginary part.
Ḡ (s) = Gx − jGy
We instead plot (s, |G (s)|) and (s, ∠G (s)) separately. Assigning colors to
the values |G (s)| and ∠G (s) might save space and generate nice plots.
Analytic Functions
A complex function G (s) is analytic in a particular region iff all of its
derivatives exist in that region.
∆s = ∆σ + j∆ω
Analytic Functions
∆s = ∆σ
∆s = j∆ω
For ∆s = ∆σ, the path of differentiation is parallel to the real axis, and
parallel to the imaginary axis for ∆s = j∆ω.
Analytic Functions
Cauchy-Riemann Conditions
Example
1
Consider G (s) = s+1 . After substitution s → (σ + jω) we get
1
G (s) = σ+1+jω .
σ+1 −ω
Gx = and Gy =
(σ + 1)2 + ω 2 (σ + 1)2 + ω 2
Hence G (s) is analytic along the entire complex plane except for s = −1.
Example (cont’d)
Differentiation of G (s)
s = symbols('s')
G = (s**2 + 1) / (s**3 + 2 * s**2)
s2 + 1 s 3 + 3s + 4
d
=−
ds s 3 + 2s 2 s 3 (s 2 + 4s + 4)
Points in the s-plane where G (s) is not analytic are singular points.
K (s + 2)(s + 10)
G (s) =
s(s + 1)(s + 5)(s + 15)2
K
As s → ∞, G (s) ∼ s3
→ 0. Hence s = ∞ is a triple zero
s = symbols('s')
G = (s+2) * (s+10) / (s) / (s+1) / (s+5) / (s+15)**2
Laplace Transformation
Define
This is very similar to Fourier transform with the additional e −σt term in
the integrand.
K
G (s) =
(s − 2)(s 2 + 2s + 2)
We also use tables for both forward and inverse Laplace transforms.
f (t) = α1(t)
(
0, if t < 0
=
α, if t ≥ 0
Z ∞
F (s) = αe −st 1(t)dt
0
∞
αe −st −a a
=− =0− =
s t=0 s s
f (t) = βt1(t) Z ∞
βe −st t1(t)dt
(
0, if t < 0 F (s) =
= 0
βt, if t ≥ 0
R R
Use integration by parts : udv = uv − vdu
1 −st ∞
Z ∞
1 −st
F (s) = (βt) − e − − e (βdt)
s 0 0 s
β −st ∞
βt −st β
= − e − 2e = 2 valid for Re(s) > 0
s s 0 s
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 30 / 117
Laplace Transform
(
+∞, if t = 0
δ(t) =
0, if t 6= 0
and
Z ∞
δ(t)dt = 1
−∞ xp (t) → δ(t) as τ → 0.
Z ∞ Z 0+
−st
L [δ(t)] = δ(t)e dt = δ(t)e −st dt = 1
0− 0−
Sinusoid Transform
The Laplace transform of the sinusoid function, i.e. f (t) = sin(ωt) for
ω∈R
Z ∞
L [sin(ωt)] = sin(ωt)e −st dt
Z0 ∞
1 jωt
e − e −jωt e −st dt
=
0 2j
1 ∞ (jω−s)t
Z
= e − e −(jω+s)t dt
2j 0
∞
1 1 (jω−s)t 1 −(jω+s)t
= e + e
2j (jω − s) (jω + s) 0
1 1 1 ω
=− + = 2
2j jω − s jω + s s + ω2
F (s) is valid in the entire complex plane except for the poles at s = ±jω.
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 32 / 117
Laplace Transform
Z ∞
F (s) = f (t)e −st dt
Z0 ∞
= Ae −at 1(u)e −st dt
Z0 ∞
= Ae −(s+a)t dt
0
∞
A −(s+a)t
=− e
s +a 0
A
=
s +a
s = symbols('s')
# Transform of a Sinusoidal
t, w = symbols('t, w', real=True)
f = sin(t * w)
F = simplify(integrate(f * exp(-s*t), (t, 0, oo), conds='none'))
print("\nf(t) = "), pprint(f)
print("\nF(s) = "), pprint(F)
Z c+i∞
−1 1 1 st
L [F (s)] = f (t) = e ds
2πj c−i∞ s
c+j∞
= Ei(st)
s=c−j∞
Cauchy’s integral formula can be used to calculate such integrals and this
is a topic in complex analysis.
Find the inverse Laplace transforms by comparing the given functions with
the transformation pairs tables (Table A-1 in Ogata).
K
Example : F (s) = s .
1
Example : F (s) = (s−a)2
.
There is no pair in the table that exactly matches this pattern. But we can
obtain F (s) by combining multiple pairs. Pairs #15 and #16 are (resp.)
1 −at 1
e − e −bt ↔
b−a (s + a)(s + b)
1 −bt s
be − ae −at ↔
b−a (s + a)(s + b)
F (s) = F16 (s) + 3F15 (s). Hence f (t) = f16 (t) + 3f15 (t).
Superposition
Definition : The response of a linear system to the sum of two different
inputs equals the sum of the outputs of each input applied individually.
F (a + b) = F (a) + F (b) for some linear system F
Laplace transform is a linear operation, hence superposition property
applies.
Z ∞
L [αf1 (t) + βf2 (t)] = [αf1 (t) + βf2 (t)] e −st dt
0
Z ∞ Z ∞
−st
=α f1 (t)e dt + β f2 (t)e −st dt
0 0
= αF1 (s) + βF2 (s)
Scaling property follows superposition naturally
L [αf (t)] = αF (s)
Superposition
Example : Find the Laplace transform of f (t) = a + b sin(ωt) for t ≥ 0
Time Delay
The usual practice is to assume that the system is turned on at t = 0. In
certain cases this might happen at a later time t = λ > 0. Such cases can
be handled using the time delay property of Laplace transform.
Time Delay
Time Delay
Example (cont’d) (note θ̄ = θ since ω = 1)
Z ∞
F̄ (s) = A sin(t − θ)e −st dt
0
Z ∞
=A [sin(t) cos(θ) − cos(t) sin(θ)] e −st dt
0 Z ∞ Z ∞
−st −st
= A cos(θ) sin(t)e dt − sin(θ) cos(t)e dt
0 0
1 s
= A cos(θ) 2 − sin(θ) 2
s +1 s +1
= ... how do I get from here to the next line?
A
= e −sθ 2 ← this is what the time delay property gives
s +1
Time Delay
Example (cont’d)
Laplace transform assumes f (t) = 0 for t < 0. But in the first line, we
started the integration from 0 although it should have been θ.
Z θ
F̄ (s) = A sin(t − θ)e −st dt
Z 0∞
+ A sin(t − θ)e −st dt
θ
Time Delay
Example (cont’d)
# Transform of a Sinusoidal
th, t = symbols('th, t', real=True)
f = sin(t - th)
Time Delay
Example (cont’d) :
Time Delay
Example (cont’d) : Let’s perform the integration with proper limits and
not using substitution t̄ = t − θ (this is what we used in the proof of
time-delay property)
Z ∞
F̄ (s) = A sin(t − θ)e −st dt
θ
Z ∞
=A [sin(t) cos(θ) − cos(t) sin(θ)] e −st dt
θ
Z ∞ Z ∞
= A cos(θ) sin(t)e −st dt − sin(θ) cos(t)e −st dt
θ θ
Time Delay
sin(ωt)e −st dt
R
Example (cont’d) : Consider a more general case I =
−1 −st −1 −st
Z
I = sin(ωt) e − (ω cos(ωt)) e dt
s s
Z
1 ω
= − sin(ωt)e −st + cos(ωt)e −st dt
s s
Again define u = cos(ωt) and dv = e −st
Z
1 ω −1 −st −1 −st
I = − sin(ωt)e −st + cos(ωt) e − (−ω sin(ωt)) e dt
s s s s
ω2
Z
1 ω
= − sin(ωt)e −st − 2 cos(ωt)e −st − 2 sin(ωt)e −st dt
s s s
Time Delay
Example (cont’d) : Note the recurrence of the initial integral
ω2
Z
1 −st ω −st
I = − sin(ωt)e − 2 cos(ωt)e − 2 sin(ωt)e −st dt
s s s
1 ω ω2
= − sin(ωt)e −st − 2 cos(ωt)e −st − 2 I
s s s
Solving for I gives
s sin(ωt) + ω cos(ωt) −st
I=− e
s 2 + ω2
lim I = 0
t→∞
Time Delay
s = symbols('s')
Time Delay
Z ∞
F̄ (s) = A sin(t − θ)e −st dt
θ
Z ∞ Z ∞
−st −st
= A cos(θ) sin(t)e dt − sin(θ) cos(t)e dt
θ θ
−sθ
e
= A cos(θ) 2 (s sin(θ) + cos(θ)) −
s +1
−sθ
e
sin(θ) 2 (s cos(θ) − sin(θ))
s +1
A
= e −sθ 2 this completes the proof at slide 44X
s +1
Note that both integrals evaluate to 0 as t → ∞
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 52 / 117
Properties of Laplace Transform
Time Scaling
Change of scale might be necessary in certain cases such as converting the
units of an equation from km/h to m/s.
For a given function f (t), find the Laplace transform of f (at) in terms of
L [f (t)].
Z ∞
F̄ (s) = f (at)e −st dt
0
Substitute t̄ = at to get
Z ∞ s t̄ 1
F̄ (s) = f (t̄)e − a d t̄
0 |a|
1 s
= F
|a| a
Time Scaling
We know from earlier slides (or from Laplace transformation tables) that
1
L [sin(t)] =
s2 +1
Using the time-scaling property, we get
A 1
L [A sin(ωt)] =
|ω| s 2
ω +1
Aω
=
s2 + ω2
Shift in Frequency
L [f (t)].
Z ∞
e −at f (t) e −st dt
F̄ (s) =
Z0 ∞
= f (t)e −(s+a)t dt
0
= F (s + a)
Shift in Frequency
L [f (t)] = F (s + a)
Aω
=
(s + a)2 + ω 2
Differentiation
The Laplace transform of the derivative of a function is related to the
Laplace transform of the original function as
Z ∞
df df
L = e −st dt
dt 0− dt
We define du = df −st and use integration by parts as follows
dt and v = e
∞
Z ∞ Z ∞
df
e −st dt = e −st f (t) +s f (t)e −st dt
0− dt 0− 0−
= −f (0− ) + sF (s)
Note that we used
lim e −st f (t) = 0
t→∞
lim e −st f (t) = (1)f (0− )
t→0−
Differentiation
For many systems we assume that f (0) = 0 for t < 0 hence f (0− ) = 0
resulting in
df
L = sF (s)
dt
Differentiation
The expression for higher-order time-derivatives might look messy, however
we just recur the same rule onto the (n − 1)st derivative to get the
expression for the nth derivative
df
L (t) = sL [f (t)] − f (0− )
dt
2
d f df df
L (t) = sL (t) − (0− )
dt 2 dt dt
3 2
d 2f −
d f d f
L (t) = sL (t) − (0 )
dt 3 dt 2 dt 2
..
.
n " #
d (n−1) f d (n−1) f −
d f
L n
(t) = sL (t) − (0 )
dt dt (n−1) dt (n−1)
Differentiation
Example : The mass-spring-dashpot system’s equation of motion is
mẍ + c ẋ + kx = u(t)
Note that rearranging the terms gives the transfer function of this system
1
X (s) = G (s)U(s) where G (s) =
ms 2 + cs + k
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 60 / 117
Properties of Laplace Transform
Differentiation
d
Example : Find the Laplace transform of g (t) = dt cos(ωt)
Differentiation
d2
Example : Find the Laplace transform of g (t) = dt 2
cos(ωt)
s3
= 2 −s
s + ω2
sω 2
=− 2 note this equals − ω 2 L [cos(ωt)] X
s + ω2
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 62 / 117
Properties of Laplace Transform
Integration
The Laplace transform of the time integral of a function is related to the
Laplace transform of the original function in a similar way to how its time
derivative relates
Rt
Given f¯(t) = f (τ )dτ , find F̄ (s) = L f¯(t)
0
Z ∞ Z t
F̄ (s) = f (τ )dτ e −st dt
0 0
Rt
Using integration by parts and setting u = 0 f (τ )dτ , dv = e −st dt
Z t ∞ Z ∞
1 −st 1
F̄ (s) = − e f (τ )dτ − − e −st f (t)dt
s 0 0 0 s
1
= F (s)
s
Rt
Note that limt→∞ e −st = 0 and limt→0 0 f (τ )dτ = 0
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 63 / 117
Properties of Laplace Transform
Integration
Example : The mass-spring-dashpot system’s equation of motion is
ma(t) + cv (t) + kx(t) = u(t)
where
a(t) = ẍ(t)
Z t
v (t) = a(τ )dτ
0
Z t
x(t) = v (τ )dτ
0
Taking the Laplace transform and using the superposition property we get
mA(s) + cV (s) + kX (s) = U(s)
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 64 / 117
Properties of Laplace Transform
Integration
Using integration property this becomes
c k
mA(s) + A(s) + 2 A(s) = U(s)
s s
Rearranging the terms give
s2
A(s) = GA (s)U(s) where GA (s) =
ms 2 + cs + k
Remember that the transfer function for X (s) is
1
GX (s) = such that
ms 2
+ cs + k
X (s) = GX (s)U(s)
The integration property gives the same result, i.e.
1
X (s) = A(s)
s2
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 65 / 117
Properties of Laplace Transform
Integration
Rt
Example : Find the Laplace transform of f (t) = 0 cos(ωτ )dτ
Integration
Rt
Example : Find the Laplace transform of f (t) = 0 sin(ωτ )dτ
Note that
Z t t
1 1 1
L sin(ωτ )dτ = L − cos(ωτ ) = L − cos(ωt) +
0 ω 0 ω ω
1 1 1 s
= (L [1(t)] − L [cos(ωt)]) = − 2 X
ω ω s s + ω2
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 67 / 117
Properties of Laplace Transform
Convolution
Convolution of two functions is defined as
Z t
(f ∗ g )(t) = f (τ )g (t − τ )dτ
0
t is not necessarily time, but in our context it is
Convolution
ref : https://stackoverflow.com/a/56132955/6811631
Convolution
Convolution
Convolution
Convolution
Convolution in time domain corresponds to multiplication in the frequency
domain (i.e. s-domain)
Z ∞
L [(f ∗ g )(t)] = (f ∗ g )(t)e −st dt
Z0 ∞ Z t
= f (τ )g (t − τ )dτ e −st dt
0 0
Convolution
L [(f ∗ g )(t)]
Z ∞
= (f ∗ g )(t)e −st dt
0
Z ∞ Z t
= f (τ )g (t − τ )dτ e −st dt
Z0 ∞ Z0 ∞
= f (τ )g (t − τ )e dt dτ mult. by e −sτ e sτ
−st
0 τ
Z ∞ Z ∞
−sτ −s(t−τ )
= f (τ )e g (t − τ )e dt dτ define t̄ = t − τ
0 τ
Z ∞ Z ∞
−sτ −s t̄
= f (τ )e g (t̄)e d t̄ dτ
Z0 ∞ 0
Convolution
Convolution
Example : Find the ramp response of a first-order system with a pole at a
The input to the system is u(t) = t and its Laplace transform reads
1
U(s) =
s2
The response of the system is
1 K
L [(u ∗ f )(t)] = U(s)F (s) =
s2 s − a
Note the order of functions in the convolution!
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 76 / 117
Properties of Laplace Transform
Convolution
Example : (cont’d)
Z t
(u ∗ f )(t) = u(τ )f (t − τ )dτ
0
Z t
= (τ ) Ke a(t−τ ) dτ
0
Z t
= Ke at
τ e −aτ dτ
0
Use integration by parts with u = τ and dv = e −aτ dτ
τ −aτ t
Z t
at 1 −aτ
· · · = Ke − e + e dτ
a 0 0 a
1 −aτ t
at τ −aτ
= Ke − e − 2e
a a 0
K at
= 2 e − at − 1
a
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 77 / 117
Properties of Laplace Transform
Convolution
Example : (cont’d)
Find the inverse Laplace transform of U(s)F (s) and compare the results.
1 −at 1
L 2 (at − 1 + e ) = 2
a s (s + a)
Substitution a → −a gives
1 at 1
L 2 (−at − 1 + e ) = 2
a s (s − a)
Convolution
res = convolve(u, f, t, 0, t)
pprint(res)
Time Product
where σc > max(R(sp )) ∀sp s.t. lims→sp F (s) or lims→sp G (s) is undefined.
Time Product
Z ∞
L [f (t)g (t)] = f (t)g (t)e −st dt → subs. L−1 [F (s)] for f (t)
0
" #
Z ∞ Z σc +j∞
1
= F (ξ)e sξ dξ g (t)e −st dt → flip integrals.
0 2πj σc −j∞
Z σc +j∞ Z ∞
1 −(s−ξ)t
= F (ξ) g (t)e dt dξ → note shift in time
2πj σc −j∞ 0
Z σc +j∞
1
= F (ξ)G (s − ξ)dξ → note the conv. pattern
2πj σc −j∞
1
= (F ∗ G )(s)
2πj
Multiplication by Time
Multiplication of f (t) by t corresponds to differentiation of F (s) w.r.t. s
d
L [t · f (t)] = − F (s)
ds
Consider L [t · f (t)] as follows
Z ∞
d d
F (s) = f (t)e −st dt
ds ds 0
Z ∞
= −t · f (t)e −st dt
0
Z ∞
=− [t · f (t)]e −st dt
0
= −L [t · f (t)]
Multiplication by Time
Multiplication by Time
Example : Find the Laplace transform of mẍ(t) + b ẋ(t) + kx(t) = u(t) in
terms of A(s) = L [a(t)] where a(t) = ẍ(t)
d n
Assuming dt n x(t = 0) = 0 for ∀n ∈ N (i.e. zero initial conds.) and
Multiplication by Time
Example : (cont’d)
c k
mA(s) + A(s) + 2 A(s) = U(s)
s s
Note A(s) = L [α · 1(t)] and L [1(t)] = 1s . Hence two equations match X
N(s)
F (s) =
D(s)
(s − z1 )(s − z2 ) · · · (s − zm )
=K
(s − p1 )(s − p2 ) · · · (s − pn )
N1 (s) N2 (s) Nn (s)
=K + + ··· +
D1 (s) D2 (s) Dn (s)
N(s)
F (s) =
D(s)
(s − z1 )(s − z1 ) · · · (s − zm )
=K
(s − p1 )(s − p1 ) · · · (s − pn )
Qm
(s − zi )
= K ni=1
Q
i=1 (s − pi )
If all the poles are simple, then F (s) can be written as summation of
simple fractions as follows
a1 a2 an
F (s) = + + ··· +
s − p1 s − p2 s − pn
ai = F (s)(s − pi )
i s=p
s − pi s − pi s − pi s − pi
= a1 + a2 + · · · + ai + · · · + an
s − p1 s − p2 s − pi s − pn s=pi
0 0 0
= a1 + a2 + · · · + ai + · · · + an = ai
si − p1 si − p2 s i − pn
This operation covers up all the denominators except for the i th one,
hence it is called the cover-up method
When multiplied by (s − pi ), all terms drop out except for the residue ai
ai = (s − pi )F (s)
s=pi
a1 = (s − p1 )F (s)
s=p1
(s + 2)(s + 4) 8
= =
(s + 1)(s + 3) s=0 3
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 92 / 117
Partial Fraction Expansion
(s + 2)(s + 4) a1 a2 a3
F (s) = = + +
s(s + 1)(s + 3) s s +1 s +3
a2 = (s − p2 )F (s) a3 = (s − p3 )F (s)
s=p2 s=p3
(s + 2)(s + 4) 3 (s + 2)(s + 4) 1
= =− = =−
s(s + 3) s=−1 2 s(s + 1) s=−3 6
8 3 1
f (t) = 1(t) − e −t 1(t) − e −3t 1(t)
3 2 6
s +3
Ff (s) =
(s + 1)(s + 2)
a1 a2
= +
s +1 s +2
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 94 / 117
Partial Fraction Expansion
= 2Re(a1 e p1 t )
s 2 + 2s + 5 = (s + 1 + j2)(s + 1 − j2)
Hence p1 = −(1 + j2) and p2 = p̄1 = −(1 − j2). Residuals are calculated
as
2s + 12 5
a1 = (s − p1 )F (s) = =1+j
s=p1 s + 1 − j2 s=−(1+j2) 2
2s + 12 5
a2 = (s − p2 )F (s) = =1−j
s=p2 s + 1 + j2 s=−(1−j2) 2
a1 a2 1 + j 52 1 − j 52
F (s) = + = +
s − p1 s − p2 s + 1 + j2 s + 1 − j2
Then f (t) is simply obtained as
5 −(1+j2)t 5
f (t) = 1 + j e + 1−j e −(1−j2)t
2 2
From the previous slides we know this simplifies to Re(ae pt ), hence
5 −(1+j2)t
f (t) = 2Re 1+j e
2
= 5e −t sin(2t) + 2e −t cos(2t) for t ≥ 0
Example : (cont’d)
Having F (s) written as a sum of damped sine and cosine and using the
superposition property, we can write f (t) as follows
s +1 2
f (t) = 2 · L−1 + 5 · L −1
(s + 1)2 + 22 (s + 1)2 + 22
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 100 / 117
Partial Fraction Expansion
a1 = (s)F (s) =1
s=0
We then plug-in a1 = 1 and equate the numerators in the expanded and
original expressions
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 101 / 117
Partial Fraction Expansion
1
F (s) = (original expression)
s(s 2
+ s + 1)
1 a2 s + a3
= + 2 note a1 = 1
s s +s +1
(1)(s 2 + s + 1) s(a2 s + a3 )
= 2
+
s(s + s + 1) s(s 2 + s + 1)
Collecting the terms in the numerators we get the equation
1 = (1 + a2 )s 2 + (1 + a3 )s + 1
→ a2 = −1 → a3 = −1
Then F (s) becomes
1 s +1
F (s) = − 2
s s +s +1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 102 / 117
Partial Fraction Expansion
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 103 / 117
Partial Fraction Expansion
If all the poles are real and simple (i.e. 1st order) then we can write F (s) as
n
X ai
F (s) =
s − pi
i=1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 104 / 117
Partial Fraction Expansion
If the denominator has a quadratic term with complex roots, then we try
to rewrite F (s) as a sum of damped sine and cosine as
s +a ω
F (s) = Kc + Ks
(s + a)2 + ω 2 (s + a)2 + ω 2
where Kc , Ks ∈ R
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 105 / 117
Partial Fraction Expansion
an = (s − p1 )n F (s)
s=p1
= a1 (s − p1 )n−1 + a2 (s − p1 )n−2 + · · · + an
s=p1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 106 / 117
Partial Fraction Expansion
d
(s − p1 )n F (s)
ds
d
= a1 (s − p1 )n−1 + a2 (s − p1 )n−2 + · · · + an−1 (s − p1 ) + an
ds
= a1 (n − 1)(s − p1 )n−2 + a2 (n − 2)(s − p1 )n−3 + · · · + an−1
d
(s − p1 )n F (s) = an−1
ds s=p1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 107 / 117
Partial Fraction Expansion
d2 n
(s − p1 ) F (s)
ds 2
d2
= 2 a1 (s − p1 )n−1 + a2 (s − p1 )n−2 + · · · + an−1 (s − p1 ) + an
ds
= a1 (n − 1)(n − 2)(s − p1 )n−3 + a2 (n − 2)(n − 3)(s − p1 )n−4 +
· · · + (2) · (1)an−2
d2 n
(s − p1 ) F (s) = 2! an−2
ds 2 s=p1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 108 / 117
Partial Fraction Expansion
d3 n
(s − p1 ) F (s)
ds 3
d3
= 3 a1 (s − p1 )n−1 + a2 (s − p1 )n−2 + · · · + an−1 (s − p1 ) + an
ds
= a1 (n − 1)(n − 2)(n − 3)(s − p1 )n−4 +
a2 (n − 2)(n − 3)(n − 4)(s − p1 )n−5 +
· · · + (3) · (2) · (1) an−3
d3 n
(s − p1 ) F (s) = 3! an−3
ds 3 s=p1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 109 / 117
Partial Fraction Expansion
1
an = (s − p1 )n F (s)
0! s=p1
1 d
an−1 = (s − p1 )n F (s)
1! ds s=p1
1 d 2
an−2 = (s − p1 )n F (s)
2! ds 2 s=p1
..
.
1 d (n−1) n
a1 = (s − p1 ) F (s)
(n − 1)! ds n−1 s=p1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 110 / 117
Partial Fraction Expansion
a3 = (s + 1)3 F (s)
s=−1
= s 2 + 2s + 3
=2
s=−1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 111 / 117
Partial Fraction Expansion
Example : (cont’d)
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 112 / 117
Partial Fraction Expansion
Example : (cont’d)
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 113 / 117
Partial Fraction Expansion
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 114 / 117
Partial Fraction Expansion
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 115 / 117
Partial Fraction Expansion
Example : (cont’d)
a1 a2 a3
F (s) = + +
s + 1 s + 2 (s + 2)2
a1 = 2 a2 = −2 a3 = −1
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 116 / 117
Partial Fraction Expansion
s = symbols('s', real=True)
F = (s+3) / (s+1) / (s+2)**2
res = apart(F)
pprint(res)
Dr. Tolga Özaslan (AYBU) Laplace Transform Fall 2024 117 / 117