5

I want to illustrate the use of dots in LaTeX.

Here is the output I am looking for:

enter image description here

This is the code I am starting with:

   $$
  L= \left[
  \begin{array}{ccc}
  1 & 0 & 0 \quad\cdots\quad0\\
  m_{2,1} & 1 & 0 \quad\cdots\quad0\\
  m_{3,1} & m_{3,2} & 1 \quad\cdots\quad0\\
   \\
  \end{array}  
   \right]
  $$
Davislor
  • 44,045

1 Answers1

9

enter image description here

With use of the amsmath package (for bmatrix):

\documentclass{article}
\usepackage{amsmath}

\begin{document}
    \[
L=  \begin{bmatrix}
    1   &   0       & 0         & \cdots    & 0\\
m_{2,1} &   1       & 0         & \cdots    & 0\\
m_{3,1} & m_{3,2}   & 1         & \cdots    & 0\\
\vdots  & \vdots    & \vdots    & \ddots    & \vdots\\
m_{n,1} & m_{n,2}   & \cdots    & m_{n,n-1} & 1
  \end{bmatrix}
    \]
\end{document}
Zarko
  • 296,517