HexMathv1.0.4
Matrix multiplication calculator
This matrix multiplication calculator multiplies two matrices, or a matrix and a column vector. Type the matrices or scan them from a photo. HexMath first checks that the sizes match, then returns the product matrix and shows how each entry is found as one row times one column, for integers, fractions, decimals or letters.
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 (see the inverse matrix calculator) and determinants (see the matrix 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: Multiply [2, 1; 0, 3][1, 4; 2, -1].
Problem
Multiply .
Answer
VerifiedThe answer is
Explanation
- Check the sizesA times a gives a . Each entry is a row of the first matrix times a column of the second.
- First row of the resultRow times column : . Row times column
- Second row of the resultRow times column : . Row times column
- Assemble.
Example 2: With the same matrices, find BA.
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: Multiply [2, -1, 0; 1, 3, 2; 0, 1, 4] by the column vector [1; 2; -1].
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 example in the solver above 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 .
- HexMath can make mistakes. Double check important steps.
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.
When the number of columns of the first matrix differs from the number of rows of the second. The first step checks the sizes, so you see at once when the product is not defined.
Related tasks
Ready to solve your next math problem?
Create a free account for 3 math questions a day in your browser. No card.
Last updated: · HexMath