Skip to content

Inverse

Inverse[mat] finds the inverse of the square matrix mat.

Attributes[Inverse] := {Protected}

Details

The row-reduce method has not been added yet, but the shortcuts to finding the inverses of matrices up to 3x3 have been added.

Simple examples

In[1]:= Inverse[{{1, 2}, {3, 4}}]
Out[1]= {{-2, 1}, {(3)/(2), (1)/(2)*-1}}
In[2]:= Inverse[{{3, 2, 1}, {1, 4, 2}, {2, 5, 7}}]
Out[2]= {{(2)/(5), (1)/(5)*-1, 0}, {(1)/(15)*-1, (19)/(45), (1)/(9)*-1}, {(1)/(15)*-1, (11)/(45)*-1, (2)/(9)}}

Further examples

Symbolic elements are handled correctly:

In[1]:= {{(1)/(b)}}
Out[1]= Inverse[{{b}}]