2×2 matrix multiplication: [[1,2],[3,4]] × [[5,6],[7,8]]
Result: [[1×5+2×7, 1×6+2×8], [3×5+4×7, 3×6+4×8]] = [[19, 22], [43, 50]]. Demonstrates row × column dot product structure.
Add, subtract, multiply, transpose, find determinant and inverse for matrices up to 4×4. Useful for linear algebra coursework, transformation matrices and solving systems of equations.
Matrix A
Matrix B
A × B
Часть содержимого пока показывается на английском.
Matrices are the workhorse of linear algebra - and linear algebra underpins computer graphics (every 3D game, every CAD software, every Instagram filter uses matrix multiplications), machine learning (neural networks are essentially chained matrix operations), engineering (structural analysis, finite element methods), economics (input-output models), and physics (quantum mechanics, relativity). Class 11-12 mathematics in India introduces matrices systematically - operations, types, determinants, inverses - and JEE Main and Advanced test them extensively. This calculator handles all standard operations for matrices up to 4×4 sizes, covering the school and college syllabus completely.
Beyond academics, knowing matrices opens doors to data science and AI careers - every machine learning model fits matrices to data; every neural network forward-pass is a matrix multiplication followed by a non-linearity. This calculator helps verify homework, build intuition about geometric meaning (determinant as scale factor, inverse as 'undo transformation'), and solve systems of linear equations via Ax = b → x = A⁻¹b. The calculator works fully offline once loaded, with arithmetic to JavaScript's standard precision (~15 significant digits).
Pick a matrix size (2×2, 3×3, 4×4).
Enter values into matrix A and matrix B.
Choose the operation.
Read the resulting matrix.
Addition and subtraction work element-wise (matrices must be the same size). Multiplication uses the dot product across rows of A and columns of B (A's columns must equal B's rows). Determinant uses LU decomposition for 3×3+. Inverse is computed via Gauss-Jordan elimination.
(AB)ᵢⱼ = Σ Aᵢₖ × Bₖⱼ det for 2×2 = ad − bc A⁻¹ = (1/det A) × adj A
Addition / subtraction: element-wise; only works for matrices of identical dimensions. (A+B)ᵢⱼ = Aᵢⱼ + Bᵢⱼ. Multiplication: row × column dot product. (AB)ᵢⱼ = Σₖ Aᵢₖ × Bₖⱼ. For this to be defined, A's column count must equal B's row count. Result has A's rows and B's columns. Matrix multiplication is associative ((AB)C = A(BC)) but NOT commutative (AB ≠ BA in general). This non-commutativity reflects the fact that order of geometric transformations matters.
Determinant: for 2×2, det(A) = ad - bc. For 3×3 and larger, expansion by cofactors or LU decomposition. Determinant tells you: (1) whether the matrix is invertible (det = 0 means no inverse exists; matrix is singular). (2) The scaling factor of the linear transformation (det = 2 means areas/volumes are doubled). (3) Orientation (negative det means orientation flips, like a mirror).
Inverse: A⁻¹ satisfies A × A⁻¹ = I (identity matrix). Computed via Gauss-Jordan elimination on [A | I]: row-reduce until A becomes I, and the right side becomes A⁻¹. Exists only if det A ≠ 0. Useful for solving Ax = b → x = A⁻¹b. Transpose: Aᵀ swaps rows and columns, (Aᵀ)ᵢⱼ = Aⱼᵢ. Used in inner products, normal equations of least squares, and converting between row and column vectors.
Result: [[1×5+2×7, 1×6+2×8], [3×5+4×7, 3×6+4×8]] = [[19, 22], [43, 50]]. Demonstrates row × column dot product structure.
det = 3×7 - 2×4 = 21 - 8 = 13. Non-zero, so the matrix is invertible. Geometric meaning: this 2×2 transformation scales area by factor 13.
A = [[2,3],[4,1]], b = [7,6]. det A = 2-12 = -10. A⁻¹ = (1/-10) × [[1,-3],[-4,2]]. x = A⁻¹b = (1/-10) × [(7-18), (-28+12)] = (1/-10) × [-11, -16] = [1.1, 1.6]. So x = 1.1, y = 1.6.
AB ≠ BA in general because matrix multiplication chains transformations. AB means 'apply B then A' which is geometrically different from 'apply A then B'.
Only when det A ≠ 0. A matrix with det 0 is singular - its rows/columns are linearly dependent and can't be uniquely reversed.
Transformations (translation, rotation, scaling, projection) are encoded as 4×4 matrices. Multiplying a vector by the matrix applies the transformation.
Geometric: scale factor of the linear transformation. Det 0 = transformation collapses dimensions. Negative det = orientation flips.
Flip rows to columns. (Aᵀ)ᵢⱼ = Aⱼᵢ. Useful for inner products, normal equations and converting between row and column vectors.
Yes - for Ax = b, x = A⁻¹b. Compute the inverse with this calculator and multiply by b. Or use elimination directly.
From simple percentages to scientific notation, statistics, geometry and big-number arithmetic - every common math problem you'd reach for a calculator for, runs in your browser with no installs. The fraction calculator preserves exact rationals, the big-number calculator uses BigInt for hundreds of digits without precision loss, and the scientific calculator's expression evaluator is a hand-written shunting-yard parser (no eval) that supports trig, log, factorial and parentheses.
If you're a student, double-check your work without paying for a graphing calculator. If you're a professional, use these tools as a sanity check on spreadsheet formulas. Every result is shown alongside its formula and inputs, so the math is always auditable.
The Matrix Calculator is part of the Math suite on Online Calculator Tools, alongside 6 related calculators. All tools share the same UI patterns, the same privacy-first rendering (nothing is sent to a server), and the same commitment to showing the formula and assumptions behind every result.