Determinants, inverses, eigenvalues, rank, row reduction and solving Ax = b for matrices up to 6 by 6, in exact fractions with every answer checked.
Initializing in your browser…
Work out the tip, the total and each person's share of a bill, with tax and rounding options, and shares that always add up to the total.
Solve linear, quadratic, cubic and polynomial equations up to degree 12, and systems of up to six linear equations, with exact fractions and every answer checked.
A scientific calculator with exact fractions and decimals, degrees or radians, 34 functions and a desk-calculator mode. Rounded answers are labelled as rounded.
You need the inverse of a 3 by 3 matrix for a homework problem and want to be sure it is right before using it.
Matrix A
[ 2 -3 1 ] [ 2 0 -1 ] [ 1 4 5 ]
Inverse of A
[ 4/49 19/49 3/49 ] [ -11/49 9/49 4/49 ] [ 8/49 -11/49 6/49 ] Determinant: 49 A times its inverse is EXACTLY the identity Condition number (1-norm): 5.57143
The determinant is 49, so the inverse exists and every entry of it is a whole number divided by 49. Because the work is done in exact fractions, multiplying A by the inverse gives exactly 1 on the diagonal and exactly 0 elsewhere, which confirms the answer without trusting the calculation. A condition number of about 5.6 means the matrix is well conditioned: small errors in the entries would change the inverse only a little.
Determinants, inverses, eigenvalues and eigenvectors, rank, row reduction, null spaces, products and powers for matrices up to 6 by 6, all worked out in exact fractions. Enter the entries, pick an operation, and every answer comes with a check you can see.
Fifteen operations. For a single matrix you can find its determinant, inverse, transpose, reduced row echelon form, rank, trace, adjugate, null space, eigenvalues and eigenvectors, raise it to a whole power, multiply it by a number, or solve the system Ax = b. For two matrices there is addition, subtraction and multiplication, with a plain explanation when the shapes do not fit, for example when A has three columns and B has two rows. Choose the size of each matrix up to 6 by 6, type the entries as whole numbers, decimals or fractions such as 3/4, or paste a block of cells copied from a spreadsheet into any cell and the matrix fills from there.
Exact fractions throughout. Every entry is kept as an exact fraction, so nothing is rounded along the way. The determinant of an integer matrix is always an integer, the inverse of [[2, -3, 1], [2, 0, -1], [1, 4, 5]] has entries such as 19/49, and multiplying a matrix by its inverse gives exactly the identity, every entry exactly 1 or 0. Exactness also means that a matrix is called singular only when its determinant really is zero. A tool that compares against a small tolerance would call a perfectly good matrix with tiny entries singular; here scaling a matrix never changes the verdict.
How much to trust the inputs. Beside every inverse the tool reports the condition number, which measures how sensitive the problem is. A large condition number, such as the one for the nearly singular example, means that a small error in the entries would change the answer a lot, so the inverse is only as meaningful as the data is precise. The 1-norm and Frobenius norm are shown too.
Eigenvalues and checks. Eigenvalues come from the characteristic polynomial, which is computed exactly and shown, so rational eigenvalues are exact and irrational or complex ones are found numerically. The page checks that the eigenvalues add up to the trace, multiply to the determinant, and that the matrix satisfies its own characteristic polynomial (the Cayley-Hamilton theorem). For rational eigenvalues it lists a basis of eigenvectors and points out when a repeated eigenvalue has too few of them, which means the matrix cannot be diagonalised. Systems Ax = b are solved by exact elimination and the answer is multiplied back through A to confirm it, and the elimination steps can be shown one row operation at a time. Results can be copied as tab-separated cells that paste straight into a spreadsheet, and Share gives a link to the same matrices. Everything runs in your browser.
[[2, -3, 1], [2, 0, -1], [1, 4, 5]] has determinant 49, so it is invertible.
[[1, 2, 3], [4, 5, 6], [7, 8, 9]] has determinant exactly 0 and rank 2: the third row is twice the second minus the first.
[[4, 1], [2, 3]] has the characteristic polynomial λ^2 - 7λ + 10 and eigenvalues 2 and 5, which add up to the trace 7 and multiply to the determinant 10.
Check a determinant, an inverse or a row reduction, and compare each elimination step with your own.
Enter the coefficient matrix and the right-hand side to get an exact solution, or learn that there is none.
Check that a covariance or stiffness matrix is invertible and how well conditioned it is before relying on it.
See the characteristic polynomial, the eigenvalues and eigenvectors, and whether the matrix can be diagonalised.
Because the arithmetic is exact. A decimal such as 0.3877551 would be a rounding of 19/49, and rounding errors build up during elimination. Non-whole results are shown as fractions, and a decimal value is given beside single numbers such as a determinant.
Its determinant is zero, so it has no inverse and its rows (and columns) are linearly dependent: at least one can be built from the others. The system Ax = b then has either no solution or infinitely many.
A measure of how much the answer can change when the entries change slightly. It is the norm of the matrix times the norm of its inverse. Values near 1 are very stable; values in the millions mean that tiny measurement errors could change the inverse completely.
From the characteristic polynomial det(λI - A), which is computed exactly. Its rational roots are found exactly and the rest numerically, so a matrix like [[4, 1], [2, 3]] gives exactly 2 and 5, while a rotation matrix gives a complex pair.
Yes. Copy the block of cells, click the cell where it should start, usually the top-left one, and paste. Rows and columns are added automatically up to 6 by 6. Results can be copied back the same way.
6 by 6. Exact fractions can grow very long, especially for high powers and inverses of larger matrices, so the size is kept to what stays fast and readable.
Every calculation runs locally in your browser. Your numbers and expressions are not transmitted or stored.