lesson

Updated 6 days ago ยท 1 view
With regular numbers, you can multiply any two values you want, like 3ร7 or 0.5ร12. But with matrices, trying to multiply the wrong pair is like trying to plug a USB cable into a headphone jack โ they simply will not fit.
How do you know when two matrices are compatible?
Reading Matrix Dimensions
A matrix's dimension (or size) is always written as rowsรcolumns. A quick trick to remember the order is RC (like a Remote Control): count horizontal rows first, then vertical columns second.
๐A visual interactive-style card showing a 2x3 matrix with labeled brackets. Rows are highlighted with horizontal blue bands labeled 'Row 1' and 'Row 2' (height 2). Columns are highlighted with vertical amber bands labeled 'Col 1', 'Col 2', 'Col 3' (width 3). Below the matrix, a large badge reads 'Dimensions: 2 ร 3' with 2 in blue and 3 in amber.
Now that you can name any matrix's dimensions, what happens when you place two matrices side-by-side to multiply them?
The Inner-Outer Rule
To multiply matrix A by matrix B, write their dimensions next to each other. The inner dimensions must be equal for multiplication to be defined, and the outer dimensions tell you the size of the product matrix.
๐A dynamic diagram illustrating the Inner-Outer dimension rule. Box A shows size (m ร k) in blue. Box B shows size (k ร n) in amber. An arched bracket connects the two middle numbers ('k' and 'k') labeled 'Inner Dimensions: MUST MATCH (Multiplication is possible!)'. An outer bracket connects 'm' and 'n' leading down to a green result box: 'Product Size: m ร n'.
Why do the inner numbers have to match in the first place?
Why the Inners Must Match
Matrix multiplication works by taking a horizontal row from the first matrix and pairing its numbers one-by-one with a vertical column from the second matrix. In 1858, British mathematician Arthur Cayley formalized matrix algebra to represent systems of linear equations, defining multiplication specifically around these row-by-column combinations.
If Matrix A has 3 columns, each row contains 3 items. If Matrix B has only 2 rows, its columns only have 2 items โ leaving one number with no partner to multiply by, making the operation impossible.