The four dot products fill a 2 by 2 result matrix.
AB=[5813964154]
AB=[5813964154]
Verification: Independent numerical loops reproduce 58, 64, 139, and 154, and the result has rows(A)=2 and columns(B)=2.
Avoidable errors
Common mistakes and how to fix them
Comparing the outer dimensions
Problem: Require rows of A to equal columns of B.
Why it matters: The dot products pair a row of A with a column of B, so their lengths come from columns of A and rows of B.
Better approach: Check columns(A)=rows(B). Use rows(A) by columns(B) for the output shape.
Multiplying corresponding entries
Problem: Multiply a11 by b11, a12 by b12, and stop.
Why it matters: That is an entrywise operation, not the row-by-column definition of matrix multiplication.
Better approach: For cij, multiply every entry in row i of A by the matching entry in column j of B, then add.
Assuming AB equals BA
Problem: Reverse the matrices without recalculating.
Why it matters: The dimensions may change or BA may be undefined, and even two defined products usually have different entries.
Better approach: Treat order as part of the problem and calculate the requested product only.
Predicting the wrong result size
Problem: Copy the dimensions of A or B automatically.
Why it matters: The shared inner dimension disappears into each dot product.
Better approach: Keep the two outer dimensions: rows of A by columns of B.
Trust the result for the right reasons
Checks, assumptions, and limits
How results are checked
Every entry is parsed by the site's Nerdamer mathematics library before multiplication.
Each result cell is built from an explicit row-by-column exact sum.
A separate finite-number implementation recomputes every product cell.
The result shape is checked against rows(A) by columns(B).
When to stop and revise the input
This release accepts finite real integers, decimals, and simple fractions, not variables or complex entries.
Each input matrix is limited to 4 by 4 so cell-level explanations remain usable.
The calculator evaluates AB only; chained products and powers require separate steps.
An incompatible product remains undefined and is never changed into entrywise multiplication.
Common questions
Multiply matrices row by column FAQ
When can matrix A be multiplied by matrix B?
AB is defined when the number of columns in A equals the number of rows in B. Those are the inner dimensions used in every dot product.
What size is the product matrix?
If A is m by n and B is n by p, then AB is m by p. The result keeps the rows of A and the columns of B.
Why does the calculator show one step per result cell?
Each cij comes from a different row-column pairing. Showing the products and their sum makes it possible to locate a sign or arithmetic mistake instead of accepting an opaque result.
Does AB always equal BA?
No. Matrix multiplication is generally not commutative. BA can have different entries, a different shape, or be undefined even when AB exists.
Can matrix entries be fractions?
Yes. Enter simple fractions such as 1/2 or -3/4. The calculator keeps them exact through the row-by-column sums.
Sources and curriculum alignment
This page follows standard introductory mathematics notation and learning sequences. Use these references to continue with a complete course treatment.