In this blog, I will show you how to make a matrix with mathjax. It will help you better blog about linear algebra.
Code:
$$
\begin{bmatrix}
1 & 2 & 1 \\
3 & 8 & 1 \\
0 & 4 & 1 \\
\end{bmatrix}
$$
Result:
$$
\begin{bmatrix}
1 & 2 & 1 \\
3 & 8 & 1 \\
0 & 4 & 1 \\
\end{bmatrix}
$$
Replaced with {Bmatrix}, it becomes
$$
\begin{Bmatrix}
1 & 2 & 1 \\
3 & 8 & 1 \\
0 & 4 & 1 \\
\end{Bmatrix}
$$
Replaced with {vmatrix}, it becomes
$$
\begin{vmatrix}
1 & 2 & 1 \\
3 & 8 & 1 \\
0 & 4 & 1 \\
\end{vmatrix}
$$
Replaced with {Vmatrix}, it becomes
$$
\begin{Vmatrix}
1 & 2 & 1 \\
3 & 8 & 1 \\
0 & 4 & 1 \\
\end{Vmatrix}
$$
Replaced with {matrix}, it becomes
$$
\begin{matrix}
1 & 2 & 1 \\
3 & 8 & 1 \\
0 & 4 & 1 \\
\end{matrix}
$$
Replaced with {patrix}, it becomes
$$
\begin{pmatrix}
1 & 2 & 1 \\
3 & 8 & 1 \\
0 & 4 & 1 \\
\end{pmatrix}
$$
How to make an augmented matrix?
Code:
$$
\left [
\begin {array} {cc|c}
1&2&3\\
4&5&6
\end {array}
\right ]
$$
Result:
$$
\left [
\begin {array} {cc|c}
1&2&3\\
4&5&6
\end {array}
\right ]
$$