1
vote
1answer
35 views

How can I align horizontally matrices of different dimensions?

I'm wondering how can I align two different matrices horizontally. They are: [-1 0 +1] And: [-1 0 +1].T This is my code: \begin{equation} \begin{bmatrix} -1 & 0 & -1 \end{bmatrix} ...
4
votes
2answers
91 views

Setting over- and underbraces outside an matrix formula

I want to typeset a matrix which consists of several submatrices. As they consist of some longer formulae I'd like to assign each a name. I tried to use \underbace and \overbrace. However now the ...
2
votes
0answers
30 views

Matrix with line and matrix operations [duplicate]

I want to produce this matrix: For the vertical line I can use \begin{array}{cc|c} and for the matrix operation I use environment gmatrix from the gauss package. But I can't use these options at ...
4
votes
1answer
79 views

Centering in matrices

I am building a big matrix within the which I have block matrices, which I want to indicate by boxes. My current state looks like this: $$\begin{matrix} \framebox[3.\width]{J}& \begin{matrix} ...
3
votes
1answer
80 views

Eqnarray nested matrices produces alignment error

I wrote the following equation array. \begin{eqnarray} w_{0} & < & 1 \\ w^{m}_{i} & = & \left \{ \begin{matrix} w_{0} & i = 0 \\ ...
4
votes
3answers
633 views

How to create this matrix in LaTeX?

I want to create the following picture in LaTeX. How can I do this?
13
votes
3answers
373 views

Force latex to show a square matrix as square

How can i force latex to print out square matrix as a square matrix with equal width and height in math-mode? I also read amsmath documentation, but don't found any useful help on it. For example ...
10
votes
3answers
598 views

How to create vertical and horizontal dotted lines in a matrix?

Similar to this question, I am trying to output a similar matrix with dotted line instead of dashed line. Is there anyway to do this? I also try to use these three packages: ...
2
votes
0answers
36 views

Need to split right bracket at side of matrix into three smaller brackets [duplicate]

To the right of this matrix I have a big right curly bracket with the text "2m terms" that spans the height of the matrix. I need to replace this right bracket with three smaller ones that together ...
3
votes
1answer
44 views

Need to represent information about a matrix, attached image showing what is needed [duplicate]

The following matrix is of size $10 \times 10$, however it is representing an $m \times m$ matrix. Hence I need to signify that the first five columns represent terms $0$ to $\frac{m}{2} - 1$ and the ...
0
votes
0answers
37 views

Get a large 0 in a diagonal or triangular matrix matrix [duplicate]

I am interested in creating a matrix that is diagonal (or triangular even) that has a large 0 below the diagonal. Is there a way that I can create a matrix that has entries on the diagonal and then ...
1
vote
1answer
39 views

Is there any way to get something like pmatrix with customizable grid lines between cells? [duplicate]

In the document I have to describe a series of transformations, made with a matrix. Each transformation works only on 2x2 or 1x1 block, so I want to visually select this block in the matrix like this: ...
4
votes
2answers
117 views

Matrix or Table with uneven number of columns

I want to achieve something like following: Is there a way to achieve this in latex? Thanks for your help.
4
votes
2answers
225 views

Help me input a column vector

I'm trying to input an arrow vector (a column vector, see the picture) in an align environment, but it reports an error. Can someone show me the TeX code of it in an align environment?
0
votes
1answer
76 views

Two line expressions using a single bracket

I want to fit two expression inside a large bracket something like this: I looked some of the examples like this one, however, I need variables such as x1 instead of 1. Help appreciated.
6
votes
3answers
147 views

Add between row spacing in a complex matrix

I have the following matrix: \documentclass{article} \usepackage{amsmath} \begin{document} $\begin{bmatrix} \begin{vmatrix} 168 & 368 \\ 368 & 1026 \end{vmatrix} & \begin{vmatrix} ...
11
votes
3answers
329 views

How to create diagonal matrix with an aligned diagonal?

How do I display truly diagonal matrices? I want to have a diagonal bloc matrix. The solution below has several problems : the diagonal terms aren't really aligned in the first half, and the diagonal ...
0
votes
2answers
90 views

How to built an abstract matrix? [duplicate]

I want to built a matrix like the picture: Have a trial: \begin{displaymath} \left( \begin{array}{ccc} b_{11} & \ldots & b_{1j} & \ldots & b_{1j} \\ b_{21} & \ldots & ...
7
votes
1answer
189 views

Matrix derivation

I would like to display a matrix with a dot (derivative) on top of it. The entry of this matrix shall consist of arbitrary symbols. When I write \begin{align} \dot{\begin{pmatrix} x \\ y ...
4
votes
1answer
80 views

In standard, interpret characters as vectors

I need to write many equations with way more matrices and vectors than scalars and I would like to have LaTeX interpret "normal" characters as vectors and matrices. Consequently I need to mark the ...
6
votes
4answers
186 views

Multiple underbraces that span overlapping columns in matrix

I want to display the structure of a matrix as shown in the image below: The following code shows the structure of the matrix, without the underbraces: \documentclass{standalone} ...
3
votes
2answers
546 views

2 or 3 matrices side-by-side

How to write the above 2 and 3 matrices side-by-side in Latex ?
9
votes
3answers
787 views

Underbrace in a matrix

I want to display the structure of a matrix as shown in the image below: Can this be done using pmatrix and \underbrace? My attempt at combining pmatrix and \underbrace results in a compile error. ...
8
votes
4answers
275 views

Matrix within equation

I am having some difficulty getting this to display properly. \begin{equation} {\bf H} = -{\bf \mu} \cdot {\bf B} = - \gamma B_o {\bf S}_z = -\frac{\gamma B_o\hbar}{2} \begin{bmatrix} ...
6
votes
2answers
190 views

Vertical lines in matrices should be aligned

I'm trying to write matrices one below the other but I want the vertical lines (compare example below) to be aligned. Eventually, there will be several matrices in one document - in the example below ...
5
votes
1answer
112 views

Automatic way to match matrix heights

I have a simple matrix equation, but one of the matrices has subscripts and superscripts on both lines: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} ...
8
votes
2answers
252 views

Put names on top of matrix

I am trying to produce 3 matrices on the same line. And on top of the each matrix, there is a name. I tried using tabular for the names and then I use align for the matrices. However, this creates ...
9
votes
2answers
533 views

How to typeset this in LaTeX

I would like to typeset the following matrix: However, I don't know how to achieve the braces and the dots leading to the matrix entry.
4
votes
2answers
236 views

How can I typeset determinants of Cramer's rule? [closed]

I want to typeset the determinants of the system $\begin{cases} a_1x+ b_1y = c_1,\\ a_2x+ b_2y = c_2. \end{cases}$ I tried $D=\left| \begin{matrix} {{a}_{1}} & {{b}_{1}} \\ {{a}_{2}} ...
7
votes
3answers
241 views

Help implementing this matrix

I'm trying to implement the matrix and vector below, the number of columns in the matrix is equal to the number of rows in the vector but it's not showing properly. The matrix is composed of three ...
3
votes
2answers
2k views

How to write a permutation ?

How to write a permutation like this ?
21
votes
5answers
2k views

Huge matrix in my document. Possible ways to make it look better?

The following is the source for a matrix I'm using in my document: \documentclass{scrartcl} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} ...
4
votes
3answers
115 views

Alignment problem between multiple line “bmatrices”

I'm having problems trying to align single and multiple line bmatrices: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align*} x = &\begin{bmatrix} ...
7
votes
2answers
473 views

Update matrix entries in beamer

I'm trying to show row reducing a matrix in a beamer presentation. I'd like to show successive steps of the row reduction using overlays. The following is close to what I want to do. The problem is ...
7
votes
1answer
242 views

Diagonal text in diagonal matrix

I have a tridiagonal matrix whose diagonals d_{-1}, d_0, d_1 (thought as vectors) can be written as vector expressions. Is there a way to nicely represent this, e.g. via a matrix which is blank ...
5
votes
2answers
1k views

Underbraces in Matrix Divided in Blocks

How to put underbraces, inside the parenthesis of a matrix, to name both sides of the blocks? \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{array} \begin{document} . . . \[ ...
3
votes
2answers
312 views

LaTeX Capabilities: Complicated and Important Equations

As I am introducing LaTeX to an audience, I'd like to show how it can render equations beautifully. As such, I'd like one equation (math/physics) that combines many different formatting requirements, ...
2
votes
0answers
222 views

Formatting big matrix and ratios using multi-row entries [closed]

It is possible to write the denominator or the numerator of a ratio, as well as the entries of a matrix, in multiple rows? This could be helpful in order to format long equations inside a document. ...
6
votes
2answers
148 views

Matrix with only $a_{i1} \neq 0$ in first column

Assume that A is square. I would like to display this as follows (for i > 1): a_{i1} in its position, 0 ... 0 (transposed) on top and below this element, and a rectangle to the right of the first ...
7
votes
2answers
220 views

Passing an argument with the alignment operator (&) to a macro within another aligned environment

I am trying to write macros for quickly formatting matrices in math mode. Here is a simple, working example: \documentclass{article} \usepackage{amsmath} ...
1
vote
1answer
198 views

Latex matrix not displaying right numbers

I've just started writing in latex to expose math problems to a forum. I am trying to display a matrix: \[ \begin{align*} \begin{matrix} 1 & -9 & 3 \\ 1 & 2 & -2 \\ -2 & ...
10
votes
1answer
3k views

Negative Sign and Matrix Alignment

I am having trouble centering the elements of a matrix such that the negative sign is not taken into account during alignment. Additionally, I would also like the space between the left parenthesis ...
3
votes
1answer
3k views

multicolumn in array environment

I want to create a matrix like the following in a math environment but i keep getting compile errors. \begin{array}{c c c c} \multicolumn{3}{c}{R} & P \\ 0 & 0 & 0 & 1 \end{array}
4
votes
2answers
265 views

How can I type an expression of a column vector

I want to type a column vector like below: [ dx ] UI = [ dy ] [ dtheta ] U is the name of this vector, and I is the subscript. Two brackets like the matrix style. dx, dy and ...
4
votes
2answers
1k views

Typsetting big matrix (but keeping A4 size)

This question is a slight variation of Compiling a BIG matrix, but I need to write a matrix in a A4 or letter size paper; it is a block 48x48 matrix but I can put lot of $0_2$ and $0_4$'s in order to ...
21
votes
2answers
6k views

Upper triangular matrix with big zero in lower triangular?

I can represent an upper trapezoidal matrix say as shown below. I would like to replace all those zeros with a single big zero that spans across the low triangle rows and columns, and maybe also add a ...
8
votes
1answer
6k views

How do I get normal-sized fractions in my matrices?

I would like to write something like the definition of a gradient operator in cartesian coordinates. \usepackage{amsmath} \begin{equation} \nabla \Phi = \begin{pmatrix} \frac{\partial ...
8
votes
3answers
1k views

use of tikzpicture matrix in align or gather environment

So far I have found using the matrix command in the TikZ package is the only way of drawing a T-shape around the bottom row and middle column of entries in a matrix. I now need to use this matrix in ...
5
votes
2answers
3k views

Horizontal line representing row vector in matrix

I would like to produce a graphical representation of a matrix as stack of row vectors. Because I will be publishing the math on a website, I have access to the amsmath package but no others. I find ...
8
votes
2answers
16k views

Misplaced alignment tab character when building a matrix

I'm still new to latex. I've been having a problem with building a matrix and I have no idea what I'm doing (or what I'm doing wrong), so be gentle please :) \begin{matrix} 5 & 6 & 7 \\ 4 ...