Addition: same dimension
A+B makes sense only if A and B have the same dimension. Add coefficient by coefficient.
(13β24β)+(57β68β)=(610β812β)
Properties: commutative, associative, neutral element 0 (zero matrix).
Scalar multiplication
Ξ»A: multiply every coefficient by Ξ».
3Γ(13β24β)=(39β612β)
Matrix product: compatible dimensions
AΓB makes sense iff columns of A = rows of B.
If A is (n,p) and B is (p,q), then AB is (n,q).
Formula: (AB)ijβ=βk=1pβaikβbkjβ (row i of A Γ column j of B).
Example (2,2)Γ(2,2)
(13β24β)Γ(57β68β)=(1943β2250β)
Detail: 1Γ5+2Γ7=19, 1Γ6+2Γ8=22, etc.
β οΈ Non-commutativity
ABξ =BA in general! Even when both products exist.
(00β10β)(01β00β)=(10β00β)
(01β00β)(00β10β)=(00β01β)
Transpose: AT
Swap rows and columns. If A is (n,p), AT is (p,n).
A=(14β25β36β),AT=β123β456ββ
Properties:
- (A+B)T=AT+BT
- (Ξ»A)T=Ξ»AT
- (AB)T=BTAT (reversed order!)
- (AT)T=A
Common mistakes
- Adding A(2,3)+B(3,2): different dimensions, impossible.
- Writing AB=BA: false except in special cases.
- (AB)T=ATBT: NO, itβs BTAT.
- Forgetting row Γ column in the matrix product.
?Γ toi de jouer
A is (3, 2) and B is (2, 4). Dimension of AB?