I would like to put some block matrices in LaTeX: in the end they should look like this; The first matrix that I need looks like this, sorry I know it does not look very clear this way (for a better view, check out the following image).
The larger dots indicate that the blocks have to be repeated.
The smaller dots indicate that the matrices can be larger in size.
I dont need to have it like this exactly in latex, just dots in the below left corner is also okay.)
2 -1 0 0 0 0 0 0
-1 2 0 0 0 0 0 0
0 -1 2 -1 0 . . .
0 0 -1 2 -1 0 0 .
0 0 0 -1 2 -1 0 0
and so on...
and the second one looks like this:
1 0 0 0 0 0 0
0 1 -1 0 0 0 0
0 -1 1 0 0 0 0
0 0 0 1 -1 0 0
0 0 0 -1 1 0 0
0 0 0 0 0 . .
0 . . . . ...
I tried to do it like this using the easybmat
package.
\[
\left(
\begin{BMAT}(rc){c:c}{c:c}
\begin{BMAT}(rc){cc}{cc}
1 & -1\\
-1 & 1
\end{BMAT} &\begin{array}{cc}
0 & . \\
0 & 0 \\
\end{array}\\
\begin{array}{cc}
0& 0 \\
. & 0 \\
\end{array} & \begin{BMAT}(rc){cc}{cc}
1 & -1\\
-1 & 1
\end{BMAT}
\end{BMAT}
\right)
\]
But this gives the right idea, but I don't know how to adjust this to a bigger size. And I also don't know how to put in the extra cells which I need for the second matrix.
Best Answer
Here's a possible code for the first matrix:
Using this example code you can easily build the second matrix.