A = {{1,-3},{1,5}}

X = {{-3,-1},{1,1}}

Xi = Inverse[X]

Xi.A.X

X = {{-3,-1},{1,a}}

Xi = Inverse[X]