4.5.7 · HinglishLinear Algebra (Full)

Matrix multiplication — definition, associativity, non-commutativity

1,462 words7 min readRead in English

4.5.7 · Maths › Linear Algebra (Full)


1. The definition — derived, not dumped

Sum-of-products KYU? Chalte hain ise derive karte hain. Ek matrix ek vector par aise act karti hai: Hum demand karte hain ki woh single matrix ho jo " after " kare, yani har ke liye. -th entry compute karo:

To ko multiply karne wala coefficient — jo ki hai — forced hai ki ho. Definition arbitrary nahi hai; composition ise force karti hai.

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

2. Worked examples


3. Associativity — WHY it's free

Algebraic proof (entrywise). Compatible sizes ke saath, Dono same double sum ke barabar hain — finite sums reorder ho sakti hain. Ho gaya. Associativity hi wajah hai ki "" unambiguous hai.

Yeh bhi note karo ki distributivity hoti hai: aur , aur (identity).


4. Non-commutativity — WHY in general

Teen reasons ki :

  1. Shape: aur ke sizes alag ho sakte hain (Example 2) — tab woh equal ho hi nahi sakte.
  2. Jab dono square bhi hon: dot products rows/cols ko alag tarike se mix karte hain. Upar vs dekho.
  3. Commutator failure measure karta hai: . Yeh hai iff woh commute karte hain.

5. Steel-manned mistakes


Recall Feynman: ek 12-saal ke bachche ko samjhao (hidden)

Har matrix ko ek chhoti si recipe machine samjho jo ek grid par dots ko move karti hai. matlab "machine chalao, phir machine , ek saath ek combined machine ki tarah." Woh combined machine banane ke liye ki har row ko ke har column ke upar slide karo, matching numbers multiply karo aur add karo — yahi row-dot-column rule hai. Kyunki -then- karna usually -then- se alag hota hai (jaise pehle moze phir joote vs pehle joote phir moze), order badalne se usually alag machine milti hai — yahi non-commutativity hai. Lekin teen machines ko group karna vs same pipeline deta hai, isliye grouping free hai — yahi associativity hai.


Active recall

ke liye kya hai?
ki row को के column से dot kiya.
form karne ke liye kaunse dimensions match karni chahiye?
Inner wale: , hai, , hai; result hota hai.
Product row·column sums se kyun define hota hai, entrywise nahi?
Taaki ho, yani do linear maps ka composition represent kare.
Associativity state karo aur justify karo.
; dono kisi bhi vector par maps ko order mein apply karte hain, aur entrywise dono ke barabar hain.
Kya matrix multiplication commutative hai? Ek counterexample do.
Nahi. Jaise ulta.
kya hai?
(order reverse hota hai).
Matrices ke liye expand karo.
(na ki jab tak commute na karein).
Commutator define karo aur yeh kya measure karta hai.
; yeh hai iff aur commute karte hain.
Kya ho sakta hai jab dono nonzero hon?
Haan — matrices mein zero divisors hote hain, jaise .

Connections

  • Linear Transformations — matrix product = maps ka composition.
  • Identity and Inverse Matrices.
  • Dot Product ki har entry ek dot product hai.
  • Determinants (non-commutativity ke bawajood multiplicative).
  • Transpose (order yahan bhi reverse hota hai).
  • Matrix Powers and Diagonalization — commuting matrices ke eigenvectors share hote hain.

Concept Map

multiply = compose

forces

requires

three readings

used in

inherits

order matters

different shapes

shown by

illustrates

Matrix as linear map

Composition A after B

Definition Cij = sum Aik Bkj

Inner dims must match

Entry / Column / Row views

Worked examples

Associativity AB C = A BC

Non-commutativity AB != BA

Rotation then flip != flip then rotation

Deep Dive