19
22
43
50
-2
-2
4
4
69
5,194
19
22
43
50
-2
-2
4
4
69
5,194
The Matrix Multiplication Calculator computes the product of two 2×2 matrices using the standard row-by-column multiplication rule. Matrix multiplication is the most important operation in linear algebra, underlying everything from solving systems of equations and performing geometric transformations to machine learning algorithms and quantum mechanics computations.
Unlike scalar multiplication, matrix multiplication is not commutative: in general, $$AB \neq BA$$. This non-commutativity reflects the fact that the order in which linear transformations are applied matters. Rotating then translating gives a different result than translating then rotating. This property is one of the most distinctive and important features of matrix algebra.
For two 2×2 matrices, the product $$C = AB$$ is computed using the dot product of rows of $$A$$ with columns of $$B$$: $$c_{ij} = \sum_{k} a_{ik} b_{kj}$$. For 2×2 matrices, this means $$c_{11} = a_{11}b_{11} + a_{12}b_{21}$$, $$c_{12} = a_{11}b_{12} + a_{12}b_{22}$$, $$c_{21} = a_{21}b_{11} + a_{22}b_{21}$$, and $$c_{22} = a_{21}b_{12} + a_{22}b_{22}$$. Each element of the product requires two multiplications and one addition.
One of the most elegant properties of matrix multiplication is its interaction with the determinant: $$\det(AB) = \det(A) \cdot \det(B)$$. This multiplicative property means that composing two transformations multiplies their area scaling factors. This calculator verifies this property by computing both $$\det(AB)$$ directly and $$\det(A) \cdot \det(B)$$ separately, confirming they are equal.
Matrix multiplication is associative: $$(AB)C = A(BC)$$, and it distributes over addition: $$A(B + C) = AB + AC$$. However, it is not commutative, and there is no general cancellation law: $$AB = AC$$ does not imply $$B = C$$ unless $$A$$ is invertible. These algebraic properties make matrix algebra a rich and sometimes counterintuitive subject.
In applications, matrix multiplication represents the composition of linear transformations. In computer graphics, multiplying rotation, scaling, and translation matrices produces combined transformation matrices. In Markov chains, multiplying the transition matrix by itself gives multi-step transition probabilities. In neural networks, each layer performs a matrix multiplication followed by a nonlinear activation. This calculator makes it easy to multiply any two 2×2 matrices and verify the determinant property.
Given two 2×2 matrices:
$$A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}, \quad B = \begin{pmatrix} b_{11} & b_{12} \\ b_{21} & b_{22} \end{pmatrix}$$
Step 1: Compute each element of the product $$C = AB$$:
$$c_{11} = a_{11} \cdot b_{11} + a_{12} \cdot b_{21}$$
$$c_{12} = a_{11} \cdot b_{12} + a_{12} \cdot b_{22}$$
$$c_{21} = a_{21} \cdot b_{11} + a_{22} \cdot b_{21}$$
$$c_{22} = a_{21} \cdot b_{12} + a_{22} \cdot b_{22}$$
Each element is the dot product of a row from $$A$$ with a column from $$B$$.
Step 2: Compute determinants.
$$\det(A) = a_{11}a_{22} - a_{12}a_{21}$$
$$\det(B) = b_{11}b_{22} - b_{12}b_{21}$$
$$\det(AB) = c_{11}c_{22} - c_{12}c_{21}$$
Step 3: Verify the multiplicative property:
$$\det(AB) = \det(A) \cdot \det(B)$$
The Product Matrix C entries (C₁₁, C₁₂, C₂₁, C₂₂) represent the result of multiplying matrix A by matrix B. Remember that matrix multiplication is not commutative: AB generally differs from BA.
The det(A) and det(B) values are the determinants of the individual matrices, representing their area scaling factors.
The det(AB) is the determinant of the product matrix, computed directly from the product's elements.
The det(A)·det(B) value should equal det(AB), verifying the multiplicative property of determinants. This fundamental theorem holds for all square matrices, not just 2×2.
Inputs
Results
C₁₁ = 1(5)+2(7) = 19, C₁₂ = 1(6)+2(8) = 22, C₂₁ = 3(5)+4(7) = 43, C₂₂ = 3(6)+4(8) = 50. det(A) = -2, det(B) = -2, det(AB) = 950-946 = 4 = (-2)(-2) = det(A)·det(B).
Inputs
Results
Two 90° rotation matrices multiplied give a 180° rotation: [[-1,0],[0,-1]]. This negates both coordinates, equivalent to rotating 180°. det = 1 for all rotation matrices, confirming area preservation.
To multiply matrices $$A$$ and $$B$$, compute each element of the product $$C = AB$$ as the dot product of a row from $$A$$ with a column from $$B$$: $$c_{ij} = \sum_k a_{ik} b_{kj}$$. For 2×2 matrices, $$c_{11} = a_{11}b_{11} + a_{12}b_{21}$$, and similarly for the other three elements. Each element requires two multiplications and one addition.
Matrix multiplication represents composition of linear transformations, and the order of transformations matters. For example, rotating then scaling gives a different result than scaling then rotating. Algebraically, the formula $$c_{ij} = \sum_k a_{ik}b_{kj}$$ treats rows of $$A$$ and columns of $$B$$ asymmetrically, so swapping $$A$$ and $$B$$ produces different dot products and thus a different result.
The 2×2 identity matrix is $$I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$$. It is the multiplicative identity: $$AI = IA = A$$ for any 2×2 matrix $$A$$. The identity matrix represents the 'do nothing' transformation that maps every vector to itself. Its determinant is 1.
Since the determinant represents the area scaling factor of a linear transformation, this property says that composing two transformations multiplies their scaling factors. If transformation A triples areas and transformation B doubles areas, then the composition AB scales areas by a factor of 6. This holds for all square matrices of any size.
Matrix multiplication $$AB$$ is defined when the number of columns of $$A$$ equals the number of rows of $$B$$. If $$A$$ is $$m \times n$$ and $$B$$ is $$n \times p$$, then $$AB$$ is $$m \times p$$. For 2×2 matrices, both are 2×2, so the product is always defined and results in another 2×2 matrix.
Matrix multiplication is used in computer graphics (combining transformations), machine learning (neural network computations), physics (quantum mechanics operators), economics (input-output models), cryptography (Hill cipher), Markov chains (state transition analysis), image processing (convolution filters), robotics (forward kinematics), and solving systems of linear equations (Gaussian elimination expressed as matrix products).
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Matrix Addition Calculator
Linear Algebra Calculators
Matrix Determinant Calculator
Linear Algebra Calculators
Matrix Inverse Calculator
Linear Algebra Calculators
Matrix Transpose Calculator
Linear Algebra Calculators
Matrix Rank Calculator
Linear Algebra Calculators
Eigenvalue Calculator
Linear Algebra Calculators