...
Sign in
Computer Science

Matrix inverse

Matrix inverse

Share:

Matrix inverse

Introduction / Definition

The inverse matrix reverses the effect of a square matrix. It exists only when the matrix is nonsingular. Multiplying a matrix by its inverse produces the identity matrix. Inverses can also be used to solve linear systems.

Syntax / Mathematical Form

AA⁻¹=A⁻¹A=I; A⁻¹=1/(ad−bc)[ d -b ] [ -c a ]

Detailed Explanation

For A = [ a b ] [ c d ], the determinant is ad−bc. If it is zero, A has no ordinary inverse. If it is nonzero, the formula gives the inverse.

Example

A = [ 1 2 ]
    [ 3 4 ]  
det(A)=4−6=−2  
A⁻¹[ -2  1    ]
[ 3/2 -1/2 ].

Output

A⁻¹[ -2  1    ]
[ 3/2 -1/2 ].

Important Points / Notes

  • det(A)≠0 is required.
  • AA⁻¹=I.
  • Inverse is unique when it exists.

Mini Practice Question

Find the inverse of [ 2 1 ] [ 1 1 ].


CheckpointTest Yourself

When does a square matrix $A$ have a unique inverse $A^{-1}$?

Lesson Milestone

Finished Reading This Lesson?

Mark this lesson complete. A chapter counts as done once all its lessons are, and that adds to your course progress.

TH

Written by

ThinkWisely Team

Have a Question or Suggestion?

We'd love to hear from you. Drop your thoughts below to help us improve ThinkWisely!