Linearization Ss
Linearization Ss
Arun K. Tangirala
Traditional representations of systems directly describe the input-output relationship. However, a different
and useful description of the system can be arrived by assuming the presence of an intermediary quantity
known as the state.
1 Two tank system: input - inlet flow to Tank 1, output - liquid level reading in Tank 2
(h2 ), states - h1 , h2 .
2 Spring-damper-flywheels system: input - torque to flywheel 1 (connected to the
spring), output - angular position of flywheel 1 (θ1 ), states - θ1 , θ̇1 , θ̇2 .
3 RLC system: Two inductors, a single capacitor and a resistor. input - total current,
output - voltage across inductor 1, states - current through the inductors and voltage
across the capacitor.
1 Inferential Sensing: Quite often, it happens that the measured variable is not the
physical variable of interest.
▶ For e.g., instead of measuring composition we measure temperature In such cases, it is useful
to write descriptions involving those “hidden” unmeasured quantities
▶ The “hidden” (directly unobserved) quantities can be termed as states of a process since
they internally characterize process conditions.
To summarize, states are those (usually “’internal”) variables that change dynamically and
whose trajectory provides the complete dynamic response of an input-output system. However,
this definition can give rise to technical ambiguities.
1 This new restriction can give rise to states that are not necessarily physically meaningful
(fictitious), but brings about a mathematical uniformity (not necessarily uniqueness).
2 Several such sets of internal variables may exist, but we are only interested in a minimum subset.
where
x: States (Variables that completely describe the dynamics of the system
and not necessarily directly observed)
u: Inputs
y: Outputs
f & g: Non-linear functions of the inputs, states and parameters
Approximate linear or linearized models are built using first-order expansions of non-linear ODEs
around a nominal or steady-state operating point.
Procedure:
1 Determine the steady-state (if the nominal point is not known). For this purpose, solve
the algebraic equations resulting from ODEs.
2 Develop the first-order approximation around the identified steady-state using Taylor’s
series expansion.
Note: There exist other linearization techniques too, such as exact linearization, feedback linearization,
and empirical linearization.
A.K. Tangirala, IIT Madras Process Dynamics and Control 9
Determining the steady-state
Form: f (x) = 0.
polynomials only. Reject those solutions which are not physically meaningful.
Matlab: fzero, root, fsolve; trim and findop (with SIMULINK models).
can be linearized to yield a linear state-space model (locally linear): remember this fact and
x̃˙ = Ax̃ + Bũ drop the bar notation for
ỹ = Cx̃ + Dũ convenience sake.
where the elements of matrices A, B, C and D are calculated as: Matlab: linmod and
∂fi
∂fi linearize (with
aij = ; bij =
∂xj xs ,us ∂uj xs ,us SIMULINK models).
∂gi ∂gi
cij = ; dij =
∂xj xs ,us ∂uj xs ,us
▶ The state equation describes the inertial part of the process. It tells us how the input
affects the internal quantities of a system.
▶ Each state equation is a first-order differential equation.
▶ The number of states (in a minimal realization) is said to be the order of the
system.
▶ In general, the states can be inclusive of process, sensor and actuator dynamics.
▶ The matrix D quantifies the direct effect of the input (e.g., bypass or recycle) and is
also known as the feedthrough term.
Note: Only the matrix Ad is a square, while the remaining matrices are in general rectangular
with appropriate dimensions.
System: Two tanks in series with interaction. The outlet flow rate of the first tank is
proportional to the square root of the difference of the liquid levels, while the outlet flow rate
of the second tank is proportional to the square root of the liquid level in the second tank.
ẋ = Ax + Bu
y = Cx + Du
∂f1 1 ∂f2
b11 = = ; b21 = =0
∂u1 xs ,us A1 ∂u1 xs ,us
Observe that the feedthrough matrix D remains invariant to choice of states, as is expected.
A.K. Tangirala, IIT Madras Process Dynamics and Control 17
Non-uniqueness of SS representations . . . contd.
▶ Transforming the states (rotating the state-space co-ordinates) leads to a new choice of
states and a different SS model.
▶ Since an infinite number of (non-singular) transformations are possible, SS representation
for a given system is not unique =⇒ states can be mere mathematical entities!
▶ Empirical modelling (models from sampled-data) gives only one such SS representation.
Therefore, (in general) such SS models cannot be necessarily given physical interpretation.
▶ Choosing a transformation matrix such that the A matrix is diagonal results in decoupled
ODEs and simplifies the solution procedure.
The linearized SS model can be solved analytically for determining the response to
The total response of a linear time-invariant system is the sum of these responses
Natural response can be easily determined using diagonalization of A. Forced response is derived
using techniques of differential calculus or using transform techniques.
Both forms of response are significantly influenced by the eigenvalues of transition matrix A.
d dw(t)
Then (Tw(t)) = A(Tw(t)) + Bu(t) =⇒ = T−1 ATx(t) + T−1 Bu(t)
dt dt
If we choose T to be the matrix of eigenvectors V, then the new SS model is,
dw(t)
= V−1 AVw(t) + V−1 Bu(t) = Λw(t) + V−1 Bu(t)
dt
For now, assuming u(t) = 0, the decoupled ODEs are:
We can now write the solution in terms of the original states x(t),
The final solution is therefore, x(t) = VeΛt V−1 x(0) = eAt x(0)
2 The coefficient wi (0) determines the extent to which x(0) in the direction of vi since,
nx
X
x(t) = Vw(t) = wi (t)vi (4)
i=1
ẋ1 = −0.5x1 + x2
ẋ2 = − 2x2
Analyze the stability of this system and its response to two different initial conditions, (i)
h iT h iT
x[0] = 1 0 and (ii) x[0] = −0.5547 0.8321 .
T T
Response to non-zero initial conditions x(0) = [1 0] Response to non-zero initial conditions x(0) = [-0.5547 0.8321]
1 0
-0.2
x1 (t)
x (t)
0.5
1
-0.4
0 -0.6
0 2 4 6 8 10 12 14 16 18 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5
1 1
0.5
x2 (t)
x (t)
0 0.5
2
-0.5
-1 0
0 2 4 6 8 10 12 14 16 18 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5
Time Time
x(0) in the direction of “slow” eigenvector x(0) in the direction of “fast” eigenvector
ẋ1 = 2x1 + x2
ẋ2 = 2x1 − x2
Analyze the stability of this system and its response to initial conditions in the directions of
eigenvectors.
T T
10 24Response to initial conditions x(0) = [0.8719 0.4896] Response to initial conditions x(0) = [-0.2703 0.9628]
10 0
-0.1
x (t)
x (t)
5
1
1
-0.2
0 -0.3
0 5 10 15 20 25 0 1 2 3 4 5 6
24
10
6 1
4
x (t)
x (t)
0.5
2
2
2
0 0
0 5 10 15 20 25 0 1 2 3 4 5 6
Time Time
x(0) in the direction of “unstable” eigenvector x(0) in the direction of “stable” eigenvector