Matrix Calculator
Products, determinants, inverses and linear systems with AI-powered step-by-step working
The Operations and Their Rules
A matrix is a rectangular array of numbers with a shape, written rows × columns. The shape decides what is legal.
- Addition and subtraction work entry by entry and require identical shapes.
- Scalar multiplication multiplies every entry: doubles each one.
- Matrix multiplication needs the inner dimensions to agree: an matrix times an matrix gives an result. Entry of the product is the dot product of row of the first matrix with column of the second.
- Transpose flips rows into columns.
- Trace is the sum of the main-diagonal entries, defined only for square matrices.
- Determinant of a matrix is .
Matrix multiplication is not commutative: and are usually different matrices, and one may not even be a legal product.
A matrix is a row vector and an matrix is a column vector. That is exactly why an entire system of equations can be written as one compact matrix equation.
Solving a Linear System with Matrices
Any linear system can be written as , where holds the coefficients, the unknowns and the right-hand sides. The system
becomes .
If the matrix has an inverse and the solution is . For matrices:
Swap the diagonal entries, negate the off-diagonal ones, divide by the determinant.
When there is no inverse, and the system either has no solution or infinitely many — the same two degenerate cases you meet with substitution and elimination.
Common Mistakes to Avoid
- Assuming . Order matters. swaps columns; reversing the order swaps rows instead.
- Multiplying entry by entry. Matrix product entries are dot products of a row with a column, not products of matching positions.
- Checking the wrong dimensions. A times a is undefined; the columns of the first must equal the rows of the second.
- Forgetting to divide by the determinant when writing an inverse. The adjugate alone is not .
- Solving as . The inverse must be applied on the left: .
- Sign slips in . With negative entries, write each product out before subtracting.
示例题目
常见问题
Only when the number of columns in the first matrix equals the number of rows in the second. A 2x3 matrix can multiply a 3x4 matrix, giving a 2x4 result. If the inner dimensions do not match, the product simply does not exist.
The trace is the sum of the entries on the main diagonal, from top left to bottom right, and it is defined only for square matrices. It equals the sum of the eigenvalues, which is why it appears so often in linear algebra even though it is trivial to compute.
Because its determinant is zero, which means the rows are linearly dependent — one is a multiple or combination of the others. For a linear system that signals either no solution or infinitely many, so no single point can be recovered by inverting.
For two equations, substitution or elimination is usually quicker by hand. Matrices pay off with three or more equations, and especially when you have to solve the same coefficient matrix against several different right-hand sides, since the inverse is computed only once.
相关求解器
相关学习指南
免费试用 AI-Math
任何数学问题都能获得分步解答。拍照上传或输入问题即可。
开始解题