Some Latex Commands

Nov 2010
2,001
132
Indonesia
How to write vectors and matrices in LaTeX, as well as the Sarrus method in which we make diagonal slashes (not \cancel)?
 

v8archie

Math Team
Dec 2013
7,709
2,677
Colombia
$$\begin{bmatrix}
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{bmatrix}$$

You can also use
$$\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}$$

Or
$$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$$