Let’s revisit the cruise control example from the previous section on Laplace transforms. In many practical situations, we mainly care about the relationship between the input and output of a system. In this case, the applied force fa(t) and velocity v(t). Although the initial velocity v0 does matter, its effect is transient, meaning that it fades over time. Recall the differential equation for this system:
This time, the two components of the response are:
zero-state response:vp(t)=L−1{ms+bFa(s)}, where L−1 is the inverse Laplace transform. This will of course depend on the applied force Fa(s).
zero-input response:vh(t)=e−bt/mv0, which is the same as before.
The zero-input response is unchanged, and still dies out exponentially. For this reason, it is often called a transient response. When simulated for long periods of time, this transient response has little effect. We demonstrate this below by simulating the cruise control example with m=1 and b=1 below for a particular choice of fa(t).
Figure 1:Simulation of Eq. (1) with zero-state and zero-input responses plotted separately.
When a system is running for a long time, it often makes sense to ignore the transient zero-input response and just focus on the zero-state response. In other words, we assume v0=0 and Eq. (2) becomes:
Eq. (3) shows us something interesting. The ratio Fa(s)V(s) is always equal to ms+b1, no matter what we pick for our input fa(t). This is true for any LTI system, which motivates the following definition.
Since transfer function is always the same for all input-output pairs, we can use it to determine how the system will react to any input. Once we know G(s), if we apply a different inputu(t) to our system, the output will satisfy
so the Laplace transforms of the input and output are related via ordinary multiplication by the transfer function! We can view this diagramatically.
Figure 2:Diagram comparing time-domain and s-domain paths for solving a system.
As far as representing a dynamical system, a transfer function encodes the same information as a differential equation. We can use them interchangeably:
Why not just use differential equations to represent systems? Several reasons.
It is more convenient to manipulate and simplify transfer functions rather than differential equations because transfer functions are algebraic objects. We can add them, multiply them, factor them, etc. For example, we can simplify by canceling common factors: s2+3s+2s+1=s+21. Another example is eliminating intermediate variables (see quarter-car example below). These sorts of simplification are much more difficult to perform when working with differential equations.
We will link properties of a system to properties of its transfer function, so that we will be able to know how a system will perform without ever having to solve the associated differential equation. For example: “I know the system response will oscillate this much because the transfer function looks like this”.
We will work with systems that consist of several interconnected components (a system, a sensor, a controller, etc.). In such cases, we can easily combine them into a single transfer function and reason about the properties of the aggregated system as a function of changes in the individual components. For example: “what happens if I change my controller in this way?”
In the future, we will often omit the “(s)” and just write X or F since we know upper-case letters are Laplace transforms and therefore functions of s. Factoring, obtain:
We use the name G(s) because traditionally in control systems, we label transfer functions using the letters G, H, or K.
We wrote out all the steps above, but it’s worth practicing going directly from Eq. (7) to Eq. (10) in your head. The Laplace transform turns the derivatives into powers of s, so it’s a straightforward transformation. From now on, we will not write all the steps.
The model below is a quarter-car model, which captures the vertical dynamics of a car for a single wheel. The car chassis m1 and the wheel m2 are treated as separate masses connected by springs and dampers. (k1,b1) models the car’s suspension, while (k2,b2) models the springiness of the tires. The input is r(t), the vertical position of the ground.
Our goal is to produce a differential equation relating r(t) to the position of the car x(t). We are not interested z(t), the position of the wheel. We will skip the free-body diagram and jump straight to the equations of motion for the chassis and the wheel.
Both the input r and its derivative r˙ appear in these equations. This happens because our input is a position rather than a force, and it’s not a problem.
However, we were asked to eliminate z and produce a single equation in terms of x and r. It’s not immediately apparent how one can do this. When we encountered problems like this in the past, such as springs connected in series, we could solve for z in one equation and substitute the result into the other. But both equations in (12) contain z and z˙. It’s not clear how to eliminate z!
The key is to take Laplace transforms. This converts (12) from differential equations into algebraic equations and we obtain:
This equation only involves X and R. We have eliminated Z! To convert this into a differential equation, we need both sides to look like polynomials in s multiplying either X or R. This way, we can take inverse Laplace transforms. This will require a bit of algebra.
Multiply both sides by (b1s+k1) to clear the fractions, and obtain:
So amazingly, all four systems have the same transfer function. This goes to show that differential equation representations of a system are not unique.