3.5.29 · D3 · HinglishGuidance, Navigation & Control (GNC)

Worked examplesState-space representation — x' = Ax + Bu, y = Cx + Du

3,377 words15 min read↑ Read in English

3.5.29 · D3 · Physics › Guidance, Navigation & Control (GNC) › State-space representation — x' = Ax + Bu, y = Cx + Du

Yeh page ek drill room hai. Parent note mein ideas banaye gaye the; yahan hum har tarah ki situation ko tackle karte hain jo state-space form de sakta hai, ek worked example per cell.


The scenario matrix

Har state-space problem in cells mein se kisi ek mein aata hai. Har row ek case class hai; last column batata hai kaunsa worked example use cover karta hai.

# Case class Jo cheez vary karti hai Jo galat nahi hona chahiye Example
C1 Ek physical ODE se banana order , kaun sa state choose kiya derivatives ko states name karna Ex 1
C2 Eigenvalues: dono real aur negative real, distinct stable, non-oscillating decay Ex 2
C3 Eigenvalues: complex, negative real part decaying oscillation Ex 3
C4 Eigenvalues: pure imaginary () degenerate boundary undamped ring, marginal Ex 4
C5 Positive real part wala eigenvalue unstable — blows up Ex 5
C6 Repeated real negative eigenvalue critically damped, term Ex 6
C7 Zero eigenvalue () neutral mode constant, non-decaying direction Ex 7
C8 Forced response, constant input , steady state zero-state term, Ex 8
C9 Nonzero feedthrough direct shortcut dikhta hai mein Ex 9
C10 State-space transfer function ko invert karo poles = eigenvalues Ex 10
C11 Coordinate change (non-uniqueness) sab transform hote hain Ex 11
C12 Word problem / exam twist (MIMO) , columns, rows Ex 12

Jo prerequisites hum use karte hain: Eigenvalues and stability, Matrix exponential, Transfer functions and G(s).


Ex 1 — Matrices banana (cell C1)

Step 1 — states choose karo. Kyun? System ki memory yahi hai ki woh kahan hai aur kitni tez chal raha hai, isliye

Step 2 — ODE normalize karo. Kyun? State-space ko akele left side pe chahiye, toh leading coefficient se divide karo:

Step 3 — har derivative likho. Kyun? Humein purely aur ke terms mein chahiye:

Step 4 — stack karo. Kyun? Computer ke liye ek clean matrix object:

Yahan (do states), (ek input ), (ek measured output ) — ek SISO system.


Ex 2 — Do real negative eigenvalues (cell C2)

Step 1 — characteristic equation likho. Kyun? Eigenvalues woh numbers hain jahan , aur yahi govern karte hain:

Step 2 — factor karo. Kyun? Hum actual roots chahte hain:

Step 3 — physics padho. Kyun? Har eigenvalue motion mein contribute karta hai. Dono real aur negative hain → do decaying exponentials, imaginary part nahi matlab koi oscillation nahi. Neeche figure mein, ke liye solid decay curve monotonically zero ki taraf jaati hai aur dashed zero line ko kabhi cross nahi karti — legend mein label hai aur dono axes seconds aur state units mein marked hain.

Figure — State-space representation — x' = Ax + Bu, y = Cx + Du

Ex 3 — Complex eigenvalues, negative real part (cell C3)

Step 1 — characteristic equation. Kyun? Same reason: ke roots dynamics set karte hain:

Step 2 — quadratic formula. Kyun? Discriminant humein real vs complex batata hai: Discriminant negative hai → complex roots.

Step 3 — decode karo. Kyun? Ek complex pair ka matlab hai ki mein aur hota hai: frequency pe ek oscillation envelope ke andar. Yahan → envelope shrink hoti hai; rad/s.

Figure mein, ke liye solid oscillating curve wiggle karti hai lekin uske peaks do dashed envelope curves ke andar rehte hain jo zero ki taraf squeeze hoti hain; legend mein har cheez name hai aur axes labelled hain.

Figure — State-space representation — x' = Ax + Bu, y = Cx + Du

Ex 4 — Pure imaginary eigenvalues, boundary case (cell C4)

Step 1 — characteristic equation. Kyun? Same tool:

Step 2 — aur padho. Kyun? Yahan exactly hai. Envelope kabhi badhti ya ghatti nahi. rad/s.

Step 3 — classify karo. Kyun? na hai na marginally stable (razor's edge). Yeh Ex 3 (stable) aur Ex 5 (unstable) ke beech ka degenerate boundary hai.

Figure mein solid curve hamesha same peak height pe return karti hai; axes labelled hain aur ek arrow mark karta hai ki amplitude kabhi nahi badlti.

Figure — State-space representation — x' = Ax + Bu, y = Cx + Du

Ex 5 — Positive-real-part eigenvalue: instability (cell C5)

Step 1 — characteristic equation. Kyun? Roots fate decide karte hain:

Step 2 — signs inspect karo. Kyun? Ek bhi eigenvalue ke saath poore system ko unstable bana deta hai. Yahan .

Step 3 — physical meaning. Kyun? term bina bound ke badhta hai → pendulum gir jaata hai. Koi bhi initial condition (siwaaye exactly balance pe baithne ke) isse avoid nahi kar sakti.

Figure mein solid curve plot ke upar se shoot karti hai; axes labelled hain aur ek arrow "runs away" mark karta hai.

Figure — State-space representation — x' = Ax + Bu, y = Cx + Du

Ex 6 — Repeated real negative eigenvalue: critical damping (cell C6)

Step 1 — characteristic equation. Kyun? Same eigenvalue tool:

Step 2 — factor karo. Kyun? Roots dhundho aur notice karo ki yeh coincide karte hain: Discriminant exactly hai — real-distinct aur complex ke beech razor's edge.

Step 3 — physics padho. Kyun? Jab koi eigenvalue repeat hota hai, mein sirf nahi balki bhi hota hai (repeated root ke liye ka ek extra factor). Toh Dono pieces phir bhi decay karte hain kyunki eventually badhte ko beat kar leta hai. Yeh hai critical damping: koi oscillation ke bina rest pe sabse tezi se return.

Figure mein, ke liye solid critically-damped curve (starting velocity ke saath) ek single hump tak uthti hai phir zero tak decay hoti hai bina kabhi cross kiye — legend aur axes labelled hain, aur isse pure envelope se compare kiya gaya hai.

Figure — State-space representation — x' = Ax + Bu, y = Cx + Du

Ex 7 — Zero eigenvalue: ek neutral (constant) mode (cell C7)

Step 1 — characteristic equation. Kyun? Same tool:

Step 2 — interpret karo. Kyun? Mode contribute karta hai : ek constant jo na badhta hai na ghatta hai. mode contribute karta hai , jo khatam ho jaata hai. Toh velocity decay karti hai, lekin final position kisi nonzero value pe frozen hai.

Step 3 — classify karo. Kyun? Ek eigenvalue ke liye matlab system neutrally (marginally) stable hai: yeh blow up nahi karta, lekin origin pe bhi return nahi karta. Ek constant offset hamesha ke liye rehta hai.

Figure mein, solid position curve uthti hai phir ek nonzero constant pe flatten ho jaati hai (frozen position), jabki dashed velocity curve zero tak decay karti hai — axes aur legend labelled hain.


Ex 8 — Forced response with constant input (cell C8)

Step 1 — solution formula yaad karo. Kyun? Parent ne derive kiya tha ; ke saath scalar ke liye yeh ek plain integral hai:

Step 2 — integral karo. Kyun? Hum explicit chahte hain. bahar nikalo:

Step 3 — limit lo. Kyun? Steady state hai ; kyunki : Yeh forecast se match karta hai. Figure mein solid curve uthti hai aur dashed line pe flatten ho jaati hai; axes aur legend labelled hain.


Ex 9 — Nonzero feedthrough (cell C9)

Step 1 — state ka steady state. Kyun? set karo: .

Step 2 — output banao. Kyun? dono state aur direct shortcut use karta hai:

Step 3 — instant part. Kyun? pe ke saath, state abhi nahi hila, lekin — output turant jump karta hai ki wajah se. ko drop karne par galti se milega.


Ex 10 — State-space se transfer function (cell C10)

Step 1 — form karo. Kyun? Parent formula hai :

Step 2 — invert karo. Kyun? chahiye; ek matrix ke liye, diagonal swap karo, off-diagonal negate karo, determinant se divide karo:

Step 3 — assemble karo. Kyun? multiply karo (aur ):


Ex 11 — Coordinate change: same system, naye kapde (cell C11)

Step 1 — invert karo. Kyun? Har transformed matrix ko chahiye:

Step 2 — transform karo. Kyun? new dynamics hai:

Step 3 — , , transform karo. Kyun? Ek coordinate change charon matrices ko touch karta hai, sirf ko nahi:

\tilde C = CT^{-1} = \begin{bmatrix}1&0\end{bmatrix}\begin{bmatrix}1&0\\-1&1\end{bmatrix}=\begin{bmatrix}1&0\end{bmatrix},\quad \tilde D = D = 0.$$ **Step 4 — eigenvalues check karo.** *Kyun?* $\tilde A$ upper-triangular hai, toh eigenvalues diagonal par hain: $-1$ aur $-2$ — $A$ ke identical. > [!recall] Verify karo > $\mathrm{trace}(\tilde A)=-3=\mathrm{trace}(A)$ aur $\det(\tilde A)=2=\det(A)$: same eigenvalues. Aur transfer function invariant hai — aap check kar sakte ho $\tilde C(sI-\tilde A)^{-1}\tilde B+\tilde D$ same $1/(s^2+3s+2)$ deta hai. ✅ --- ## Ex 12 — MIMO word problem / exam twist (cell C12) > [!example] Ek chhota rocket: do inputs, do outputs > Ek rocket ki lateral dynamics ko model kiya gaya hai: > $$\dot x = \begin{bmatrix}0&1\\-4&-2\end{bmatrix}x + \begin{bmatrix}0&0\\1&0.5\end{bmatrix}\begin{bmatrix}u_1\\u_2\end{bmatrix},\qquad y=\begin{bmatrix}1&0\\0&1\end{bmatrix}x.$$ > Yahan $u_1$=main thrust deflection, $u_2$=reaction jet. (a) Sizes $n,m,p$ batao. (b) Steady state pe $u_1=2,u_2=0$ ke saath, $x_\infty$ dhundho. (c) Kya open-loop system stable hai? > > **Forecast:** $n=2,m=2,p=2$. Steady inputs ke saath, $\dot x=0$ set karo aur ek $2\times2$ system solve karo. Damping term $-2$ stability suggest karta hai. **Step 1 — sizes.** *Kyun?* Page ke upar definitions use karke shapes se padho: state ki 2 rows hain → $n=2$; $B$ ki 2 columns hain → $m=2$ (do inputs); $C$ ki 2 rows hain → $p=2$ (do outputs). MIMO native hai — yahi parent ka point tha. **Step 2 — steady state (algebra khatam karo).** *Kyun?* $\dot x=0$ set karo toh $Ax_\infty = -Bu$. $u=(2,0)^\top$ ke saath, $$Bu=\begin{bmatrix}0&0\\1&0.5\end{bmatrix}\begin{bmatrix}2\\0\end{bmatrix}=\begin{bmatrix}0\\2\end{bmatrix},\qquad \begin{bmatrix}0&1\\-4&-2\end{bmatrix}\begin{bmatrix}x_1\\x_2\end{bmatrix}=-\begin{bmatrix}0\\2\end{bmatrix}.$$ Top row: $x_2 = 0$. Bottom row mein substitute karo: $-4x_1 - 2x_2 = -2 \Rightarrow -4x_1 - 0 = -2 \Rightarrow x_1 = \tfrac{1}{2}=0.5$. $$\boxed{\,x_\infty = \begin{bmatrix}0.5\\0\end{bmatrix}\,}$$ **Step 3 — stability check.** *Kyun?* Stability $A$ ke eigenvalues mein rehti hai: $$\det(\lambda I - A)=\det\!\begin{bmatrix}\lambda&-1\\4&\lambda+2\end{bmatrix}=\lambda(\lambda+2)+4=\lambda^2+2\lambda+4=0.$$ Quadratic formula: $\lambda=\dfrac{-2\pm\sqrt{4-16}}{2}=-1\pm i\sqrt3$. Dono ka $\mathrm{Re}(\lambda)=-1<0$ hai → **stable** (ek decaying oscillation, Ex 3 jaise). > [!recall] Verify karo > $x_\infty=(0.5,0)$ check karo: $Ax_\infty=\begin{bmatrix}0\cdot0.5+1\cdot0\\-4\cdot0.5-2\cdot0\end{bmatrix}=\begin{bmatrix}0\\-2\end{bmatrix}=-Bu$ ✅. Eigenvalue real part $-1<0$ → stable ✅. Position output $y_1=0.5$ matlab rocket constant thrust ke under 0.5 offset pe settle hota hai. ✅ --- > [!mnemonic] Eigenvalue traffic light > **Real part negative → green** (decay karta hai, stable). **Real part zero → yellow** (ring karta hai ya freeze karta hai, marginal). **Real part positive → red** (blow up, unstable). Imaginary part sirf wiggle add karta hai; ek **repeated** root ek $t\,e^{\lambda t}$ term add karta hai (critical damping). ## Connections - [[Eigenvalues and stability]] — Ex 2–7 poora eigenvalue traffic-light zoo hai. - [[Matrix exponential]] — Ex 8 mein forced response aur Ex 6 mein $t\,e^{\lambda t}$ term ko power deta hai. - [[Transfer functions and G(s)]] — Ex 10 bridge cross karta hai; Laplace variable $s$ define karta hai. - [[Controllability and Observability]] — kya Ex 12 mein $B,C$ actually har state tak reach/see kar sakte hain. - [[LQR optimal control]] — unstable Ex 5 ko kaise stabilize karoge. - [[Kalman filter]] — $C$ ke peeche unmeasured states recover karta hai. - [[Linearization of nonlinear systems]] — jahan se Ex 12 mein rocket ka $A,B$ aata hai.