Math Buddyv1.0
Matrix multiplication calculator
Type or scan two matrices. MathBuddy multiplies them, one row times one column at a time.
Loading math input...
What this page covers
- Products of square and rectangular matrices, when the inner sizes match.
- A matrix times a column vector.
- Entries that are integers, fractions, decimals or letters.
- Not covered here: the inverse of a matrix (use Inverse matrix calculator) and determinants (use Determinant calculator).
How to enter the problem
- Type it or paste it. Write each matrix row by row, for example [[2, 1], [0, 3]], or use the math keyboard's matrix key, and put the two matrices side by side.
- Scan it. Fit the one problem in the frame.
- Choose a photo. Several problems in one photo are solved as a list.
- Then tap Solve.
Worked examples
Example 1
Problem
Find for and .
Answer
VerifiedThe answer is
Explanation
- Check the sizesis and is . The inner sizes match (3 and 3), so is .
- First row of A times each column of Band .
- Second row of A times each column of Band .
- Write the productPlace each result in the row of and the column of it came from.
Example 2
Problem
With the same matrices, find .
Answer
VerifiedThe answer is
Explanation
- Check the sizesis and is , so is . It is a different size from .
- First row of Btimes the columns of : , , .
- Second row of B: , , .
- Third row of B: , , .
Example 3
Problem
Multiply by the column vector .
Answer
VerifiedThe answer is
Explanation
- Check the sizesA matrix times a vector gives a vector.
- Row 1
- Row 2
- Row 3
Common mistakes
- Multiplying matching entries instead of rows by columns. For the runnable example that would make the top-left entry instead of .
- Assuming . Matrix multiplication is not commutative, and the two products can even have different sizes.
- Multiplying when the inner sizes do not match. A matrix cannot be multiplied by a matrix.
- Putting a result in the wrong place. The entry in row , column comes from row of the first matrix and column of the second.
Checks, assumptions and limits
- Check one entry by hand. Pick any position, multiply that row of the first matrix by that column of the second, and compare.
- The product exists only when the number of columns of equals the number of rows of . The result has the rows of and the columns of .
- MathBuddy can make mistakes. Double check important steps.
Related tasks
Frequently asked questions
Each entry of AB uses rows of A and columns of B. Swapping the order uses different rows and columns, so BA is usually a different matrix, or a different size.
Yes. Write the vector as a column, one entry per row. The result is a vector with one entry per row of the matrix.
Yes. Use the camera on the one problem, or choose a photo. Several problems in one photo are solved as a list.
1 math question to try today without signing in, 3 a day signed in, unlimited with Pro.
Ready to solve your next math problem?
Try one problem free in your browser. Create a free account for 3 math questions a day.
Last updated: · MathBuddy