HexMathv1.0.4
Matrix calculator
This matrix calculator adds, subtracts, scales and transposes matrices and finds determinants, rank and reduced row echelon form. Type the matrices or scan the problem. HexMath returns the resulting matrix or number and shows the working entry by entry, with each row operation written out so you can check any line.
Loading math input...
What this page covers
- Adding, subtracting and scaling matrices of the same size, and the transpose.
- Determinants of 2×2 and 3×3 matrices.
- Rank and reduced row echelon form by row operations.
- Not covered here in detail: products (see the matrix multiplication calculator), inverses (see the inverse matrix calculator) and eigenvalues (see the eigenvalue calculator).
How to enter the problem
- Type it or paste it. Write each matrix row by row, for example [[3, 1], [−2, 5]], or use the math keyboard's matrix key, and name the operation.
- 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: Subtract [3, 1; -2, 5] - [1, 4; 0, -2].
Problem
Subtract .
Answer
VerifiedThe answer is
Explanation
- Check the sizesBoth matrices are , so they can be subtracted. Subtraction works entry by entry.
- Top rowand .
- Bottom rowand . Subtracting a negative adds.
- Write the result.
Example 2: Find the reduced row echelon form of [1, 2, -1; 2, 5, 1].
Problem
Find the reduced row echelon form of .
Answer
VerifiedThe answer is
Explanation
- Clear below the first pivotgives the row .
- Clear above the second pivotgives the row .
- Read the resultEach pivot is 1 and is the only nonzero entry in its column.
Example 3: Find the rank of [1, 2, 3; 2, 4, 6; 1, 0, 1].
Problem
Find the rank of .
Answer
VerifiedThe answer is
Explanation
- Spot a dependent rowRow 2 is twice row 1, so turns it into a row of zeros.
- Reduce the third rowgives , which is not zero.
- Count the nonzero rowsTwo nonzero rows remain in echelon form.
Common mistakes
- Subtracting only some entries, or subtracting in the wrong order. subtracts each entry of from the matching entry of .
- Forgetting the alternating signs in a cofactor expansion. The middle term of a 3×3 expansion along the first row has a minus sign.
- Adding matrices of different sizes. Addition and subtraction need the same number of rows and columns.
- Stopping at row echelon form when the question asks for reduced row echelon form, where every pivot column is cleared above and below.
Checks, assumptions and limits
- Check a determinant by expanding along a different row or column. The value must be the same.
- Entries are kept as exact integers or fractions. Determinants, inverses and eigenvalues need square matrices.
- HexMath can make mistakes. Double check important steps.
Frequently asked questions
Addition, subtraction, scaling, transpose, determinant, rank and reduced row echelon form. You can also ask for a product, inverse or eigenvalues and see the steps.
Write it row by row in square brackets, such as [[1, 2], [3, 4]], or use the math keyboard's matrix key. Then name the operation.
Yes. Use the camera on the one problem, or choose a photo. Several problems in one photo are solved as a list.
Yes. Determinants of 2×2 and 3×3 matrices are covered, with the expansion written out step by step.
All linear algebra 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