a=matrix([[1,0],[2,1]])
b=matrix([[1,2],[0,1]])
consider c=a*b
d=b*a
a.inverse()
b.inverse()
c.inverse()