# What is the latex code for pentadiagonal system of equations

Can anyone please provide or guide me to write the latex code for the given system of equation?

It's quite hard to fit this in a standard line width.

I used a few tricks for minimizing the amount of input:

1. \w[x] typesets \mathbf{w}_{jx};
2. \r[x] typesets \mathbf{r}_{jx};
3. \? is used to push the object right or left.

Don't use \w and \r generally in your document.

In order to pretend the diagram isn't really as wide as the line, I added some negative spacing.

\documentclass[leqno]{article}
\usepackage{amsmath,array}

\begin{document}


\end{document}


You might perhaps go with \small instead of \footnotesize, depending on the line width in your document.

First try without the two \hspace*{-2em} to see whether it really fits.