I've been stuck on a problem. I am given two matrices, $A$ and $B$ which are $7$ by $7$, but I think the size of the matrices shouldn't matter that much in this problem.
The question asks when I can be sure of the existence of a matrix $C$ so that we have
$$AC = B$$
First I tried to think about the determinant of $A$. If the determinant of $A$ isn't $0$ then $A$ is invertible and I can multiply it by the inverse $C$ to get $B$. However, I think $A$ and $B$ are given randomly in this problem. This means that $A$ and $B$ may look very different from each other and so I can't find a matrix that $AC = B$.
The other possible answer choices in my textbook are $C$ exists if $B$ is invertible, $A$ is triangolar, and $B$ is diagonal. I have also been looking at the Binet theorem which says $\det(AB) = \det(A)\cdot\det(B)$ but I don't think that matters too much here.
Any hints?
The answer is: when $A$ is invertible. As you wrote, if this happens, then you can take $C=A^{-1}B$. Otherwise, there will be a vector $v$ in $F^7$ (where $F$ is whatever field you're working with) which cannot be written as $A.w$, for some $w\in F^7$. So, take a matrix $B$ such that $v$ is one of its columns and there will be no matrix $C$ such that $AC=B$.