Skip to main content

Chapter 8 · 4 hours

State Space Analysis

IOE past exam questions

Past questions and answers

29 questions set from this chapter, 5 of them more than once. Most asked first.

  • Asked 3 times
  • 2080 Baisakh · 8 marks
  • 2073 Shrawan · 8 marks
  • 2081 Bhadra · 5+1 marks

The system equations are given by ẋ(t) = [0 1; −5 −6]x(t) + [0; 1]u(t) and y(t) = [1 0]x(t). Find transfer function of the system and also check stability.

Answer

For a state model x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cx+Duy = Cx + Du, the transfer function is

T(s)=Y(s)U(s)=C(sI−A)−1B+DT(s) = \frac{Y(s)}{U(s)} = C(sI - A)^{-1}B + D

Here

A=[01−5−6],B=[01],C=[10],D=0A = \begin{bmatrix} 0 & 1 \\ -5 & -6 \end{bmatrix},\quad B = \begin{bmatrix} 0 \\ 1 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 0 \end{bmatrix},\quad D = 0

Step 1: (sI−A)(sI - A) and its determinant

sI−A=[s−15s+6],∣sI−A∣=s(s+6)+5=s2+6s+5sI - A = \begin{bmatrix} s & -1 \\ 5 & s+6 \end{bmatrix}, \qquad |sI - A| = s(s+6) + 5 = s^2 + 6s + 5

Step 2: Inverse

(sI−A)−1=adj⁡(sI−A)∣sI−A∣=1s2+6s+5[s+61−5s](sI - A)^{-1} = \frac{\operatorname{adj}(sI-A)}{|sI-A|} = \frac{1}{s^2+6s+5}\begin{bmatrix} s+6 & 1 \\ -5 & s \end{bmatrix}

Step 3: Transfer function

(sI−A)−1B=1s2+6s+5[1s]T(s)=[10]1s2+6s+5[1s]=1s2+6s+5\begin{aligned} (sI-A)^{-1}B &= \frac{1}{s^2+6s+5}\begin{bmatrix} 1 \\ s \end{bmatrix} \\ T(s) &= \begin{bmatrix} 1 & 0 \end{bmatrix}\frac{1}{s^2+6s+5}\begin{bmatrix} 1 \\ s \end{bmatrix} = \frac{1}{s^2+6s+5} \end{aligned} Y(s)U(s)=1s2+6s+5=1(s+1)(s+5)\frac{Y(s)}{U(s)} = \frac{1}{s^2 + 6s + 5} = \frac{1}{(s+1)(s+5)}

Step 4: Stability

Characteristic equation: ∣sI−A∣=s2+6s+5=0|sI - A| = s^2 + 6s + 5 = 0, so the eigenvalues of AA (poles) are

s=−1,s=−5s = -1, \qquad s = -5

Both are real and negative (in the left half of the s-plane), so the system is stable. It is overdamped: comparing with s2+2ζωns+ωn2s^2 + 2\zeta\omega_n s + \omega_n^2, ωn=5=2.24\omega_n = \sqrt5 = 2.24 rad/s and ζ=6/(25)=1.34\zeta = 6/(2\sqrt5) = 1.34. Its unit step response settles to 1/5=0.21/5 = 0.2 without oscillation.

Answer: Y(s)U(s)=1s2+6s+5\dfrac{Y(s)}{U(s)} = \dfrac{1}{s^2+6s+5}; poles at −1-1 and −5-5, so the system is stable.

  • Asked 2 times
  • 2081 Baisakh · 4 marks
  • 2070 Chaitra · 4 marks

Obtain characteristic equation for the system having given state model. [ẋ1; ẋ2] = [−5 −1; 3 −1][x1; x2] + [2; 5]u and Y = [1 2][x1; x2]

Answer

The characteristic equation of a state model is ∣sI−A∣=0|sI - A| = 0; its roots are the eigenvalues of AA, which are the poles of the system.

A=[−5−13−1],B=[25],C=[12]A = \begin{bmatrix} -5 & -1 \\ 3 & -1 \end{bmatrix},\quad B = \begin{bmatrix} 2 \\ 5 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 2 \end{bmatrix}

Step 1: Form sI−AsI - A

sI−A=[s00s]−[−5−13−1]=[s+51−3s+1]sI - A = \begin{bmatrix} s & 0 \\ 0 & s \end{bmatrix} - \begin{bmatrix} -5 & -1 \\ 3 & -1 \end{bmatrix} = \begin{bmatrix} s+5 & 1 \\ -3 & s+1 \end{bmatrix}

Step 2: Determinant

∣sI−A∣=(s+5)(s+1)−(1)(−3)=s2+6s+5+3=s2+6s+8\begin{aligned} |sI - A| &= (s+5)(s+1) - (1)(-3) \\ &= s^2 + 6s + 5 + 3 \\ &= s^2 + 6s + 8 \end{aligned}

Characteristic equation:

s2+6s+8=0⇒(s+2)(s+4)=0s^2 + 6s + 8 = 0 \quad\Rightarrow\quad (s+2)(s+4) = 0

Roots (eigenvalues): s=−2s = -2 and s=−4s = -4. Both are in the left half of the s-plane, so the system is stable. Note that BB and CC do not affect the characteristic equation.

Check through the transfer function

adj⁡(sI−A)=[s+1−13s+5]\operatorname{adj}(sI-A) = \begin{bmatrix} s+1 & -1 \\ 3 & s+5 \end{bmatrix}, so

adj⁡(sI−A)B=[2(s+1)−56+5(s+5)]=[2s−35s+31]Y(s)U(s)=(2s−3)+2(5s+31)s2+6s+8=12s+59s2+6s+8\begin{aligned} \operatorname{adj}(sI-A)B &= \begin{bmatrix} 2(s+1) - 5 \\ 6 + 5(s+5) \end{bmatrix} = \begin{bmatrix} 2s - 3 \\ 5s + 31 \end{bmatrix} \\ \frac{Y(s)}{U(s)} &= \frac{(2s-3) + 2(5s+31)}{s^2+6s+8} = \frac{12s + 59}{s^2 + 6s + 8} \end{aligned}

The denominator of the transfer function is the same characteristic polynomial, s2+6s+8s^2 + 6s + 8.

Answer: s2+6s+8=0s^2 + 6s + 8 = 0, roots −2-2 and −4-4.

  • Asked 2 times
  • 2078 Bhadra · 6+2 marks
  • 2071 Shrawan · 8 marks

For given state equation and output equation, find transfer function Y(s)/U(s). Ẋ = [0 1 0; 0 0 1; −1 −2 −3]X + [10; 0; 0]u and y = [1 0 0]X

Answer

For x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cx+Duy = Cx + Du:

Y(s)U(s)=C(sI−A)−1B+D=C adj⁡(sI−A) B∣sI−A∣+D\frac{Y(s)}{U(s)} = C(sI - A)^{-1}B + D = \frac{C\,\operatorname{adj}(sI-A)\,B}{|sI-A|} + D A=[010001−1−2−3],B=[1000],C=[100],D=0A = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -1 & -2 & -3 \end{bmatrix},\quad B = \begin{bmatrix} 10 \\ 0 \\ 0 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 0 & 0 \end{bmatrix},\quad D = 0

Step 1: sI−AsI - A and its determinant

sI−A=[s−100s−112s+3]sI - A = \begin{bmatrix} s & -1 & 0 \\ 0 & s & -1 \\ 1 & 2 & s+3 \end{bmatrix} ∣sI−A∣=s[s(s+3)+2]−(−1)[0⋅(s+3)−(−1)(1)]+0=s3+3s2+2s+1\begin{aligned} |sI - A| &= s\left[s(s+3) + 2\right] - (-1)\left[0\cdot(s+3) - (-1)(1)\right] + 0 \\ &= s^3 + 3s^2 + 2s + 1 \end{aligned}

Step 2: Required part of the adjoint

Because BB has only its first element non-zero and CC picks only the first row, only the (1,1) element of the adjoint is needed:

adj⁡(sI−A)11=∣s−12s+3∣=s2+3s+2\operatorname{adj}(sI-A)_{11} = \begin{vmatrix} s & -1 \\ 2 & s+3 \end{vmatrix} = s^2 + 3s + 2

Full first column of the adjoint: [s2+3s+2−1−s]\begin{bmatrix} s^2+3s+2 \\ -1 \\ -s \end{bmatrix}, so

adj⁡(sI−A)B=10[s2+3s+2−1−s]\operatorname{adj}(sI-A)B = 10\begin{bmatrix} s^2+3s+2 \\ -1 \\ -s \end{bmatrix}

Step 3: Transfer function

C adj⁡(sI−A)B=10(s2+3s+2)C\,\operatorname{adj}(sI-A)B = 10(s^2 + 3s + 2) Y(s)U(s)=10(s2+3s+2)s3+3s2+2s+1=10(s+1)(s+2)s3+3s2+2s+1\frac{Y(s)}{U(s)} = \frac{10(s^2+3s+2)}{s^3+3s^2+2s+1} = \frac{10(s+1)(s+2)}{s^3+3s^2+2s+1}

Stability check

Routh array for s3+3s2+2s+1s^3 + 3s^2 + 2s + 1:

Row
s3s^312
s2s^231
s1s^13×2−13=1.67\frac{3\times2 - 1}{3} = 1.670
s0s^01

No sign change, so the system is stable. The poles are −2.325-2.325 and −0.338±j0.562-0.338 \pm j0.562; the zeros are −1-1 and −2-2.

Answer: Y(s)U(s)=10(s2+3s+2)s3+3s2+2s+1\dfrac{Y(s)}{U(s)} = \dfrac{10(s^2+3s+2)}{s^3+3s^2+2s+1}.

  • Asked 2 times
  • 2078 Kartik · 5 marks
  • 2068 Baisakh (old course) · 8 marks

Write the state space equation for the electrical network shown below. Take voltage across 2F capacitor as output. [Figure: source Vs – series 1 Ω – node A; 1 F capacitor from node A to ground; node A – series 1 H inductor – node B; 1 Ω resistor and 2 F capacitor each from node B to ground; Vo across the 2 F capacitor]

Answer

Choose the energy-storing elements' variables as states: capacitor voltages and inductor current.

  • x1=v1x_1 = v_1: voltage across the 1 F capacitor (node A)
  • x2=iLx_2 = i_L: current in the 1 H inductor (from A to B)
  • x3=v2x_3 = v_2: voltage across the 2 F capacitor (node B) =Vo= V_o
  Vs  1 ohm   A   1 H      B
 (+)-/\/\/--+--UUUU--+------+---o Vo
  |         |   iL   |      |
  |        === 1F   1 ohm  === 2F
  |         |        |      |
 (-)--------+--------+------+---o

KCL at node A

Current from the source through 1 Ω =(Vs−v1)/1= (V_s - v_1)/1:

1⋅dv1dt=(Vs−v1)−iL  ⇒  x˙1=−x1−x2+Vs1\cdot\frac{dv_1}{dt} = (V_s - v_1) - i_L \;\Rightarrow\; \dot{x}_1 = -x_1 - x_2 + V_s

KVL around the inductor

1⋅diLdt=v1−v2  ⇒  x˙2=x1−x31\cdot\frac{di_L}{dt} = v_1 - v_2 \;\Rightarrow\; \dot{x}_2 = x_1 - x_3

KCL at node B

2dv2dt=iL−v21  ⇒  x˙3=0.5x2−0.5x32\frac{dv_2}{dt} = i_L - \frac{v_2}{1} \;\Rightarrow\; \dot{x}_3 = 0.5x_2 - 0.5x_3

State and output equations

[x˙1x˙2x˙3]=[−1−1010−100.5−0.5][x1x2x3]+[100]Vs\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} -1 & -1 & 0 \\ 1 & 0 & -1 \\ 0 & 0.5 & -0.5 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}V_s Vo=y=[001][x1x2x3]V_o = y = \begin{bmatrix} 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix}

Check: from this model Vo(s)Vs(s)=12s3+3s2+4s+2\dfrac{V_o(s)}{V_s(s)} = \dfrac{1}{2s^3 + 3s^2 + 4s + 2}, the same as found directly by nodal analysis with impedances (1/s1/s for 1 F, ss for 1 H, 1/(2s)1/(2s) for 2 F).

  • Asked 2 times
  • 2075 Asoj · 8 marks
  • 2079 Bhadra · 8 marks

A system is characterized by the equation Y(s)/U(s) = 20(4s+2)/(s³ + 5s² + 8s + 2). Find its state and output equation and express in matrix form. Then using your matrix, how do you get characteristic equation?

Answer

Y(s)U(s)=20(4s+2)s3+5s2+8s+2=80s+40s3+5s2+8s+2\frac{Y(s)}{U(s)} = \frac{20(4s+2)}{s^3+5s^2+8s+2} = \frac{80s + 40}{s^3 + 5s^2 + 8s + 2}

Since the numerator has ss terms, use the phase-variable (controllable canonical) form with an intermediate variable X(s)X(s).

Step 1: Split the transfer function

Y(s)U(s)=X(s)U(s)⋅Y(s)X(s),X(s)U(s)=1s3+5s2+8s+2,Y(s)X(s)=80s+40\frac{Y(s)}{U(s)} = \frac{X(s)}{U(s)}\cdot\frac{Y(s)}{X(s)},\qquad \frac{X(s)}{U(s)} = \frac{1}{s^3+5s^2+8s+2},\qquad \frac{Y(s)}{X(s)} = 80s + 40

So x...+5x¨+8x˙+2x=u\dddot{x} + 5\ddot{x} + 8\dot{x} + 2x = u and y=80x˙+40xy = 80\dot{x} + 40x.

Step 2: Choose state variables

x1=xx_1 = x, x2=x˙x_2 = \dot{x}, x3=x¨x_3 = \ddot{x}:

x˙1=x2x˙2=x3x˙3=−2x1−8x2−5x3+uy=40x1+80x2\begin{aligned} \dot{x}_1 &= x_2 \\ \dot{x}_2 &= x_3 \\ \dot{x}_3 &= -2x_1 - 8x_2 - 5x_3 + u \\ y &= 40x_1 + 80x_2 \end{aligned}

Step 3: Matrix form

[x˙1x˙2x˙3]=[010001−2−8−5][x1x2x3]+[001]u\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -2 & -8 & -5 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}u y=[40800][x1x2x3]y = \begin{bmatrix} 40 & 80 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix}

Step 4: Characteristic equation from the matrix

The characteristic equation is ∣sI−A∣=0|sI - A| = 0:

sI−A=[s−100s−128s+5]sI - A = \begin{bmatrix} s & -1 & 0 \\ 0 & s & -1 \\ 2 & 8 & s+5 \end{bmatrix} ∣sI−A∣=s[s(s+5)+8]+1[0+2]=s3+5s2+8s+2=0\begin{aligned} |sI-A| &= s\left[s(s+5) + 8\right] + 1\left[0 + 2\right] \\ &= s^3 + 5s^2 + 8s + 2 = 0 \end{aligned}

This equals the denominator of the transfer function, as it must. Its roots (eigenvalues of AA) are s=−0.304s = -0.304 and −2.348±j1.029-2.348 \pm j1.029, all in the left half-plane, so the system is stable.

Answer: A=[010001−2−8−5]A = \begin{bmatrix} 0&1&0\\0&0&1\\-2&-8&-5 \end{bmatrix}, B=[001]B = \begin{bmatrix}0\\0\\1\end{bmatrix}, C=[40800]C = \begin{bmatrix}40&80&0\end{bmatrix}; characteristic equation s3+5s2+8s+2=0s^3 + 5s^2 + 8s + 2 = 0.

  • 2082 Baisakh · 5+1 marks

Determine transfer function for the system whose state space representation is given by: [ẋ1; ẋ2] = [0 −1; −2 −3][x1; x2] + [1; 2]u, y = [1 0][x1; x2]. Also comment on the stability of the system.

Answer

For x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cx+Duy = Cx + Du:

Y(s)U(s)=C(sI−A)−1B+D=C adj⁡(sI−A) B∣sI−A∣+D\frac{Y(s)}{U(s)} = C(sI - A)^{-1}B + D = \frac{C\,\operatorname{adj}(sI-A)\,B}{|sI-A|} + D A=[0−1−2−3],B=[12],C=[10]A = \begin{bmatrix} 0 & -1 \\ -2 & -3 \end{bmatrix},\quad B = \begin{bmatrix} 1 \\ 2 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 0 \end{bmatrix}

Step 1: (sI−A)(sI-A) and determinant

sI−A=[s12s+3],∣sI−A∣=s(s+3)−2=s2+3s−2sI - A = \begin{bmatrix} s & 1 \\ 2 & s+3 \end{bmatrix},\qquad |sI-A| = s(s+3) - 2 = s^2 + 3s - 2

Step 2: Inverse

(sI−A)−1=1s2+3s−2[s+3−1−2s](sI-A)^{-1} = \frac{1}{s^2+3s-2}\begin{bmatrix} s+3 & -1 \\ -2 & s \end{bmatrix}

Step 3: Transfer function

(sI−A)−1B=1s2+3s−2[(s+3)−2−2+2s]=1s2+3s−2[s+12s−2]Y(s)U(s)=[10]1s2+3s−2[s+12s−2]=s+1s2+3s−2\begin{aligned} (sI-A)^{-1}B &= \frac{1}{s^2+3s-2}\begin{bmatrix} (s+3) - 2 \\ -2 + 2s \end{bmatrix} = \frac{1}{s^2+3s-2}\begin{bmatrix} s+1 \\ 2s-2 \end{bmatrix} \\ \frac{Y(s)}{U(s)} &= \begin{bmatrix} 1 & 0 \end{bmatrix}\frac{1}{s^2+3s-2}\begin{bmatrix} s+1 \\ 2s-2 \end{bmatrix} = \frac{s+1}{s^2+3s-2} \end{aligned}

Stability

Characteristic equation s2+3s−2=0s^2 + 3s - 2 = 0:

s=−3±9+82=−3±4.1232=0.562, −3.562s = \frac{-3 \pm \sqrt{9 + 8}}{2} = \frac{-3 \pm 4.123}{2} = 0.562,\ -3.562

One pole lies in the right half of the s-plane (s=+0.562s = +0.562). Also the coefficients of the characteristic polynomial do not all have the same sign, which already fails the necessary condition for stability. So the system is unstable; its response contains a growing term e0.562te^{0.562t}.

Answer: Y(s)U(s)=s+1s2+3s−2\dfrac{Y(s)}{U(s)} = \dfrac{s+1}{s^2+3s-2}; unstable.

  • 2081 Bhadra · 6+2 marks

Determine transfer function from the given state space model and check stability of the system. [ẋ1; ẋ2] = [1 0; 1 1][x1; x2] + [1; 1]u, y = [1 1][x1; x2]

Answer

For x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cx+Duy = Cx + Du:

Y(s)U(s)=C(sI−A)−1B+D=C adj⁡(sI−A) B∣sI−A∣+D\frac{Y(s)}{U(s)} = C(sI - A)^{-1}B + D = \frac{C\,\operatorname{adj}(sI-A)\,B}{|sI-A|} + D A=[1011],B=[11],C=[11]A = \begin{bmatrix} 1 & 0 \\ 1 & 1 \end{bmatrix},\quad B = \begin{bmatrix} 1 \\ 1 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 1 \end{bmatrix}

Step 1: (sI−A)(sI-A) and determinant

sI−A=[s−10−1s−1],∣sI−A∣=(s−1)2=s2−2s+1sI - A = \begin{bmatrix} s-1 & 0 \\ -1 & s-1 \end{bmatrix},\qquad |sI-A| = (s-1)^2 = s^2 - 2s + 1

Step 2: Inverse

(sI−A)−1=1(s−1)2[s−101s−1](sI-A)^{-1} = \frac{1}{(s-1)^2}\begin{bmatrix} s-1 & 0 \\ 1 & s-1 \end{bmatrix}

Step 3: Transfer function

(sI−A)−1B=1(s−1)2[s−11+s−1]=1(s−1)2[s−1s]Y(s)U(s)=[11]1(s−1)2[s−1s]=2s−1(s−1)2=2s−1s2−2s+1\begin{aligned} (sI-A)^{-1}B &= \frac{1}{(s-1)^2}\begin{bmatrix} s-1 \\ 1 + s - 1 \end{bmatrix} = \frac{1}{(s-1)^2}\begin{bmatrix} s-1 \\ s \end{bmatrix} \\ \frac{Y(s)}{U(s)} &= \begin{bmatrix} 1 & 1 \end{bmatrix}\frac{1}{(s-1)^2}\begin{bmatrix} s-1 \\ s \end{bmatrix} = \frac{2s-1}{(s-1)^2} = \frac{2s-1}{s^2-2s+1} \end{aligned}

Stability

Characteristic equation: (s−1)2=0(s-1)^2 = 0, so there is a repeated pole at s=+1s = +1 in the right half of the s-plane (also visible because AA is lower triangular with diagonal entries 1, 1).

The impulse response contains terms ete^{t} and tette^{t}, which grow without bound. The system is unstable.

Answer: Y(s)U(s)=2s−1(s−1)2\dfrac{Y(s)}{U(s)} = \dfrac{2s-1}{(s-1)^2}; poles at s=1,1s = 1, 1, zero at s=0.5s = 0.5; unstable.

  • 2080 Bhadra · 4 marks

Obtain state space model of the following mechanical system. [Figure: mass M (displacement x, on rollers) with applied force F(t), connected to the left wall by spring K and to the right wall by damper B]

Answer

The mass is pulled by F(t)F(t), held back by the spring KK (left wall) and the damper BB (right wall). Both oppose the motion.

Differential equation

Newton's law (free-body diagram of MM):

Md2xdt2+Bdxdt+Kx=F(t)M\frac{d^2x}{dt^2} + B\frac{dx}{dt} + Kx = F(t)

State variables

Displacement and velocity of the mass (energy in the spring and the mass):

x1=x,x2=x˙x_1 = x, \qquad x_2 = \dot{x} x˙1=x2x˙2=−KMx1−BMx2+1MF(t)\begin{aligned} \dot{x}_1 &= x_2 \\ \dot{x}_2 &= -\frac{K}{M}x_1 - \frac{B}{M}x_2 + \frac{1}{M}F(t) \end{aligned}

State-space model

Taking the displacement xx as the output:

[x˙1x˙2]=[01−KM−BM][x1x2]+[01M]F(t)\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -\dfrac{K}{M} & -\dfrac{B}{M} \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix} + \begin{bmatrix} 0 \\ \dfrac{1}{M} \end{bmatrix}F(t) y=[10][x1x2]y = \begin{bmatrix} 1 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix}

(If velocity is wanted as output, use C=[0    1]C = [0 \;\; 1].) The corresponding transfer function is X(s)F(s)=1Ms2+Bs+K\dfrac{X(s)}{F(s)} = \dfrac{1}{Ms^2 + Bs + K}.

  • 2079 Bhadra · 6 marks

Find state space model of given circuit. Consider Vo as output. [Figure: input Vi; series R1 to node V2; capacitor C1 from V2 to ground; series R2 from V2 to the output node; capacitor C2 from output node to ground; Vo across C2; mesh currents i1(t) and i2(t)]

Answer

Take the capacitor voltages as state variables:

x1=v2 (voltage across C1),x2=vo (voltage across C2)x_1 = v_2 \ (\text{voltage across } C_1), \qquad x_2 = v_o \ (\text{voltage across } C_2)
 Vi   R1     v2    R2     Vo
 o--/\/\/--+--/\/\/--+----o
   i1 ->   |  i2 ->  |
          === C1    === C2
           |         |
 o---------+---------+----o

Circuit equations

Mesh currents: i1=Vi−v2R1i_1 = \dfrac{V_i - v_2}{R_1} through R1R_1, i2=v2−voR2i_2 = \dfrac{v_2 - v_o}{R_2} through R2R_2.

KCL at node v2v_2 (current in C1C_1 is i1−i2i_1 - i_2):

C1dv2dt=Vi−v2R1−v2−voR2C_1\frac{dv_2}{dt} = \frac{V_i - v_2}{R_1} - \frac{v_2 - v_o}{R_2}

KCL at the output node (current in C2C_2 is i2i_2):

C2dvodt=v2−voR2C_2\frac{dv_o}{dt} = \frac{v_2 - v_o}{R_2}

State equations

x˙1=−(1R1C1+1R2C1)x1+1R2C1x2+1R1C1Vix˙2=1R2C2x1−1R2C2x2\begin{aligned} \dot{x}_1 &= -\left(\frac{1}{R_1C_1} + \frac{1}{R_2C_1}\right)x_1 + \frac{1}{R_2C_1}x_2 + \frac{1}{R_1C_1}V_i \\ \dot{x}_2 &= \frac{1}{R_2C_2}x_1 - \frac{1}{R_2C_2}x_2 \end{aligned}

Matrix form

[x˙1x˙2]=[−(1R1C1+1R2C1)1R2C11R2C2−1R2C2][x1x2]+[1R1C10]Vi\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \end{bmatrix} = \begin{bmatrix} -\left(\dfrac{1}{R_1C_1} + \dfrac{1}{R_2C_1}\right) & \dfrac{1}{R_2C_1} \\ \dfrac{1}{R_2C_2} & -\dfrac{1}{R_2C_2} \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix} + \begin{bmatrix} \dfrac{1}{R_1C_1} \\ 0 \end{bmatrix}V_i Vo=y=[01][x1x2]V_o = y = \begin{bmatrix} 0 & 1 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix}

This gives Vo(s)Vi(s)=1R1C1R2C2s2+(R1C1+R2C2+R1C2)s+1\dfrac{V_o(s)}{V_i(s)} = \dfrac{1}{R_1C_1R_2C_2s^2 + (R_1C_1 + R_2C_2 + R_1C_2)s + 1}, the known result for a two-stage RC ladder.

  • 2076 Chaitra · 4 marks

Obtain the transfer function from the following system equations given by [ẋ1; ẋ2] = [0 1; −K/M −B/M][x1; x2] + [0; 1/M]u, y = [1 0][x1; x2].

Answer

Y(s)U(s)=C(sI−A)−1B\frac{Y(s)}{U(s)} = C(sI - A)^{-1}B

with

A=[01−KM−BM],Bm=[01M],C=[10]A = \begin{bmatrix} 0 & 1 \\ -\dfrac{K}{M} & -\dfrac{B}{M} \end{bmatrix},\quad B_m = \begin{bmatrix} 0 \\ \dfrac{1}{M} \end{bmatrix},\quad C = \begin{bmatrix} 1 & 0 \end{bmatrix}

(The input matrix is written BmB_m to avoid confusion with the damping coefficient BB.)

Step 1: (sI−A)(sI - A) and determinant

sI−A=[s−1KMs+BM]sI - A = \begin{bmatrix} s & -1 \\ \dfrac{K}{M} & s + \dfrac{B}{M} \end{bmatrix} ∣sI−A∣=s(s+BM)+KM=s2+BMs+KM|sI - A| = s\left(s + \frac{B}{M}\right) + \frac{K}{M} = s^2 + \frac{B}{M}s + \frac{K}{M}

Step 2: Inverse

(sI−A)−1=1s2+BMs+KM[s+BM1−KMs](sI - A)^{-1} = \frac{1}{s^2 + \frac{B}{M}s + \frac{K}{M}}\begin{bmatrix} s + \dfrac{B}{M} & 1 \\ -\dfrac{K}{M} & s \end{bmatrix}

Step 3: Transfer function

(sI−A)−1Bm=1s2+BMs+KM[1MsM](sI-A)^{-1}B_m = \frac{1}{s^2 + \frac{B}{M}s + \frac{K}{M}}\begin{bmatrix} \dfrac{1}{M} \\ \dfrac{s}{M} \end{bmatrix} Y(s)U(s)=[10](sI−A)−1Bm=1/Ms2+BMs+KM=1Ms2+Bs+K\frac{Y(s)}{U(s)} = \begin{bmatrix} 1 & 0 \end{bmatrix}(sI-A)^{-1}B_m = \frac{1/M}{s^2 + \frac{B}{M}s + \frac{K}{M}} = \frac{1}{Ms^2 + Bs + K}

This is the transfer function of the mass–spring–damper system My¨+By˙+Ky=uM\ddot{y} + B\dot{y} + Ky = u, with ωn=K/M\omega_n = \sqrt{K/M} and ζ=B2KM\zeta = \dfrac{B}{2\sqrt{KM}}.

Answer: Y(s)U(s)=1Ms2+Bs+K\dfrac{Y(s)}{U(s)} = \dfrac{1}{Ms^2 + Bs + K}.

  • 2076 Asoj · 8 marks

Consider a mechanical system shown in figure below. The external force u(t) is input to the system and displacement y(t) of the mass is the output. Obtain the state space representation of the system. [Figure: vertical system; mass M1 hangs from a fixed support through spring K, with external force u(t) applied to M1; mass M2 hangs below M1 through damper B; y(t) is the downward displacement of M2; a fixed surface is drawn below M2]

Answer

Let y1y_1 be the downward displacement of M1M_1 and y=y2y = y_2 that of M2M_2, both measured from the static equilibrium position, so gravity and the static spring force cancel and do not appear.

   //////////  support
       |
       K  (spring)
       |
   +-------+
   |  M1   | <-- u(t), y1
   +-------+
       |
       B  (damper)
       |
   +-------+
   |  M2   |  y(t) = y2
   +-------+

Equations of motion

For M1M_1: spring force Ky1Ky_1 and damper force B(y˙1−y˙2)B(\dot{y}_1 - \dot{y}_2) oppose its motion:

M1y¨1+B(y˙1−y˙2)+Ky1=u(t)M_1\ddot{y}_1 + B(\dot{y}_1 - \dot{y}_2) + Ky_1 = u(t)

For M2M_2: only the damper acts on it:

M2y¨2+B(y˙2−y˙1)=0M_2\ddot{y}_2 + B(\dot{y}_2 - \dot{y}_1) = 0

State variables

x1=y1,x2=y˙1,x3=y2,x4=y˙2x_1 = y_1,\quad x_2 = \dot{y}_1,\quad x_3 = y_2,\quad x_4 = \dot{y}_2 x˙1=x2x˙2=−KM1x1−BM1x2+BM1x4+1M1ux˙3=x4x˙4=BM2x2−BM2x4\begin{aligned} \dot{x}_1 &= x_2 \\ \dot{x}_2 &= -\frac{K}{M_1}x_1 - \frac{B}{M_1}x_2 + \frac{B}{M_1}x_4 + \frac{1}{M_1}u \\ \dot{x}_3 &= x_4 \\ \dot{x}_4 &= \frac{B}{M_2}x_2 - \frac{B}{M_2}x_4 \end{aligned}

State-space representation

[x˙1x˙2x˙3x˙4]=[0100−KM1−BM10BM100010BM20−BM2][x1x2x3x4]+[01M100]u(t)\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \\ \dot{x}_4 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 & 0 \\ -\dfrac{K}{M_1} & -\dfrac{B}{M_1} & 0 & \dfrac{B}{M_1} \\ 0 & 0 & 0 & 1 \\ 0 & \dfrac{B}{M_2} & 0 & -\dfrac{B}{M_2} \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{bmatrix} + \begin{bmatrix} 0 \\ \dfrac{1}{M_1} \\ 0 \\ 0 \end{bmatrix}u(t) y(t)=[0010][x1x2x3x4]y(t) = \begin{bmatrix} 0 & 0 & 1 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{bmatrix}

y2y_2 itself is needed as a state only because it is the output; the dynamics depend on y1y_1, y˙1\dot{y}_1 and y˙2\dot{y}_2.

  • 2075 Chaitra · 6 marks

Develop state space model for circuit below. [Figure: two-source circuit; source V1 on the left and V2 on the right; top branch: V1(+) – 2 Ω – node A – 1 H – V2(+); bottom branch: V1(−) – 2 H – node B – 3 Ω – V2(−); 2 F capacitor connected between node A and node B]

Answer

Choose the inductor currents and the capacitor voltage as states. The left loop current flows through 2 Ω and 2 H (in series); the right loop current flows through 1 H and 3 Ω (in series); the capacitor carries the difference.

  • x1=i1x_1 = i_1: current in the 2 H inductor (left loop, clockwise)
  • x2=i2x_2 = i_2: current in the 1 H inductor (right loop, from A towards V2V_2)
  • x3=vC=vA−vBx_3 = v_C = v_A - v_B: voltage on the 2 F capacitor
     2 ohm   A    1 H
  +--/\/\/--+---UUUU---+
  |   i1 -> |  i2 ->   |
 (V1)      === 2F     (V2)
  |         |          |
  +--UUUU---+--/\/\/---+
      2 H   B   3 ohm

Left loop (KVL)

V1=2i1+vC+2di1dt  ⇒  x˙1=−x1−0.5x3+0.5V1V_1 = 2i_1 + v_C + 2\frac{di_1}{dt} \;\Rightarrow\; \dot{x}_1 = -x_1 - 0.5x_3 + 0.5V_1

Right loop (KVL)

From A through 1 H, V2V_2 and 3 Ω back to B:

vC=1⋅di2dt+V2+3i2  ⇒  x˙2=−3x2+x3−V2v_C = 1\cdot\frac{di_2}{dt} + V_2 + 3i_2 \;\Rightarrow\; \dot{x}_2 = -3x_2 + x_3 - V_2

Capacitor (KCL at A)

2dvCdt=i1−i2  ⇒  x˙3=0.5x1−0.5x22\frac{dv_C}{dt} = i_1 - i_2 \;\Rightarrow\; \dot{x}_3 = 0.5x_1 - 0.5x_2

State model

[x˙1x˙2x˙3]=[−10−0.50−310.5−0.50][x1x2x3]+[0.500−100][V1V2]\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} -1 & 0 & -0.5 \\ 0 & -3 & 1 \\ 0.5 & -0.5 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0.5 & 0 \\ 0 & -1 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} V_1 \\ V_2 \end{bmatrix}

Output: no output is marked, so the capacitor voltage is taken as output:

y=vC=[001][x1x2x3]+[00][V1V2]y = v_C = \begin{bmatrix} 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0 & 0 \end{bmatrix}\begin{bmatrix} V_1 \\ V_2 \end{bmatrix}

(For the current in V2V_2 as output, use C=[0    1    0]C = [0 \;\; 1 \;\; 0].)

  • 2074 Chaitra · 6 marks

Write the state equation for the circuit shown below. Also write output equation. [Figure: source V1 on the left in series with 1 Ω and 2 H inductor to node A; 2 F capacitor from node A to the bottom (common) line; node A through 1 H inductor and 2 Ω resistor to source V2 on the right; both sources return to the common bottom line]

Answer

Take the two inductor currents and the capacitor voltage as states (assumed directions shown):

  • x1=i1x_1 = i_1: current in the 2 H inductor, from V1V_1 towards node A
  • x2=i2x_2 = i_2: current in the 1 H inductor, from node A towards V2V_2
  • x3=vCx_3 = v_C: voltage on the 2 F capacitor (node A to common line)
    1 ohm  2 H     A    1 H  2 ohm
  +-/\/\/-UUUU----+---UUUU-/\/\/-+
  |    i1 ->      |    i2 ->     |
 (V1)            === 2F         (V2)
  |               |              |
  +---------------+--------------+

Left loop (KVL)

V1=1⋅i1+2di1dt+vC  ⇒  x˙1=−0.5x1−0.5x3+0.5V1V_1 = 1\cdot i_1 + 2\frac{di_1}{dt} + v_C \;\Rightarrow\; \dot{x}_1 = -0.5x_1 - 0.5x_3 + 0.5V_1

Right loop (KVL)

vC=1⋅di2dt+2i2+V2  ⇒  x˙2=−2x2+x3−V2v_C = 1\cdot\frac{di_2}{dt} + 2i_2 + V_2 \;\Rightarrow\; \dot{x}_2 = -2x_2 + x_3 - V_2

KCL at node A

2dvCdt=i1−i2  ⇒  x˙3=0.5x1−0.5x22\frac{dv_C}{dt} = i_1 - i_2 \;\Rightarrow\; \dot{x}_3 = 0.5x_1 - 0.5x_2

State equation

[x˙1x˙2x˙3]=[−0.50−0.50−210.5−0.50][x1x2x3]+[0.500−100][V1V2]\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} -0.5 & 0 & -0.5 \\ 0 & -2 & 1 \\ 0.5 & -0.5 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0.5 & 0 \\ 0 & -1 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} V_1 \\ V_2 \end{bmatrix}

Output equation

No output is marked in the figure, so the capacitor voltage (node A voltage) is taken as the output:

y=vC=[001][x1x2x3]+[00][V1V2]y = v_C = \begin{bmatrix} 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0 & 0 \end{bmatrix}\begin{bmatrix} V_1 \\ V_2 \end{bmatrix}

If, for example, the voltage across the 2 Ω resistor is the output, then y=2x2y = 2x_2, i.e. C=[0    2    0]C = [0 \;\; 2 \;\; 0].

  • 2074 Asoj · 8 marks

Given state equation and output equation, find transfer function Y(s)/U(s) and determine the poles and zeros. Ẋ = [0 1 0; −1 −1 0; 1 0 0]X + [0; 1; 0]u and y = [0 0 1]X

Answer

For x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cx+Duy = Cx + Du:

Y(s)U(s)=C(sI−A)−1B+D=C adj⁡(sI−A) B∣sI−A∣+D\frac{Y(s)}{U(s)} = C(sI - A)^{-1}B + D = \frac{C\,\operatorname{adj}(sI-A)\,B}{|sI-A|} + D A=[010−1−10100],B=[010],C=[001]A = \begin{bmatrix} 0 & 1 & 0 \\ -1 & -1 & 0 \\ 1 & 0 & 0 \end{bmatrix},\quad B = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix},\quad C = \begin{bmatrix} 0 & 0 & 1 \end{bmatrix}

Step 1: sI−AsI - A and determinant

sI−A=[s−101s+10−10s]sI - A = \begin{bmatrix} s & -1 & 0 \\ 1 & s+1 & 0 \\ -1 & 0 & s \end{bmatrix}

Expanding along the third column:

∣sI−A∣=s∣s−11s+1∣=s[s(s+1)+1]=s3+s2+s|sI - A| = s\begin{vmatrix} s & -1 \\ 1 & s+1 \end{vmatrix} = s\left[s(s+1) + 1\right] = s^3 + s^2 + s

Step 2: Needed adjoint elements

CC picks row 3 and BB picks column 2, so only adj⁡(sI−A)32\operatorname{adj}(sI-A)_{32} is needed. It is the cofactor of element (2,3):

adj⁡32=(−1)2+3∣s−1−10∣=−[(s)(0)−(−1)(−1)]=1\operatorname{adj}_{32} = (-1)^{2+3}\begin{vmatrix} s & -1 \\ -1 & 0 \end{vmatrix} = -\left[(s)(0) - (-1)(-1)\right] = 1

(The full column adj⁡(sI−A)B=[ s,  s2,  1 ]T\operatorname{adj}(sI-A)B = [\,s,\; s^2,\; 1\,]^T.)

Step 3: Transfer function

Y(s)U(s)=1s3+s2+s=1s(s2+s+1)\frac{Y(s)}{U(s)} = \frac{1}{s^3 + s^2 + s} = \frac{1}{s(s^2 + s + 1)}

Poles and zeros

  • Poles: s(s2+s+1)=0s(s^2 + s + 1) = 0:
s=0,s=−1±1−42=−0.5±j0.866s = 0, \qquad s = \frac{-1 \pm \sqrt{1-4}}{2} = -0.5 \pm j0.866
  • Zeros: the numerator is a constant, so there are no finite zeros (three zeros at infinity).

The pole at the origin makes the system marginally stable (type 1); the complex pair has ωn=1\omega_n = 1 rad/s and ζ=0.5\zeta = 0.5.

Answer: Y(s)U(s)=1s(s2+s+1)\dfrac{Y(s)}{U(s)} = \dfrac{1}{s(s^2+s+1)}; poles 0, −0.5±j0.8660,\ -0.5 \pm j0.866; no finite zeros.

  • 2073 Shrawan · 6 marks

The differential equations related to a system are dx1/dt = −3x1 + x2 and dx2/dt = −2x1 + u for t > 0. Its output equation is given by y = x1. Derive the transfer function of the system with these differential equations and output equation.

Answer

Step 1: Write the state model

x˙1=−3x1+x2,x˙2=−2x1+u,y=x1\dot{x}_1 = -3x_1 + x_2, \qquad \dot{x}_2 = -2x_1 + u, \qquad y = x_1 A=[−31−20],B=[01],C=[10],D=0A = \begin{bmatrix} -3 & 1 \\ -2 & 0 \end{bmatrix},\quad B = \begin{bmatrix} 0 \\ 1 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 0 \end{bmatrix},\quad D = 0

Step 2: Transfer function C(sI−A)−1BC(sI-A)^{-1}B

sI−A=[s+3−12s],∣sI−A∣=s(s+3)+2=s2+3s+2sI - A = \begin{bmatrix} s+3 & -1 \\ 2 & s \end{bmatrix},\qquad |sI - A| = s(s+3) + 2 = s^2 + 3s + 2 (sI−A)−1=1s2+3s+2[s1−2s+3](sI-A)^{-1} = \frac{1}{s^2+3s+2}\begin{bmatrix} s & 1 \\ -2 & s+3 \end{bmatrix} (sI−A)−1B=1s2+3s+2[1s+3],Y(s)U(s)=[10]1s2+3s+2[1s+3](sI-A)^{-1}B = \frac{1}{s^2+3s+2}\begin{bmatrix} 1 \\ s+3 \end{bmatrix}, \qquad \frac{Y(s)}{U(s)} = \begin{bmatrix} 1 & 0 \end{bmatrix}\frac{1}{s^2+3s+2}\begin{bmatrix} 1 \\ s+3 \end{bmatrix} Y(s)U(s)=1s2+3s+2=1(s+1)(s+2)\frac{Y(s)}{U(s)} = \frac{1}{s^2 + 3s + 2} = \frac{1}{(s+1)(s+2)}

Check by direct Laplace transform (zero initial conditions)

sX1=−3X1+X2  ⇒  X2=(s+3)X1sX2=−2X1+U  ⇒  s(s+3)X1+2X1=UYU=X1U=1s2+3s+2\begin{aligned} sX_1 &= -3X_1 + X_2 \;\Rightarrow\; X_2 = (s+3)X_1 \\ sX_2 &= -2X_1 + U \;\Rightarrow\; s(s+3)X_1 + 2X_1 = U \\ \frac{Y}{U} &= \frac{X_1}{U} = \frac{1}{s^2+3s+2} \end{aligned}

Poles at s=−1,−2s = -1, -2: the system is stable and overdamped.

Answer: Y(s)U(s)=1s2+3s+2\dfrac{Y(s)}{U(s)} = \dfrac{1}{s^2+3s+2}.

  • 2072 Chaitra · 6 marks

Develop state space equations for the following circuit considering voltage of 2H inductor as output. I is input to the system. [Figure: current source I in parallel with a 1 H inductor, a 1 F capacitor, and a branch of 1.5 Ω resistor in series with a 2 H inductor]

Answer

All branches are in parallel across the current source, so they share one voltage vv (the capacitor voltage).

State variables:

  • x1=i1x_1 = i_1: current in the 1 H inductor
  • x2=vx_2 = v: voltage across the 1 F capacitor
  • x3=i2x_3 = i_2: current in the 1.5 Ω – 2 H branch
   +------+------+--------+
   |      |      |        |
  (I)^   1H     === 1F   1.5 ohm
   |      |i1    |        |
   |      |      |       2H  i2
   |      |      |        |
   +------+------+--------+

Equations

1 H inductor:   1⋅di1dt=v⇒x˙1=x2\;1\cdot\dfrac{di_1}{dt} = v \Rightarrow \dot{x}_1 = x_2

KCL at the top node:   I=i1+1⋅dvdt+i2⇒x˙2=−x1−x3+I\;I = i_1 + 1\cdot\dfrac{dv}{dt} + i_2 \Rightarrow \dot{x}_2 = -x_1 - x_3 + I

R–L branch:   v=1.5i2+2di2dt⇒x˙3=0.5x2−0.75x3\;v = 1.5i_2 + 2\dfrac{di_2}{dt} \Rightarrow \dot{x}_3 = 0.5x_2 - 0.75x_3

State equation

[x˙1x˙2x˙3]=[010−10−100.5−0.75][x1x2x3]+[010]I\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 \\ -1 & 0 & -1 \\ 0 & 0.5 & -0.75 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}I

Output equation

Voltage across the 2 H inductor:

vL2=2di2dt=v−1.5i2=x2−1.5x3v_{L2} = 2\frac{di_2}{dt} = v - 1.5i_2 = x_2 - 1.5x_3 y=[01−1.5][x1x2x3]+[0] Iy = \begin{bmatrix} 0 & 1 & -1.5 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + [0]\,I

Check: this model gives VL2(s)I(s)=4s24s3+3s2+6s+3\dfrac{V_{L2}(s)}{I(s)} = \dfrac{4s^2}{4s^3 + 3s^2 + 6s + 3}, the same as the impedance method.

  • 2071 Chaitra · 4 marks

For a system given by d/dt [x1; x2] = [−5 −6; 1 0][x1; x2] + [1; 0]u; y = [1 2][x1; x2], determine the zeros and the poles of the system.

Answer

Find the transfer function C(sI−A)−1BC(sI-A)^{-1}B; its denominator roots are the poles and numerator roots are the zeros.

A=[−5−610],B=[10],C=[12]A = \begin{bmatrix} -5 & -6 \\ 1 & 0 \end{bmatrix},\quad B = \begin{bmatrix} 1 \\ 0 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 2 \end{bmatrix}

Step 1

sI−A=[s+56−1s],∣sI−A∣=s(s+5)+6=s2+5s+6=(s+2)(s+3)sI - A = \begin{bmatrix} s+5 & 6 \\ -1 & s \end{bmatrix},\qquad |sI-A| = s(s+5) + 6 = s^2 + 5s + 6 = (s+2)(s+3) adj⁡(sI−A)=[s−61s+5],adj⁡(sI−A)B=[s1]\operatorname{adj}(sI-A) = \begin{bmatrix} s & -6 \\ 1 & s+5 \end{bmatrix},\qquad \operatorname{adj}(sI-A)B = \begin{bmatrix} s \\ 1 \end{bmatrix}

Step 2

C adj⁡(sI−A)B=s+2C\,\operatorname{adj}(sI-A)B = s + 2 Y(s)U(s)=s+2(s+2)(s+3)\frac{Y(s)}{U(s)} = \frac{s+2}{(s+2)(s+3)}

Poles and zeros

  • Poles (eigenvalues of AA): s=−2s = -2 and s=−3s = -3
  • Zero: s=−2s = -2

The zero at −2-2 cancels the pole at −2-2, so the input–output transfer function reduces to 1s+3\dfrac{1}{s+3}. The mode e−2te^{-2t} exists inside the system but does not appear at the output: the system is controllable (∣[B    AB]∣=1≠0|[B\;\; AB]| = 1 \ne 0) but not observable (∣CCA∣=0\left|\begin{smallmatrix} C \\ CA \end{smallmatrix}\right| = 0). Both poles are in the left half-plane, so the system is stable.

  • 2071 Chaitra · 5 marks

Develop state equation for motor circuit below. [Figure: DC motor; armature circuit with supply Ea, resistance Ra, inductance La, armature current Ia and back emf Eb; separate field circuit with supply ef, resistance Rf, inductance Lf and field current If; motor torque Tm, speed ωm, angle θm; load inertia Jm and friction Bm]

Answer

Take the currents in the two inductances and the mechanical speed and angle as state variables:

x1=ia,x2=if,x3=ωm,x4=θmx_1 = i_a,\quad x_2 = i_f,\quad x_3 = \omega_m,\quad x_4 = \theta_m

Basic equations

  • Armature circuit:   Ladiadt+Raia+eb=Ea\;L_a\dfrac{di_a}{dt} + R_ai_a + e_b = E_a
  • Field circuit:   Lfdifdt+Rfif=ef\;L_f\dfrac{di_f}{dt} + R_fi_f = e_f
  • Back emf:   eb=Kb ωm\;e_b = K_b\,\omega_m (with Kb∝K_b \propto field flux)
  • Motor torque:   Tm=Kt ia\;T_m = K_t\,i_a (with Kt∝K_t \propto field flux)
  • Load:   Jmdωmdt+Bmωm=Tm\;J_m\dfrac{d\omega_m}{dt} + B_m\omega_m = T_m, and dθmdt=ωm\dfrac{d\theta_m}{dt} = \omega_m

Strictly, flux is proportional to ifi_f, so Tm=KifiaT_m = K i_f i_a and eb=Kifωme_b = K i_f\omega_m, which are non-linear. For a linear model the field flux is taken as constant at its operating value (armature control), so KtK_t and KbK_b are constants.

State equations

x˙1=−RaLax1−KbLax3+1LaEax˙2=−RfLfx2+1Lfefx˙3=KtJmx1−BmJmx3x˙4=x3\begin{aligned} \dot{x}_1 &= -\frac{R_a}{L_a}x_1 - \frac{K_b}{L_a}x_3 + \frac{1}{L_a}E_a \\ \dot{x}_2 &= -\frac{R_f}{L_f}x_2 + \frac{1}{L_f}e_f \\ \dot{x}_3 &= \frac{K_t}{J_m}x_1 - \frac{B_m}{J_m}x_3 \\ \dot{x}_4 &= x_3 \end{aligned}

Matrix form

[i˙ai˙fω˙mθ˙m]=[−RaLa0−KbLa00−RfLf00KtJm0−BmJm00010][iaifωmθm]+[1La001Lf0000][Eaef]\begin{bmatrix} \dot{i}_a \\ \dot{i}_f \\ \dot{\omega}_m \\ \dot{\theta}_m \end{bmatrix} = \begin{bmatrix} -\dfrac{R_a}{L_a} & 0 & -\dfrac{K_b}{L_a} & 0 \\ 0 & -\dfrac{R_f}{L_f} & 0 & 0 \\ \dfrac{K_t}{J_m} & 0 & -\dfrac{B_m}{J_m} & 0 \\ 0 & 0 & 1 & 0 \end{bmatrix}\begin{bmatrix} i_a \\ i_f \\ \omega_m \\ \theta_m \end{bmatrix} + \begin{bmatrix} \dfrac{1}{L_a} & 0 \\ 0 & \dfrac{1}{L_f} \\ 0 & 0 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} E_a \\ e_f \end{bmatrix}

Output (shaft position): y=θm=[0    0    0    1] xy = \theta_m = [0\;\;0\;\;0\;\;1]\,x (or [0    0    1    0] x[0\;\;0\;\;1\;\;0]\,x for speed).

With constant field the armature-controlled motor uses only iai_a, ωm\omega_m, θm\theta_m, giving Ωm(s)Ea(s)=Kt(Las+Ra)(Jms+Bm)+KtKb\dfrac{\Omega_m(s)}{E_a(s)} = \dfrac{K_t}{(L_as+R_a)(J_ms+B_m) + K_tK_b}.

  • 2069 Chaitra · 8 marks

A system has the transfer function Y(s)/U(s) = 2/(s³ + 6s² + 11s + 6). Find the state and output equation in matrix form and test the controllability and observability of the system.

Answer

State model (phase-variable form)

Split the transfer function with an intermediate variable X(s)X(s):

X(s)U(s)=1s3+6s2+11s+6,Y(s)=2X(s)\frac{X(s)}{U(s)} = \frac{1}{s^3 + 6s^2 + 11s + 6},\qquad Y(s) = 2X(s)

So x...+6x¨+11x˙+6x=u\dddot{x} + 6\ddot{x} + 11\dot{x} + 6x = u and y=2xy = 2x. Choose x1=xx_1 = x, x2=x˙x_2 = \dot{x}, x3=x¨x_3 = \ddot{x}:

x˙1=x2,x˙2=x3,x˙3=−6x1−11x2−6x3+u,y=2x1\dot{x}_1 = x_2,\qquad \dot{x}_2 = x_3,\qquad \dot{x}_3 = -6x_1 - 11x_2 - 6x_3 + u,\qquad y = 2x_1 [x˙1x˙2x˙3]=[010001−6−11−6][x1x2x3]+[001]u,y=[200][x1x2x3]\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -6 & -11 & -6 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}u,\qquad y = \begin{bmatrix} 2 & 0 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix}

Controllability (Kalman test)

Qc=[ B    AB    A2B ]Q_c = [\,B \;\; AB \;\; A^2B\,]:

AB=[01−6],A2B=A(AB)=[1−6−6⋅0−11+36]=[1−625]AB = \begin{bmatrix} 0 \\ 1 \\ -6 \end{bmatrix},\qquad A^2B = A(AB) = \begin{bmatrix} 1 \\ -6 \\ -6 \cdot 0 - 11 + 36 \end{bmatrix} = \begin{bmatrix} 1 \\ -6 \\ 25 \end{bmatrix} Qc=[00101−61−625],∣Qc∣=−1≠0Q_c = \begin{bmatrix} 0 & 0 & 1 \\ 0 & 1 & -6 \\ 1 & -6 & 25 \end{bmatrix},\qquad |Q_c| = -1 \neq 0

Rank =3=n= 3 = n, so the system is completely state controllable.

Observability

Qo=[CCACA2]Q_o = \begin{bmatrix} C \\ CA \\ CA^2 \end{bmatrix}:

C=[2    0    0],CA=[0    2    0],CA2=[0    0    2]C = [2\;\;0\;\;0],\qquad CA = [0\;\;2\;\;0],\qquad CA^2 = [0\;\;0\;\;2] Qo=[200020002],∣Qo∣=8≠0Q_o = \begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 2 \end{bmatrix},\qquad |Q_o| = 8 \neq 0

Rank =3= 3, so the system is completely observable.

This agrees with the transfer function: s3+6s2+11s+6=(s+1)(s+2)(s+3)s^3 + 6s^2 + 11s + 6 = (s+1)(s+2)(s+3) and the numerator is a constant, so there is no pole–zero cancellation.

Answer: the system is both controllable and observable.

  • 2068 Chaitra · 8 marks

Determine TF for the system whose state space representation is given by: [ẋ1; ẋ2] = [0 −1; −2 −3][x1; x2] + [1; 2]u, y = [1 0][x1; x2].

Answer

For x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cx+Duy = Cx + Du:

Y(s)U(s)=C(sI−A)−1B+D=C adj⁡(sI−A) B∣sI−A∣+D\frac{Y(s)}{U(s)} = C(sI - A)^{-1}B + D = \frac{C\,\operatorname{adj}(sI-A)\,B}{|sI-A|} + D A=[0−1−2−3],B=[12],C=[10],D=0A = \begin{bmatrix} 0 & -1 \\ -2 & -3 \end{bmatrix},\quad B = \begin{bmatrix} 1 \\ 2 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 0 \end{bmatrix},\quad D = 0

Step 1: (sI−A)(sI - A)

sI−A=[s00s]−[0−1−2−3]=[s12s+3]sI - A = \begin{bmatrix} s & 0 \\ 0 & s \end{bmatrix} - \begin{bmatrix} 0 & -1 \\ -2 & -3 \end{bmatrix} = \begin{bmatrix} s & 1 \\ 2 & s+3 \end{bmatrix}

Step 2: Determinant and adjoint

∣sI−A∣=s(s+3)−(1)(2)=s2+3s−2|sI-A| = s(s+3) - (1)(2) = s^2 + 3s - 2 adj⁡(sI−A)=[s+3−1−2s]\operatorname{adj}(sI-A) = \begin{bmatrix} s+3 & -1 \\ -2 & s \end{bmatrix}

Step 3: Multiply by BB and CC

adj⁡(sI−A)B=[(s+3)(1)+(−1)(2)(−2)(1)+s(2)]=[s+12s−2]\operatorname{adj}(sI-A)B = \begin{bmatrix} (s+3)(1) + (-1)(2) \\ (-2)(1) + s(2) \end{bmatrix} = \begin{bmatrix} s+1 \\ 2s-2 \end{bmatrix} C adj⁡(sI−A)B=[10][s+12s−2]=s+1C\,\operatorname{adj}(sI-A)B = \begin{bmatrix} 1 & 0 \end{bmatrix}\begin{bmatrix} s+1 \\ 2s-2 \end{bmatrix} = s + 1

Step 4: Transfer function

Y(s)U(s)=s+1s2+3s−2\frac{Y(s)}{U(s)} = \frac{s+1}{s^2+3s-2}
  • Zero: s=−1s = -1
  • Poles: s=−3±172=0.562s = \dfrac{-3 \pm \sqrt{17}}{2} = 0.562 and −3.562-3.562

The pole at +0.562+0.562 lies in the right half-plane, so this system is unstable.

Answer: Y(s)U(s)=s+1s2+3s−2\dfrac{Y(s)}{U(s)} = \dfrac{s+1}{s^2+3s-2}.

  • 2067 Asar (old course) · 8 marks

Represent the mechanical system of figure 1 (wall – spring K1 – mass M1 – spring K2 – mass M2 with force F(t) on M2, no friction) with state equation and output equation, if output is x2(t) in the figure.

Answer

Let x1x_1 and x2x_2 be the displacements of M1M_1 and M2M_2 from their rest positions (positive to the right).

 |    K1    +----+   K2    +----+
 |--/\/\/---| M1 |--/\/\/--| M2 |--> F(t)
 |          +----+         +----+
 |           x1 ->          x2 ->

Equations of motion (no friction)

Mass M1M_1: spring K1K_1 pulls back by K1x1K_1x_1; spring K2K_2 by K2(x1−x2)K_2(x_1 - x_2):

M1x¨1+K1x1+K2(x1−x2)=0M_1\ddot{x}_1 + K_1x_1 + K_2(x_1 - x_2) = 0

Mass M2M_2:

M2x¨2+K2(x2−x1)=F(t)M_2\ddot{x}_2 + K_2(x_2 - x_1) = F(t)

State variables

z1=x1z_1 = x_1, z2=x˙1z_2 = \dot{x}_1, z3=x2z_3 = x_2, z4=x˙2z_4 = \dot{x}_2:

z˙1=z2z˙2=−K1+K2M1z1+K2M1z3z˙3=z4z˙4=K2M2z1−K2M2z3+1M2F(t)\begin{aligned} \dot{z}_1 &= z_2 \\ \dot{z}_2 &= -\frac{K_1 + K_2}{M_1}z_1 + \frac{K_2}{M_1}z_3 \\ \dot{z}_3 &= z_4 \\ \dot{z}_4 &= \frac{K_2}{M_2}z_1 - \frac{K_2}{M_2}z_3 + \frac{1}{M_2}F(t) \end{aligned}

State equation

[z˙1z˙2z˙3z˙4]=[0100−K1+K2M10K2M100001K2M20−K2M20][z1z2z3z4]+[0001M2]F(t)\begin{bmatrix} \dot{z}_1 \\ \dot{z}_2 \\ \dot{z}_3 \\ \dot{z}_4 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 & 0 \\ -\dfrac{K_1+K_2}{M_1} & 0 & \dfrac{K_2}{M_1} & 0 \\ 0 & 0 & 0 & 1 \\ \dfrac{K_2}{M_2} & 0 & -\dfrac{K_2}{M_2} & 0 \end{bmatrix}\begin{bmatrix} z_1 \\ z_2 \\ z_3 \\ z_4 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ 0 \\ \dfrac{1}{M_2} \end{bmatrix}F(t)

Output equation

y=x2(t)=[0010][z1z2z3z4]y = x_2(t) = \begin{bmatrix} 0 & 0 & 1 & 0 \end{bmatrix}\begin{bmatrix} z_1 \\ z_2 \\ z_3 \\ z_4 \end{bmatrix}

With no damping the eigenvalues of AA lie on the imaginary axis, so the system oscillates without decay (marginally stable).

  • 2066 Jestha (old course) · 10 marks

Discuss the advantages and limitations of state-space analysis of control systems. Find the transfer function for the system represented by following state-space model: [ẋ1; ẋ2] = [−4 −1; 10 0][x1; x2] + [1; 0]u, y = [1 0][x1; x2]. Also evaluate the stability of this system.

Answer

Advantages of state-space analysis

  1. Applies to MIMO (multi-input multi-output) systems as easily as to single-input single-output systems.
  2. Can handle non-linear and time-varying systems; the transfer function needs linear time-invariant systems.
  3. Includes initial conditions; the transfer function assumes zero initial conditions.
  4. Gives the internal behaviour (all state variables), not only the input–output relation.
  5. Allows tests of controllability and observability, and hidden (cancelled) modes are not lost.
  6. Suited to computer solution and simulation, since it uses first-order matrix equations.
  7. Forms the basis of modern and optimal control design: state feedback (pole placement), observers, Kalman filter.

Limitations

  1. Needs more computation (matrix algebra, nn first-order equations); physical insight is less direct than with a transfer function or Bode plot.
  2. The choice of state variables is not unique, so different models describe the same system.
  3. State variables may not all be measurable; an observer may be needed for state feedback.
  4. Classical specifications (gain margin, phase margin, bandwidth) are not read directly.

Transfer function

A=[−4−1100],B=[10],C=[10]A = \begin{bmatrix} -4 & -1 \\ 10 & 0 \end{bmatrix},\quad B = \begin{bmatrix} 1 \\ 0 \end{bmatrix},\quad C = \begin{bmatrix} 1 & 0 \end{bmatrix} sI−A=[s+41−10s],∣sI−A∣=s(s+4)+10=s2+4s+10sI - A = \begin{bmatrix} s+4 & 1 \\ -10 & s \end{bmatrix},\qquad |sI-A| = s(s+4) + 10 = s^2 + 4s + 10 (sI−A)−1=1s2+4s+10[s−110s+4],(sI−A)−1B=1s2+4s+10[s10](sI-A)^{-1} = \frac{1}{s^2+4s+10}\begin{bmatrix} s & -1 \\ 10 & s+4 \end{bmatrix},\qquad (sI-A)^{-1}B = \frac{1}{s^2+4s+10}\begin{bmatrix} s \\ 10 \end{bmatrix} Y(s)U(s)=[10]1s2+4s+10[s10]=ss2+4s+10\frac{Y(s)}{U(s)} = \begin{bmatrix} 1 & 0 \end{bmatrix}\frac{1}{s^2+4s+10}\begin{bmatrix} s \\ 10 \end{bmatrix} = \frac{s}{s^2 + 4s + 10}

Stability

Characteristic equation s2+4s+10=0s^2 + 4s + 10 = 0:

s=−4±16−402=−2±j2.449s = \frac{-4 \pm \sqrt{16 - 40}}{2} = -2 \pm j2.449

Both poles have negative real parts, so the system is stable (underdamped: ωn=10=3.16\omega_n = \sqrt{10} = 3.16 rad/s, ζ=4/(210)=0.632\zeta = 4/(2\sqrt{10}) = 0.632). There is a zero at s=0s = 0.

  • 2065 Shrawan (old course) · 8 marks

Discuss the advantages of state space representation. Find the state equation and output equation of state space form for the system represented by transfer function G(s) = (2s² + 3s + 1)/(s³ + 5s² + 6s + 7).

Answer

Advantages of state-space analysis

  1. Applies to MIMO (multi-input multi-output) systems as easily as to single-input single-output systems.
  2. Can handle non-linear and time-varying systems; the transfer function needs linear time-invariant systems.
  3. Includes initial conditions; the transfer function assumes zero initial conditions.
  4. Gives the internal behaviour (all state variables), not only the input–output relation.
  5. Allows tests of controllability and observability, and hidden (cancelled) modes are not lost.
  6. Suited to computer solution and simulation, since it uses first-order matrix equations.
  7. Forms the basis of modern and optimal control design: state feedback (pole placement), observers, Kalman filter.

State model of G(s)=2s2+3s+1s3+5s2+6s+7G(s) = \dfrac{2s^2+3s+1}{s^3+5s^2+6s+7}

Use the controllable canonical (phase-variable) form. Let

X(s)U(s)=1s3+5s2+6s+7,Y(s)X(s)=2s2+3s+1\frac{X(s)}{U(s)} = \frac{1}{s^3+5s^2+6s+7},\qquad \frac{Y(s)}{X(s)} = 2s^2 + 3s + 1

So x...+5x¨+6x˙+7x=u\dddot{x} + 5\ddot{x} + 6\dot{x} + 7x = u and y=2x¨+3x˙+xy = 2\ddot{x} + 3\dot{x} + x.

Choose x1=xx_1 = x, x2=x˙x_2 = \dot{x}, x3=x¨x_3 = \ddot{x}:

x˙1=x2x˙2=x3x˙3=−7x1−6x2−5x3+uy=x1+3x2+2x3\begin{aligned} \dot{x}_1 &= x_2 \\ \dot{x}_2 &= x_3 \\ \dot{x}_3 &= -7x_1 - 6x_2 - 5x_3 + u \\ y &= x_1 + 3x_2 + 2x_3 \end{aligned}

State equation:

[x˙1x˙2x˙3]=[010001−7−6−5][x1x2x3]+[001]u\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -7 & -6 & -5 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}u

Output equation:

y=[132][x1x2x3]y = \begin{bmatrix} 1 & 3 & 2 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix}

The last row of AA holds the negated denominator coefficients (7, 6, 5) and CC holds the numerator coefficients in ascending powers (1, 3, 2). Check: C(sI−A)−1B=2s2+3s+1s3+5s2+6s+7C(sI-A)^{-1}B = \dfrac{2s^2+3s+1}{s^3+5s^2+6s+7}.

  • 2081 Baisakh · 8 marks

A system is described by the transfer function Y(s)/U(s) = 10(s² + 2s)/(s³ + 5s² + 8s + 15). Find its state and output equation in matrix form.

Answer

A state model can be written directly from the transfer function in phase variable (controllable canonical) form. The denominator gives the system matrix and the numerator gives the output matrix.

Given transfer function

Y(s)U(s)=10s2+20ss3+5s2+8s+15\frac{Y(s)}{U(s)} = \frac{10s^2 + 20s}{s^3 + 5s^2 + 8s + 15}

The numerator order (2) is less than the denominator order (3), so there is no direct term (D=0D = 0).

Step 1: Introduce an intermediate variable

Let

Y(s)U(s)=Y(s)X(s)⋅X(s)U(s),X(s)U(s)=1s3+5s2+8s+15,Y(s)X(s)=10s2+20s\frac{Y(s)}{U(s)} = \frac{Y(s)}{X(s)}\cdot\frac{X(s)}{U(s)}, \quad \frac{X(s)}{U(s)} = \frac{1}{s^3 + 5s^2 + 8s + 15}, \quad \frac{Y(s)}{X(s)} = 10s^2 + 20s

So

x...+5x¨+8x˙+15x=u,y=10x¨+20x˙\dddot{x} + 5\ddot{x} + 8\dot{x} + 15x = u, \qquad y = 10\ddot{x} + 20\dot{x}

Step 2: Choose state variables

x1=x,x2=x˙,x3=x¨x_1 = x, \quad x_2 = \dot{x}, \quad x_3 = \ddot{x}

Then

x˙1=x2x˙2=x3x˙3=−15x1−8x2−5x3+u\begin{aligned} \dot{x}_1 &= x_2 \\ \dot{x}_2 &= x_3 \\ \dot{x}_3 &= -15x_1 - 8x_2 - 5x_3 + u \end{aligned}

Step 3: Output equation

y=10x¨+20x˙=0⋅x1+20x2+10x3y = 10\ddot{x} + 20\dot{x} = 0\cdot x_1 + 20x_2 + 10x_3

State and output equations in matrix form

[x˙1x˙2x˙3]=[010001−15−8−5][x1x2x3]+[001]u\begin{bmatrix}\dot{x}_1\\ \dot{x}_2\\ \dot{x}_3\end{bmatrix} = \begin{bmatrix}0 & 1 & 0\\ 0 & 0 & 1\\ -15 & -8 & -5\end{bmatrix} \begin{bmatrix}x_1\\ x_2\\ x_3\end{bmatrix} + \begin{bmatrix}0\\ 0\\ 1\end{bmatrix} u y=[02010][x1x2x3]y = \begin{bmatrix}0 & 20 & 10\end{bmatrix}\begin{bmatrix}x_1\\ x_2\\ x_3\end{bmatrix}

So

A=[010001−15−8−5],  B=[001],  C=[02010],  D=0A = \begin{bmatrix}0 & 1 & 0\\ 0 & 0 & 1\\ -15 & -8 & -5\end{bmatrix},\; B = \begin{bmatrix}0\\ 0\\ 1\end{bmatrix},\; C = \begin{bmatrix}0 & 20 & 10\end{bmatrix},\; D = 0

Block diagram of the realization

u -->(+)--> 1/s --x3--> 1/s --x2--> 1/s --x1
      ^ -5x3 -8x2 -15x1 (fed back)
y = 20*x2 + 10*x3

Check

Using G(s)=C(sI−A)−1BG(s) = C(sI - A)^{-1}B, the last column of (sI−A)−1(sI-A)^{-1} is 1Δ(s)[1    s    s2]T\frac{1}{\Delta(s)}[1\;\; s\;\; s^2]^T with Δ(s)=s3+5s2+8s+15\Delta(s) = s^3 + 5s^2 + 8s + 15. Hence

G(s)=0⋅1+20s+10s2s3+5s2+8s+15=10(s2+2s)s3+5s2+8s+15G(s) = \frac{0\cdot 1 + 20s + 10s^2}{s^3 + 5s^2 + 8s + 15} = \frac{10(s^2 + 2s)}{s^3 + 5s^2 + 8s + 15}

which is the given transfer function.

Answer: x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cxy = Cx with AA, BB, CC as above (phase variable form). The state model is not unique; other forms (observable canonical, Jordan) give the same transfer function.

  • 2080 Bhadra · 8 marks

The differential equations related to the system are dx1/dt = −3x1 + x2 and dx2/dt = −2x1 + u for t > 0. Its output is given by y = x2. Derive the transfer function of the system with these differential equations and check stability.

Answer

The transfer function of a state model is G(s)=C(sI−A)−1B+DG(s) = C(sI - A)^{-1}B + D, and the system is stable if all roots of ∣sI−A∣=0|sI - A| = 0 (the eigenvalues of AA) lie in the left half of the s-plane.

Step 1: Write the state model

x˙1=−3x1+x2,x˙2=−2x1+u,y=x2\dot{x}_1 = -3x_1 + x_2, \qquad \dot{x}_2 = -2x_1 + u, \qquad y = x_2 A=[−31−20],  B=[01],  C=[01],  D=0A = \begin{bmatrix}-3 & 1\\ -2 & 0\end{bmatrix},\; B = \begin{bmatrix}0\\ 1\end{bmatrix},\; C = \begin{bmatrix}0 & 1\end{bmatrix},\; D = 0

Step 2: Find (sI−A)(sI - A) and its determinant

sI−A=[s+3−12s]sI - A = \begin{bmatrix}s+3 & -1\\ 2 & s\end{bmatrix} ∣sI−A∣=s(s+3)−(−1)(2)=s2+3s+2=(s+1)(s+2)|sI - A| = s(s+3) - (-1)(2) = s^2 + 3s + 2 = (s+1)(s+2)

Step 3: Inverse

(sI−A)−1=1(s+1)(s+2)[s1−2s+3](sI - A)^{-1} = \frac{1}{(s+1)(s+2)}\begin{bmatrix}s & 1\\ -2 & s+3\end{bmatrix}

Step 4: Transfer function

(sI−A)−1B=1(s+1)(s+2)[1s+3]G(s)=C(sI−A)−1B=[01]1(s+1)(s+2)[1s+3]=s+3(s+1)(s+2)\begin{aligned} (sI - A)^{-1}B &= \frac{1}{(s+1)(s+2)}\begin{bmatrix}1\\ s+3\end{bmatrix} \\ G(s) = C(sI - A)^{-1}B &= \begin{bmatrix}0 & 1\end{bmatrix}\frac{1}{(s+1)(s+2)}\begin{bmatrix}1\\ s+3\end{bmatrix} = \frac{s+3}{(s+1)(s+2)} \end{aligned}

Transfer function:

Y(s)U(s)=s+3s2+3s+2\frac{Y(s)}{U(s)} = \frac{s+3}{s^2 + 3s + 2}

Cross-check by Laplace transform

With zero initial conditions: sX1=−3X1+X2sX_1 = -3X_1 + X_2 gives X1=X2/(s+3)X_1 = X_2/(s+3). Then sX2=−2X1+U=−2X2s+3+UsX_2 = -2X_1 + U = -\frac{2X_2}{s+3} + U, so

X2(s+2s+3)=U  ⇒  X2U=s+3s2+3s+2X_2\left(s + \frac{2}{s+3}\right) = U \;\Rightarrow\; \frac{X_2}{U} = \frac{s+3}{s^2 + 3s + 2}

Same result.

Step 5: Stability check

Characteristic equation:

∣sI−A∣=s2+3s+2=0  ⇒  s=−1,  −2|sI - A| = s^2 + 3s + 2 = 0 \;\Rightarrow\; s = -1,\; -2
ItemValue
Eigenvalues (poles)−1-1, −2-2
Zero−3-3
Location of polesLeft half s-plane
DampingOverdamped (real, distinct poles)

Routh array for s2+3s+2s^2 + 3s + 2: first column 1,3,21, 3, 2, all positive, no sign change.

Answer: G(s)=s+3(s+1)(s+2)G(s) = \dfrac{s+3}{(s+1)(s+2)}. Both poles (−1-1 and −2-2) are real and negative, so the system is stable (asymptotically stable, overdamped response).

  • 2080 Baisakh · 8 marks

Obtain a state-space representation of the mechanical system shown in the figure where external force F is the input and the displacements of the masses x1 and x2 are the outputs. [Figure: wall – spring k2 parallel with damper b2 – mass m2 (displacement x2, on rollers) – spring k1 parallel with damper b1 – mass m1 (displacement x1, on rollers, force F applied)]

Answer

A state-space model is obtained by writing Newton's second law for each mass and choosing the displacements and velocities as state variables (one pair per mass, so 4 states).

System and assumptions

 wall |--[k2 || b2]--[ m2 ]--[k1 || b1]--[ m1 ]--> F
                      x2 ->               x1 ->
  • Masses run on rollers, so there is no friction with the ground.
  • x1x_1, x2x_2 are measured from equilibrium, positive to the right.
  • k1k_1, b1b_1 connect m1m_1 and m2m_2; k2k_2, b2b_2 connect m2m_2 to the wall.

Equations of motion

Free body of m1m_1 (force FF, spring and damper k1k_1, b1b_1 resisting relative motion):

m1x¨1=F−k1(x1−x2)−b1(x˙1−x˙2)m_1\ddot{x}_1 = F - k_1(x_1 - x_2) - b_1(\dot{x}_1 - \dot{x}_2)

Free body of m2m_2 (pulled by k1k_1, b1b_1; held back by k2k_2, b2b_2):

m2x¨2=k1(x1−x2)+b1(x˙1−x˙2)−k2x2−b2x˙2m_2\ddot{x}_2 = k_1(x_1 - x_2) + b_1(\dot{x}_1 - \dot{x}_2) - k_2x_2 - b_2\dot{x}_2

Choice of state variables

z1=x1,z2=x˙1,z3=x2,z4=x˙2,u=Fz_1 = x_1,\quad z_2 = \dot{x}_1,\quad z_3 = x_2,\quad z_4 = \dot{x}_2,\quad u = F

State equations

z˙1=z2z˙2=−k1m1z1−b1m1z2+k1m1z3+b1m1z4+1m1uz˙3=z4z˙4=k1m2z1+b1m2z2−k1+k2m2z3−b1+b2m2z4\begin{aligned} \dot{z}_1 &= z_2 \\ \dot{z}_2 &= -\frac{k_1}{m_1}z_1 - \frac{b_1}{m_1}z_2 + \frac{k_1}{m_1}z_3 + \frac{b_1}{m_1}z_4 + \frac{1}{m_1}u \\ \dot{z}_3 &= z_4 \\ \dot{z}_4 &= \frac{k_1}{m_2}z_1 + \frac{b_1}{m_2}z_2 - \frac{k_1 + k_2}{m_2}z_3 - \frac{b_1 + b_2}{m_2}z_4 \end{aligned}

Matrix form

[z˙1z˙2z˙3z˙4]=[0100−k1m1−b1m1k1m1b1m10001k1m2b1m2−k1+k2m2−b1+b2m2][z1z2z3z4]+[01m100]F\begin{bmatrix}\dot{z}_1\\ \dot{z}_2\\ \dot{z}_3\\ \dot{z}_4\end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 & 0\\ -\frac{k_1}{m_1} & -\frac{b_1}{m_1} & \frac{k_1}{m_1} & \frac{b_1}{m_1}\\ 0 & 0 & 0 & 1\\ \frac{k_1}{m_2} & \frac{b_1}{m_2} & -\frac{k_1+k_2}{m_2} & -\frac{b_1+b_2}{m_2} \end{bmatrix} \begin{bmatrix}z_1\\ z_2\\ z_3\\ z_4\end{bmatrix} + \begin{bmatrix}0\\ \frac{1}{m_1}\\ 0\\ 0\end{bmatrix}F

Output equation

The outputs are the two displacements y1=x1y_1 = x_1 and y2=x2y_2 = x_2:

[y1y2]=[10000010][z1z2z3z4]+[00]F\begin{bmatrix}y_1\\ y_2\end{bmatrix} = \begin{bmatrix}1 & 0 & 0 & 0\\ 0 & 0 & 1 & 0\end{bmatrix} \begin{bmatrix}z_1\\ z_2\\ z_3\\ z_4\end{bmatrix} + \begin{bmatrix}0\\ 0\end{bmatrix}F

Summary

MatrixSizeMeaning
AA4×44\times 4Masses, springs, dampers
BB4×14\times 1Force acts on m1m_1 only
CC2×42\times 4Picks x1x_1 and x2x_2
DD2×12\times 1Zero (no direct path)

Answer: z˙=Az+BF\dot{z} = Az + BF, y=Czy = Cz with AA, BB, CC as above and D=0D = 0. Physical check: in the static case (z˙=0\dot{z} = 0), the equations give k2x2=Fk_2x_2 = F and k1(x1−x2)=Fk_1(x_1 - x_2) = F, i.e. the two springs carry the same force in series, as expected.

  • 2078 Bhadra · 8 marks

A system is described by the following equations: ẋ(t) = [−1 1; 0 −2]x(t) + [1 0 1; 0 1 1]u(t), y(t) = [1 2; 1 0; 1 1]x(t). Find the transfer function of the system and identify if the system is stable.

Answer

For a multi-input multi-output (MIMO) system the transfer function is a transfer matrix G(s)=C(sI−A)−1B+DG(s) = C(sI - A)^{-1}B + D. Here there are 3 inputs and 3 outputs, so G(s)G(s) is 3×33\times 3.

Given

A=[−110−2],  B=[101011],  C=[121011],  D=0A = \begin{bmatrix}-1 & 1\\ 0 & -2\end{bmatrix},\; B = \begin{bmatrix}1 & 0 & 1\\ 0 & 1 & 1\end{bmatrix},\; C = \begin{bmatrix}1 & 2\\ 1 & 0\\ 1 & 1\end{bmatrix},\; D = 0

Step 1: (sI−A)−1(sI - A)^{-1}

sI−A=[s+1−10s+2],∣sI−A∣=(s+1)(s+2)sI - A = \begin{bmatrix}s+1 & -1\\ 0 & s+2\end{bmatrix}, \qquad |sI - A| = (s+1)(s+2) (sI−A)−1=1(s+1)(s+2)[s+210s+1](sI - A)^{-1} = \frac{1}{(s+1)(s+2)}\begin{bmatrix}s+2 & 1\\ 0 & s+1\end{bmatrix}

Step 2: (sI−A)−1B(sI - A)^{-1}B

(sI−A)−1B=1(s+1)(s+2)[s+21s+30s+1s+1](sI - A)^{-1}B = \frac{1}{(s+1)(s+2)}\begin{bmatrix}s+2 & 1 & s+3\\ 0 & s+1 & s+1\end{bmatrix}

Step 3: Multiply by CC

Row by row (common factor 1(s+1)(s+2)\frac{1}{(s+1)(s+2)}):

  • Row 1, C1=[1    2]C_1 = [1\;\;2]: [ s+2,    1+2(s+1),    (s+3)+2(s+1) ]=[ s+2,    2s+3,    3s+5 ][\,s+2,\;\; 1 + 2(s+1),\;\; (s+3) + 2(s+1)\,] = [\,s+2,\;\; 2s+3,\;\; 3s+5\,]
  • Row 2, C2=[1    0]C_2 = [1\;\;0]: [ s+2,    1,    s+3 ][\,s+2,\;\; 1,\;\; s+3\,]
  • Row 3, C3=[1    1]C_3 = [1\;\;1]: [ s+2,    s+2,    2s+4 ][\,s+2,\;\; s+2,\;\; 2s+4\,]

So

G(s)=1(s+1)(s+2)[s+22s+33s+5s+21s+3s+2s+22(s+2)]G(s) = \frac{1}{(s+1)(s+2)}\begin{bmatrix}s+2 & 2s+3 & 3s+5\\ s+2 & 1 & s+3\\ s+2 & s+2 & 2(s+2)\end{bmatrix}

After cancelling common factors:

G(s)=[1s+12s+3(s+1)(s+2)3s+5(s+1)(s+2)1s+11(s+1)(s+2)s+3(s+1)(s+2)1s+11s+12s+1]G(s) = \begin{bmatrix} \frac{1}{s+1} & \frac{2s+3}{(s+1)(s+2)} & \frac{3s+5}{(s+1)(s+2)}\\[4pt] \frac{1}{s+1} & \frac{1}{(s+1)(s+2)} & \frac{s+3}{(s+1)(s+2)}\\[4pt] \frac{1}{s+1} & \frac{1}{s+1} & \frac{2}{s+1} \end{bmatrix}

Here Gij(s)=Yi(s)/Uj(s)G_{ij}(s) = Y_i(s)/U_j(s) with the other inputs set to zero.

Step 4: Stability

Characteristic equation:

∣sI−A∣=(s+1)(s+2)=s2+3s+2=0  ⇒  s=−1,  −2|sI - A| = (s+1)(s+2) = s^2 + 3s + 2 = 0 \;\Rightarrow\; s = -1,\; -2

Since AA is upper triangular, its eigenvalues are simply the diagonal entries −1-1 and −2-2.

CheckResult
Eigenvalues of AA−1-1, −2-2
Real partsBoth negative
Poles of every Gij(s)G_{ij}(s)Subset of {−1,−2}\{-1, -2\}
Routh array (1,3,21, 3, 2)No sign change

Answer: The transfer matrix is as given above. All eigenvalues of AA lie in the left half s-plane, so the system is asymptotically stable (and also BIBO stable).

  • 2078 Kartik · 6 marks

Find state space representation of the system. [Figure: voltage source Vi in series with 4 Ω to node Vc1; 0.25 F capacitor from Vc1 to ground; 2 H inductor (current iL) from Vc1 to node Vc2; 0.5 F capacitor (voltage Vo) from Vc2 to ground; 1 Ω resistor from Vc2 to ground; current source is injecting into node Vc2 from ground]

Answer

For an electric circuit the natural state variables are the capacitor voltages and inductor currents, since they describe the stored energy. Here the states are vC1v_{C1}, iLi_L and vC2=vov_{C2} = v_o; the inputs are ViV_i and IsI_s.

Circuit

Vi --[4 ohm]--+--[2 H, iL ->]--+-------+
              |                |       |
           0.25 F            0.5 F   1 ohm   Is (up into
              |                |       |     node Vc2)
GND ----------+----------------+-------+

State variables and inputs

x1=vC1,x2=iL,x3=vC2=vo,u1=Vi,u2=Isx_1 = v_{C1},\quad x_2 = i_L,\quad x_3 = v_{C2} = v_o, \qquad u_1 = V_i,\quad u_2 = I_s

KCL at node VC1V_{C1}

Current in through 4 Ω = capacitor current + inductor current:

Vi−x14=0.25 x˙1+x2  ⇒  x˙1=−x1−4x2+Vi\frac{V_i - x_1}{4} = 0.25\,\dot{x}_1 + x_2 \;\Rightarrow\; \dot{x}_1 = -x_1 - 4x_2 + V_i

KVL around the inductor

2 x˙2=x1−x3  ⇒  x˙2=0.5x1−0.5x32\,\dot{x}_2 = x_1 - x_3 \;\Rightarrow\; \dot{x}_2 = 0.5x_1 - 0.5x_3

KCL at node VC2V_{C2}

Inductor current + source current = capacitor current + resistor current:

x2+Is=0.5 x˙3+x31  ⇒  x˙3=2x2−2x3+2Isx_2 + I_s = 0.5\,\dot{x}_3 + \frac{x_3}{1} \;\Rightarrow\; \dot{x}_3 = 2x_2 - 2x_3 + 2I_s

State equation

[v˙C1i˙Lv˙C2]=[−1−400.50−0.502−2][vC1iLvC2]+[100002][ViIs]\begin{bmatrix}\dot{v}_{C1}\\ \dot{i}_L\\ \dot{v}_{C2}\end{bmatrix} = \begin{bmatrix}-1 & -4 & 0\\ 0.5 & 0 & -0.5\\ 0 & 2 & -2\end{bmatrix} \begin{bmatrix}v_{C1}\\ i_L\\ v_{C2}\end{bmatrix} + \begin{bmatrix}1 & 0\\ 0 & 0\\ 0 & 2\end{bmatrix} \begin{bmatrix}V_i\\ I_s\end{bmatrix}

Output equation

vo=[001][vC1iLvC2]+[00][ViIs]v_o = \begin{bmatrix}0 & 0 & 1\end{bmatrix}\begin{bmatrix}v_{C1}\\ i_L\\ v_{C2}\end{bmatrix} + \begin{bmatrix}0 & 0\end{bmatrix}\begin{bmatrix}V_i\\ I_s\end{bmatrix}

Check

  • Characteristic equation: ∣sI−A∣=s3+3s2+5s+5|sI - A| = s^3 + 3s^2 + 5s + 5.
  • Vo/Vi=1s3+3s2+5s+5V_o/V_i = \dfrac{1}{s^3 + 3s^2 + 5s + 5}. At DC this is 1/51/5, which matches the resistive divider 1/(4+1)1/(4+1).
  • Vo/Is=2(s2+s+2)s3+3s2+5s+5V_o/I_s = \dfrac{2(s^2 + s + 2)}{s^3 + 3s^2 + 5s + 5}. At DC this is 0.8 Ω0.8\ \Omega, which matches 1∥4=0.8 Ω1 \parallel 4 = 0.8\ \Omega.

Answer: x˙=Ax+Bu\dot{x} = Ax + Bu, vo=Cxv_o = Cx with A=[−1−400.50−0.502−2]A = \begin{bmatrix}-1 & -4 & 0\\ 0.5 & 0 & -0.5\\ 0 & 2 & -2\end{bmatrix}, B=[100002]B = \begin{bmatrix}1 & 0\\ 0 & 0\\ 0 & 2\end{bmatrix}, C=[0    0    1]C = [0\;\;0\;\;1], D=0D = 0. (If the current source points the other way, the sign of the IsI_s column in BB changes.)

  • 2076 Chaitra · 2+6 marks

Discuss the advantages and limitations of state space analysis of control systems. Find the transfer function for the system represented by following state space model: ẋ = [−3 1; −2 0]x + [0; 1]u, y = [1 0]x.

Answer

Advantages of state space analysis

State space analysis describes a system by a set of first-order differential equations in terms of state variables, x˙=Ax+Bu\dot{x} = Ax + Bu, y=Cx+Duy = Cx + Du.

  1. Works for MIMO systems as easily as for single-input single-output systems.
  2. Applies to non-linear and time-varying systems; the transfer function method does not.
  3. Takes non-zero initial conditions into account.
  4. Gives the internal behaviour (all states), not only the input-output relation; controllability and observability can be tested.
  5. Suited to computer solution and to modern design methods (pole placement, optimal control, observers).
  6. Works in the time domain directly.

Limitations

  1. Needs more mathematics (matrices, eigenvalues); less physical insight for simple systems.
  2. The state model is not unique: different choices of states give different AA, BB, CC.
  3. Frequency-domain specifications (gain margin, phase margin, bandwidth) are not seen directly.
  4. Some states may not be measurable, so observers are needed for feedback.

Transfer function of the given model

A=[−31−20],  B=[01],  C=[10],  D=0A = \begin{bmatrix}-3 & 1\\ -2 & 0\end{bmatrix},\; B = \begin{bmatrix}0\\ 1\end{bmatrix},\; C = \begin{bmatrix}1 & 0\end{bmatrix},\; D = 0 G(s)=C(sI−A)−1B+DG(s) = C(sI - A)^{-1}B + D

Step 1:

sI−A=[s+3−12s],∣sI−A∣=s(s+3)+2=s2+3s+2sI - A = \begin{bmatrix}s+3 & -1\\ 2 & s\end{bmatrix}, \qquad |sI - A| = s(s+3) + 2 = s^2 + 3s + 2

Step 2:

(sI−A)−1=1s2+3s+2[s1−2s+3](sI - A)^{-1} = \frac{1}{s^2 + 3s + 2}\begin{bmatrix}s & 1\\ -2 & s+3\end{bmatrix}

Step 3:

(sI−A)−1B=1s2+3s+2[1s+3]G(s)=C(sI−A)−1B=[10]1s2+3s+2[1s+3]=1s2+3s+2\begin{aligned} (sI - A)^{-1}B &= \frac{1}{s^2 + 3s + 2}\begin{bmatrix}1\\ s+3\end{bmatrix} \\ G(s) = C(sI - A)^{-1}B &= \begin{bmatrix}1 & 0\end{bmatrix}\frac{1}{s^2 + 3s + 2}\begin{bmatrix}1\\ s+3\end{bmatrix} = \frac{1}{s^2 + 3s + 2} \end{aligned}

Answer:

Y(s)U(s)=1s2+3s+2=1(s+1)(s+2)\frac{Y(s)}{U(s)} = \frac{1}{s^2 + 3s + 2} = \frac{1}{(s+1)(s+2)}

The poles are at s=−1s = -1 and s=−2s = -2, so the system is stable and overdamped.

Questions from Old Question Collection (EE 602) (IOE Control System exam papers (EE 602 and older course), 2065 to 2082) and Old Question Collection (BEI, EE 504) (IOE BEI Control System (EE 504) exam papers, 2076 to 2081). Answers are written for this site; check them against your class notes.

Chapter titles and hours from the IOE syllabus ↗