Home / Mathematics / Linear Algebra / Inverse of a 2x2 Matrix

Formula & Calculator

Inverse of a 2x2 Matrix

This formula gives the inverse of a 2×2 matrix. You swap the diagonal entries, negate the off-diagonal entries, and divide by the determinant. For example, the inverse of [[2,1],[1,1]] is [[1,-1],[-1,2]]. The inverse only exists if the determinant is non-zero. It is used to solve systems of linear equations, transform coordinates, and undo transformations in computer graphics.

Mathematics Linear Algebra Research

Inverse of 2×2 Matrix CalculatorA⁻¹

A⁻¹ = (1/det(A)) · [[d, −b], [−c, a]]
det(A) = ad − bc  ·  Matrix is invertible if det ≠ 0
⟹ Compute⟷a, b, c, d
Please fix the errors above.
Presets:
Inverse Matrix—
—
det: —A⁻¹: —
✓ Copied!
Determinant Magnitude—
Small (0–10) Medium (10–100) Large (100–1000) Huge (>1000)
A⁻¹ = (1/(ad−bc)) · [[d, −b], [−c, a]]  ·  Only defined if det(A) ≠ 0

Variables

Symbol Quantity Unit
a, b, c, d Entries of the original 2x2 matrix
det(A) Determinant of the matrix (ad - bc)

What it means

For a 2×2 matrix A = [[a,b],[c,d]], the inverse is given by A⁻¹ = (1/(ad−bc)) [[d,−b],[−c,a]], provided the determinant is non‑zero. The inverse matrix satisfies A A⁻¹ = I. It is used to solve systems of linear equations (x = A⁻¹ b), to find transformation inverses, and in least‑squares problems. The formula is a compact way to compute inverses without Gaussian elimination. Understanding how to compute and use the inverse is fundamental for linear algebra and for many applications in computer graphics, control systems, and data science.

Worked example

Inverse of a 2×2 Matrix – Two Examples

Real‑World
Scenario: A student finds inverse of [[2,3],[1,4]] using formula.
ParameterValue
a2
b3
c1
d4
1det = 5, so A⁻¹ = 1/5 [[4,−3],[−1,2]] = [[0.8,−0.6],[−0.2,0.4]]
Result [[0.8,−0.6],[−0.2,0.4]] ✓ Inverse
Scenario: A computer graphics programmer inverts [[3,0],[0,2]] (scaling matrix).
ParameterValue
a3
b0
c0
d2
1det = 6, so A⁻¹ = 1/6 [[2,0],[0,3]] = [[1/3,0],[0,1/2]]
Result [[0.333,0],[0,0.5]] ✓ Inverse scale
Insight: Inverse exists only if det ≠ 0. For diagonal matrices, invert each diagonal entry.

Common mistakes

  • Inverse of 2×2: A⁻¹ = (1/det(A))·[[d, −b], [−c, a]] – do not forget the sign changes.
  • Determinant: det(A) = ad − bc – if zero, the inverse does not exist.
  • Order: The elements are swapped on the diagonal and negated on the off‑diagonal.
  • Check: Multiply A·A⁻¹ to verify identity matrix.
  • Applications: Used in solving linear systems, computer graphics, and control theory.

Applications

The inverse of a 2×2 matrix, A⁻¹ = (1/det(A))·[[d, −b], [−c, a]], provides a direct method for solving systems of two linear equations. This formula is essential in control systems, circuit analysis, and computer graphics, where inverse transformations are needed. Engineers use it to solve for unknown variables, to design feedback controllers, and to transform coordinates. In machine learning, it appears in linear regression for closed‑form solutions. By using the inverse, professionals can efficiently compute solutions without iterative methods, making it a valuable tool in many quantitative fields.

  • Solving 2×2 linear systems analytically
  • Inverse transformations in computer graphics and robotics
  • Circuit analysis (node voltage and mesh current methods)
  • Control system design (state‑space feedback)
  • Linear regression and least squares estimation