Calculay

2x2 Matrix Calculator

Perform complex linear algebra instantly by inputting two 2x2 matrices to calculate their sum, difference, dot-product multiplication, and individual determinants.

2x2 Matrix Operations

A + B

681012

A - B

-4-4-4-4

A × B

19224350

Determinant of A

-2

Determinant of B

-2

Matrix Calculator: Linear Algebra Operations, Determinants, Inverses & Dot Products

In linear algebra, a matrix is an m × n rectangular array of numerical scalars arranged in m horizontal rows and n vertical columns. Matrices represent linear vector transformations, systems of simultaneous algebraic equations, Markov probability transition chains, and 3D affine projection matrices. In modern computing, matrix arithmetic is the core computational workload executed by Graphics Processing Units (GPUs) and Tensor Processing Units (TPUs) to render 3D video game graphics and train deep neural networks. The Calculay Matrix Calculator computes addition, subtraction, scalar scaling, dot products, transpositions, determinants, and matrix inverses.

Master Matrix Operations & Dimensional Rules

OperationRequired DimensionsMathematical FormulaCommutative Property
Addition / SubtractionIdentical: m × n & m × n[ A ± B ]ᵢⱼ = Aᵢⱼ ± BᵢⱼYES (A + B = B + A)
Scalar MultiplicationAny dimension m × n[ cA ]ᵢⱼ = c × AᵢⱼYES (cA = Ac)
Matrix Product (A × B)Inner match: (m × k) and (k × n)[ AB ]ᵢⱼ = Σ ( Aᵢᵣ × Bᵣⱼ )NO (AB ≠ BA)
Matrix Transpose (A^T)m × n → n × m[ Aᵀ ]ᵢⱼ = Aⱼᵢ— (Flips rows & columns)
Determinant (2 × 2)Square only: 2 × 2det(A) = ad - bcScalar volume scaling factor
Matrix Inverse (A⁻¹)Square with det(A) ≠ 0A⁻¹ = ( 1 ÷ det(A) ) × adj(A)AA⁻¹ = A⁻¹A = Identity (I)

Step-by-Step Worked Algebraic Solutions

Example A: Matrix Multiplication (Dot Product)

Multiply 2 × 2 matrix A = [[2, 3], [1, 4]] by B = [[5, 1], [0, 2]]:

  1. Row 1 × Col 1: (2 × 5) + (3 × 0) = 10 + 0 = 10
  2. Row 1 × Col 2: (2 × 1) + (3 × 2) = 2 + 6 = 8
  3. Row 2 × Col 1: (1 × 5) + (4 × 0) = 5 + 0 = 5
  4. Row 2 × Col 2: (1 × 1) + (4 × 2) = 1 + 8 = 9
  5. Resulting Matrix AB: [[10, 8], [5, 9]]
Example B: Determinant & Inversion of a 2x2 Matrix

Find the inverse of A = [[4, 7], [2, 6]]:

  1. Determinant: det(A) = (ad - bc) = (4 × 6) - (7 × 2) = 24 - 14 = 10
  2. Since det(A) = 10 ≠ 0, the matrix is non-singular and invertible.
  3. Adjugate matrix (swap main diagonal, negate anti-diagonal): adj(A) = [[6, -7], [-2, 4]]
  4. Multiply by 1/det(A): A⁻¹ = 0.1 × [[6, -7], [-2, 4]] = [[0.6, -0.7], [-0.2, 0.4]]
  5. Verification: A × A⁻¹ = [[(4× 0.6 + 7× -0.2), (4× -0.7 + 7× 0.4)], [(2× 0.6 + 6× -0.2), (2× -0.7 + 6× 0.4)]] = [[1, 0], [0, 1]] (Identity I).

Real-World Applications: 3D Graphics & Artificial Intelligence

Matrix math is the operational core of modern spatial computing and machine intelligence:

  • 3D Graphics Pipelines (OpenGL, DirectX, Vulkan): Vertices of 3D polygonal models are transformed through 4 × 4 homogeneous coordinate matrices combining Model, View, and Perspective Projection transforms to map 3D objects onto 2D screens.
  • Deep Learning & LLMs: Neural network layers execute tensor matrix multiplications: Y = activation(W × X + b), where weight matrices W containing billions of parameters modulate input activation vectors X.
  • Markov State Chains: Transition probability matrices govern search engine ranking algorithms (such as original Google PageRank) and quantitative options pricing models.