Insert LaTeX equations and matrices

matrix

(1) Basic usage:

\begin{matrix}
0&1& 2 \\
4& 5& 6\\
7& 8 &9 
\end{matrix}

 

 

Only you need to modify the matrix environment can be changed to have a border matrix

(2) common usage

Parentheses box matrix pmatrix
Brackets frame matrix bmatrix
Braces frame matrix Bmatrix
Single vertical frame matrix vmatrix
Double pipe frame matrix Vmatrix

 

    

   

 

(3) a matrix ellipsis

  1. Lateral omitted \ cdots
  2. Vertical omitted \ vdots
  3. Oblique omitted \ ddots
$$\begin{bmatrix}
{a_{11}}&{a_{12}}&{\cdots}&{a_{1n}}\\
{a_{21}}&{a_{22}}&{\cdots}&{a_{2n}}\\
{\vdots}&{\vdots}&{\ddots}&{\vdots}\\
{a_{m1}}&{a_{m2}}&{\cdots}&{a_{mn}}\\
\end{bmatrix}$$

 

 

(4) submatrices inline

\left(
    \begin{smallmatrix}
    x & y \\ -y & x
    \end{smallmatrix}
\right)

 

 

(5) array environment

\begin{array}{c|c}
1 & 2\\
\hline
0 & 1
\end{array}

 

 

Equations (cases environment)

cases for the environment: piecewise functions or mathematical formulas opening brace

Equations begin with environmental cases

$$\begin{cases}
a_1x+b_1y+c_1z=d_1\\
a_2x+b_2y+c_2z=d_2\\
a_3x+b_3y+c_3z=d_3\\
\end{cases}
$$

%case环境, text{}在数学模式中处理中文-带编号
    \begin{equation}
        D(x)=\begin{cases}
        1, & \text{如果} x \in \mathbb{Q};\\
        0, & \text{如果} x \in \mathbb{R}\setminus\mathbb{Q}
        \end{cases}
    \end{equation}

Published 118 original articles · won praise 63 · views 40000 +

Guess you like

Origin blog.csdn.net/qq_42185999/article/details/104252148