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).
We also have our beloved impulse function, δ(t).
δ(t)=ϵ→0lim⎩⎨⎧ϵ100≤t≤ϵt>ϵ,t<0
We also have the properties:
∫−∞∞δ(t) dt=1
∫−∞∞δ(t−T)f(t) dt=f(T)
L{δ(t)}=∫0∞δ(t)e−st dt=e0t=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−Ts Y(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+2G(s)=s+11We know that:
E(s)=R(s)−Y(s)Y(s)=1+L(s)L(s)⋅R(s)L(s)=F(s)G(s)=s(s+1)s+2So:
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:
t→∞lime(t)=s→0lims⋅E(s)e(∞)=s→0lims⋅s(s2+2s+2)(s+1)e(∞)=s→0lim(s2+2s+2)(s+1)e(∞)=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ω)∣⋅earg(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

Where the y-axis is either the phase (arg(G(jω))) or the magnitude (∣G(jω)∣).
Remember that decibels are just:
dB=20log(∣G(jω)∣)
Example 4
Given:
G(s)=s(s+2)1This means that:
G(jω)=jω(jω+2)1The magnitude is:
∣G(jω)∣=ωω2+221=ω4+ω21The phase is:
arg(G(jω))=arg(jω(jω+2)1)=arg(jω(jω+2))arg(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:

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:

Simple!
Now, for s1
G(s)=s1
G(jω)=jω1
∣G(jω)∣=ω1
arg(G(jω))=−90∘
Plotting this:

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:

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∘
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.5sThis is now in standard form.
G(jω)=jω(1+2jω)(1+3jω)0.5(1+jω)e−0.5jω