Introduction
In this part we’ll begin with the part about frequency analysis.
Test functions
Often when we want to test our system to determine the overall stability, time it takes and the response we get.
We often test with our unit step function:
σ(t)={10t≥0t<0.
We call a system response to the unit step function for unit step response.
Given a system of form:
G(s)=1+TsK.
We get a unit step response of y(t)=K(1−e−t/T).
We also have our beloved impulse function, δ(t).
δ(t)=ϵ→0lim⎩⎨⎧ϵ100≤t≤ϵt>ϵ,t<0.
We also have the properties:
∫−∞∞δ(t)dt∫−∞∞δ(t−T)f(t)dtL{δ(t)}=∫0∞δ(t)e−stdt=1,=f(T),=e−s⋅0=1.
Delay rate
We can “delay” a function using a unit step with a delay:
L{y(t−T)σ(t−T)}=e−Ts⋅L{y(t)}=e−TsY(s).
Definition 1 (Stable system)
A system is stable if:
t→∞lim{Impulse response}=0.
Ramp function
Another function that we’ll perform a lot of tests with is the ramp function. Which we define as:
tσ(t).
The Laplace transform of this is (using partial integration):
L{tσ(t)}=s21.
Example 1
Determine the long term error, when the insignal is a ramp function, tσ(t).
Given that:
F(s)=ss+2,G(s)=s+11.We know that:
E(s)Y(s)L(s)=R(s)−Y(s),=1+L(s)L(s)⋅R(s),=F(s)G(s)=s(s+1)s+2.So:
E(s)=R(s)−1+L(s)L(s)⋅R(s)=R(s)(1−1+L(s)L(s))=R(s)(1+L(s)1)=s21(1+s(s+1)s+21)=s21(s(s+1)+s+2s(s+1))=s21(s2+2s+2s(s+1))=s(s2+2s+2)(s+1).Using the final value theorem:
e(∞)=t→∞lime(t)=s→0lims⋅E(s)=s→0lims⋅s(s2+2s+2)(s+1)=s→0lim(s2+2s+2)(s+1)=21.
Frequency analysis
Definition 2 (Frequency function)
The frequency function, G(jω) for a system is given by:
G(jω)=G(s)s=jω.The polar form of this function will be written as:
G(jω)=∣G(jω)∣⋅ejarg(G(jω)).
Example 2
Let u(t)=Asin(ωt+ϕ) with the system, G(s) what will our y(t) be?
y(t)=∣G(jω)∣⋅Asin(ωt+ϕ+arg(G(jω)))(+e−λt).That last part is called the transient part and should in reality just be zero.
Bode plot
Bode plots are plots that show the system magnitude and phase shift in a system.
Usually the magnitude can/will be in decibels.
Example 3
Figure 1: An example Bode plot: magnitude (top) and phase (bottom).Where the y-axis is either the phase (arg(G(jω))) or the magnitude (∣G(jω)∣).
Remember that decibels are just:
dB=20log10(∣G(jω)∣).
Example 4
Given:
G(s)=s(s+2)1.This means that:
G(jω)=jω(jω+2)1.The magnitude is:
∣G(jω)∣=ωω2+221=ω4+ω21.The phase is:
arg(G(jω))=arg(jω(jω+2)1)=arg(1)−arg(jω(jω+2))=arg(1)−(arg(jω)+arg(jω+2))=0∘−(90∘+arctan(2ω))=−90∘−arctan(2ω).If we now plot these:
Figure 2: Bode plot of G(s)=s(s+2)1.
Type of factors
In our systems we’ll deal/want these type of factors:
s,1+ω1s,e−Ts,s2+2ζωns+ωn2.
Also, good to remember, if ζ>1, then we can split up this second-order term into first-order term(s).
Let’s do the bode plot for each term.
G(s)=s,G(jω)=jω,∣G(jω)∣=ω,arg(G(jω))=90∘.
Plotting this:
Figure 3: Bode plot of G(s)=s.
Simple!
Now, for s1
G(s)=s1,G(jω)=jω1,∣G(jω)∣=ω1,arg(G(jω))=−90∘.
Plotting this:
Figure 4: Bode plot of G(s)=s1.
Now for 1+ω1s
G(s)=1+ω1s,G(jω)=1+ω1jω.
For this we’ll need to understand some cases.
Case ω≪ω1:
G(jω)≈1,∣G(jω)∣=1,arg(G(jω))=0∘.
Case ω=ω1:
G(jω)=1+j,∣G(jω)∣=12+12=2,arg(G(jω))=45∘.
Case ω≫ω1:
G(jω)≈jω1ω,∣G(jω)∣=ω1ω,arg(G(jω))=90∘.
Plotting for ω1=2:
Figure 5: Bode plot of G(s)=1+ω1s for ω1=2.
This is what we’ll call for low and high frequency asymptotes.
Last factor before an example
G(s)=1+ω1s1,G(jω)=1+ω1jω1.
Case ω≪ω1:
G(jω)≈1,∣G(jω)∣=1,arg(G(jω))=0∘.
Case ω=ω1:
G(jω)=1+j1,∣G(jω)∣=12+121=21,arg(G(jω))=−45∘.
Case ω≫ω1:
G(jω)≈jω1ω1,∣G(jω)∣=ω1ω1=ωω1,arg(G(jω))=−90∘.
Figure 6: Bode plot of G(s)=1+s/ω11 for ω1=2.
We’ll usually want to rewrite our transfer functions into these standard factor forms.
Let’s take an example to see why
Example 5
G(s)=s(s+2)(s+3)3(1+s)e−0.5s=2s(1+2s)(s+3)3(1+s)e−0.5s=6s(1+2s)(1+3s)3(1+s)e−0.5s=s(1+2s)(1+3s)0.5(1+s)e−0.5s.This is now in standard form.
G(jω)=jω(1+2jω)(1+3jω)0.5(1+jω)e−0.5jω.