In order to post my note of linear algebra, I need to know how to put matrix using LaTex. The followings are the usage.
See it on my own blog https://dyingdown.github.io/2019/09/03/LaTex-matrix/
Simple matrix
$$
\begin{matrix}
7 & 8 & 9 \\
4 & 5 & 6 \\
1 & 2 & 3
\end{matrix}
$$
Display:
7
8
9
4
5
6
1
2
3
\begin{matrix} 7 & 8 & 9 \\ 4 & 5 & 6 \\ 1 & 2 & 3 \end{matrix}
741852963
Matrix with brackets
Curly braces {…}
$$
\left\{
\begin{matrix}
7 & 8 & 9 \\
4 & 5 & 6 \\
1 & 2 & 3
\end{matrix}
\right\}
$$
Display:
{
7
8
9
4
5
6
1
2
3
}
\left\{ \begin{matrix} 7 & 8 & 9 \\ 4 & 5 & 6 \\ 1 & 2 & 3 \end{matrix} \right\}
⎩⎨⎧741852963⎭⎬⎫
Square brackets […]
$$
\left[
\begin{matrix}
7 & 8 & 9 \\
4 & 5 & 6 \\
1 & 2 & 3
\end{matrix}
\right]
$$
Display:
[
7
8
9
4
5
6
1
2
3
]
\left[ \begin{matrix} 7 & 8 & 9 \\ 4 & 5 & 6 \\ 1 & 2 & 3 \end{matrix} \right]
⎣⎡741852963⎦⎤
Matrix with dots
$$
\left[
\begin{matrix}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{n1} & a_{n2} & \cdots & a_{nn} \\
\end{matrix}
\right]
$$
Display:
[
a
11
a
12
⋯
a
1
n
a
21
a
22
⋯
a
2
n
⋮
⋮
⋱
⋮
a
n
1
a
n
2
⋯
a
n
n
]
\left[ \begin{matrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & \cdots & a_{nn} \\ \end{matrix} \right]
⎣⎢⎢⎢⎡a11a21⋮an1a12a22⋮an2⋯⋯⋱⋯a1na2n⋮ann⎦⎥⎥⎥⎤
Matrix with parameter
$$
\left[
\begin{array}{cc|c}
2 & 5 & 6 \\
9 & 3 & 7
\end{array}
\right]
$$
Display:
[
2
5
6
9
3
7
]
\left[ \begin{array}{cc|c} 2 & 5 & 6 \\ 9 & 3 & 7 \end{array} \right]
[295367]
Inline matrix
This is an example of inline matrix $\bigl( \begin{smallmatrix} a & b \\ c & d \end{smallmatrix} \bigr)$ and the display is below.
This is an example of inline matrix KaTeX parse error: No such environment: smallmatrix at position 14: \bigl( \begin{̲s̲m̲a̲l̲l̲m̲a̲t̲r̲i̲x̲}̲ a & b \\ c & d… and the display is below.