Matrix Multiplication Flashcards
What is the compatibility rule?
The matrix multiplication (product) AB of two matrices A and B is only defined if the number of columns of A equals the number of rows of B.
Define matrix multiplication.
If A is a m×n matrix and B is a n×p matrix, then their product AB is the m×p matrix whose (i, j)-th entry is the dot product of
the i-th row of A with j-th column of B.
What are the 4 properties of matrix multiplication?
- Sometimes we can find AB, but BA is not defined (not compatible).
- In general AB≠BA (the product is not commutative).
- It can happen that AB=0 (zero matrix), but neither A nor B is zero
- It can happen that AC=BC, but C≠0 (zero matrix) and A≠B (we can not cancel out C, even if C≠0).
What are 5 other rules for Matrix multiplication?
Suppose A, B, C are matrices and k ∈ R. Then,
1. (AB)C = A(BC),
2. A(B + C) = AB + AC,
3. (B + C)A = BA + CA,
4. k(AB) = (kA)B = A(kB),
5. If A is a m × n matrix, then A 0n×p = 0m×p and
0q×mA = 0q×n, where 0n×p is the zero matrix of size n × p
Define a matrix’s transpose.
The transpose of a m×n matrix A is the n×m matrix A^T whose rows are columns of A
What are the 4 properties of Transpose operations?
- (A+B)^T = A^T+B^T
- (kA)^T = kA^T , k ∈ R,
- (A^T)^T = A,
- (AB)^T = B^T A^T (Note the order).
What are identity matrices?.
Square matrices whose diagonal entries are all 1.
What are two facts about identity matrices?
- For every n×n matrix A, we have AI_n = I_nA = A.
2. For every n∈N, we have (I_n)^T = I_n
Define block multiplication.
Matrices can be cut into blocks (smaller matrices) to simplify matrix multiplication.
Describe Matrix Multiplication in Vector Format.
Suppose A is a m×n matrix and B a n×k matrix. We can write B in vector format as B = [b1,b2,···,bk ], where bj
is the j-th column of B and a vector in R^n. Then the product AB is the
m×k matrix given by
AB = A[b1,b2,···,bk] = [Ab1,Ab2,···,Abk].
Similarly, we can write A in vector format A=[a1,a2,···,am]^T ,
where ai
is the i-th row of A and a vector in R^n. Then, the m×k
product matrix AB is given by
AB = [a1,a2,…,am]
B = [a1B,a2B,…,amB]
What is a fact about solving linear systems?
Solving [A | b] and finding x=(x1,···,xn) is the same as solving the matrix equation Ax = b. If A is the size m×n coefficient matrix, we can write A=[c1,···,cn], where ci is a vector in R^m. Then Ax=x1c1+···+xncn is linear combination of columns of A.
i.e.: Ax = b is consistent ⇔ b is a linear combination of columns of A