Help and Revision
Help and Revision
• Last part of Exercise 1 will be shown in these • Three approaches for doing the partial
slides. At this point Y(s) is isolated as: fraction decomposition:
1
𝑠
+3𝑠+5 3𝑠 2 +5𝑠+1 - Variable substitution method
• 𝑌 𝑠 = 𝑠 3 +𝑠 2 +𝑠+1
= 𝑠(𝑠3 +𝑠2+𝑠+1)
- Matrix row operations
• Next steps - ”Cover-up” method
1. Find the characteristic equation
𝑠(𝑠 3 + 𝑠 2 + 𝑠 + 1) = 0 = 𝑠(𝑠 + 1)(𝑠 + 𝑖)(𝑠 − 𝑖)
• You can validate in MATLAB:
1. Partial fraction decomposition
3𝑠 2 + 5𝑠 + 1 𝐴 𝐵 𝐶 𝐷 - Or in MATLAB: use solve(eq,var) ☺
= + + + Code:
𝑠(𝑠 3 + 𝑠 2 + 𝑠 + 1) 𝑠 𝑠+1 𝑠+𝑖 𝑠−𝑖
syms A B C D;
3. Inverse Laplace transform, to find the
[As,Bs,Cs,Ds]=solve(A-1==0, A+B-i*C+i*D==5, A+(-
solution to the differential equation i+1)*C+(i+1)*D==3, A+B+C+D==0)
Y(t)=𝐴 + 𝐵𝑒 −𝑡 + 𝐶𝑒 −𝑖𝑡 +𝐷𝑒 𝑖𝑡
4. Use Euler's identity for cosine and sine to get rid
of the imaginary part of the solution
𝑒 𝑖𝑡 = cos 𝑡 + 𝑖𝑠𝑖𝑛(𝑡), and use
𝒆𝒋𝒕 − 𝒆−𝒋𝒕 𝒆𝒋𝒕 + 𝒆−𝒋𝒕
𝐬𝐢𝐧 𝒕 = , 𝐜𝐨𝐬 𝒕 =
𝟐𝒋 𝟐
Revise exercise 1 - Partial fraction decomposition –
Variable subtitutions and matrix operations
1 0 0 0 |1
1 1 −𝑖 𝑖 |5
1 0 1−𝑖 1+𝑖 |3
1 1 1 1 |0
Revise exercise 1 - Partial fraction decomposition - Cover-up method
Alternatively (for avoiding the imaginary solution conversion), C and D can directly be described:
3𝑠 2 + 5𝑠 + 1 𝐴 𝐵 𝐶𝑠 + 𝐷
= + +
𝑠(𝑠 + 1)(𝑠 2 + 1) 𝑠 𝑠 + 1 𝑠 2 + 1
We know that: A=1 and B=0.5
• Only last term is considered by substituting A and B:
2
𝑠(𝑠 + 1)(𝑠 2 + 1) 0.5𝑠(𝑠 + 1)(𝑠 2 + 1) (𝐶𝑠 + 𝐷)𝑠(𝑠 + 1)(𝑠 2 + 1)
3𝑠 + 𝟓𝑠 + 1 = + +
𝑠 𝑠+1 𝑠2 + 1
= (𝑠 3 +𝑠 + 𝑠 2 + 1) + 0.5𝑠 3 + 0.5𝑠 + 𝐶𝑠 3 + 𝐶𝑠 2 + 𝐷𝑠 2 + 𝐷𝑠 = 𝟏. 𝟓 + 𝑪 𝑠 3 + 1 + 𝐶 + 𝐷 𝑠 2 + 𝟏. 𝟓 + 𝑫 𝑠 + 1
𝟏. 𝟓 + 𝑫 = 𝟓 ↔ 𝑫 = 𝟑. 𝟓 𝟏. 𝟓 + 𝑪 = 𝟎 ↔ 𝑪 = −𝟏. 𝟓
𝐷 3.5
Cs + D s+ s− s 1
ℒ −1 2 = 𝐶 ∙ ℒ −1 2 𝐶 ⇒ −1.5ℒ −1 2 1.5 = −1.5ℒ −1 2 + 3.5ℒ −1 2
s +1 s +1 s +1 s +1 s +1
= −𝟏. 𝟓𝐜𝐨𝐬 𝒕 + 𝟑. 𝟓𝒔𝒊𝒏 𝒕
• The inverse Laplace transform table states that:
𝜔 𝑠+𝑏
ℒ −1 (𝑠+𝑏)2 +𝜔2
= 𝑒 −𝑏𝑡 sin 𝜔𝑡 , ℒ −1
(𝑠+𝑏)2 +𝜔2
= 𝑒 −𝑏𝑡 cos 𝜔𝑡 , If b and 𝝎 are real numbers.
Revise exercise 1 - Laplace transform – Look-up table
• When the partial fraction decomposition is carried out, the inverse Laplace transform can be carried out
• A general look-up table for easier application
Revise exercise 1 - The final solution
1 1 s 1
ℒ −1 𝑌(𝑠) = ℒ −1 + 0.5ℒ −1 −1.5ℒ −1 + 3.5ℒ −1 =
𝑠 𝑠+1 s2 + 1 s2 + 1
• Bonus question: Notice the cos(t) and sin(t). What type of stability is this?
Revise exercise 1 - The final solution
1 1 s 1
ℒ −1 𝑌(𝑠) = ℒ −1 + 0.5ℒ −1 −1.5ℒ −1 + 3.5ℒ −1 =
𝑠 𝑠+1 s2 + 1 s2 + 1
• Bonus question: Notice the cos(t) and sin(t). What type of stability is this?
Marginal stability
Revise exercise 1 - The final solution – Validating using MATLAB
This MATLAB script is put on Moodle called: “Exercise 1 (dsolve) - For verification of the solution”
Revise exercise 2 from first lecture on Laplace transforms
• Page 106 in the textbook (example 3.6 and 3.7): For further understanding of the Laplace
transforms of Impulse, step and ramp inputs; Impulse: 1, Step: 1/s, Ramp: 1/s^2
Useful literature for solving different equations with the Laplace transform
Cover-up method and inverse Laplace transform of real and complex poles
http://lpsa.swarthmore.edu/LaplaceXform/InvLaplace/InvLaplaceXformPFE.html