We continue with the explanation of the partial fraction expansion. In the first part of this post, which can be accessed here, we explained the partial fraction expansion when our rational function (transfer) function has distinct roots. Also, we gave an example of a transfer function with real roots. Let us now focus on an example of distinct but complex roots. Such examples often appear in practice, and we need to dedicate special attention to them. The video accompanying this post can be found here:
Example 1: Compute the step response of the system given by an ODE:
(1)
Assume zero initial conditions.
Solution: We use the Laplace transform method to solve this problem. Taking the Laplace transform of both sides of (1), we obtain:
(2)
where
![Rendered by QuickLaTeX.com Y(s)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-cdbb20e7beb57a0a0307f02671acaef6_l3.png)
![Rendered by QuickLaTeX.com U(s)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-dc3847d3a005c6b567d0df8fb2825a7b_l3.png)
![Rendered by QuickLaTeX.com y(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-b584f3779673c0f5f81a00a46d8b79b5_l3.png)
![Rendered by QuickLaTeX.com u(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-58d0c0135c4411d75d00353f169797fc_l3.png)
![Rendered by QuickLaTeX.com y(0)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-c65e4d8eb0f8dbdb9bf2a9339cdbe6f3_l3.png)
![Rendered by QuickLaTeX.com \dot{y}(0)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-4dc5bd291f200cbea4f5209445b94895_l3.png)
![Rendered by QuickLaTeX.com y(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-b584f3779673c0f5f81a00a46d8b79b5_l3.png)
(3)
Now, our goal is to compute the step response of the system when
![Rendered by QuickLaTeX.com u(t)=h(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-78e0cc9d36fc663861f414fd494a8f2d_l3.png)
![Rendered by QuickLaTeX.com h(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-e5f085081671bb76fc2d617c2a65b6d3_l3.png)
![Rendered by QuickLaTeX.com U(s)=1/s](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-ef193930f584ba42c53470e4bb8eb0cc_l3.png)
(4)
So, our goal is to compute the inverse Laplace transform of (4). There are at least two ways to compute this. The first way is to use the formula we explained in the first part of this post. First, we determine the poles. The poles are given by
(5)
So our expression for
![Rendered by QuickLaTeX.com Y(s)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-cdbb20e7beb57a0a0307f02671acaef6_l3.png)
(6)
We can find the constant
![Rendered by QuickLaTeX.com K_{i}](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-e0c1834220dbaceb114f4db407cfdd2e_l3.png)
![Rendered by QuickLaTeX.com i=1,2,3](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-9cfecd34812fe0f88a0409e36ddf56aa_l3.png)
![Rendered by QuickLaTeX.com Y(s)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-cdbb20e7beb57a0a0307f02671acaef6_l3.png)
(7)
By multiplying the expression on the right-hand-side of the last equation, we obtain:
(8)
By comparing the last equation with (4), we obtain that the constants should satisfy the following system of equations (for more details, see the first part of this post that can be found here):
(9)
By solving this system of equations, we obtain:
(10)
So we can write:
(11)
We want to compute the inverse Laplace transform of the last expression. The inverse transform of the first term is easy, it is simply the Heaviside function. On the other hand, the inverse transform of the second term is a bit more complicated. The idea is to write the second term as follows:
(12)
Let us recall some basic properties of the Laplace transform. Let
![Rendered by QuickLaTeX.com f(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-59d54ba73238a26eb8acae54cb83607e_l3.png)
![Rendered by QuickLaTeX.com f(at)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-f537956ed28745bf96435afba24855ba_l3.png)
(13)
where
![Rendered by QuickLaTeX.com F(s)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-919926eb3ae1140b36e251a1149a4592_l3.png)
![Rendered by QuickLaTeX.com f(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-59d54ba73238a26eb8acae54cb83607e_l3.png)
![Rendered by QuickLaTeX.com sin(at)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-c64c0210e49c06b391b26005bdc28b07_l3.png)
(14)
From this expression and from (13) it follows:
(15)
Using the same principle, we can obtain
(16)
By comparing the expressions (15) and (16) with (12) , we can observe that these expressions are similar except for the fact that instead of
![Rendered by QuickLaTeX.com s](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-ae1901659f469e6be883797bfd30f4f8_l3.png)
![Rendered by QuickLaTeX.com (s+1/2)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-72c2d1799fad1f6025994831644429d3_l3.png)
(17)
Using (16) and (17), we obtain that the inverse Laplace transform of
![Rendered by QuickLaTeX.com Y_{21}](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-fbf4901a66ef5bbf4d7391a91ed5bb7d_l3.png)
(18)
To compute the inverse Laplace transform of
![Rendered by QuickLaTeX.com Y_{22}(s)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-d738727df5daacbb23a11cf975cb6a55_l3.png)
![Rendered by QuickLaTeX.com Y_{22}(s)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-d738727df5daacbb23a11cf975cb6a55_l3.png)
(19)
By applying (15) and (17) to (19), we obtain
(20)
Finally, using the previously derived expressions, we obtain:
(21)
where
![Rendered by QuickLaTeX.com h(t)](https://aleksandarhaber.com/wp-content/ql-cache/quicklatex.com-e5f085081671bb76fc2d617c2a65b6d3_l3.png)
clc
syms s
F=1/(s*(s^2+s+1))
Factorized=partfrac(F)
ilaplace(Factorized)
And the output is:
1/(s*(s^2 + s + 1))
Factorized =
1/s - (s + 1)/(s^2 + s + 1)
ans =
1 - exp(-t/2)*(cos((3^(1/2)*t)/2) + (3^(1/2)*sin((3^(1/2)*t)/2))/3)