Lets say
$$ \text{let }A = \begin{bmatrix} 1 & 2 & 1 \\ 0 & 3 & 1 \\ 4 & 1 & 2 \end{bmatrix} $$
Find a matrix C such that:
$$ \text{let }AC = \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 4 & 1 \end{bmatrix} $$
Let X be the matrix that AC equals too
$AC = X$
Is how you would solve this. $$A^{-1}AC = A^{-1}X$$
My question is, what side should $A^{-1}$ be? Left or right? I first assumed it doesn't matter but it clearly does in this question because if it was $XA^{-1}$ you would b e multiplying a 3x2 by 3x3 which isn't possible.
Another example:
C is a invertible matrix. D and A and C are also n x n matrices
$$D = C^{-1}AC$$
If I wanted D how would this look like? Is there two ways?