Matrix algebra
Introduction / Definition
Matrix algebra gives rules for adding, subtracting, scaling, and multiplying matrices. Addition is entry-by-entry, while multiplication combines rows and columns. Matrix multiplication is associative and distributive but generally not commutative. These operations are fundamental to linear systems and transformations.
Syntax / Mathematical Form
(A+B)ᵢⱼ=aᵢⱼ+bᵢⱼ; (AB)ᵢⱼ=Σₖaᵢₖbₖⱼ
Detailed Explanation
For AB, columns of A must equal rows of B. If A is m×n and B is n×p, AB is m×p. The entry in row i and column j is a row-column dot product.
Example
A = [ 1 2 ]
[ 3 4 ], B = [ 5 6 ]
[ 7 8 ]
AB = [ 19 22 ]
[ 43 50 ].
Output
AB = [ 19 22 ]
[ 43 50 ].
Important Points / Notes
- AB may differ from BA.
- I is the identity matrix.
- Associativity and distributivity hold.
Mini Practice Question
Calculate AB for A = [ 1 2 ] [ 0 1 ] and B = [ 2 1 ] [ 3 4 ].