Some Mathematical Symbols and Environments in LaTeX and MathJax

Oct. 30, 2023

Mathematical operators

Dot product (Inner product)

1
\langle\boldsymbol{u},\boldsymbol{v}\rangle=\boldsymbol{u}^T\boldsymbol{v}
\[\langle\boldsymbol{u},\boldsymbol{v}\rangle=\boldsymbol{u}^T\boldsymbol{v}\notag\]

Note that, the appearance of inputing < and > directly is very different from that using \langle and \rangle:

1
<\boldsymbol{u},\boldsymbol{v}>=\boldsymbol{u}^T\boldsymbol{v}
\[<\boldsymbol{u},\boldsymbol{v}>=\boldsymbol{u}^T\boldsymbol{v}\notag\]

Cross product (Vector product)

1
\boldsymbol{u}\times\boldsymbol{v}
\[\boldsymbol{u}\times\boldsymbol{v}\notag\]

Or using wedge notation \wedge 1:

1
\boldsymbol{u}\wedge\boldsymbol{v}
\[\boldsymbol{u}\wedge\boldsymbol{v}\notag\]

Kronecker product (Tensor product, Outer product) and other similar operators

Kronecker product (or tensor product):

1
A\otimes B
\[A\otimes B\notag\]

or denote outer product of vectors:

1
\boldsymbol{u}\otimes\boldsymbol{v}^T
\[\boldsymbol{u}\otimes\boldsymbol{v}^T\notag\]

and some other similar symbols 2:

1
\oplus, \ominus, \odot, \oslash, \bigotimes, \bigoplus, \bigodot
\[\oplus,\ \ominus,\ \odot,\ \oslash,\quad\bigotimes,\ \bigoplus,\ \bigodot\notag\]

Combination symbol

1
{n \choose k}
\[{n \choose k}\notag\]


Mathematical symbols

“For all” and “Exist” symbol

1
\forall, \exists
\[\forall, \exists\notag\]

Function mapping symbol

1
\mapsto
\[\mapsto\notag\]


Matrix environments 3

matrix environment

1
2
3
4
5
\begin{matrix}
a&b&c\\
d&e&f\\
g&h&i\\
\end{matrix}
\[\begin{matrix} a&b&c\\ d&e&f\\ g&h&i\\ \end{matrix}\notag\]

bmatrix environment

1
2
3
4
5
\begin{bmatrix}
a&b&c\\
d&e&f\\
g&h&i\\
\end{bmatrix}
\[\begin{bmatrix} a&b&c\\ d&e&f\\ g&h&i\\ \end{bmatrix}\notag\]

vmatrix environment

1
2
3
4
5
\begin{vmatrix}
a&b&c\\
d&e&f\\
g&h&i\\
\end{vmatrix}
\[\begin{vmatrix} a&b&c\\ d&e&f\\ g&h&i\\ \end{vmatrix}\notag\]

pmatrix environment

1
2
3
4
5
\begin{pmatrix}
a&b&c\\
d&e&f\\
g&h&i\\
\end{pmatrix}
\[\begin{pmatrix} a&b&c\\ d&e&f\\ g&h&i\\ \end{pmatrix}\notag\]

Bmatrix envrionment

1
2
3
4
5
\begin{Bmatrix}
a&b&c\\
d&e&f\\
g&h&i\\
\end{Bmatrix}
\[\begin{Bmatrix} a&b&c\\ d&e&f\\ g&h&i\\ \end{Bmatrix}\notag\]

Vmatrix environment

1
2
3
4
5
\begin{Vmatrix}
a&b&c\\
d&e&f\\
g&h&i\\
\end{Vmatrix}
\[\begin{Vmatrix} a&b&c\\ d&e&f\\ g&h&i\\ \end{Vmatrix}\notag\]

Block matrix

1
2
3
4
5
6
7
8
9
10
\begin{pmatrix}
\begin{matrix}
1&0\\
0&1\\
\end{matrix}&0\\
0&\begin{matrix}
1&0\\
0&-1\\
\end{matrix}
\end{pmatrix}
\[\begin{pmatrix} \begin{matrix} 1&0\\ 0&1\\ \end{matrix}&0\\ 0&\begin{matrix} 1&0\\ 0&-1\\ \end{matrix} \end{pmatrix}\notag\]
1
2
3
4
5
6
7
8
9
10
\begin{bmatrix}
\begin{pmatrix}
1&0\\
0&1\\
\end{pmatrix}&0\\
0&\begin{pmatrix}
1&0\\
0&-1\\
\end{pmatrix}
\end{bmatrix}
\[\begin{bmatrix} \begin{pmatrix} 1&0\\ 0&1\\ \end{pmatrix}&0\\ 0&\begin{pmatrix} 1&0\\ 0&-1\\ \end{pmatrix} \end{bmatrix}\notag\]

bordermatrix environment

1
2
3
4
5
6
\begin{equation}
\bordermatrix{
  & 1 & 2 & 3 \cr
1 & A & B & C \cr
2 & D & E & F \cr} 
\end{equation}

image-20231109220042440

Note that here, bordermatrix environment is not available in Markdown MathJax.


References

  1. Cross product - Wikipedia˄

  2. 【Latex】数学符号-代码对照表 - 爱吃猫的小鱼干的 Blog˄

  3. 刘海洋编著. LaTeX入门. 北京: 电子工业出版社, 2013.6, pages 234-236, available at: Microsoft Word - 扉页.doc ˄