Skip to main content

Discretize a continuous state model; pulse TF matrix

Short answer

The system is discretized using zero-order hold: G = e^(AT) and H = ∫e^(Aλ)B dλ. For T=1s, G = [[1, 0.4323], [0, 0.1353]], H = [[0.2838], [0.4323]]. Pulse transfer function is F(z) = 0.5(1-e^{-2T})/(z-e^{-2T}) = 0.4323/(z-0.1353) for T=1s.

State space representation of a system is given by [ẋ₁; ẋ₂]=[0 1; 0 -2][x₁; x₂]+[0; 1]u and y=[0 1][x₁; x₂]. Discretize the above system and also find the pulse transfer function matrix.

Discretization with a zero-order hold gives G=eAT\mathbf{G} = e^{\mathbf{A}T} and H=(∫0TeAλdλ)B\mathbf{H} = \left(\int_0^T e^{\mathbf{A}\lambda}d\lambda\right)\mathbf{B}, with C\mathbf{C} and D\mathbf{D} unchanged. The sampling period is not given, so the result is found for a general T and then evaluated for T = 1 s.

Step 1: State transition matrix eAte^{\mathbf{A}t}

A=[010−2],B=[01],C=[01]\mathbf{A} = \begin{bmatrix} 0 & 1 \\ 0 & -2 \end{bmatrix},\quad \mathbf{B} = \begin{bmatrix} 0 \\ 1 \end{bmatrix},\quad \mathbf{C} = \begin{bmatrix} 0 & 1 \end{bmatrix} (sI−A)−1=[s−10s+2]−1=[1s1s(s+2)01s+2](s\mathbf{I}-\mathbf{A})^{-1} = \begin{bmatrix} s & -1 \\ 0 & s+2 \end{bmatrix}^{-1} = \begin{bmatrix} \dfrac{1}{s} & \dfrac{1}{s(s+2)} \\[2mm] 0 & \dfrac{1}{s+2} \end{bmatrix} eAt=L−1[(sI−A)−1]=[112(1−e−2t)0e−2t]e^{\mathbf{A}t} = \mathcal{L}^{-1}\left[(s\mathbf{I}-\mathbf{A})^{-1}\right] = \begin{bmatrix} 1 & \tfrac{1}{2}(1-e^{-2t}) \\ 0 & e^{-2t} \end{bmatrix}

Step 2: G and H

G=eAT=[112(1−e−2T)0e−2T]\mathbf{G} = e^{\mathbf{A}T} = \begin{bmatrix} 1 & \tfrac{1}{2}(1-e^{-2T}) \\ 0 & e^{-2T} \end{bmatrix} H=∫0T[12(1−e−2λ)e−2λ]dλ=[14(2T−1+e−2T)12(1−e−2T)]\mathbf{H} = \int_0^T \begin{bmatrix} \tfrac{1}{2}(1-e^{-2\lambda}) \\ e^{-2\lambda} \end{bmatrix}d\lambda = \begin{bmatrix} \tfrac{1}{4}\left(2T - 1 + e^{-2T}\right) \\ \tfrac{1}{2}(1-e^{-2T}) \end{bmatrix}

Discretized model

x(k+1)=[112(1−e−2T)0e−2T]x(k)+[14(2T−1+e−2T)12(1−e−2T)]u(k),y(k)=[01]x(k)\mathbf{x}(k+1) = \begin{bmatrix} 1 & \tfrac{1}{2}(1-e^{-2T}) \\ 0 & e^{-2T} \end{bmatrix}\mathbf{x}(k) + \begin{bmatrix} \tfrac{1}{4}(2T-1+e^{-2T}) \\ \tfrac{1}{2}(1-e^{-2T}) \end{bmatrix}u(k),\qquad y(k) = \begin{bmatrix} 0 & 1 \end{bmatrix}\mathbf{x}(k)

For T = 1 s (e−2=0.1353e^{-2} = 0.1353):

G=[10.432300.1353],H=[0.28380.4323]\mathbf{G} = \begin{bmatrix} 1 & 0.4323 \\ 0 & 0.1353 \end{bmatrix},\qquad \mathbf{H} = \begin{bmatrix} 0.2838 \\ 0.4323 \end{bmatrix}

Step 3: Pulse transfer function

(zI−G)−1=1(z−1)(z−e−2T)[z−e−2T12(1−e−2T)0z−1](z\mathbf{I}-\mathbf{G})^{-1} = \frac{1}{(z-1)(z-e^{-2T})}\begin{bmatrix} z-e^{-2T} & \tfrac{1}{2}(1-e^{-2T}) \\ 0 & z-1 \end{bmatrix}

With C=[0  1]\mathbf{C} = [0\ \ 1] only the second row is needed:

F(z)=[0  z−1] H(z−1)(z−e−2T)=(z−1)12(1−e−2T)(z−1)(z−e−2T)=12(1−e−2T)z−e−2T\begin{aligned} F(z) &= \frac{[0\ \ z-1]\,\mathbf{H}}{(z-1)(z-e^{-2T})} = \frac{(z-1)\tfrac{1}{2}(1-e^{-2T})}{(z-1)(z-e^{-2T})}\\ &= \frac{\tfrac{1}{2}(1-e^{-2T})}{z-e^{-2T}} \end{aligned}

For T = 1 s:

F(z)=0.4323z−0.1353F(z) = \frac{0.4323}{z - 0.1353}

Remark

The output y=x2y = x_2 is the velocity, so the integrator pole at z=1z = 1 cancels. The result matches the direct ZOH transform of 1/(s+2)1/(s+2): (1−z−1)Z[1s(s+2)]=0.5(1−e−2T)z−e−2T(1-z^{-1})\mathcal{Z}\left[\frac{1}{s(s+2)}\right] = \frac{0.5(1-e^{-2T})}{z-e^{-2T}}.

Answer: F(z)=0.5(1−e−2T)z−e−2TF(z) = \dfrac{0.5(1-e^{-2T})}{z-e^{-2T}}, which is 0.4323z−0.1353\dfrac{0.4323}{z-0.1353} for T = 1 s.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Control System chapter 5 questions →