2.6.5 · D3 · HinglishMatrices & Determinants — Introduction

Worked examplesMatrix multiplication — conditions, process, non-commutativity

2,759 words13 min read↑ Read in English

2.6.5 · D3 · Maths › Matrices & Determinants — Introduction › Matrix multiplication — conditions, process, non-commutativi

Yeh page ek drill hai har tarah ke matrix-multiplication situation ke liye jo tum encounter kar sakte ho. Hum pehle ek table pe saare case classes map karte hain, phir har cell ke liye ek example work karte hain taaki koi bhi scenario tumhare liye naya na rahe. Zyaadatar examples ke saath ek figure hai — picture usually "why" ko arithmetic se zyaada fast explain karti hai.

Shuru karne se pehle, parent note se ek reminder — product ki har entry usi tarah banti hai:

Is poori page mein zero matrix ko (boldface) likha gaya hai, taaki use kabhi naam ke variable se confuse na karo.


The scenario matrix

Neeche har problem in cells mein se exactly ek mein aati hai. Har "Example" cell us section ka naam hai jahan tum jump kar sakte ho.

# Case class Kya tricky banata hai Worked in
A Rectangular × rectangular (valid) shapes differ karti hain, dimensions track karne padte hain Example 1
B Matrix × column vector yahi hai "apply a transformation" ka matlab Example 2
C Non-commutativity () order se answer badal jaata hai Example 3
D Zero / degenerate inputs se multiply karna; jab Example 4
E Identity & sign patterns negatives, charon sign combinations Example 5
F Undefined product inner dimensions clash → STOP Example 6
G Word problem (real units) numbers se meaning padhna Example 7
H Exam twist ( does hold) jab commuting actually sach ho, aur kyun Example 8

[!example] Example 1 — Case A: rectangular × rectangular

compute karo. Neeche ki figure shapes ko lock hote dikhati hai — do red inner numbers touch karte hain, aur green outer numbers answer ki size ban jaate hain.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: Aage padhne se pehle — answer ki shape kya hai, aur kya yeh allow bhi hai? (Agli line cover karo.)

Steps:

  1. Shape check. is , is . Inner numbers match karte hain () ✓. Answer is . Yeh step kyun? Agar reds clash karte toh hum ruk jaate; compute karne ke liye koi product hai hi nahi — exactly woh dominoes-don't-meet situation jo figure mein draw hai.

  2. = row 1 of · column 1 of : Yeh step kyun? Hum row ko column ke against slide karte hain, matched slots multiply karte hain, add karte hain. Woh akela number position (1,1) mein rehta hai.

  3. = row 1 · column 2: Yeh step kyun? ka wahi row, lekin ab ka doosra column — yahi cheez ise answer ka column 2 banati hai.

  4. = row 2 · column 1: Yeh step kyun? Answer ki doosri row fill karne ke liye hum ke doosre row par switch karte hain; ka column unchanged rehta hai, toh hum column 1 mein hi hain.

  5. = row 2 · column 2: Yeh step kyun? Last empty slot: ka row 2 aur ka column 2 milke grid complete karte hain.

Verify: Shape is jaisa predict kiya tha ✓. ka quick sanity check: sabse bade positive terms () plus give — us row/column mein koi negatives nahi, toh ek bada positive expected hai ✓.


[!example] Example 2 — Case B: matrix times a column vector

Ek matrix ka vector par act karna hi poori wajah hai ki multiplication is tarah define ki gayi hai: yeh ek transformation apply karti hai.

compute karo aur geometrically describe karo ki usne kya kiya.

Figure mein kya dhundhna hai: lavender arrow input hai; coral arrow output hai; mint arc unke beech counter-clockwise turn mark karta hai. Dhyan do ki dono arrows ki length same hai — transformation sirf ghoomati hai, stretch nahi karti.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: Yeh particular ek famous transformation hai. Compute karne se pehle guess karo ki yeh arrow ke saath kya karega.

Steps:

  1. Shape check. is , is . Match ✓. Result is (phir se ek column vector). Yeh step kyun? Ek transformation ko vector return karna chahiye, aur confirm karta hai wahi.

  2. First entry = row 1 · the column: Yeh step kyun? ka row 1, arrow ke naye -component ko decide karta hai.

  3. Second entry = row 2 · the column: Yeh step kyun? ka row 2, naye -component ko decide karta hai; har output slot ek row of dotted with hai — row batati hai ki input ke components ko kaise mix karo.

  4. Interpret. Arrow ban gaya — figure mein mint arc dekho: yeh ek quarter turn counter-clockwise (90°) ghoom gaya. Yeh hai rotation-by-90° matrix.

Verify: 90° rotation length preserve karni chahiye. aur ✓. Dono arrows perpendicular bhi rehne chahiye: ✓ (dot product zero = right angle). Yeh Linear transformations se jodta hai.


[!example] Example 3 — Case C: order matters ()

aur dono compute karo.

Figure mein kya dhundhna hai: hum corner point (unit square ka top) track karte hain. Left panel mein stretch then shear () hota hai aur point pe land karta hai; right panel mein shear then stretch () hota hai aur same start pe land karta hai. Do alag final places = order matters.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: Kya tum expect karte ho ki yeh equal honge? (Almost never — guess karo kaunsa entry disagree karega.)

Steps:

  1. (shear-of-a-stretch): Yeh step kyun? Right-to-left padhne par, matlab "pehle (stretch) karo, phir (shear)" — figure ka left panel.

  2. (stretch-of-a-shear): Dono kyun compute karein? Kyunki "matrices numbers hain, numbers commute karte hain" ek trap hai. Top-right entry alag hai ( vs ) — right panel mein corner aur door tak jaata hai.

  3. Conclusion: . entry ek taraf hai aur doosri taraf .

Verify: Teeno entries mein agree karte hain aur ek mein differ karte hain, toh ✓. Yeh exactly woh non-commutativity hai jiske baare mein parent warn karta hai: cheezein alag order mein karne se alag result milta hai.


[!example] Example 4 — Case D: zero & degenerate inputs

Do sub-cases jo logon ko surprise karte hain.

(4a) Zero matrix se multiply karo:

(4b) Do non-zero matrices jinka product zero hai:

Figure mein kya dhundhna hai: panel geometrically dikhata hai ki kyun hai — poore plane ko ek single line (mint) par squash karta hai, aur ke output arrows (coral) exactly us direction pe land karte hain jise kill karta hai, toh unhe origin pe flatten kar deta hai.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: (4b) ke liye, kya do matrices jo clearly not zero hain, multiply hokar zero matrix de sakti hain? (Ordinary numbers ke saath yeh impossible hai.)

Steps:

  1. (4a) ki har entry, ki row dotted with zeros ka column hai, toh har term hai: Yeh step kyun? Parent se "zero property" confirm karta hai — all-zero list ke saath dot product hamesha hota hai.

  2. (4b) entry by entry compute karo: Yeh kyun matter karta hai: Haan! even though aur . Toh tum matrices ko numbers ki tarah cancel nahi kar sakte.

Verify: (4b) ke liye har entry hai ✓. Note karo aur : dono degenerate hain (zero determinant). Sirf aise "flattening" matrices zero ko multiply hokar zero de sakti hain bina khud zero hue — ek hint ki na toh aur na ka koi inverse hai.


[!example] Example 5 — Case E: identity aur sare sign combinations

aur compute karo. (Yeh hume charon sign patterns se force karta hai: .)

Figure mein kya dhundhna hai: ek test arrow (lavender) se unmoved rehta hai, aur se apni exact opposite (coral, origin ke through pointing) pe jaata hai — ek flip.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: se multiply karne par kya hota hai? ke baare mein kya?

Steps:

  1. : Yeh step kyun? Identity matrix matrices ka "multiply-by-1" hai; ki har row khud ko pick out karti hai. Kuch nahi badlata.

  2. (yahan ): Yeh step kyun? se multiply karna har sign flip karta hai — dekho kaise charon entries mein se har ek reverse hoti hai, aur cover karte hue.

Verify: exactly ✓. Aur kyunki : add karne par sab zeros aata hai ✓ (uses Matrix addition and scalar multiplication).


[!example] Example 6 — Case F: undefined product (STOP)

compute karo.

Figure mein kya dhundhna hai: shapes side by side rakhe hain. ke liye do inner numbers ( aur ) red gap ke saath draw kiye gaye hain — yeh meet nahi karte, toh product form nahi ho sakta. ke liye inner numbers ( aur ) touch karte hain (green), toh woh order legal hai.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: Sirf shapes dekho — kya yeh legal hai?

Steps:

  1. Shape check. is , is . Inner numbers hain aur — yeh clash karte hain () ✗. Yeh step kyun? ki row mein entries hain, lekin ke har column mein sirf entries hain. Alag length ki lists ke beech dot product form nahi ho sakta.

  2. Conclusion: undefined hai. Kuch compute mat karo.

  3. Flip it: kya legal hai? is , is : inner ✓, toh defined hai aur hai. Ek order kaam karta hai, doosra nahi. Flip kyun dikhayein? Yeh hammer home karne ke liye ki "undefined" order aur shape ke baare mein hai, matrices ke "bad" hone ke baare mein nahi. Wahi do matrices doosri taraf theek multiply ho jaati hain — isliye hamesha specific order ke shapes check karne chahiye jo tumse pucha gaya ho.

Verify: Check karne ke liye koi number nahi — check structural hai: toh "undefined" correct aur complete answer hai. Isliye parent dimensions pehle likhne par insist karta hai.


[!example] Example 7 — Case G: word problem real units ke saath

Ek shop do smoothies banati hai. Recipe matrix (rows = smoothie, columns = fruit: banana, apple) aur price matrix (rows = fruit, columns = store 1, store 2):

Har smoothie ki cost har store mein nikalo.

Figure mein kya dhundhna hai: chaar resulting costs ek labelled grid (smoothie × store) ke roop mein dikhaye gaye hain, taaki tum har entry ka meaning dekh sako sirf ek number ke bajaye.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: Kaun sa product — ya — yahan meaning rakhta hai? Pehle units match karo.

Steps:

  1. Units match karo. ke columns = fruits; ke rows = fruits. Yeh line up hote hain, toh meaningful product hai ( times : smoothie × store). Yeh step kyun? Inner index "same cheez" (fruit) hona chahiye warna sum nonsense hai — tum "bananas × ₹/apple" add nahi kar sakte.

  2. Smoothie A ki cost ( ka row 1):

    • Store 1:
    • Store 2: Yeh step kyun? ka row 1, smoothie A ke fruit counts hain; ek store ke price column ke saath dot karne par us store mein us smoothie ka bill milta hai.
  3. Smoothie B ki cost ( ka row 2):

    • Store 1:
    • Store 2: Yeh step kyun? Hum ke row 2 (smoothie B ki recipe) par switch karte hain; har store ka price column phir se ek total deta hai, answer ki doosri row fill karta hai.

Verify: Units: (fruit count)×(₹ per fruit) = ₹ ✓. Smoothie B zyaada apples use karti hai (store 1 par mahenga fruit), toh uski store-1 cost () smoothie A ki () se zyaada honi chahiye — hai bhi ✓.


[!example] Example 8 — Case H: exam twist, jab does hold

Dikhao , aur explain karo ki kyun order yahan matter karna band kar deta hai.

Figure mein kya dhundhna hai: dono matrices sirf - aur -axes ke along stretch karti hain (koi tilting nahi). Kyunki har ek apni axis par independently act karta hai, unhe kisi bhi order mein karne par har axis do factors ke product se scale hota hai — dono taraf same.

Figure — Matrix multiplication — conditions, process, non-commutativity

Forecast: Humne kaha ki matrices usually commute nahi karti. Yeh do exception kyun ho sakti hain?

Steps:

  1. : Yeh step kyun? Diagonal matrices ke liye sirf matching diagonal slots interact karte hain, toh product ka diagonal bas aur hai.

  2. : Kyun match karte hain: same diagonal numbers multiply hote hain, aur ordinary number multiplication commutative hai (). Koi off-diagonal mixing nahi hoti.

  3. Conclusion: . Commuting ek special case hai, rule nahi — yahan kaam karta hai kyunki har matrix sirf axes ke along stretch karti hai, aur stretch-then-stretch mein koi order dependence nahi hoti.

Verify: Dono products equal hain toh ✓. Example 3 se contrast karo, jahan ek shear ne axes mix kiye aur commutativity fail ho gayi.


[!recall]- Scenario check — answers cover karo

Kaun sa product legal hai: ya ?
Sirf (inner ); ko inner chahiye, fail karta hai.
Kya ho sakta hai jab ?
Haan — Example 4b dekho; dono degenerate hone chahiye (zero determinant).
Ek matrix ko se multiply karna kya karta hai?
Har entry ka sign flip kar deta hai, deta hai.
Diagonal matrices ke liye kab guaranteed hai?
Hamesha — matching diagonal numbers multiply hote hain, aur numbers commute karte hain.
Smoothie problem mein kyun aur kyun nahi?
Shared inner index "fruit" hona chahiye; sirf fruit-columns ko fruit-rows se align karta hai.

Connections