4.5.7 · D2 · HinglishLinear Algebra (Full)

Visual walkthroughMatrix multiplication — definition, associativity, non-commutativity

2,115 words10 min read↑ Read in English

4.5.7 · D2 · Maths › Linear Algebra (Full) › Matrix multiplication — definition, associativity, non-commu

Pehli line se pehle, teen seedhe words jo hum bar bar use karenge:

Baaki sab neeche earn hoga.


Step 1 — Ek matrix ek vector khaati hai aur ek vector ugalti hai

KYA. Ek matrix aur ek vector ke numbers lo. Rule " acting on ", likha jaata hai , ek naya vector produce karta hai. Uska -th slot hai:

Annotation padho: output slot paane ke liye, tum ki row ke saath chalte ho, aur har number ko ke matching slot ke saath pair karte ho, multiply karte ho, aur add karte ho. Symbol ("sum over ") bas shorthand hai "har column ke liye yeh karo aur results add karo."

YEH HI KYUN, kuch simple kyun nahi? Kyunki hum insist karte hain ki ek linear machine ho: use grid ko ek naye grid mein bhejna hoga jahan straight lines straight rahen aur evenly-spaced dots evenly spaced rahen. Isi property wala formula sirf yahi weighted sum hai. (Koi bhi curved ya lopsided rule grid ko bend kar deta.)

PICTURE. Grid ke basis arrows (right) aur (up) ke do columns par bhej diye jaate hain. Koi bhi saath mein carry ho jaata hai.

Figure — Matrix multiplication — definition, associativity, non-commutativity

Step 2 — Do machines back to back: composition ka sawaal

KYA. Ab do machines ek ke baad ek chalao: pehle , phir . se shuru karo, pao, phir woh mein daalo aur pao. Brackets ka matlab hai "andar wala pehle."

KYUN. Yahi wajah hai matrix multiplication exist karti hai. Hum ek single machine chahte hain taaki ko ek baar use karna " then " ke barabar ho: Us single machine ka naam hai . Reading order note karo: machine jo right par likhi hai () pehle act karti hai, kyunki woh ke sabse kareeb hai. Yahi right-to-left habit hai jahan se baad mein har "order reverses" wala surprise aata hai.

PICTURE. Ek dot do boxes se flow karta hai: grid (box ) tilted grid (box ) final grid.

Figure — Matrix multiplication — definition, associativity, non-commutativity

Step 3 — Composition promise se formula nikalna

KYA. Hum slot by slot compute karte hain aur padh lete hain ki combined machine ki entries kya honi chahiye. Output slot lo:

Term by term: = ki row , entry . = intermediate vector ka slot , jise hum Step 1 mein already expand kar chuke hain. Toh shared index hai — woh slot jahan ke columns ki rows se milte hain.

Ab do sums ko swap karo aur har ke aage wala coefficient collect karo:

SWAP LEGAL KYUN HAI. Yeh ordinary numbers ke finite sums hain, isliye reorder karna kabhi total nahi badalta (yeh bas addition rearranged hai). Koi calculus nahi, koi limits nahi — bas kai baar apply kiya.

The punchline. Single machine ke liye hum yeh bhi chahte hain ki . Dono expressions mein ka coefficient match karne par force hota hai: Kuch choose nahi kiya gaya. "Compose" shabd ne yeh equation likhi.

PICTURE. Bracketed coefficient literally ki row , ke column par slide karke hai: line them up, multiply pairs, add.

Figure — Matrix multiplication — definition, associativity, non-commutativity

Step 4 — Ek entry bante dekho (numbers ka close-up)

KYA. Parent ke example ke saath concretely: , , top-left entry compute karo:

Index bookkeeping: ( ki top row), ( ka left column), aur us row aur column ke andar tak run karta hai.

SIRF EK ENTRY KYUN DIKHAO? Kyunki pattern hi lesson hai — har doosri entry same dance hai alag ke saath. Chaar baar karo aur parent wala mil jaata hai.

PICTURE. ki row 1 (horizontal) aur ka column 1 (vertical) highlight karo; unka crossing ke top-left slot ko feed karta hai.

Figure — Matrix multiplication — definition, associativity, non-commutativity

Step 5 — Order counts: wohi do machines, swap karo

KYA. lo (90° left turn) aur lo (flip up↔down). Tab

YEH DIFFER KYUN KARTE HAIN. Step 2 yaad karo: right wali machine pehle act karti hai. Point track karo: flip-then-turn usse upar le jaata hai; turn-then-flip usse neeche le jaata hai. Alag final spot ⟹ alag machines ⟹ . Yahi non-commutativity hai, aur yeh normal case hai, exception nahi.

PICTURE. Wohi chhota sa flag do boxes mein dono orders mein push kiya — do alag jagah end hota hai.

Figure — Matrix multiplication — definition, associativity, non-commutativity

Step 6 — Degenerate aur edge cases (koi scenario nahi chhoota)

KYA. Teen cases jo logon ko trip karte hain:

  • Shapes lock hone chahiye. Agar hai aur hai, toh inner dimensions () touch karke vanish ho jaate hain; outer wale () bachte hain: hai. Lekin hai — alag shape, toh usse se compare bhi nahi kar sakte. Mismatched inner dimensions ( times ) simply undefined hain — row aur column ki lengths alag hain, toh dot product form hi nahi ho sakta.
  • Identity . grid ko untouched chhodta hai: . Iske columns hain, isliye yeh har arrow ko khud par hi bhejta hai. Dekho Identity and Inverse Matrices.
  • Zero divisors. ke saath, even though . Geometrically puri plane ko ek line par, phir origin par squash karta hai — do squashes sab kuch annihilate kar dete hain. Toh se yeh force nahi hota ki ya .

YEH COLLECT KYUN KARO. Real problems mein non-square, identity, aur singular matrices aate hain; row·column rule sab ko same tarike se handle karta hai, lekin shapes aur surprises ek baar dekhne chahiye.

PICTURE. Panels: shape-locking (inner dims cancel), flag ko aise chhod raha hai, aur plane ko ek line par collapse kar raha hai.

Figure — Matrix multiplication — definition, associativity, non-commutativity

Step 7 — Associativity free hai (grouping kabhi matter nahi karta)

KYA. Teen machines ke liye, .

KYUN, visually. Teen boxes se flow karta ek dot ka ek hi destiny hai. Chahe tum pehle last do boxes fuse karo () ya pehle do (), pipeline identical hai. Kisi bhi vector par apply karo: Har equality bas "ek ek box peel off karo" hai. Sab ke liye true ⟹ matrices match karti hain.

KYUN algebraically. Dono bracketings ek hi triple sum mein collapse ho jaati hain — aur finite sums reorder ho sakte hain (Step 3 ka trick phir se). Toh "" ko kisi bracket ki zaroorat nahi.

Step 5 se contrast karo: grouping free hai, lekin order nahi. Do bahut alag feel karne wale facts, dono "matrices are composed maps" ke consequences.

PICTURE. Ek line mein teen boxes; do alag fusings draw ki gayi hain — same output arrow.

Figure — Matrix multiplication — definition, associativity, non-commutativity

Ek-picture summary

Figure — Matrix multiplication — definition, associativity, non-commutativity

Ek figure, poori kahaani: ek arrow mein enter karta hai, ek tilted arrow ban jaata hai, mein enter karta hai, final arrow ban jaata hai — aur fused machine yeh ek step mein karta hai, jisme uski har entry -ki-row aur -ke-column ke milne ke roop mein draw ki gayi hai.

Recall Feynman retelling (seedhe words mein)

Ek matrix ek machine hai jo grid ke dots ko naye spots par dhakelta hai, grid ko seedha rakhte hue. Uske do columns exactly batate hain ki "right" arrow aur "up" arrow kahan land karte hain — baaki sab follow karta hai. Do machines ko ek mein jodne ke liye (" karo, phir "), main poochhta hoon: kaunsi single machine har starting arrow ke liye same landing spot deti hai? Ek arrow ko dono machines se chase karke numbers collect karne par, jawab force ho jaata hai: combined machine ke slot (row , column ) fill karne ke liye, ki row ko ke column par slide karo, matched numbers multiply karo, aur add karo — yahi dot product hai, yahi poora rule hai. Kyunki right wali machine pehle run karti hai, order swap karne par usually dots alag jagah land karte hain () — normal hai, weird nahi. Lekin teen machines ko regroup karne se pipeline kabhi nahi badlta, isliye pe sochne ki zaroorat nahi. Shapes lock honi chahiye (inner sizes kiss karke disappear hote hain), identity sab kuch aise chhod deti hai, aur kuch non-zero machines plane ko itna squash karti hain ki unhe square karne par zero milta hai.


Active recall

ke columns geometrically kahan se aate hain?
Woh wahan hain jahan basis arrows act karne ke baad land karte hain.
mein kaunsa index shared (summed over) hai?
— yeh ki row ke saath aur ke column ke neeche run karta hai.
mein right-hand matrix pehle kyun act karta hai?
Woh ke sabse kareeb hota hai; brackets kehte hain innermost pehle, isliye se pehle run karta hai.
Derivation mein double sum reorder karna legal kyun hai?
Yeh ordinary numbers ke finite sums hain, aur addition ko freely rearrange kiya ja sakta hai.
Associativity "free" kyun hai?
Dono groupings maps ka same pipeline hain aur same triple sum mein collapse ho jaate hain.
Kya aur ki shapes alag ho sakti hain?
Haan — e.g. times deta hai , lekin reverse deta hai .
Ek aisi non-zero matrix do jiska square zero ho.
; yeh plane ko ek line par, phir ek point par squash karta hai.

Connections

  • Linear Transformations — "machine moves the grid" picture jo har step ke peeche hai.
  • Dot Product ki har entry ek row·column dot product hai (Step 3–4).
  • Identity and Inverse Matrices — do-nothing machine aur composition ko undo karna.
  • Determinants — ek machine kitna area scale karti hai, aur .
  • Transpose — rows↔columns flip karta hai; order inverses ki tarah reverse hota hai.
  • Matrix Powers and Diagonalization — ek machine repeat karna, aur kab machines commute karti hain.