Matrix Multiplication
Tags: #◇CSMATH2 #◇Linear Algebra #◇Computational Mathematics #◇Matrices #◇Matrix Operations #◇Computer Science #◇Vector Spaces #◇Linear Transformations
◇Overview
Definition: If is an matrix and is an matrix, their product is an matrix
◇Key Concepts
Size Compatibility Condition Non-Commutativity
◇Details / Theory
Definition: If is an matrix and is an matrix, their product is an matrix , where the entry (in the i-th row, j-th column of ) is calculated by taking the dot product of the i-th row of with the j-th column of :
(Handout 1, Page 21) Size Compatibility Condition: The number of columns of (n) must equal the number of rows of (n). If is and is , then is defined and has size . (Handout 1, Page 21)
PN: This is the most complex standard operation. It's NOT element-wise multiplication! Always check dimensions first: . The inner dimensions must match. Non-Commutativity: Matrix multiplication is generally NOT commutative, meaning even if both products are defined (which requires and to be square matrices of the same size). (Handout 1, Page 25)
Example: Let and .
$$BA=\begin{bmatrix} 0(3)+1(2) & 0(-2)+1(5) \\ 3(3)+4(2) & 3(-2)+4(5) \end{bmatrix}=\begin{bmatrix} 2 & 5 \\ 17 & 14 \end{bmatrix}$$
Clearly, $AB \neq BA$. (Handout 1, Page 25)
PN: This is a critical difference from scalar arithmetic. The order of multiplication matters significantly.
◇Common Pitfalls
Multiplication is NOT commutative: in general. Inner dimensions must match: — if cols of rows of , undefined. does not mean or .
◇Summary
TL;DR — . Requires inner dimensions to match. Not commutative. Associative and distributive over addition.
◇Links
Related: Source / Reference:
◇References & Navigation
- Previous Topic: ◇Matrix Equality
- Next Topic: ◇Matrix Subtraction (Difference)
- Related Notes: ◇Upper Triangular Matrix, ◇Types of Matrices, ◇Matrices Detailed
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
To multiply matrix of size by matrix of size , what dimensional condition must be met?
If is an matrix and is an matrix, what is the size of the resulting product matrix ?
How is the specific entry computed in the product matrix ?
Which of the following is a true statement regarding the commutativity of standard matrix multiplication?
What is the fundamental difference between matrix multiplication and element-wise scalar multiplication?
If the matrix product equals the zero matrix , what can be definitively concluded about matrices and ?
What formal summation formula represents the calculation for entry in the matrix product ?
For two square matrices and of the exact same size, is the product always equal to ?
According to the properties of operations, matrix multiplication is distributive over which other matrix operation?
Which of the following best describes the "inner dimensions" that must match in matrix multiplication ?