QuickCalculators adds, subtracts and multiplies matrices up to 10 by 10, transposes, raises square matrices to powers, and returns determinants and inverses when defined. The matrix calculator blocks illegal dimensions and warns when determinants near zero make inversion unstable.
Add and subtract matrices
Matrix addition requires matching rows and columns. Add corresponding entries for A plus B. Subtraction negates B before addition. Mismatching 2 by 3 with 3 by 2 returns a message naming the dimension rule that failed.
Multiply matrices
Matrix multiplication needs columns of A equal rows of B. The product size becomes rows of A by columns of B. Inner dimensions must align or the operation stays disabled with an explanation.
Multiply by a scalar
Scalar multiply scales every entry by the same number. Three times a 2 by 2 identity yields threes on the diagonal. Scalar work never changes matrix shape.
Multiply two matrices with the dot product
Each result cell dot-products a row from A with a column from B. For 2 by 2 examples, the top-left entry combines row one of A with column one of B. Step mode can expand small products for teaching.
Transpose a matrix
Transpose swaps rows and columns across the main diagonal. A 3 by 2 matrix becomes 2 by 3. Transpose is available on either grid without a partner matrix.
Raise a square matrix to a power
Exponentiation repeats multiplication for square A. A to the zero returns the identity size matching A. Non-square bases block power mode because repeated multiplication would break dimensions.
Calculate a determinant
Determinant mode applies Leibniz layouts on 2 by 2 and 3 by 3, LU with pivoting on larger square matrices. Singular matrices report determinant zero and skip inverse attempts.
Determinant of a 2×2 matrix
For [[a,b],[c,d]], determinant equals ad minus bc. Numeric substitution appears in the step panel for small sizes.
Determinant of a 3×3 matrix
Laplace expansion or Sarrus layout reduces 3 by 3 determinants with signed minors. Cofactor signs alternate in a checkerboard pattern.
Determinant of a 4×4 matrix and larger
Four by four and bigger matrices use LU decomposition internally while display may still show elimination steps where configured. Pivoting handles near-zero pivots.
Find the inverse of a matrix
Inverse exists only when determinant is nonzero. Gauss-Jordan augments with the identity and reduces to inverse columns. Determinant absolute value below 1e-12 triggers a singular message instead of garbage values.
The identity matrix
The identity has ones on the diagonal and zeros elsewhere. Multiplying by identity leaves A unchanged. Inverse satisfies A times inverse equals identity when defined.
Why A × B does not equal B × A
Matrix multiplication is not commutative. Swapping factors changes shape legality and numeric entries. Sometimes only one product order is defined because inner dimensions differ.
Avoid this common mistake
Students multiply in either order like scalars. For 2 by 3 times 3 by 2 the product exists only as (2 by 3)(3 by 2), not reversed. Order changes both feasibility and values when both products exist.
Frequently asked questions
What is a matrix?
A matrix is a rectangular array of numbers arranged in rows and columns. The matrix calculator stores entries in editable grids up to ten by ten.
How do you multiply two matrices?
To multiply two matrices, take dot products of each row of the first with each column of the second when inner dimensions match. The tool checks columns of A against rows of B before multiplying.
Can you multiply a 2×3 matrix by a 4×3 matrix?
You cannot multiply a 2 by 3 matrix by a 4 by 3 matrix because the inner dimensions three and four disagree. The UI blocks the operation and states the rule.
What is the determinant of a matrix used for?
The determinant of a square matrix signals invertibility and scaling factor in linear transformations. Zero determinant means no inverse in real linear algebra.
What is an identity matrix?
An identity matrix has ones on the main diagonal and zeros elsewhere, acting as the multiplicative one for matrix multiplication.
Why does a matrix with a determinant of zero have no inverse?
A matrix with determinant zero has no inverse because rows become linearly dependent, collapsing the transformation to a lower-dimensional image.
Does the order matter in matrix multiplication?
Order matters in matrix multiplication because AB and BA differ in value and may differ in whether they are defined at all.
What size matrices can this calculator handle?
This calculator handles matrices up to ten rows and ten columns on each grid, with square-only restrictions on determinant, inverse and power modes.
Summary
QuickCalculators performs matrix add, subtract, multiply, scalar multiply, transpose, power, determinant and inverse on grids up to 10 by 10, enforcing compatible dimensions. Determinant zero blocks inverse with a clear singular message. Remember AB differs from BA in order and value. Fill grids, pick an operation, read the result matrix or scalar determinant.