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

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

2,326 words11 min read↑ Read in English

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

Parent note se kuch objects ki reminder jo aage bhi kaam aayenge:


Level 1 — Recognition

Goal: matrices padho aur jo dikhe use naam do. Counting se zyada koi calculation nahi.

Exercise 1.1

Ek system is tarah likha gaya hai: Batao (a) order , (b) inputs ki sankhya , (c) outputs ki sankhya , aur (d) kya direct feedthrough hai.

Recall Solution 1.1

Hum kya karte hain: bas har box ki shapes padho.

  • hai , toh mein 3 entries hain ==order ==.
  • mein 1 column hai (ek input).
  • mein 2 rows hain (do outputs).
  • Koi matrix nahi likha, toh : koi direct feedthrough nahi.

Kyun: ke columns inputs count karte hain (har column = "ek input kahan push karta hai"); ki rows outputs count karti hain (har row = "ek sensor ki recipe").

Exercise 1.2

Inn mein se kaun sa matrix legally ek state-space system ka matrix ho sakta hai, aur kaun sa matrix, agar aur ho?

Recall Solution 1.2
  • ko hona chahiye. Sirf hi hai hai == matrix==.
  • ko hona chahiye. Sirf hi hai hai == matrix==.
  • hai — dono ke liye galat shape; yeh nahi ho sakta (square nahi) aur na hi (1 column chahiye). Yeh matrix fit kar sakta tha sirf tab agar hota, jo se contradict karta hai. Toh yahan invalid hai.

Level 2 — Application

Goal: derivation recipe aur standard formulas ko end-to-end chalao.

Exercise 2.1

Third-order ODE ko state-space form mein convert karo jahan output ho:

Recall Solution 2.1

Step 1 — state chunna (KYU: memory wo function hai aur uske derivatives jo highest se ek neeche tak jaate hain). 3rd-order ODE ke liye 3 states chahiye: Step 2 — har derivative ko states ke terms mein likho (KYU: sirf aur ke terms mein chahiye). Step 3 — stack karo (KYU: ek clean matrix object). Yeh layout (super-diagonal par identity ones, bottom row par coefficients) controllable canonical form hai — jab bhi koi single high-order ODE mile, ise pehchano.

Exercise 2.2

, , , ke liye transfer function compute karo.

Recall Solution 2.2

Step 1 — banao (KYU: yahi wo matrix hai jiska inverse formula ko chahiye). Step 2 — ko invert karo (KYU: dikhata hai ki state par kaise respond karta hai). ka inverse hai . Yahan . Step 3 — aur ke saath sandwich karo. Denominator — iske roots bilkul ke eigenvalues hain. Dekho Transfer functions and G(s).


Level 3 — Analysis

Goal: matrices se behaviour extract karo — stability, oscillation, response.

Exercise 3.1

ke eigenvalues nikalo aur system ki stability aur motion classify karo.

Recall Solution 3.1

Step 1 — characteristic polynomial (KYU: ki tarah grow karta hai, toh eigenvalues sab kuch dictate karte hain). Step 2 — solve karo. Factor karo . Step 3 — classify karo (KYU: stability real parts mein rehti hai). Dono eigenvalues real aur negative hain system asymptotically stable hai. Real (complex nahi) roots koi oscillation nahi: response ek decaying sum hai (ek overdamped settle). Dekho Eigenvalues and stability.

Exercise 3.2

(mass–spring jahan , no damping) ke eigenvalues nikalo aur motion describe karo. Yeh kis angular frequency par ring karta hai?

Recall Solution 3.2

Interpretation: purely imaginary eigenvalues marginally stable — response hai , jo Euler's identity se aur hai: yeh bina grow ya decay kiye hamesha oscillate karta rehta hai. Imaginary part angular frequency hai rad/s. Physically: koi damping nahi () toh koi energy lost nahi hoti — yeh hamesha ring karta rehta hai, jo parent note ki undamped forecast se match karta hai.

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

Level 4 — Synthesis

Goal: state-space models banao aur charon boxes ko ek designed purpose ke liye combine karo.

Exercise 4.1

Ek cart jiska mass hai, force se drive hoti hai aur viscous friction coefficient hai: , jahan position hai. Tumhare paas do sensors hain: ek position read karta hai, ek velocity read karta hai. ke saath full banao.

Recall Solution 4.1

Step 1 — state: , (memory = kahan hai + kitni tezi se). Step 2 — derivatives: ; aur , toh . Step 3 — matrices: Step 4 — output (KYU: do sensors ki do rows, toh ). Hum dono states directly read karte hain: Stability check: eigenvalues solve karte hain . free-drift mode hai (bina spring ke cart coasting karta rehta hai) — marginally stable, bilkul physics ke saath match.

Exercise 4.2

Parent note ka mass–spring–damper lo, , jisse milta hai. Coordinate change apply karo jahan . Naya compute karo aur confirm karo ki uske eigenvalues unchanged hain.

Recall Solution 4.2

Step 1 — : kyunki diagonal hai, . Step 2 — (KYU: coordinate changes boxes ko reshape karte hain par physics ko nahi). Step 3 — ke eigenvalues: . Original ke jaisa hi ()! Matrices alag dikhte hain par identical ringing system describe karte hain — eigenvalues wo invariant hain jo coordinate changes ke baad bhi survive karte hain.


Level 5 — Mastery

Goal: poore framework ko chain karo — solution, invariance, feedback, feedthrough — pressure mein.

Exercise 5.1

(already diagonal) aur ke liye ke saath, exact free-response likho aur par evaluate karo (4 decimals tak).

Recall Solution 5.1

Kyun matrix exponential (parent se): ka free response hai , jo scalar ko generalize karta hai. Diagonal ke liye exponential bas har diagonal entry ka exponential hota hai (modes decoupled hain): Solution: par: , . Dono decay karte hain (eigenvalues ): stable. Dekho Matrix exponential.

Exercise 5.2

, (double integrator) ke liye state-feedback design karo taaki closed-loop matrix ke eigenvalues aur (dono) par hon. nikalo.

Recall Solution 5.2

Step 1 — closed loop (KYU: feedback dynamics ko se mein reshape karta hai). Step 2 — characteristic polynomial: . Step 3 — desired polynomial se match karo. Hum roots chahte hain: . Toh , . Yahi exactly hai jo pole placement / LQR optimal control automate karta hai: choose karo taaki ke eigenvalues stable left half-plane mein move ho jayein.

Exercise 5.3

Ex 4.1 ki cart mein ek sensor commanded force se directly acceleration read karta hai (toh ). aur ke saath, ko ke roop mein express karo aur dikhaao ki hai.

Recall Solution 5.3

Kyun appear hota hai (parent se): agar ek input instantly ek output ko affect kare, toh algebraic shortcut nonzero hota hai. Yahan . Row padho (KYU: , state-part ko input-part se alag karo): Toh aur ====. Yahan drop karna transfer function ke high-frequency behaviour ko corrupt kar deta — input immediately feed through ho jaata hai.


Wrap-up recall

Recall Ek-line self-test

Kisi bhi ko diya jaaye, ab tum kya teen cheezein compute kar sakte ho? ::: (1) ke eigenvalues se stability; (2) transfer function ; (3) time response .

Connections

  • Transfer functions and G(s) — Ex 2.2 ne se ek banaya.
  • Eigenvalues and stability — Ex 3.1–3.2 ne se stability padhi.
  • Matrix exponential — Ex 5.1 ne free response ke liye use kiya.
  • Controllability and Observability — Ex 5.2 mein koi bhi pole place kar sakta hai ya nahi, yeh par depend karta hai.
  • LQR optimal control — Ex 5.2 ka feedback automate karta hai.
  • Kalman filter — tab chahiye jab (Ex 4.1) har state nahi read karta.
  • Linearization of nonlinear systems — inhi problems ka Jacobians ke roop mein kahan se aata hai.