[MathJax] How to create a matrix?
            Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
            If you wish to repost this article, please include the original source link and this copyright notice.
            
            Source link: https://v2know.com/article/788
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 ] 
$$
This article was last edited at