Multiple equations in square bracket matrix When solving many equations you usually stuff them in matrices and solve them using Gauss-Jordan elimination. Where I come from, we write it like this and this is what should appear in my document:    The gray parts of image are there for clarity and are not part of what I need. I just need (n+1) x n matrix with separation line. I will also need to display multiple of the matrices next to each other to show the GEM process:    How can I do it?
What's the best way make an "augmented" coefficient matrix? When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants.  This is often done in books by putting a vertical line between the last column and the next to last column.  What is a good way to do this in LaTex?
How to add a matrix to a LaTeX document How do we add a matrix to a LaTeX document?