• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Basic Mathematics
  • ⌕
Inverse Matrix: Formula, Conditions, and Examples

Inverse Matrix: Formula, Conditions, and Examples

Written by Jean Carlos Novaes

An inverse matrix undoes a linear transformation represented by an invertible square matrix. For a square matrix A, an inverse A−1 satisfies both AA−1=I and A−1A=I. The superscript negative one does not mean taking the reciprocal of each entry. It describes an inverse under matrix multiplication, where order and dimensions matter.

AA−1=A−1A=In
A−1∃⇔det(A)≠0

A square matrix is invertible exactly when its determinant is nonzero

A square matrix is invertible exactly when its determinant is nonzero. A zero determinant means the transformation collapses some nonzero direction, so different inputs can produce the same output and no two-sided inverse can recover them. Such a matrix is called singular.

For a two-by-two matrix, the determinant is ad−bc. Swap the diagonal entries a and d, change the signs of b and c, and divide every resulting entry by the determinant. This formula is valid only when that denominator is not zero.

A=[abcd]
A−1=1ad−bc[d−b−ca]

Explore a two-by-two matrix and its inverse

Change the entries to see the transformed square, determinant and inverse.

Worked example: calculate and verify the inverse

Take A with rows (2,1) and (5,3). Its determinant is 2×3−1×5=1, so the matrix is invertible. Apply the two-by-two rule to obtain rows (3,−1) and (−5,2). Multiplying in either order gives the identity.

A=[2153],det(A)=1
A−1=[3−1−52]
AA−1=[1001]

Because the determinant is 1, every entry in this example remains an integer. If the determinant were another nonzero number, fractions would appear and should be kept exact until a decimal approximation is genuinely needed.

One inverse can handle many systems with the same coefficient matrix

For Ax=b, multiply on the left by A−1. Associativity gives (A−1A)x=A−1b, so x=A−1b. With the matrix above and b=(7,19), the product gives x=(2,3). Substitution checks that 2×2+1×3=7 and 5×2+3×3=19.

Ax=b
x=A−1b
[3−1−52][719]=[23]

Computing a full inverse is not always the best numerical method for one large system. Direct factorization can require less computation and behave better under rounding. The inverse remains valuable when many right-hand sides share the same matrix or when the symbolic structure itself is the goal.

Gauss-Jordan elimination works beyond two by two

Place A beside the identity matrix in an augmented array. Apply valid elementary row operations to the whole array. If the left side becomes the identity, the right side is the inverse. If a required pivot cannot be created and the left side retains a zero row, the matrix is singular.

Row swaps, nonzero row scaling, and adding a multiple of one row to another are reversible. Applying the same operations to the identity block builds the inverse step by step. The method also verifies invertibility without first expanding a large determinant.

The inverse of a product reverses the order

If A and B are invertible and their product is defined, then (AB)−1=B−1A−1. The order reverses because B−1 must undo B first. Also, (AT)−1=(A−1)T and (Ak)−1=(A−1)k for integer powers where the expressions are defined.

A nonzero determinant proves exact invertibility, but it does not by itself show that inversion is numerically stable. The determinant depends on the matrix's scale, so its absolute size is not a reliable standalone measure of sensitivity. Numerical work instead examines conditioning, often through a condition number: a large condition number means that small input or rounding errors can produce much larger changes in the solution or computed inverse.

References

  • OpenStax. College Algebra 2e: Solving Systems with Inverses.

Related content

  • Identity Matrix: Definition, Properties, and Examples
Jean Carlos Novaes

About Jean Carlos Novaes

I hold a degree in Computer Science from the Federal University of Bahia (2017) and I am the editor and founder of this website.

Footer

Basic Mathematics

Basic Mathematics website with clear school content for elementary and high school students. Learn easily and efficiently!

ABOUT

  • About Us
  • Contact
  • Site Map

LEGAL

  • How to Cite
  • Cookie Policy
  • Privacy Policy
  • Content License
English
  • Portuguese (Português)
  • Portuguese (Portugal)
  • English
  • Spanish (Español)
  • German (Deutsch)
  • French (Français)
  • Italian (Italiano)
  • Polish (Polski)
  • Dutch (Nederlands)
  • Swedish (Svenska)
  • Danish (Dansk)
  • Finnish (Suomi)
  • Norwegian (Norsk)

© 2015–2026 · Basic Mathematics · All rights reserved.