Herramientas Guías
math Gratis Sin registro

Calculadora de IMC

Realice operaciones de matrices — suma, resta, multiplicación, transposición, determinante e inversa — con procedimiento paso a paso.

Cargando la herramienta…

Acerca de esta herramienta

Seleccione un tamaño de matriz (2×2, 3×3 o 4×4) y complete las celdas de la cuadrícula para la Matriz A y la Matriz B. Elija una operación: Suma, Resta, Multiplicación, Transposición, Determinante o Inversa. Los resultados se muestran como una cuadrícula de matriz formateada. Para Determinante e Inversa, la herramienta muestra el trabajo completo de expansión de cofactores para que pueda seguir cada paso. Los errores se informan claramente para matrices singulares, tamaños incompatibles y entradas no cuadradas.

Cómo usar

  1. 1 Seleccione el tamaño de la matriz (2×2, 3×3 o 4×4) desde el selector de tamaño.
  2. 2 Ingrese valores en la cuadrícula de la Matriz A — y la Matriz B si la operación requiere dos matrices.
  3. 3 Elija una operación: Sumar, Restar, Multiplicar, Transponer, Determinante o Inversa.
  4. 4 Haga clic en Calcular para ver la matriz resultante y, para Determinante/Inversa, el procedimiento paso a paso.

What a matrix calculator does

A matrix is a grid of numbers, and matrix algebra is the engine behind 3D graphics, machine learning, physics simulations, economics, and any system of linear equations. This calculator works with square matrices of size 2×2, 3×3, or 4×4 and performs the core operations: addition, subtraction, multiplication, transpose, determinant, and inverse. You fill the grids with numbers (decimals allowed), pick an operation, and it computes the result entirely in your browser. For the determinant and inverse it also shows step-by-step working so you can check the method, not just the answer.

How each operation actually works

Addition and subtraction are element-wise: the entry in row i, column j of the result is simply A[i][j] ± B[i][j]. Both matrices must be the same size, which is why this tool keeps A and B identical in dimension.

Multiplication is the operation people get wrong, because it is not element-wise. Each result entry is a dot product of a row of A with a column of B: result[i][j] = Σ A[i][k] × B[k][j] over all k. This makes matrix multiplication non-commutative — A×B generally does not equal B×A — and it's why the order you enter the matrices matters.

Transpose flips the matrix over its diagonal: rows become columns, so the entry at (i, j) moves to (j, i).

Determinant is computed by cofactor expansion along the first row. For a 2×2 it's the familiar ad − bc. For larger matrices the tool recursively breaks the problem into smaller "minor" matrices, multiplying each first-row entry by the determinant of the submatrix left after deleting its row and column, with alternating + and − signs.

Inverse uses the adjugate method: A⁻¹ = adj(A) / det(A), where the adjugate is the transposed matrix of cofactors. If the determinant is zero (technically, within a tiny tolerance of zero) the matrix is singular and has no inverse — the tool reports this rather than returning nonsense.

A worked example: 2×2 determinant and inverse

Take the matrix A = [[4, 7], [2, 6]].

  • Determinant: det(A) = (4 × 6) − (7 × 2) = 24 − 14 = 10. Since it's non-zero, an inverse exists.
  • Inverse: for a 2×2 you swap the diagonal entries, negate the off-diagonal, and divide by the determinant:
    A⁻¹ = (1/10) × [[6, −7], [−2, 4]] = [[0.6, −0.7], [−0.2, 0.4]].

You can verify the result by multiplying A × A⁻¹ in the tool — it should return the identity matrix [[1, 0], [0, 1]], give or take tiny floating-point rounding.

Common use cases

  • Solving linear systems. A set of simultaneous equations written as Ax = b is solved by x = A⁻¹b; the inverse and determinant are the heart of that.
  • Computer graphics. 4×4 matrices represent translation, rotation, and scaling of 3D objects; multiplying them chains transformations.
  • Checking homework. Compute the answer here, then compare with your hand calculation — the step display makes it a study aid, not just a black box.
  • Engineering and statistics. Covariance matrices, transformation matrices, and Markov transition matrices all rely on these operations.

Tips and common mistakes

  • Multiplication order is not interchangeable. A×B ≠ B×A in general. Decide which matrix is the "transformation" and which is the "input," and put them in that order.
  • A zero determinant means no inverse. Geometrically, the matrix collapses space onto a lower dimension, so it can't be undone. If you see the "singular" error, your rows or columns are linearly dependent (one is a combination of the others).
  • Watch floating-point noise. Inverses and chained operations can leave values like 0.9999998 instead of 1. The display rounds for readability, but expect tiny residue when you verify results.
  • Empty cells count as zero. Blank inputs are read as 0, so an unfilled entry silently changes your answer — fill every cell deliberately.
  • Determinant only for square matrices. All operations here use square matrices, which is correct: determinant and inverse are undefined for non-square matrices, and multiplication of non-square matrices requires matching inner dimensions.
  • Transpose ≠ inverse. A beginner trap is treating the transpose as an inverse. They're equal only for special (orthogonal) matrices; in general they're entirely different results.

Preguntas frecuentes

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}