Gauth

Calculator

Matrix Calculator with Steps

Multiply matrices, take determinants and inverses, and row reduce to reduced echelon form, with every elementary row operation written in the notation your marker expects.

Solve a matrix problem now

First solution free

How to use it

Enter matrices in bracket notation, one row at a time: [[2,1],[5,3]]. Name the operation you want — multiply, determinant, inverse, transpose, rank, or row reduce — because several of them apply to the same input. For a system of equations written as an augmented matrix, say so, and the working keeps the bar in place. Systems given as ordinary equations are usually clearer through the system of equations solver.

The method behind it

A matrix is a rectangular array of numbers, and its shape governs what you are allowed to do with it. Addition needs identical dimensions. Product needs the number of columns of to equal the number of rows of , and the result takes the outer dimensions.

Each entry of the product is a row of the left matrix paired term by term with a column of the right matrix. That asymmetry is why and are usually different matrices and occasionally not even the same size.

The determinant of a square matrix measures how much the transformation scales area, or volume in three dimensions. For a two-by-two matrix it is a single product difference.

For three-by-three, expand along any row or column, multiplying each entry by the determinant of the two-by-two matrix left after deleting that entry row and column, with signs alternating from a plus in the top-left corner. Choosing a row containing a zero removes a term entirely.

A zero determinant means the transformation collapses space, and a collapse cannot be undone — that is precisely why such a matrix has no inverse. When the determinant is non-zero, the two-by-two inverse has a closed form worth memorising: swap the leading diagonal, negate the other two entries, divide by the determinant.

Beyond two-by-two, use Gauss-Jordan elimination instead. Write the matrix beside an identity of the same size and apply row operations until the left half becomes the identity; whatever the right half has become is the inverse. Only three operations are permitted: swap two rows, multiply a row by a non-zero constant, and add a multiple of one row to another.

This machinery exists mostly to solve systems. Writing a linear system as turns solving into one matrix operation.

In practice, row reducing the augmented matrix is faster than computing an inverse and then multiplying, and it keeps working when the system has no unique solution. The two inversion routes are compared in inverting a matrix two ways, and the connection to hand methods is in substitution, elimination, or graphing.

Worked examples

Worked example

  1. 1

    Check the shapes first. The inner dimensions agree, so the product exists and is 2 by 2.

  2. 2

    First row of the answer: pair row 1 of the left matrix with each column of the right matrix in turn.

  3. 3

    Second row: the same pairing with row 2. The zero kills the first term of each product.

  4. 4

    Assemble the entries in position. Row index comes from the left matrix, column index from the right.

  5. 5

    Multiplying in the other order gives a different matrix entirely, which is the standard demonstration that matrix multiplication does not commute.

Answer

Worked example

  1. 1

    The determinant is 2·3 − 1·5 = 1, which is non-zero, so an inverse exists. Augment the matrix with the 2 by 2 identity.

  2. 2

    Make the leading entry of row 1 into a 1 by halving the whole row, right-hand side included.

  3. 3

    Clear the entry below it by subtracting 5 times row 1 from row 2.

  4. 4

    Scale row 2 so its leading entry is 1. Doubling is the only operation needed here.

  5. 5

    Clear the entry above the second pivot. The left half is now the identity, so the right half is the inverse.

  6. 6

    Confirm by multiplying. The product is the identity, which is the definition being satisfied.

Answer

Try a matrix of your own

Change the four entries and watch the determinant and the inverse respond. Two experiments are worth running: make the second row a multiple of the first and see the determinant hit zero, then nudge one entry and watch the inverse reappear with enormous values — the matrix was nearly singular.

Determinant and inverse of a 2 by 2 matrix

Matrix A

Determinant

(2)(3) − (1)(5) = 1

Inverse

1/1 × swap diagonal, negate the other two

3-1-52

Common mistakes

Assuming the order does not matter

Matrix multiplication is not commutative. In the example above and differ in three of their four entries. When you multiply both sides of a matrix equation, you must do it on the same side of both.

Dividing by a matrix

There is no matrix division. To undo you multiply by on the left of both sides, giving and not , which may not even be a legal product.

Dropping the alternating signs in a cofactor expansion

The middle term of an expansion along the top row is subtracted, not added. In the three-by-three example, using instead of changes the determinant from 22 to 2.

Practice

Answers are checked here — nothing is sent anywhere.

  1. 1
  2. 2
  3. 3

Frequently asked questions

What sizes can it handle?
Anything you would meet in a linear algebra course. Multiplication needs the inner dimensions to agree, and determinants and inverses need a square matrix; the working says which condition fails when one does.
Does it list the row operations?
Yes, one per line, written in the standard notation such as R2 → R2 − 5R1. That is the part markers award method credit for, and it is the part that is impossible to reconstruct from a final answer.
What happens if the matrix has no inverse?
The determinant comes out zero and the solution says the matrix is singular. Geometrically the transformation squashes space onto a line or a point, and that cannot be undone, which is why no inverse exists.
Can it find eigenvalues?
Ask for the characteristic equation, det(A − λI) = 0, and its roots. For a 2×2 matrix that polynomial is λ² − (trace)λ + determinant, so the two eigenvalues always sum to the trace and multiply to the determinant.
What does it cost?
The first solution is free with no account required. Free accounts get three a day, and Gauth Plus is $11.99 a month with a three-day free trial.

Keep going

Gauth AIAsk me for any help!