Skip to content

Calculateur de matrice

Calculateur de matrice gratuit - calculez et comparez les options instantanement. Aucune inscription requise.

Chargement de la calculatrice

Préparation de Calculateur de matrice...

Révision et méthodologie

Chaque calculatrice utilise des formules standard de l'industrie, validées par des sources officielles et révisées par un professionnel financier certifié. Tous les calculs s'exécutent en privé dans votre navigateur.

Dernière révision:

Révisé par:

Rédigé par:

Comment utiliser le calculateur de matrice

  1. 1. Entrez vos valeurs - remplissez les champs de saisie avec vos chiffres.
  2. 2. Ajustez les parametres - utilisez les curseurs et selecteurs pour personnaliser votre calcul.
  3. 3. Consultez les resultats instantanement - les calculs se mettent a jour en temps reel lorsque vous modifiez les donnees.
  4. 4. Comparez les scenarios - ajustez les valeurs pour voir comment les changements affectent vos resultats.
  5. 5. Partagez ou imprimez - copiez le lien, partagez les resultats ou imprimez pour vos dossiers.

Matrix Calculator

Matrices encode systems of equations, transformations, and datasets into a form that supports exact arithmetic at any scale. This calculator handles the six core operations — addition, subtraction, multiplication, transpose, determinant, and inverse — for 2x2 and 3x3 matrices. Enter the values for one or two matrices, select an operation, and see the result immediately with no manual row operations required.

How Matrix Operations Are Calculated

Each operation follows a strict rule based on matrix dimensions:

  • Addition and Subtraction — matrices must share identical dimensions; each element [i,j] of the result equals A[i,j] plus or minus B[i,j]
  • Multiplication — A must have as many columns as B has rows; result element [i,j] is the dot product of row i of A and column j of B
  • Transpose — rows become columns; element [i,j] of A^T equals element [j,i] of A
  • Determinant (2x2) — for [[a,b],[c,d]], det = ad - bc; a scalar that tells whether the matrix is invertible
  • Inverse — exists only when det is not zero; for a 2x2 matrix [[a,b],[c,d]], inverse = (1/det) x [[d,-b],[-c,a]]

Worked Examples

Scenario 1 — Finding an inverse to solve a 2x2 system System: 4x + 7y = 23, 2x + 6y = 18. Coefficient matrix A = [[4,7],[2,6]]. det(A) = (4)(6) - (7)(2) = 24 - 14 = 10. Inverse = (1/10) x [[6,-7],[-2,4]] = [[0.6,-0.7],[-0.2,0.4]]. Solution: X = A^(-1) x [23,18] = [0.6x23 - 0.7x18, -0.2x23 + 0.4x18] = [1.2, 2.6], so x = 1.2 and y = 2.6.

Scenario 2 — Multiplying two 2x2 matrices for a combined transformation A = [[2,0],[0,3]], B = [[1,4],[2,1]]. Result[1,1] = (2)(1)+(0)(2) = 2. Result[1,2] = (2)(4)+(0)(1) = 8. Result[2,1] = (0)(1)+(3)(2) = 6. Result[2,2] = (0)(4)+(3)(1) = 3. Product = [[2,8],[6,3]]. Note that B x A gives a different result — matrix multiplication is not commutative.

Scenario 3 — Checking if a 3x3 matrix is singular before inverting A = [[1,2,3],[4,5,6],[7,8,9]]. Expanding along row 1: det = 1(5x9 - 6x8) - 2(4x9 - 6x7) + 3(4x8 - 5x7) = 1(45-48) - 2(36-42) + 3(32-35) = -3 + 12 - 9 = 0. The matrix is singular — no inverse exists and the system has no unique solution.

Matrix Operations Reference Table

OperationInput RequirementOutput SizeKey Formula
Addition A + BA and B same size m x nm x nC[i,j] = A[i,j] + B[i,j]
Subtraction A - BA and B same size m x nm x nC[i,j] = A[i,j] - B[i,j]
Multiply A x Bcols(A) = rows(B); A is m x n, B is n x pm x pC[i,j] = sum of A[i,k] x B[k,j]
Transpose A^TAny m x n matrixn x mA^T[i,j] = A[j,i]
DeterminantSquare matrix (2x2 or 3x3)Scalar2x2: ad - bc
Inverse A^(-1)Square, det not zeroSame as AA^(-1) x A = Identity
Identity 2x22x2[[1,0],[0,1]]
Identity 3x33x3[[1,0,0],[0,1,0],[0,0,1]]
Singular testAny square matrixYes/NoSingular if det = 0
Solution X = A^(-1)BA invertible, B column vectorColumn vectorX = A^(-1) x B

When to Use This Calculator

  • Solving a system of two or three simultaneous linear equations by computing A^(-1) x B
  • Verifying that a coefficient matrix is invertible (det is not zero) before attempting a solution
  • Applying a 2D geometric transformation such as rotation or scaling, then combining two transformations by matrix multiplication
  • Checking whether two transformation matrices commute (A x B == B x A) for a physics or graphics problem
  • Transposing a data matrix to switch between row-vector and column-vector conventions in a statistics or machine learning workflow

Common Mistakes

  1. Reversing the multiplication order — matrix multiplication is not commutative; A x B and B x A generally give different answers, so always confirm which matrix is applied first
  2. Attempting to invert a singular matrix — if the determinant equals zero, no inverse exists; the calculator will flag this rather than return a meaningless result
  3. Dimension mismatch in multiplication — a 2x3 matrix can only multiply a 3x2 or 3xN matrix, never another 2x3; check that the inner dimensions match before multiplying
  4. Sign errors in the 2x2 inverse — the formula swaps the main diagonal (a and d) and negates the off-diagonal (b and c); a common error is negating the wrong elements

Context and Applications

Matrix operations appear across engineering and data science. In 3D computer graphics, a 4x4 transformation matrix encodes rotation, translation, and scale; multiplying the camera matrix by a model matrix combines both transformations in one step, which is the foundation of OpenGL and WebGL rendering pipelines. In machine learning, a neural network layer is defined by a weight matrix W and a bias vector b; the forward pass computes z = W x input + b as a matrix-vector multiplication. In civil engineering, the stiffness method for structural analysis assembles a global stiffness matrix K from element matrices and solves K x displacement = force for nodal displacements. Economists use input-output matrices (Leontief models) to estimate how a change in one industry’s output ripples through the whole economy. PageRank, the algorithm behind early Google search, is the dominant eigenvector of the web’s link matrix.

Tips

  1. For 2x2 determinants, the shortcut is clear: multiply the main diagonal (top-left to bottom-right), subtract the anti-diagonal (top-right to bottom-left)
  2. Always verify an inverse by multiplying A x A^(-1) — the result should be the identity matrix with 1s on the diagonal and 0s elsewhere
  3. If the determinant is very close to zero (such as 0.0001) but not exactly zero, the matrix is near-singular and the inverse will contain very large numbers that amplify numerical errors
  4. For 3x3 systems, cofactor expansion along the row or column with the most zeros saves arithmetic — choose strategically rather than always expanding along row 1
  5. Matrix addition and subtraction are element-wise and commutative (A + B = B + A), unlike multiplication — use this when rearranging terms in a derivation
  6. In data science, transposing a matrix is often the first step when converting between row-major and column-major storage or when computing the Gram matrix X^T x X for least squares regression

Questions fréquentes

Quelles sont les opérations matricielles de base et leurs règles ?
L'addition et la soustraction matricielles nécessitent des matrices de mêmes dimensions et s'effectuent élément par élément : (A+B)[i,j] = A[i,j] + B[i,j]. La multiplication matricielle exige que le nombre de colonnes de la première matrice soit égal au nombre de lignes de la seconde : si A est de dimension m × n et B de dimension n × p, le résultat est de dimension m × p. Chaque élément du produit est calculé comme le produit scalaire d'une ligne de A et d'une colonne de B. Point important : la multiplication matricielle n'est pas commutative - A × B n'est généralement pas égal à B × A.
Qu'est-ce qu'un déterminant et que nous indique-t-il ?
Le déterminant est une valeur scalaire calculée à partir d'une matrice carrée qui indique si la matrice est inversible et comment elle transforme l'espace. Pour une matrice 2×2 [[a,b],[c,d]], le déterminant est ad - bc. Si le déterminant est nul, la matrice est singulière (non inversible) et le système d'équations qu'elle représente n'a pas de solution unique. Géométriquement, la valeur absolue du déterminant représente le facteur d'échelle de l'aire (2D) ou du volume (3D) sous la transformation décrite par la matrice.
Qu'est-ce qu'une matrice inverse et quand existe-t-elle ?
L'inverse d'une matrice carrée A (notée A^(-1)) est la matrice qui satisfait A × A^(-1) = I, où I est la matrice identité. Une matrice possède un inverse uniquement si son déterminant est non nul. Pour une matrice 2×2 [[a,b],[c,d]], l'inverse est (1/det) × [[d,-b],[-c,a]]. Les inverses de matrices servent à résoudre des systèmes d'équations linéaires : si AX = B, alors X = A^(-1) × B. C'est l'équivalent matriciel de la division des deux membres d'une équation par un coefficient.
Quelles sont les applications concrètes des matrices ?
Les matrices sont largement utilisées en infographie (rotation, mise à l'échelle et translation d'objets 3D), en apprentissage automatique (poids des réseaux neuronaux et transformations de données), en économie (modèles entrées-sorties et chaînes de Markov), en physique (vecteurs d'état en mécanique quantique et rotations), en ingénierie (analyse des contraintes et des circuits) et en science des données (représentation des jeux de données sous forme de matrices pour les calculs statistiques). L'algorithme PageRank de Google est fondamentalement un problème de valeurs propres matricielles.
Comment utiliser les matrices pour résoudre un système d'équations linéaires ?
Écrivez le système sous forme d'équation matricielle AX = B, où A est la matrice des coefficients, X le vecteur des inconnues et B le vecteur des constantes. Par exemple, le système 2x + 3y = 8 et x - y = 1 devient [[2,3],[1,-1]] × [[x],[y]] = [[8],[1]]. Si A est inversible (déterminant non nul), multipliez les deux membres par A^(-1) pour obtenir X = A^(-1) × B. Pour l'exemple, le déterminant est -5, l'inverse est [[-1/5,-3/5],[-1/5,2/5]] (avec permutation et changement de signe), et la multiplication par B donne x = 2,2 et y = 1,2.

Decouvrez plus d'outils mathematiques et scientifiques

Calculatrices