[Tex/LaTex] Toeplitz matrix in LaTeX

matrices

How do I create a Toeplitz matrix like the following in LaTeX?

matrix

Best Answer

\documentclass{article}
\usepackage{mathtools}
\begin{document}

\[ %\arraycolsep=4pt
 G = 
 \begin{bmatrix*}[r]
    1 \\
    2&1\\
   -1&2&1\\
     &-1&2&1\\
     &&-1&2&1\\
     &&&-1&2&1\\
     &&&&&&\ddots\\
     &&&&&&&\ddots\\
     &&&&&&&&\ddots\\
     &&&&&&&&&1
  \end{bmatrix*}
\]
\end{document}

enter image description here

Related Question