f to inverse the representation of the matrix