4.8.21 · D3 · HinglishNumerical Methods

Worked examplesEigenvalue computation — power method, inverse iteration

3,514 words16 min read↑ Read in English

4.8.21 · D3 · Maths › Numerical Methods › Eigenvalue computation — power method, inverse iteration

Yahan har symbol parent note se liya gaya hai: hamara matrix hai, ek eigenpair satisfy karta hai , ordinary vector length hai, aur Rayleigh quotient current best eigenvalue guess hai. Hum sirf inhi ko reuse karte hain.


The scenario matrix

Neeche ka har cell iteration ke behave karne ka ek alag tarika hai. Last column batata hai ki kaunsa example use karta hai.

# Scenario class Kya mushkil banata hai Example
C1 Do positive eigenvalues, clear gap baseline power method Ex 1
C2 Dominant eigenvalue negative har step sign flip karta hai Ex 2
C3 Equal magnitude, opposite sign () power method kabhi settle nahi hota Ex 3
C4 Bad seed () amplification ke paas kuch grab karne ko nahi Ex 4
C5 Smallest eigenvalue chahiye inverse iteration, LU not Ex 5
C6 Interior / any eigenvalue shifted inverse iteration Ex 6
C7 Degenerate shift ( exactly) singular Ex 7
C8 Complex conjugate pair real power method oscillate karta hai, koi limit nahi Ex 8
C9 Real-world word problem ek story ko eigenproblem mein translate karo Ex 9
C10 Exam twist: rate prediction convergence predict karo iterate karne se pehle Ex 10
C11 Defective / repeated eigenvalue se kam eigenvectors Ex 11

Ex 1 — C1 · Baseline power method (positive gap)

True eigenvalues Characteristic Polynomial solve karte hain , isliye . Hum aim kar rahe hain.

Index convention: woh vector hai jo steps ke baad milta hai ( seed hai), aur Rayleigh quotient hai jo usi same se bana hai.

  1. . Yeh step kyun? Ek multiply hi poora engine hai — vector ko apne sabse strong stretch ki taraf khichta hai. , isliye .
  2. Seed se Rayleigh: . Kyun? , use karta hai, isliye yeh hamara crude starting estimate hai — us vector ke liye least-squares eigenvalue.
  3. , se normalize: . Ab . Kyun? , use karta hai, jo already strongly ki taraf lean kar chuka hai, isliye estimate almost poori tarah tak jump karta hai.
  4. Agli step: (teen places tak), aur ki taraf drift karta rehta hai. Indexing kyun: har apne ke saath pair hota hai, isliye hum order mein report karte hain.

Verify: ke liye true : , isliye normalized. Hamara ki taraf drift kar raha hai. ✓ Aur . ✓


Ex 2 — C2 · Dominant eigenvalue negative

Is page ke liye rounding rule: saare decimals teen places tak round kiye jaate hain, half upar.

  1. , , . Kyun? Standard iterate. Notice karo ki pehla component negative ho gaya.
  2. , , . Sign note kyun karo? se multiply karna har step sign flip karta hai ke along alternate karta hai.
  3. Rayleigh signed value padhta hai: . Quotient kyun phir bhi kaam karta hai: sign carry karta hai, isliye ek negative dominant eigenvalue correctly report hota hai chahe vector flip kare.

Verify: , . aur . ✓


Ex 3 — C3 · Equal magnitude, opposite sign

  1. . Yeh kyun dekhein? Strict-gap assumption toot gayi hai, isliye "landslide" argument khatam hota hai.
  2. . Yeh kyun matter karta hai: hum waapas wahan hain jahan shuru kiya tha — vector aur ke beech forever oscillate karta hai, kabhi eigenvector par settle nahi hota.
  3. har step (off-diagonal , axis vectors). kyun? Na axis vector eigenvector hai; do components kabhi separate nahi hote kyunki unke magnitudes tie karte hain.

Neeche ka figure exactly yahi iterates plot karta hai. Ise dekhein: coloured arrows sirf do dashed axes par land karte hain — yeh (lavender/butter) aur (coral/mint) ke beech hop karte hain aur kabhi true eigenvector lines (do grey dashed diagonals aur ) ki taraf rotate nahi hote. Woh visual "trapped on the axes" isliye hai ki estimate stall hoti hai: seed exactly do eigenvectors ke beech mein baitha hai, isliye koi bhi use khich nahi sakta.

Figure — Eigenvalue computation — power method, inverse iteration

Verify: True eigenvectors aur hain. Hamara seed ka aur par equal weight hai, isliye woh kabhi separate nahi hote. ✓


Ex 4 — C4 · Bad seed ()

  1. , . Kyun? hone se piece nahi hai jo se multiply ho, isliye pehla component exactly forever rehta hai.
  2. forever. Kyun: exact arithmetic mein iteration par trapped hai, subdominant report karta hai, nahi.
  3. Rescue: seed perturb karo, tiny ke saath. Ab decomposition mein hai; har step us weight ko se multiply karta hai doosre ke ke against — har step relative factor — isliye yeh grow karta hai aur eventually dominate karta hai.

Verify: Exact ke saath, (galat). ke saath, enough steps ke baad . ✓


Ex 5 — C5 · Smallest eigenvalue via inverse iteration

  1. solve karo, yaani . Solve kyun, invert kyun nahi? Parent ka rule: solve, invert mat karo ko LU-factor karo (dekho LU Decomposition) ek baar, phir har step cheap substitution hai. , isliye .
  2. Normalize: , . Kyun? Vector ko blow up hone se rokta hai jab small- direction amplify hoti hai.
  3. Original par Rayleigh: . kyun, kyun nahi? Hume ka eigenvalue chahiye, aur eigenvectors shared hain. roughly; .
  4. Ek aur solve push karta hai.

Verify: ke liye : , normalized. Hamara already us taraf lean kar raha hai; . ✓ (Compare karo Rayleigh Quotient Iteration se jo cubic speed ke liye har step update karta hai.)


Ex 6 — C6 · Any interior eigenvalue via shift

  1. form karo. Shift kyun? Iske inverse ke eigenvalues hain. Middle direction ab huge value rakhti hai — yeh dominate karti hai.
  2. solve karo: component-wise . Ek solve kyun kaafi hai: component se multiply hua, single step mein baaki sab ko dwarf kar diya.
  3. Normalize (): — essentially , middle eigenvector. Normalize kyun? Huge factor ne ko blow up kar diya; se divide karna ise unit length par rescale karta hai taaki agla step (aur Rayleigh quotient) numerically sane rahe.
  4. par Rayleigh: . Itna close kyun? Ek step, kyunki shift ke bilkul paas hai.

Verify: , . aur . ✓


Ex 7 — C7 · Degenerate shift ( exactly)

Pehle, convergence-rate formula yaad karo aur uske indices name karo. Shifted inverse iteration mein error har step se shrink hoti hai: jahan target eigenvalue hai (woh jo ke sabse paas hai, jiska eigenvector hume chahiye) aur ke second-closest eigenvalue hai (sabse slow-decaying leftover). Yeh sirf parent ka power-method rate hai, transformed matrix par apply hota hai jiske eigenvalues hain: biggest hai, next biggest hai, aur unka ratio boxed expression hai.

  1. . Singular kyun? Middle diagonal entry hai (woh hai ), isliye — koi inverse nahi, linear solve ka koi unique answer nahi.
  2. Rate kehta hai "zero steps mein converge karo". Yahan rate kyun compute karo? Yeh "secretly good news" quantify karta hai: ka rate matlab method instantly answer dena chahta hai — singularity ideal limit hai, failure nahi — lekin exact-zero denominator entry system ko as written unsolvable banata hai.
  3. Practical fix: par back off karo. Yeh kyun kaam karta hai: ab invertible hai lekin nearly singular, middle direction se amplify hoti hai, aur — remarkably — near-singularity harmless hai: error vector ke saath align karta hai, exactly wahi jo hum chahte hain.

Verify: (singular), jabki . ✓


Ex 8 — C8 · Complex conjugate pair

  1. , . Kyun? rotate karta hai; seed bas turn karta hai.
  2. , . Phir , . Cycle kyun karta hai: ek rotation ka koi real eigenvector nahi hota, isliye power method ko lock karne ke liye koi real direction nahi hai — vector period 4 ke saath loop karta hai.
  3. always (rotation bhejta hai). kyun: ek vector aur uske turn ka dot product hai — always zero.

Figure yeh spin dikhata hai. Ise dekhein: chaar coloured arrows unit circle par ek quarter-turn apart baithe hain, aur annotation "+90 deg each step" rotation trace karta hai; chaar hops ke baad hum par waapis hain. Koi bhi arrow kisi fixed line ki taraf drift nahi kar raha — visual proof ki koi real eigenvector exist nahi karta jis par converge kiya ja sake.

Figure — Eigenvalue computation — power method, inverse iteration

Verify: ke eigenvalues hain, dono , koi real gap nahi. isliye . ✓


Ex 9 — C9 · Word problem (PageRank-style)

  1. . Columns sum karte hain, isliye multiply karna importance redistribute karta hai. . sahi operator kyun hai: ek page ki importance = links ke through aane wali importances ka sum, jo exactly ek matrix–vector product hai.
  2. se normalize karo; already sum karta hai. Iterate karo: ; .
  3. Vector ko eigenvector ki taraf settle hote dekhein, aur padh lo. kyun guaranteed hai: column sums matlab (all-ones row-vector eigenvalue ke liye left eigenvector hai), eigenvalue force karta hai; Perron–Frobenius theorem ise dominant banata hai. Isliye power method yahan converge karta hai, aur limiting Rayleigh quotient ke barabar hota hai.
  4. Fixed point: directly solve karo. Row 1 se, ; row 2 se, ; row 3 se, ✓. Isliye scale tak → se normalize karo (sum ) to .

Conclusion: Steady importances hain — pages 1 aur 3 most important ke liye tie karte hain, page 2 least hai. Hamara forecast (page 3 top par) almost sahi tha: yeh lead ke liye tie karta hai.

Verify: . ✓ Eigenvalue , importances sum karte hain. ✓


Ex 10 — C10 · Exam twist: predict the rate before iterating

  1. Power method error factor per step . Yeh ratio kyun: parent ne dikhaya tha surviving decay term hai. chahiye.
  2. Solve karo: steps. Log kyun: ko ek power tak raise karna ek target hit karne ke liye se invert hota hai. (Dekho Convergence Rates.)
  3. Shift-invert rate: ke eigenvalues ke sizes hain. Ex 7 formula use karte hue target aur second-closest ke saath: distances aur , isliye rate .
  4. chahiye: steps.

Verify: ✓; (just above) isliye correct hai. ✓, (too big) isliye correct hai. 66 vs 4 — ek achhe shift se speedup.


Ex 11 — C11 · Defective / repeated eigenvalue

  1. Eigen-check: ka one-dimensional nullspace hai. "Defective" kyun: algebraic multiplicity lekin geometric multiplicity — ek eigenvector short, isliye not diagonalizable hai aur Spectral Decomposition apply nahi hota; iske bajaye aap Jordan form use karte ho.
  2. , . , . Drift kyun? Har multiply off-diagonal ke through thoda feed karta hai; pehla component grow karta hai.
  3. , ki taraf creep kar raha hai, lekin slowly. Slow kyun: equal eigenvalues ke saath koi ratio nahi hai fast decay drive karne ke liye; convergence sirf algebraic hai (like ), geometric nahi. Dekho Convergence Rates.
  4. Rayleigh: . Yeh overshoot karta hai phir par settle hota hai jab .

Verify: ka single eigenvalue hai (multiplicity ), ek eigenvector ; aur . ✓


Recall Scenario checklist (self-test)

Har symptom ko uske fix se match karo. Vector har step sign flip karta hai ::: Dominant eigenvalue negative hai — signed Rayleigh quotient padho (Ex 2). Vector cycle karta hai, kabhi settle nahi hota, real matrix ::: Ya toh tie (break karne ke liye shift, Ex 3) ya complex pair (QR use karo, Ex 8). Estimate wrong (smaller) eigenvalue par stuck hai ::: Bad seed with ; perturb karo (Ex 4). Smallest eigenvalue chahiye ::: Inverse iteration — LU-solve, invert mat karo (Ex 5). Interior eigenvalue chahiye ::: Uske paas shift karo, phir inverse iterate karo (Ex 6). Linear solve "singular" keh raha hai ::: exactly ek eigenvalue hit kar gaya; ko nudge karo (Ex 7). Convergence painfully slow, single eigenvalue ::: Defective/repeated eigenvalue — sirf algebraic decay; QR use karo (Ex 11).