var('a,b,c,d,e,f,g,h')
A=matrix([[a,b],[b,c]])
B=matrix([[e,f],[g,h]])
A
B
print A*B
print B*A
#the matrices are similar!!