Let A = \begin{bmatrix}1&2\\-1&1\end{bmatrix}
Give an elementary matrix M such that MA= \begin{bmatrix}1&2\\1&5\end{bmatrix}
I'm trying to figure out what the values for M would be, but I just don't understand where I'm supposed to start. I know the rules for turning a matrix into RREF form and how I can interchange rows, multiply a row by a nonzero constant, and add a constant multiple of a row to another row, but I don't understand how I would reverse the steps to find the values for the M matrix stated in the solution?
The solution that is stated in the textbook is M = \begin{bmatrix}1&0\\2&1\end{bmatrix}
I really don't know where to start. Any help or a push in the right direction would be appreciated.
Let $$B=\begin{bmatrix}1&2\\1&5\end{bmatrix}$$ You're looking for a matrix $M$ such that $$MA=B\tag1$$ Since $A$ is invertible (exercise: why?), we know that the solution is $M=BA^{-1}$.
To find $M$, one way is to explicitly compute $A^{-1}$ and then $BA^{-1}$
Another way is to write $M$ as a matrix whose 4 components are 4 unknown numbers: $$M=\begin{bmatrix}a&b\\c&d\end{bmatrix}$$ And $(1)$ is equivalent to $$\left(\begin{align} a-b &=1\\ 2a+b &=2\\ c-d&=1\\ 2c+d&=5 \end{align}\right.$$ And now you can apply Gaussian elimination to solve for $a,b,c$ and $d$.