augmented matrix in latex code example
Example: augmented matrix in overleaf
$$
\begin{bmatrix}
1 & 0 & 0 & 0 &\bigm| & 0 \\
0 & 1 & 0 & 0 &\bigm| & 5 \\
0 & 0 & 1 & 0 &\bigm| & -4 \\
0 & 0 & 0 & 1 &\bigm| & -2
\end{bmatrix}
$$
$$
\begin{bmatrix}
1 & 0 & 0 & 0 &\bigm| & 0 \\
0 & 1 & 0 & 0 &\bigm| & 5 \\
0 & 0 & 1 & 0 &\bigm| & -4 \\
0 & 0 & 0 & 1 &\bigm| & -2
\end{bmatrix}
$$