Q.If and , find and , and show that .
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Concept understanding — Matrix Multiplication Compatibility
Matrix Multiplication Compatibility: The Inner-Dimensions Rule
You cannot multiply just any two matrices. Multiplication is defined only when their sizes line up in a specific way, and this compatibility check is always the very first step of any product.
The Idea: A Row Meets a Column
When you multiply by , you take each row of and pair it against each column of , multiply corresponding entries, and add. For that pairing to work, a row of must have exactly as many entries as a column of .
Think of a handshake: each finger of one hand must meet a finger of the other. If one hand has fingers and the other has , the handshake fails.
The Precise Statement
Let be and be .
is defined if and only if — the number of columns of equals the number of rows of . The product then has order .
Writing the sizes side by side, , the inner numbers () must match; the outer numbers () give the result's shape.
Why the Rule Exists
Each entry of the product is
Here runs over the columns of (up to ) and the rows of (up to ). If , the sum runs out of matching terms and is meaningless — that is exactly why compatibility demands .
Even when both and are defined, they usually differ. For of order and of order , is but is — different sizes entirely. Matrix multiplication is not commutative.
Quick Check
| | | Defined? | Result | …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.