4.5.26 · D1 · HinglishLinear Algebra (Full)

FoundationsLU decomposition — algorithm, applications

3,482 words16 min read↑ Read in English

4.5.26 · D1 · Maths › Linear Algebra (Full) › LU decomposition — algorithm, applications

Yeh page assume karta hai ke tumne pehle kuch nahi dekha. Har woh symbol jo parent note tumhare saamne phenkta hai — , , , , , , multiplier , "pivot", "triangular", , — yahan build kiya gaya hai, ek picture se, ek aisi order mein jahan har ek brick pichle wale par tikti hai.


1. Ek number, numbers ki list, numbers ka grid

Kisi bhi letter ke fancy subscripts se pehle, teen objects.

Figure — LU decomposition — algorithm, applications
Figure 1 — Scalar vs vector vs matrix. Ek yellow dot ek scalar hai (akela number, ). Ek blue column of dots jo ek stroke se jude hain woh ek vector hai (stacked list, over ). Ek green block of dots ek matrix hai (poora grid). Left se right padho: complexity badhti hai ek number se, list tak, grid tak.


2. Matrix ko padhna: rows, columns, aur subscript

Grid ki har entry ko ek address chahiye.

Figure 2 — Address . grid of blue dots, har ek apne address ke saath labelled. Yellow arrows do counting directions dikhate hain: rows neeche count hoti hain, columns daayein count hote hain. Red dot ko mark karta hai — row , column — "row pehle, column doosra" rule ko action mein dikhata hua.

Figure mein, (red highlighted) row 2, column 1 mein baitha hai. Yeh ordering kabhi nahi badlti: row pehle, column doosra. Parent note mein aur aur likhte hain — yeh sab usi rule ka paalan karte hain.


3. Diagonal, aur "triangular" ka matlab

Top-left corner se bottom-right corner tak line kheencho. Is line se guzarne wale entries — diagonal hain.

Figure 3 — Lower vs upper triangular. Left grid: non-zero entries (marked ) lower-left triangle mein bhare hain, zeros yellow dashed diagonal ke upar baithe hain — lower triangular. Right grid: non-zeros upper-right triangle mein bhare hain, zeros diagonal ke neeche baithe hain — upper triangular. Har ek mein dashed yellow line woh diagonal hai jo grid ko aadhe mein split karti hai.

Figure dono dikhata hai. "Triangular" word literally hai: non-zero numbers ek triangle mein bharte hain, grid ka ek aadha.


4. Matrix ko vector se multiply karna — actually kya karta hai

"sab kuch sab kuch se multiply karo" nahi hai. Iska ek precise recipe hai.

example ke liye ():

Matrix times matrix — hamare liye Section 3 mein defined do half-grids ka product — usi row-walks-column rule ko follow karta hai, doosri matrix ke har column ke liye done. Isliye parent ka check sense banata hai: do half-grids ko waapas multiply karo aur original rebuild ho jaata hai.


5. Pivot aur multiplier — woh do numbers jo elimination produce karta hai

Ab poore topic ke do starring symbols.

Figure 4 — Pivot aur multiplier action mein. Green dot pivot hai; uske neeche red dot woh entry hai jo hum erase karna chahte hain. Yellow arrow pivot se target tak point karta hai. Formula ratio dikhata hai, aur bottom line row operation dikhata hai jo red entry ko zero kar deta hai.

Parent jo rely karta hai woh punchline: yeh multipliers, upar ke rule se diagonal par 's ke saath ek grid mein likhe hue, hain . Pivots, cleaned-up grid ke diagonal par baithe hue, hain ka diagonal. Kuch extra compute nahi hota — tum bas woh save karte ho jo tum pehle se kar chuke the. Woh saving hai Gaussian Elimination with a memory, jo LU ka poora idea hai.


6. Determinant aur pivots ise kyun dete hain


7. Permutation matrix — jab koi row move karni padti hai

Kabhi kabhi pivot par land karta hai. Tum zero se divide nahi kar sakte, isliye tum ek accha pivot upar laane ke liye rows swap karte ho. Kaun si rows swap huin yeh record karna ka kaam hai.

Isliye pivoting ko mein badal deta hai. Poori detail Permutation Matrices mein hai.


8. Har foundation kaise topic ko feed karta hai

Scalar single number

Vector column of numbers

Matrix grid of numbers

Square matrix n by n

Subscript a_ij row then column

Diagonal and triangular shape

Matrix times vector equals equations

Pivot anchor entry

Multiplier m_ik ratio

Determinant product of pivots

Permutation matrix row swaps

LU decomposition A equals LU


9. Parent ke sabse chhote example par sanity check

Parent factor karta hai (square, ). Chaliye confirm karte hain ki upar ka har symbol sahi jagah land hota hai — yeh loop ka stage hai, ek hi stage kyunki .

Har symbol kamaaya gaya; kuch borrowed nahi.


Equipment checklist

Har line ka left side padho, zor se jawab do, phir reveal karo.

subscript kisi ko kya point karta hai?
Row , column mein entry — row pehle, column doosra.
kya stand karta hai?
Ek square matrix ki rows aur columns ki common count (); saath hi aur ki length bhi.
mein aur kya hain?
woh unknown vector hai jiske liye hum solve karte hain; known right-hand-side vector hai — dono length .
LU ke liye square kyun honi chahiye?
Tumhe per column ek diagonal pivot chahiye, jo equal row aur column counts () maangta hai.
Matrix ki diagonal entries kahan rehti hain?
Top-left se bottom-right tak ki line par, jahan row number column number ke barabar hoti hai ().
Matrix ko lower triangular kya banata hai?
Diagonal ke upar ki har entry zero hai.
"Unit lower triangular" isme kya add karta hai?
Diagonal entries sab hain.
ki entry tum kaise compute karte ho?
ki row ko ke against chalo, matched pairs multiply karo, unhe sum karo.
equations ke system ke same kyun hai?
Product ki har row exactly ek equation spell karta hai.
Stage index kis range mein chalta hai?
— ek stage per column, se ek pehle rok ke.
Pivot kya hai?
Diagonal anchor entry jisse tum divide karte ho uske neeche column eliminate karne ke liye; ka diagonal.
Multiplier kya hai aur kyun ratio hai?
; yeh woh egymaatra number hai jo rowrow position ko zero karta hai.
ki entries kaise assemble hoti hain?
, for , aur for .
Factors se kaise padho (no swaps)?
Pivots ka product (kyunki ).
Ek row swap ko kaise badalta hai?
se multiply karta hai, toh .
Permutation matrix kya karta hai?
ki rows shuffle karta hai (identity with rows swapped), use tab kiya jaata hai jab pivot zero ya tiny ho.
Partial pivoting kya hai aur kyun karte hain?
Largest-magnitude entry wali row ko pivot position mein swap karo, taaki har multiplier rahe aur rounding errors blow up na karein.

Connections

  • Gaussian Elimination — woh elimination process jo pivots aur multipliers spits out karta hai.
  • Triangular Systems & Substitution — triangular grids turant kyun solve hote hain.
  • Determinants — product-of-pivots shortcut.
  • Permutation Matrices — row-swap bookkeeping .
  • Matrix Inverse ko se column by column assemble karna.
  • Cholesky Decomposition — symmetric positive-definite special case.
  • LU decomposition — algorithm, applications — woh parent topic jise yeh foundations feed karte hain.