4.5.26 · HinglishLinear Algebra (Full)

LU decomposition — algorithm, applications

1,430 words7 min readRead in English

4.5.26 · Maths › Linear Algebra (Full)


YEH HAI KYA?

ki entries exactly Gaussian elimination ke pivots hain, aur ki entries exactly woh multipliers hain jo aapne har pivot ke neeche eliminate karne ke liye use kiye the.


KAISE: algorithm ko scratch se derive karna

Gaussian elimination har pivot ke neeche wale column ko row operations se clear karta hai. Ek row operation "row ka guna row se subtract karo" khud left par ek matrix multiplication hai.

Multiplier matrix

Entry ko pivot se eliminate karne ke liye, multiplier hai Jo elementary matrix "row rowrow" karta hai woh identity hai jisme position par hai.

Figure — LU decomposition — algorithm, applications

Worked Example 1 — basic factorisation

Factor karo

Step 1. Pivot . Multiplier . Yeh step kyun? Pehle pivot ke neeche wale ko khatam karna hai; .

Step 2. Row RowRow: . Toh . Kyun? Yeh upper-triangular produce karta hai jiske diagonal par pivots hain.

Step 3. Multiplier ko mein daalo: . Kyun? record karta hai ki hum tak kaise pahunche, ke saath.

Check:


Worked Example 2 — solve karne ke liye LU use karna

solve karo upar wale ke saath aur .

Forward: : Kyun? Row 1 se turant milta hai; row 2 mein substitute karo.

Back: : Answer: . Itna fast kyun? Koi nayi elimination nahi — sirf substitution.


Worked Example 3 — ek aur pivot ki warning

  • . Column 1 clear karne ke baad:
  • Naya pivot (row 2). . Clear karo: rowrow.

Applications (80/20 payoff)


Cost (yeh number kyun matter karta hai)


Recall Feynman: ek 12-saal ke bachche ko samjhao

Socho ek lamba messy LEGO instructions ka stack hai. Puzzle ek baar solve karna slow hai. Lekin agar aap apne use kiye steps likh lo (woh hai ) aur half-bana model rakh lo (woh hai ), toh agli baar jab koi thoda alag goal de, aap naye sire se shuru nahi karte — bas apne saved steps ko aage-peeche replay karte ho. LU = "apna homework save karo taaki kabhi dobara na karna pade."


Matrix A ki LU decomposition kya hoti hai?
Ek factorisation jisme unit lower triangular hai (diagonal par 1's) aur upper triangular hai.
Gaussian elimination mein ki entries kya represent karti hain?
The pivots.
ki off-diagonal entries kya represent karti hain?
The multipliers jo har pivot ke neeche eliminate karne ke liye use hue.
ki diagonal mein sab ones kyun hain?
Kyunki inverse elementary elimination matrices ka product hai, jinmein se har ek diagonal entries chhod deta hai.
LU ke zariye solve karne ke liye do steps kya hain?
Forward-solve , phir back-solve .
LU se kaise compute karte ho?
(pivots ka product), times per row swap agar pivoting use ki.
Plain kab fail karta hai aur fix kya hai?
Jab pivot zero/tiny ho; partial pivoting use karo jisse milta hai permutation matrix ke saath.
LU factorisation ki cost ek triangular solve se compare mein?
Factorisation flops; har solve .
Plain Gaussian elimination ke muqable mein LU ka main advantage?
ko bahut saare right-hand sides ke liye reuse karo each mein, instead of elimination dobara karne ke.

Connections

  • Gaussian Elimination — LU elimination hai jisme steps yaad rakhe jaate hain.
  • Permutation Matrices mein pivoting ke liye use hota hai.
  • Determinants — pivots ka product.
  • Matrix Inverse — identity columns ke against solve karo.
  • Cholesky Decomposition — symmetric positive-definite special case .
  • Triangular Systems & Substitution — saste solves.

Concept Map

produces

records

factored into

contains

contains

stored in

form diagonal of

composed then inverted give

each step is

added when row swaps needed

enables

allows

Gaussian elimination

Matrix A

L unit lower triangular

U upper triangular

Factorisation A = LU

Elementary matrices Ei

Multipliers m_ik = a_ik / a_kk

Pivots

Permutation matrix P

Two triangular solves

Reuse for many b vectors