Menu Close

State-variable analysis: UPSC Electrical Engineering Optional PYQ Solutions (1995–2026)

All 32 questions UPSC has asked on state-variable analysis in the Electrical Engineering Optional (Paper II, Control Systems) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Control Systems topic-wise PYQs page. Circuit diagrams have been redrawn from the question papers.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (SymPy and NumPy: circuit equations, power balance, matrices, integrals).
  • ✓ Proof checked step by step or ✓ Derivation checked step by step for “prove” and “derive” questions, every step was checked against the definitions and standard results.
  • ✓ Answer checked step by step for theory and descriptive questions, every point was checked against the standard theory.

Where a printed question is wrong, unclear or incomplete, we say so and solve the intended version.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 3a(ii) 2026 · 5a 2025 · 2a 2025 · 4a(ii) 2023 · 3a 2022 · 3b 2021 · 1a 2020 · 6a 2018 · 8b(i) 2017 · 8a 2016 · 8a(ii) 2015 · 3a 2014 · 8a(i) 2014 · 8a(ii) 2013 · 8a 2010 · 8a 2009 · 8a 2007 · 6a 2006 · 2a 2002 · 2a 2000 · 200w/1a 2000 · 6a 1999 · 4a 1998 · 3c 1997 · 200w/1c 1997 · 3c 1996 · 200w/1a 1996 · 2c 1996 · 3c 1995 · 200w/1a 1995 · 200w/1d 1995 · 3c

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

A linear time-invariant system is characterized by the homogeneous state equation. [ẋ1ẋ2]=[01−1−2][x1x2] Evaluate the solution of the homogeneous equation assuming the initial state vector as x(0)=[10].

2026 · Paper II · Q3a(ii) · 10 marks

Solution

Characteristic equation |sI−A|=∣s−11s+2∣=s2+2s+1=(s+1)2. The eigenvalue −1 is repeated.

State transition matrix (sI−A)−1=1(s+1)2[s+21−1s]. Using s+2(s+1)2=1s+1+1(s+1)2 and s(s+1)2=1s+1−1(s+1)2: ϕ(t)=eAt=e−t[1+tt−t1−t].

Solution for x(0)=[10]T x(t)=ϕ(t)x(0)=[(1+t)e−t−te−t]

Check. At t=0, x=[10]T. Also ẋ1=−te−t=x2 ✓.

Both states decay to zero without oscillation. The repeated root gives the te−t terms. x2 reaches its minimum of −1/e=−0.368 at t=1 s.

0 1 2 3 4 5 6 -0.4 0 0.5 1 t (s) x₁(t) x₂(t), min −0.368 at t = 1
Computed from x(t) = e^{At}x(0). On a phone, swipe sideways to see all of it.

✓ Checked by computer We obtained e^{At} by inverse Laplace transform in SymPy.

↑ Back to the question list

Write the state space equation for the following circuit.

V(t)RLCi(t)
Figure redrawn from the question paper. On a phone, swipe sideways to see all of it.

2026 · Paper II · Q5a · 10 marks

Solution

Choice of state variables. We take the energy-storage variables:

  • the inductor current, x1=i(t);
  • the capacitor voltage, x2=vC(t), positive at the top plate (where i enters).

KVL round the loop: V(t)=Ri+Ldidt+vC⇒didt=−RLi−1LvC+1LV(t).

Capacitor law: CdvCdt=i⇒dvCdt=1Ci.

State equation: [ẋ1ẋ2]=[−RL−1L1C0][x1x2]+[1L0]V(t)

Output equation. Taking the capacitor voltage as the output: y=vC=[01]x. If the current is wanted instead, y=[10]x.

Check. The characteristic equation s2+RLs+1LC=0 is that of the series RLC circuit.

✓ Derivation checked step by step We checked the state equations against KVL and the capacitor law symbolically.

↑ Back to the question list

An LTI system with the following state-space representation is given: ẋ=[010−0.5]x+[0k]u y=[10]x Design a phase lead compensator so that the system achieves a settling time of 2 seconds for a 2% tolerance band and has a damped natural frequency of 2 rad/s. Also realize the designed compensator using passive components.

2025 · Paper II · Q2a · 20 marks

Solution

Plant transfer function. From ẋ1=x2, ẋ2=−0.5x2+ku and y=x1: G(s)=Y(s)U(s)=ks(s+0.5).

Desired closed-loop poles

  • ts=4ζωn=2 s gives ζωn=2.
  • ωd=2 rad/s.

So the dominant poles are sd=−2±j2(ζ=0.707,ωn=2.83 rad/s).

Why compensation is needed. The uncompensated root locus is the vertical line σ=−0.25, so no gain can reach −2±j2.

Angle deficiency. At sd=−2+j2: ∠G(sd)=−[∠sd+∠(sd+0.5)]=−(135∘+126.87∘)=−261.87∘. The compensator must supply −180∘−(−261.87∘)=+81.87∘ of lead.

Choice of zero and pole. We place the compensator zero on the plant pole, at s=−0.5. It then contributes +126.87∘, so the compensator pole must contribute 126.87∘−81.87∘=45∘. A pole at s=−p seen from −2+j2 at 45∘ needs p−2=2, so p=4.

Gc(s)=Kcs+0.5s+4

Gain from the magnitude criterion. After the cancellation the loop is kKc/(s(s+4)). The closed loop is s2+4s+kKc=0, and we need ωn2=8: kKc=8⇒Gc(s)=8k⋅s+0.5s+4

Check: s2+4s+8=0 gives s=−2±j2. So ts=4/2=2 s and ωd=2 rad/s.

-5 -4 -3 -2 -1 1 -3j -2j -1j j 2j 3j σ jω target −2 + j2 (a) k/(s(s + 0.5)) -5 -4 -3 -2 -1 1 -3j -2j -1j j 2j 3j σ jω K = 8: −2 ± j2 (b) with lead: K/(s(s + 4))
Computed root loci (× poles; the compensator zero cancels the plant pole at −0.5). On a phone, swipe sideways to see all of it.

Passive realisation. For the network of C in parallel with R1 in the series arm and R2 as the shunt, VoVi=s+1R1Cs+1R1C+1R2C.

  • 1R1C=0.5 and 1R2C=4−0.5=3.5.
  • With C=1μF: R1=2 MΩ,R2=285.7 kΩ.

The network gives (s+0.5)/(s+4) exactly. Its DC attenuation is compensated by an amplifier (isolating buffer) of gain 8/k. For example, the gain is 8 if k=1.

C = 1 μFR1 = 2 MΩR2 = 285.7 kΩfrom e(t)to amplifier++
Lead network with the designed values; an amplifier of gain 8/k follows it. On a phone, swipe sideways to see all of it.

Note. The question leaves k unspecified, so the gain is given in terms of k.

✓ Checked by computer We applied the angle criterion numerically, checked the compensated closed-loop poles and the network values.

↑ Back to the question list

For the system shown in the figure below the unit step response is given by y(t)=1−1.15e−2tsin(3.464t+π3) Obtain the state-space representation of the system in observable canonical form.

R+−K/(s(s + a))Y
Figure redrawn from the question paper. On a phone, swipe sideways to see all of it.

2025 · Paper II · Q4a(ii) · 10 marks

Solution

Reading the step response. For a standard second-order system, y(t)=1−e−ζωnt1−ζ2sin(ωdt+ϕ),ϕ=cos−1ζ. Comparing with 1−1.15e−2tsin(3.464t+π/3):

  • ϕ=π/3, so ζ=0.5. Check: 1/1−0.25=1.155 ✓.
  • ζωn=2, so ωn=4 rad/s. Check: ωd=40.75=3.464 ✓.

Closed loop. The loop gives YR=Ks2+as+K=ωn2s2+2ζωns+ωn2=16s2+4s+16, so K=16 and a=4.

Observable canonical form. For YR=b1s+b0s2+a1s+a0 with a1=4, a0=16, b1=0, b0=16: ẋ=[0−a01−a1]x+[b0b1]r,y=[01]x.

ẋ=[0−161−4]x+[160]r,y=[01]x

Check. C(sI−A)−1B=16s2+4s+16 ✓. The observable form is the transpose (dual) of the controllable form.

✓ Checked by computer We identified K and a from the step response and checked the canonical form’s transfer function in SymPy.

↑ Back to the question list

Write the state and output equations for the system shown in the figure. Choose state variables x1 and x2 as shown in the figure. Check the controllability and observability of the system:

u+−−5/(s + 4)x₁1++y1/(s − 1)x₂
Figure redrawn from the question paper. On a phone, swipe sideways to see all of it.

2023 · Paper II · Q3a · 20 marks

Solution

Signals. Let e=u−x2 be the output of the first summing junction.

  • Upper path: X1=−5s+4E, so ẋ1=−4x1−5e.
  • Output: y=x1+e.
  • Feedback path: X2=1s−1Y, so ẋ2=x2+y.

Substituting e=u−x2:

  • ẋ1=−4x1+5x2−5u
  • ẋ2=x2+(x1+u−x2)=x1+u
  • y=x1−x2+u

State and output equations ẋ=[−4510]x+[−51]u,y=[1−1]x+u

Controllability Qc=[BAB]=[−5251−5],|Qc|=25−25=0. The rank is 1, so the system is not completely controllable.

Observability Qo=[CCA]=[1−1−55],|Qo|=0. The rank is 1, so the system is not completely observable.

Interpretation

  • The eigenvalues of A are +1 and −5.
  • The transfer function is YU=s−1s+5. Only the mode −5 appears; the pole at s=+1 cancels.
  • So the mode +1 is both uncontrollable and unobservable. This hidden mode is unstable: the transfer function looks stable, but the internal state x2 can grow.

✓ Checked by computer We derived the model from the block diagram and computed the rank tests and the transfer function in SymPy.

↑ Back to the question list

Consider the system ẋ=[01600−1−80048115003−3]x+[0010]u (i) Find the eigenvalues of this system. (ii) Find the controllable and uncontrollable modes of this system. (iii) Show that there are an infinite number of feedback gains K that will relocate the modes of the system to – 5, – 3, – 4, – 4. (iv) Find the unique matrix K that achieves these pole locations and prevents initial conditions on the uncontrollable part of the system from ever affecting the controllable part.

2022 · Paper II · Q3b · 20 marks

Solution

(i) Eigenvalues. A is block lower-triangular, with diagonal blocks A11=[016−1−8] and A22=[1153−3]:

  • |sI−A11|=s2+8s+16=(s+4)2, giving −4,−4.
  • |sI−A22|=s2+2s−48=(s−6)(s+8), giving 6,−8.

λ=−4,−4,6,−8

(ii) Controllable and uncontrollable modes

  • The input enters only ẋ3.
  • x3 and x4 never feed x1 or x2: the top-right block of A is zero.
  • So the subsystem (x1,x2) cannot be influenced by u.
  • The rank of [BABA2BA3B] is 2.

The uncontrollable modes are −4,−4 (from A11). The controllable modes are 6 and −8 (from A22, with B2=[10]T, a controllable pair).

(iii) Infinitely many gains. With u=−Kx, K=[k1k2k3k4], only row 3 of A changes: A−BK=[01600−1−8004−k18−k21−k315−k4003−3]. It stays block-triangular, so |sI−A+BK|=(s+4)2[s2+(2+k3)s+(3k3+3k4−48)]. To get poles at −5,−3 we need s2+8s+15:

  • 2+k3=8, so k3=6.
  • 3k3+3k4−48=15, so k4=15.

The poles −4,−4 are fixed. k1 and k2 do not appear in the characteristic polynomial at all, so any k1,k2 works: there are infinitely many gains. For example, [00615] and [12615] both give {−5,−3,−4,−4}.

(iv) The unique decoupling gain. Initial conditions on x1,x2 reach the controllable part only through the coupling entries 4−k1 and 8−k2 in row 3. Making them zero removes that path: k1=4,k2=8.

K‾=[48615] A−BK‾=[01600−1−80000−50003−3]. The eigenvalues are −4,−4,−5,−3, and the (x3,x4) dynamics are now independent of x1,x2.

✓ Checked by computer We computed the eigenvalues, the controllability rank and the closed-loop polynomial with a general K in SymPy, and checked the chosen K.

↑ Back to the question list

A system is described by the following state equations: ẋ1=x1+x2+3x3 ẋ2=2x1+3x2+u1 ẋ3=2x2+x3+u2 Check the controllability of the system.

2021 · Paper II · Q1a · 10 marks

Solution

State model A=[113230021],B=[001001].

Controllability matrix: AB=[133021],A2B=[10611681], Qc=[BABA2B]=[00131061030116012181].

Rank. The first three columns already give ∣001103012∣=1≠0, so rankQc=3=n.

The system is completely state controllable.

✓ Checked by computer We built the controllability matrix and found its rank in SymPy.

↑ Back to the question list

Two first-order systems are connected in cascade as shown in the figure below. Obtain the state-space representation of the system. Also check the controllability and observability of the system. u is the input to the system and y is the output.

u(s − 1)/(s + 1)1/(s − 1)y
Figure redrawn from the question paper. On a phone, swipe sideways to see all of it.

2020 · Paper II · Q6a · 20 marks

Solution

State model of each block

  • First block. s−1s+1=1−2s+1. With state x1: ẋ1=−x1+u,v=−2x1+u.

  • Second block. 1s−1, input v, state x2: ẋ2=x2+v=−2x1+x2+u,y=x2.

Overall model ẋ=[−10−21]x+[11]u,y=[01]x

Controllability AB=[−1−1],Qc=[1−11−1],|Qc|=0. The system is not controllable.

Observability CA=[−21],Qo=[01−21],|Qo|=2≠0. The system is observable.

Interpretation. The overall transfer function is s−1s+1⋅1s−1=1s+1. The zero of the first block at s=1 cancels the pole of the second block. Because the zero comes before the pole, the input cannot excite that mode: the unstable mode et is uncontrollable, but it is still visible at the output. If the order of the blocks were reversed, the mode would instead be controllable and unobservable.

✓ Checked by computer We derived the cascade model, its transfer function and the rank tests in SymPy.

↑ Back to the question list

Consider the block diagram of a system shown below:

E(s)K/(s(Ts + 1))θ(s)
Figure redrawn from the question paper. On a phone, swipe sideways to see all of it.

Write the differential equation relating θ to e and hence write the state model of the system choosing state variables as θ(t) and θ̇(t).

2018 · Paper II · Q8b(i) · 10 marks

Solution

Differential equation θ(s)E(s)=Ks(Ts+1)⇒(Ts2+s)θ(s)=KE(s). With zero initial conditions, Td2θdt2+dθdt=Ke(t)

State model. Let x1=θ and x2=θ̇. Then ẋ1=x2,ẋ2=−1Tx2+KTe.

[ẋ1ẋ2]=[010−1T][x1x2]+[0KT]e,θ=[10][x1x2]

Check. C(sI−A)−1B=K/Ts(s+1/T)=Ks(Ts+1) ✓.

✓ Derivation checked step by step We checked the state model’s transfer function in SymPy.

↑ Back to the question list

A continuous system has transfer function C(s)R(s)=3(s−2)(s+3)(s+4) Find out the state model of the system. Find out the state feedback gain K=[K1K2K3] such that the closed loop poles will be at −4, −3 and −2.

2017 · Paper II · Q8a · 20 marks

Solution

Denominator (s−2)(s+3)(s+4)=s3+5s2−2s−24. So CR=3s3+5s2−2s−24.

State model (phase-variable form). With x1=c/3, x2=ẋ1, x3=ẋ2: ẋ=[010001242−5]x+[001]r,c=[300]x The open loop is unstable, because of the pole at s=+2.

State feedback. Take r=−Kx (plus a reference input), with K=[K1K2K3]. Only the last row changes: A−BK=[01000124−K12−K2−5−K3]. Its characteristic polynomial is s3+(5+K3)s2+(K2−2)s+(K1−24).

Desired polynomial (s+4)(s+3)(s+2)=s3+9s2+26s+24.

Matching coefficients

  • 5+K3=9, so K3=4.
  • K2−2=26, so K2=28.
  • K1−24=24, so K1=48.

K=[48284]

Check. The eigenvalues of A−BK are −2,−3,−4 ✓.

✓ Checked by computer We checked the model’s transfer function and the closed-loop eigenvalues with the gain in SymPy.

↑ Back to the question list

Consider the system described by ∣ẋ1ẋ2∣=[−4−13−1][x1x2]+[11]u, y=[1,0][x1x2]. Obtain the transfer function of the system.

2016 · Paper II · Q8a(ii) · 10 marks

Solution

sI−A=[s+41−3s+1],|sI−A|=(s+4)(s+1)+3=s2+5s+7. (sI−A)−1=1s2+5s+7[s+1−13s+4]. (sI−A)−1B=1s2+5s+7[s+1−13+s+4]=1s2+5s+7[ss+7].

Transfer function Y(s)U(s)=C(sI−A)−1B=ss2+5s+7

✓ Checked by computer We computed C(sI − A)^{-1}B in SymPy.

↑ Back to the question list

The transfer function of a control system is given by Y(s)U(s)=s2+3s+4s3+2s2+3s+2 Derive the state model of the system in controllable phase variable form. Comment on the observability. What is the value of the smallest time constant of the system?

2015 · Paper II · Q3a · 20 marks

Solution

Controllable phase-variable form. For b2s2+b1s+b0s3+a2s2+a1s+a0 with a=(2,3,2) and b=(4,3,1): ẋ=[010001−2−3−2]x+[001]u,y=[431]x

Observability Qo=[CCACA2]=[431−211−2−5−1],|Qo|=16≠0. The model is completely observable.

Equivalently, there is no pole–zero cancellation:

  • the poles are −1 and −0.5±j1.32;
  • the zeros are −1.5±j1.32.

A controllable-form realisation is observable exactly when the numerator and denominator have no common factor.

Time constants. The denominator factors as (s+1)(s2+s+2).

  • The pole at −1 gives τ=1 s.
  • The complex pair has σ=−0.5, an envelope time constant of 2 s.

τmin=1 s This comes from the real pole at s=−1.

✓ Checked by computer We checked the model, the observability matrix and the poles in SymPy.

↑ Back to the question list

A system is modelled in state-space form as Ẋ=[010001−1−7−5]X+[001]u C=[340]. Draw the signal flow graph and obtain the transfer function.

2014 · Paper II · Q8a(i) · 10 marks

Solution

Signal flow graph. The state equations are ẋ1=x2,ẋ2=x3,ẋ3=−x1−7x2−5x3+u,y=3x1+4x2. Each integrator is a branch 1/s.

u ẋ₃ x₃ x₂ x₁ y 1 1/s 1/s 1/s 3 −5 −7 −1 4
Signal flow graph drawn from the state equations. On a phone, swipe sideways to see all of it.

Mason’s gain formula

  • Forward paths from u to y:
    • P1=1⋅1s⋅1s⋅1s⋅3=3s3
    • P2=1⋅1s⋅1s⋅4=4s2
  • Loops: L1=−5s, L2=−7s2, L3=−1s3. They all touch each other at ẋ3.
  • Δ=1+5s+7s2+1s3.
  • Both forward paths touch every loop, so Δ1=Δ2=1.

YU=3s3+4s21+5s+7s2+1s3=4s+3s3+5s2+7s+1

✓ Checked by computer We computed C(sI − A)^{-1}B in SymPy and checked it against Mason’s formula.

↑ Back to the question list

Define state controllability of a system. Apply the controllability test to determine the controllability of a system modelled by the state-space model as Ẋ=[−2−200010−3−4]X+[100111][u1u2] y=[110]X.

2014 · Paper II · Q8a(ii) · 10 marks

Solution

Definition. A system Ẋ=AX+BU is completely state controllable if, for every initial state X(t0), some unconstrained input U(t) can transfer the state to any desired final state (in particular the origin) in a finite time.

Kalman test. The system is controllable if and only if rank[BAB⋯An−1B]=n.

Test for the given model (n=3) AB=[−2−211−4−7],A2B=[22−4−71325], Qc=[10−2−2220111−4−711−4−71325].

Taking columns 1, 2 and 3: ∣10−201111−4∣=1(−4−1)−0+(−2)(0−1)=−3≠0. So rankQc=3. (Already [BAB] has rank 3.)

The system is completely state controllable. The output matrix plays no part in this test.

✓ Checked by computer We computed the controllability matrix and its rank in SymPy.

↑ Back to the question list

A control system is represented by the state space equations: ẋ1=x2 ẋ2=x3−u1 ẋ3=−2x2−3x3+u2 and the output equations are: y1=x1+3x2+2u1 y2=x2 Draw the state transition signal flow graph and find the characteristic roots of the system.

2013 · Paper II · Q8a · 20 marks

Solution

Matrices A=[0100010−2−3],B=[00−1001],C=[130010],D=[2000].

State transition signal flow graph. Each state is the output of an integrator (1/s) whose input is ẋi.

  • ẋ3 is fed by u2 (gain 1), by x3 (gain −3) and by x2 (gain −2).
  • ẋ2 is fed by x3 (gain 1) and by u1 (gain −1).
  • ẋ1=x2.
  • The outputs are taken through gains 1, 3 and 2 (into y1) and 1 (into y2).

In the full state transition graph, each integrator also has a branch xi(0)/s entering its output node. These are omitted below for clarity.

u₂ ẋ₃ x₃ ẋ₂ x₂ ẋ₁ x₁ y₁ 1 1/s 1 1/s 1 1/s 1 −3 −2 u₁ −1 2 3 y₂ 1
State diagram (signal flow graph) drawn from the state and output equations; initial-condition branches x(0) are omitted. On a phone, swipe sideways to see all of it.

Characteristic roots |sI−A|=∣s−100s−102s+3∣=s[s(s+3)+2]=s(s+1)(s+2). From the graph (Mason’s Δ), the loops are −3/s and −2/s2, which touch, so Δ=1+3/s+2/s2. This is the same polynomial.

s=0,−1,−2 The root at the origin, from the pure integration x1=∫x2, makes the system only marginally stable.

✓ Checked by computer We computed the characteristic polynomial in SymPy.

↑ Back to the question list

A system is described by the following state variable equation [ẋ1ẋ2ẋ3]=[121013111][x1x2x3]+[101]u (i) Find its characteristic equation. (ii) Determine the controllability matrix. (iii) Is the system controllable?

2010 · Paper II · Q8a · 20 marks

Solution

(i) Characteristic equation |sI−A|=∣s−1−2−10s−1−3−1−1s−1∣ =(s−1)[(s−1)2−3]+2[0−3]−1[0+(s−1)] =(s−1)3−3(s−1)−6−(s−1). s3−3s2−s−3=0 (The system is unstable: it has a sign change, and a real root near 3.5.)

(ii) Controllability matrix B=[101],AB=[232],A2B=A[232]=[1097]. Qc=[1210039127]

(iii) Is it controllable? |Qc|=1(21−18)−2(0−9)+10(0−3)=3+18−30=−9≠0. So rankQc=3, and the system is completely controllable. All its modes, including the unstable one, can be moved by state feedback.

✓ Checked by computer We computed the characteristic polynomial, the controllability matrix and its determinant in SymPy.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Consider the state equation: [ẋ1(t)ẋ2(t)]=[01−2−3][x1(t)x2(t)]+[01]r(t). Find the state vector X(t) for t≥0 when the input r(t) is a unit step input.

2009 · Paper II · Q8a · 20 marks

Solution

Resolvent sI−A=[s−12s+3],(sI−A)−1=1(s+1)(s+2)[s+31−2s].

Zero-state response to a unit step, R(s)=1/s (with X(0)=0, since none is given): X(s)=(sI−A)−1B1s=[1s(s+1)(s+2)1(s+1)(s+2)].

Partial fractions: 1s(s+1)(s+2)=1/2s−1s+1+1/2s+2,1(s+1)(s+2)=1s+1−1s+2.

X(t)=[12−e−t+12e−2te−t−e−2t],t≥0

Checks

  • ẋ1=e−t−e−2t=x2 ✓.
  • x1(∞)=12, the steady state where 2x1=1.
0 1 2 3 4 5 6 0 0.1 0.2 0.25 0.3 0.4 0.5 t (s) x₁(t) = y(t) → 0.5 x₂ peak 0.25
Computed from the closed-form solution. On a phone, swipe sideways to see all of it.

If an initial state X(0) were present, the free response ϕ(t)X(0) would be added, with ϕ(t)=[2e−t−e−2te−t−e−2t−2e−t+2e−2t−e−t+2e−2t].

✓ Checked by computer We solved X(s) = (sI − A)^{-1}B/s and inverted it in SymPy.

↑ Back to the question list

x_=[−10−0.3750−1−0.375111]x_+[00−1]u Given that the above is a linear time-invariant (LTI) system, how would you check the stability of the system? If there is an unstable mode in the system, is it controllable? If the unstable mode is controllable shift it to a stable position, say λ=−0.5, by state feedback.

2007 · Paper II · Q6a · 20 marks

Solution

Checking stability. An LTI system ẋ=Ax+Bu is asymptotically stable if and only if every eigenvalue of A (every root of |sI−A|=0) has a negative real part. |sI−A|=s3+s2−0.25s−0.25=(s+1)(s−0.5)(s+0.5). The eigenvalues are −1,+0.5,−0.5. There is one unstable mode, at λ=0.5.

Is the unstable mode controllable? A mode λi is controllable if its left eigenvector wi (with wiTA=λiwiT) satisfies wiTB≠0.

λ wT wTB
−1 [−110] 0 uncontrollable
+0.5 [2/32/31] −1 controllable
−0.5 [221] −1 controllable

The rank of [BABA2B] is 2, which confirms that one mode, −1, is uncontrollable. Physically, x1−x2 obeys (x1−x2)̇=−(x1−x2) whatever u is.

Shifting the unstable mode to −0.5. With u=−Kx, K=[f1f2f3]: |sI−A+BK|=s3+(1−f3)s2+(g−2f3−14)s+(g−f3−14),g=38(f1+f2). We keep −1 (it cannot move) and −0.5, and move +0.5 to −0.5: (s+1)(s+0.5)2=s3+2s2+1.25s+0.25.

Matching coefficients:

  • 1−f3=2, so f3=−1.
  • g+2−0.25=1.25, so g=−0.5.
  • The constant term gives g+1−0.25=0.25, so g=−0.5 ✓.

So f1+f2=−43. With the symmetric choice: K=[−23−23−1],u=−Kx=23x1+23x2+x3 The closed-loop eigenvalues are −1,−0.5,−0.5, so the system is now stable. Only f1+f2 matters, because the uncontrollable direction x1−x2 cannot be affected.

✓ Checked by computer We computed the eigenvalues, the left eigenvectors (mode controllability) and the gain in SymPy.

↑ Back to the question list

What do you mean by a state transition Matrix? State and explain properties of state transition Matrix. A process control system is described by the state model: Ẋ=[−1−0.501]X+[0.50]u Y=[10]X and X0=0 Use Laplace Transform method to obtain state transition matrix ϕ(t) for the system.

2006 · Paper II · Q2a · 20 marks

Solution

State transition matrix. For Ẋ=AX, the solution is X(t)=ϕ(t)X(0), where ϕ(t)=eAt=ℒ−1[(sI−A)−1]. It “transfers” the state from time 0 to time t, and contains the complete free (natural) response of the system.

Properties

  1. ϕ(0)=I.
  2. ϕ−1(t)=ϕ(−t), so ϕ is always invertible.
  3. ϕ(t2−t0)=ϕ(t2−t1)ϕ(t1−t0), the transition property.
  4. ϕ(t1+t2)=ϕ(t1)ϕ(t2), and [ϕ(t)]k=ϕ(kt).
  5. dϕdt=Aϕ=ϕA, so ϕ satisfies the homogeneous equation.
  6. With an input: X(t)=ϕ(t)X(0)+∫0tϕ(t−τ)Bu(τ)dτ.

For the given system sI−A=[s+10.50s−1],(sI−A)−1=[1s+1−0.5(s+1)(s−1)01s−1]. Using partial fractions, −0.5(s+1)(s−1)=−0.25(1s−1−1s+1).

ϕ(t)=[e−t−0.25(et−e−t)0et]=[e−t−12sinht0et]

Check. ϕ(0)=I ✓. The et terms show an unstable mode, at λ=+1.

Since X0=0, the free response is zero, and the output is due to u alone.

✓ Checked by computer We obtained φ(t) by inverse Laplace transform in SymPy.

↑ Back to the question list

A system is represented by state equation X = AX. If for X(0)=[1−32] the response is X(t)=[e−2t−32e−2t] And for X(0)=[1−1] X(t)=[e−t−e−t] Determine the state transition matrix.

2002 · Paper II · Q2a · 20 marks

Solution

The two given responses are modal solutions. Each initial state is an eigenvector, and the state stays along it:

  • v1=[1−32]T, with λ1=−2.
  • v2=[1−1]T, with λ2=−1.

Since X(t)=Φ(t)X(0) for both, Φ(t)[v1v2]=[v1e−2tv2e−t]⇒Φ(t)=Mdiag(e−2t,e−t)M−1, M=[11−32−1],M−1=10.5[−1−1321]=[−2−232].

Φ(t)=[3e−t−2e−2t2e−t−2e−2t−3e−t+3e−2t−2e−t+3e−2t]

Checks

  • Φ(0)=I ✓.
  • Φ[1−1]T=[e−t−e−t]T ✓.
  • The system matrix is A=Φ̇(0)=[12−3−4], with eigenvalues −1 and −2.

(The printed “X = AX” means Ẋ=AX.)

✓ Checked by computer We built Φ from the two modal solutions and checked Φ(0) = I and A in SymPy.

↑ Back to the question list

Select any three of the following statements, read them carefully and identify the correct and the incorrect ones. Justify your answer using not more than 200 words in each case. State variable approach for analysis is applicable only to linear time invariant systems.

2000 · Paper II · Q200w/1a · 20 marks

Solution

Incorrect.

The state-variable approach is the most general method of system analysis. The model ẋ=f(x,u,t),y=g(x,u,t) describes:

  • nonlinear systems (for example a pendulum, ẋ2=−glsinx1);
  • time-varying systems, ẋ=A(t)x+B(t)u;
  • multi-input, multi-output systems;
  • discrete-time systems.

It also handles non-zero initial conditions directly.

Transfer-function methods are the ones restricted to linear time-invariant, single-input single-output systems with zero initial conditions. This generality is a main advantage of state variables. The matrix form ẋ=Ax+Bu with constant matrices is just the LTI special case. Stability of nonlinear state models is studied by Lyapunov’s method or by phase-plane analysis.

✓ Answer checked step by step Standard result.

↑ Back to the question list

A system is described by the following state and output equations Ẋ=[01−2−3]X+[01]U And Y=[10]X where u(t) is a unit step input and the initial conditions X1(0)=0, X2(0)=0. Obtain the time response of the system.

2000 · Paper II · Q6a · 20 marks

Solution

Zero-state response to a unit step

The resolvent is (sI−A)−1=1(s+1)(s+2)[s+31−2s]. With X(0)=0 and U=1/s: X(s)=(sI−A)−1B1s=[1s(s+1)(s+2)1(s+1)(s+2)].

States x1(t)=12−e−t+12e−2t,x2(t)=e−t−e−2t.

Output y(t)=x1(t)=12−e−t+12e−2t,t≥0 Equivalently, Y(s)/U(s)=1s2+3s+2.

The response is overdamped (poles at −1 and −2). It rises from 0 with zero initial slope to the final value 0.5.

0 1 2 3 4 5 6 0 0.1 0.2 0.25 0.3 0.4 0.5 t (s) x₁(t) = y(t) → 0.5 x₂ peak 0.25
Computed from the closed-form solution. On a phone, swipe sideways to see all of it.

✓ Checked by computer We solved the state equation by Laplace transform in SymPy.

↑ Back to the question list

Enumerate states and state variable representation of a dynamic system. Determine, by Routh array, whether a system represented by characteristic equation. s3+4s2+8s+11=0 is stable or not.

1999 · Paper II · Q4a · 20 marks

Solution

State. The state of a dynamic system is the smallest set of variables (the state variables) whose values at t=t0, together with the inputs for t≥t0, completely determine the behaviour of the system for all t≥t0.

State variables are the members of that set. They are usually chosen as the outputs of the energy-storing elements, such as capacitor voltages, inductor currents, positions and velocities, or of the integrators. They need not be measurable. The n state variables form the state vector x(t), and the n-dimensional space they span is the state space.

State-variable representation. An n-th order system with m inputs and p outputs is written as n first-order equations: ẋ=Ax+Bu(state equation),y=Cx+Du(output equation).

  • A (n×n) is the system matrix.
  • B (n×m) is the input matrix.
  • C (p×n) is the output matrix.
  • D (p×m) is the direct transmission matrix.

The representation is not unique: phase-variable, canonical and physical-variable forms all describe the same system.

Routh array for s3+4s2+8s+11=0

s3 1 8
s2 4 11
s1 4×8−114=5.25 0
s0 11

There is no sign change in the first column, so there are no roots in the right half-plane. The system is stable. Its roots are −2.55 and −0.72±j1.95.

✓ Checked by computer We checked the Routh array and the roots numerically.

↑ Back to the question list

The state equations for a system are given by X=AX+Bu Y=CX+Du where A=[−1000−2000−3], B=[1−21], C=[111] and D=[000] Determine the output response of a system to unit step input.

1998 · Paper II · Q3c · 20 marks

Solution

Decoupled states. A is diagonal, so each state is a first-order system driven by u. With a unit step and zero initial state:

  • ẋ1=−x1+u, so x1=1−e−t.
  • ẋ2=−2x2−2u, so x2=−(1−e−2t).
  • ẋ3=−3x3+u, so x3=13(1−e−3t).

Output y=x1+x2+x3=(1−e−t)−(1−e−2t)+13(1−e−3t).

y(t)=13−e−t+e−2t−13e−3t,t≥0

Check by transfer function C(sI−A)−1B=1s+1−2s+2+1s+3=2(s+1)(s+2)(s+3), which gives y(∞)=2/6=1/3 ✓.

0 1 2 3 4 5 6 0 0.1 0.2 0.3 0.4 t (s) 1/3
Computed from the closed-form solution. On a phone, swipe sideways to see all of it.

Note. D is printed as a 3×1 zero vector. For one input and one output it must be the scalar 0; either way it adds nothing.

✓ Checked by computer We computed the transfer function and inverted Y(s) in SymPy.

↑ Back to the question list

Select any three of the following statements, read them carefully and identify the correct and the incorrect ones. Justify your answer using not more than 200 words in each case. If in the state variable description of a system, A matrix is singular, then the system is unstable.

1997 · Paper II · Q200w/1c · 20 marks

Solution

Incorrect as a general statement.

If A is singular, then |A|=0. Since |A| is the product of the eigenvalues, at least one eigenvalue is at s=0. The response then contains a constant (non-decaying) mode, so the system is not asymptotically stable. But that does not make it unstable:

  • Simple zero eigenvalue, all other eigenvalues in the left half-plane. The zero-input response stays bounded and settles to a constant. The system is marginally stable (stable in the sense of Lyapunov). An example is a pure integrator, A=[0], or a type-1 plant like ẋ=[010−2]x. A unity-feedback loop around such a plant can be perfectly stable.
  • Repeated zero eigenvalue with a Jordan block, such as A=[0100]. The response grows like t, so the system is unstable.
  • Any eigenvalue in the right half-plane. Unstable, whether or not A is singular.

So a singular A only rules out asymptotic stability. Whether the system is marginally stable or unstable depends on the multiplicity (Jordan structure) of the zero eigenvalue and on the other eigenvalues.

✓ Answer checked step by step Standard result.

↑ Back to the question list

What do you understand by the term controllability of a system? State the necessary and sufficient conditions to be satisfied by the coefficient matrices of a system, so that the system is completely controllable. Hence check the controllability of a system having for its state description, the matrices: A=[010001−10.5−2] B=[001]

1997 · Paper II · Q3c · 20 marks

Solution

Controllability. A system ẋ=Ax+Bu is completely state controllable if every initial state can be driven to any desired state (for example the origin) in a finite time by some unconstrained control u(t).

Necessary and sufficient condition (Kalman). The n×nm controllability matrix Qc=[BABA2B⋯An−1B] must have rank n. For a single input, this means |Qc|≠0.

Two equivalent tests:

  • In diagonal (Jordan) form, no row of the transformed B belonging to a distinct eigenvalue may be zero.
  • PBH test: rank[λI−AB]=n for every eigenvalue λ.

Check for the given system B=[001],AB=[01−2],A2B=[1−24.5]. Qc=[00101−21−24.5],|Qc|=−1≠0. The rank is 3, so the system is completely controllable. This is expected: (A,B) is in phase-variable (companion) form, which is always controllable.

✓ Checked by computer We computed the controllability matrix and its determinant in SymPy.

↑ Back to the question list

Select any three of the following statements, read them carefully and identify the correct and incorrect ones. Justify your answer using not more than 200 words in each case. State equations are first order differential equations that can be applied to portray only the linear time-invariant systems.

1996 · Paper II · Q200w/1a · 20 marks

Solution

Incorrect.

State equations are a set of n first-order differential equations, ẋ=f(x,u,t), and they can portray:

  • nonlinear systems, where f is a nonlinear function. Examples are a pendulum (ẋ2=−glsinx1), saturating amplifiers and magnetic levitation.
  • time-varying systems, ẋ=A(t)x+B(t)u, such as a rocket whose mass changes as fuel burns.
  • discrete-time systems, x(k+1)=f(x(k),u(k)).
  • multivariable systems.

The linear time-invariant form ẋ=Ax+Bu, y=Cx+Du is only a special case. The first part of the statement, that state equations are first-order differential equations, is correct; the restriction to LTI systems is wrong. It is the transfer-function description that is limited to LTI systems.

✓ Answer checked step by step Standard result.

↑ Back to the question list

Obtain the state equations in (i) the controller form, and (ii) and observer form for the transfer function G(s) given by G(s)=3s2+5s+7s4+5s3+18s2+29s+35

1996 · Paper II · Q2c · 20 marks

Solution

Reading the denominator. The printed “s4” is s4: G(s)=3s2+5s+7s4+5s3+18s2+29s+35. Here a3=5, a2=18, a1=29, a0=35, and b2=3, b1=5, b0=7.

(i) Controller (controllable phase-variable) form ẋ=[010000100001−35−29−18−5]x+[0001]u,y=[7530]x.

(ii) Observer form (the dual: Ao=AcT, Bo=CcT, Co=BcT) ẋ=[000−35100−29010−18001−5]x+[7530]u,y=[0001]x.

Both give C(sI−A)−1B=G(s), and D=0 since G is strictly proper.

Some texts number the states in reverse. The controller form then has the top row [−5−18−29−35] with B=[1000]T and C=[0357]. This is the same model with the states reordered.

✓ Checked by computer We checked that both realisations give G(s) in SymPy.

↑ Back to the question list

A system is described by X=AX+BU Y=CX where A=[01−810−502−6]; B=[210] and C=[121] Determine whether the system is stable.

1996 · Paper II · Q3c · 20 marks

Solution

Stability. The stability of Ẋ=AX+BU is decided by the eigenvalues of A: |sI−A|=∣s−18−1s50−2s+6∣ =s[s(s+6)+10]+1[−(s+6)−0]+8[2] =s3+6s2+10s−s−6+16. |sI−A|=s3+6s2+9s+10.

Routh array

s3 1 9
s2 6 10
s1 54−106=7.33
s0 10

There is no sign change, so all eigenvalues lie in the left half-plane. They are −4.49 and −0.754±j1.288.

The system is asymptotically stable. The transfer function 4s2+31s+38s3+6s2+9s+10 has the same poles, so it is also BIBO stable.

✓ Checked by computer We computed the characteristic polynomial and the eigenvalues in SymPy and numerically.

↑ Back to the question list

Select any three of the following statements, read them carefully and identify the correct and incorrect ones. Justify your answer using not more than 200 words in each case. Real parts of the Eigen values of a stable system are always positive.

1995 · Paper II · Q200w/1a · 20 marks

Solution

Incorrect.

The free response of ẋ=Ax is a combination of the modes eλit (times powers of t for repeated eigenvalues). Write λi=σi+jωi. Then eλit=eσit(cosωit+jsinωit):

  • If σi<0, the mode decays to zero.
  • If σi>0, it grows without bound.

So a system is asymptotically stable only if the real parts of all its eigenvalues are negative. Any eigenvalue with a positive real part makes the system unstable. Zero real parts (simple eigenvalues on the jω axis) give marginal stability.

The correct statement is: the real parts of the eigenvalues of a stable system are always negative.

✓ Answer checked step by step Standard result.

↑ Back to the question list

Select any three of the following statements, read them carefully and identify the correct and incorrect ones. Justify your answer using not more than 200 words in each case. State variable method of analysis can be applied both to linear and non-linear systems.

1995 · Paper II · Q200w/1d · 20 marks

Solution

Correct.

The state-variable method writes any n-th order lumped system as n first-order equations, ẋ=f(x,u,t),y=g(x,u,t). This form does not need linearity or time-invariance.

  • Linear systems. f is linear, ẋ=Ax+Bu (or A(t), B(t) if time-varying). The solution uses the state transition matrix, and gives controllability, observability and pole placement.
  • Nonlinear systems. The same equations are solved numerically or analysed qualitatively:
    • equilibrium points from f(xe,ue)=0;
    • linearisation about them, with the Jacobian A=∂f/∂x;
    • phase-plane trajectories;
    • Lyapunov’s direct method for stability.
    For example, the pendulum ẋ1=x2, ẋ2=−glsinx1−bmx2 is a nonlinear state model.

The method also covers time-varying, multivariable and discrete-time systems. Transfer-function methods, by contrast, apply only to linear time-invariant systems.

✓ Answer checked step by step Standard result.

↑ Back to the question list

A linear control system is described by the following equations in state-space domain: [x1x2]=[−201−1][x1x2]+[01]u(t) y=[−12][x1x2]+[1]u(t) Find the transfer function of the system.

1995 · Paper II · Q3c · 20 marks

Solution

(The left-hand side is printed without dots. It is the state equation ẋ=Ax+Bu.)

Resolvent sI−A=[s+20−1s+1],(sI−A)−1=1(s+1)(s+2)[s+101s+2]. (sI−A)−1B=1(s+1)(s+2)[0s+2]=[01s+1].

Transfer function G(s)=C(sI−A)−1B+D=[−12][01s+1]+1=2s+1+1 G(s)=s+3s+1

Remark. The eigenvalue −2 does not appear in G(s). The input does not reach x1, so the mode at −2 is uncontrollable and is cancelled. The transfer function is therefore of lower order than the state model.

✓ Checked by computer We computed C(sI − A)^{-1}B + D in SymPy.

↑ Back to the question list

More on Control Systems

Questions: UPSC Civil Services (Main) Examination, Electrical Engineering Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted