Matrices in LaTeX: pmatrix, bmatrix, Matrix Brackets and Determinants
Quick answer
- Load amsmath:
\usepackage{amsmath}, otherwise you get Environment pmatrix undefined. - 2×2 matrix:
\[ \begin{pmatrix} a & b \\ c & d \end{pmatrix} \];&separates columns,\\ends a row. - Brackets:
pmatrix( ),bmatrix[ ],Bmatrix{ },vmatrix| | (determinant),Vmatrix‖ ‖,matrixnone. - Dots:
\cdotsacross,\vdotsdown,\ddotsdiagonal. - Inline:
smallmatrix; augmented:\left[\begin{array}{cc|c} ... \end{array}\right].
Write a LaTeX matrix with amsmath: separate columns with &and rows with \\. Choose pmatrix for parentheses,bmatrix for square brackets, or vmatrix for a determinant.
Matrix Brackets: pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix
The matrix brackets come from the environment name, not from typing delimiters yourself. amsmath has one environment per bracket type, and the content inside is written the same way in all five; only the letter in front of matrix changes:
| Environment | Bracket type | Looks like | Use it for |
|---|---|---|---|
pmatrix | Parentheses ( ) | (a b c d) | The default choice: vectors, transformation matrices, most textbooks |
bmatrix | Square brackets [ ] | [a b c d] | Linear algebra, systems of equations, engineering texts |
Bmatrix | Curly braces { } | {a b c d} | Rare: sets of vectors, some physics conventions |
vmatrix | Single vertical bars | | | |a b c d| | Determinants |
Vmatrix | Double vertical bars ‖ ‖ | ‖a b c d‖ | Matrix norms |
Here are all five side by side, plus the bracket-less matrix for comparison. The example compiles as it stands:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{pmatrix} a & b \\ c & d \end{pmatrix} \quad
\begin{bmatrix} a & b \\ c & d \end{bmatrix} \quad
\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}
\]
\[
\begin{vmatrix} a & b \\ c & d \end{vmatrix} \quad
\begin{Vmatrix} a & b \\ c & d \end{Vmatrix} \quad
\begin{matrix} a & b \\ c & d \end{matrix}
\]
\end{document}All of them must sit inside math mode (\[...\], $...$, equation, align); on its own a matrix environment fails with Missing $ inserted. For any other bracket, such as angle brackets or a one-sided brace, wrap a plain matrix in \left and \right: \left\langle \begin{matrix} a & b \end{matrix} \right\rangle. The brackets guide lists every delimiter.
2x2, 3x3 and 4x4 Matrices: Worked Examples
Each row should contain the same number of entries. Missing entries can silently leave blank cells rather than producing an error, so count the separators when a matrix looks uneven. The syntax does not change with the size: a 2x2 matrix in LaTeX has two entries per row and two rows, a 4x4 matrix has four of each. The examples below use bmatrix; swap in pmatrix for parentheses. Each size comes with its determinant, written with vmatrix and \det (the next section), and the 2x2 case shows the inverse (assuming ad − bc is nonzero) and transpose that the Matrix Operations section covers in full.
2x2 matrix
% 2x2 matrix in square brackets
\[
A = \begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
\]
% 2x2 determinant with vmatrix, and with \det
\[
\det(A) = \begin{vmatrix}
a & b \\
c & d
\end{vmatrix}
= ad - bc
\]
% 2x2 inverse and transpose
\[
A^{-1} = \frac{1}{ad - bc}
\begin{bmatrix}
d & -b \\
-c & a
\end{bmatrix},
\qquad
A^{\mathsf{T}} = \begin{bmatrix}
a & c \\
b & d
\end{bmatrix}
\]3x3 matrix
% 3x3 matrix
\[
B = \begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{bmatrix}
\]
% 3x3 determinant by cofactor expansion along the first row
\[
\begin{vmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{vmatrix}
= a \begin{vmatrix} e & f \\ h & i \end{vmatrix}
- b \begin{vmatrix} d & f \\ g & i \end{vmatrix}
+ c \begin{vmatrix} d & e \\ g & h \end{vmatrix}
\]
% Applied to B above: the rows are in arithmetic progression, so B is singular
\[
\det(B) = 1(5 \cdot 9 - 6 \cdot 8) - 2(4 \cdot 9 - 6 \cdot 7) + 3(4 \cdot 8 - 5 \cdot 7)
= -3 + 12 - 9 = 0
\]
% 3x3 matrix times a column vector
\[
B\mathbf{x} = \begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{bmatrix}
\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix}
\]4x4 matrix
% 4x4 matrix with double-subscripted entries
\[
C = \begin{bmatrix}
c_{11} & c_{12} & c_{13} & c_{14} \\
c_{21} & c_{22} & c_{23} & c_{24} \\
c_{31} & c_{32} & c_{33} & c_{34} \\
c_{41} & c_{42} & c_{43} & c_{44}
\end{bmatrix}
\]
% 4x4 identity, and a 4x4 homogeneous transformation (translation by t)
\[
I_4 = \begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1
\end{bmatrix},
\qquad
T = \begin{bmatrix}
1 & 0 & 0 & t_x \\
0 & 1 & 0 & t_y \\
0 & 0 & 1 & t_z \\
0 & 0 & 0 & 1
\end{bmatrix}
\]Entries like c_{11} need braces around the two-digit subscript; c_11 would subscript only the first 1. Past four columns the same pattern continues up to the amsmath limit of ten, which the Matrix Sizing section shows how to raise.
Determinants (vmatrix) and \det
The vmatrix environment uses vertical bars as delimiters, which is the standard notation for determinants. The Vmatrix environment uses double vertical bars, typically for matrix norms. When the determinant is written as a function, use \det, which sets “det” upright with correct spacing; |A| is the compact alternative.
% 2x2 determinant, three equivalent notations
\[
\det A = \det(A) = |A| = \begin{vmatrix}
a & b \\
c & d
\end{vmatrix}
= ad - bc
\]
% 3x3 determinant
\[
\begin{vmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33}
\end{vmatrix}
\]
% Matrix norm with Vmatrix
\[
\|A\| = \begin{Vmatrix}
a & b \\
c & d
\end{Vmatrix}
\]
% Determinants used in Cramer's rule: matrices inside \frac
\[
x = \frac{
\begin{vmatrix} b_1 & a_{12} \\ b_2 & a_{22} \end{vmatrix}
}{
\begin{vmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{vmatrix}
}
\]Inline Matrices: smallmatrix
The smallmatrix environment produces a compact matrix suitable for inline use within running text. It adds no brackets of its own, so wrap it in \left( … \right); or load mathtools, which provides psmallmatrix, bsmallmatrix, vsmallmatrix and friends with the brackets built in.
% Inline small matrix with parentheses
The rotation matrix
$\left(\begin{smallmatrix} \cos\theta & -\sin\theta \\
\sin\theta & \cos\theta \end{smallmatrix}\right)$
rotates a vector by $\theta$ radians.
% Inline small matrix with square brackets
The matrix
$\left[\begin{smallmatrix} a & b \\ c & d \end{smallmatrix}\right]$
has determinant $ad - bc$.
% mathtools shortcuts
\usepackage{mathtools}
If $A = \begin{psmallmatrix} 1 & 2 \\ 3 & 4 \end{psmallmatrix}$
and $I = \begin{bsmallmatrix} 1 & 0 \\ 0 & 1 \end{bsmallmatrix}$,
then $A + I = \begin{psmallmatrix} 2 & 2 \\ 3 & 5 \end{psmallmatrix}$.A two-row smallmatrix still pokes slightly above and below the line, so the lines around it are pushed apart a little. For anything taller than two rows, use a display.
Augmented Matrices: array with a Vertical Line
Augmented matrices — used to represent systems of linear equations — include a vertical line separating the coefficient matrix from the constants column. The amsmath matrix environments cannot draw internal lines, so use the array environment with a | in the column specification and add the outer brackets with \left[ and \right].
% Augmented matrix using array
\[
\left[\begin{array}{ccc|c}
1 & 0 & 0 & 3 \\
0 & 1 & 0 & 5 \\
0 & 0 & 1 & -2
\end{array}\right]
\]
% A system of equations in augmented form, with a row operation
\[
\left[\begin{array}{cc|c}
2 & 1 & 8 \\
1 & 3 & 13
\end{array}\right]
\xrightarrow{R_1 \leftrightarrow R_2}
\left[\begin{array}{cc|c}
1 & 3 & 13 \\
2 & 1 & 8
\end{array}\right]
\]
% [A | I] for Gauss-Jordan inversion
\[
\left[\begin{array}{cc|cc}
1 & 2 & 1 & 0 \\
3 & 4 & 0 & 1
\end{array}\right]
\]Unlike pmatrix, array keeps a column's worth of padding (\arraycolsep) inside the outer brackets; add @{} at the ends of the specification to trim it. You can also define a reusable augmented matrix environment in your preamble:
% Define a reusable augmented bmatrix environment
\newenvironment{amatrix}[1]{%
\left[\begin{array}{@{}*{#1}{c}|c@{}}
}{%
\end{array}\right]
}
% Usage: \begin{amatrix}{number of coefficient columns}
\[
\begin{amatrix}{3}
1 & 2 & 3 & 4 \\
5 & 6 & 7 & 8 \\
9 & 10 & 11 & 12
\end{amatrix}
\]Dots in Large Matrices: \cdots, \vdots, \ddots and \hdotsfor
For a general m×n matrix you show the pattern rather than every entry. \cdots runs across a row, \vdots down a column, \ddots along the diagonal, and amsmath's \hdotsfor{n} fills n columns of a row with dots in one go:
\[
A = \begin{pmatrix}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m1} & a_{m2} & \cdots & a_{mn}
\end{pmatrix}
\]
% \hdotsfor{4} replaces four cells with a row of dots
\[
\begin{pmatrix}
1 & 2 & 3 & 4 \\
\hdotsfor{4} \\
5 & 6 & 7 & 8
\end{pmatrix}
\qquad
\begin{pmatrix}
1 & 2 & 3 \\
\hdotsfor[2]{3} \\ % optional argument stretches the dot spacing
7 & 8 & 9
\end{pmatrix}
\]Identity, Zero and Diagonal Matrices
Certain matrices appear frequently in mathematics and have standard notations.
Identity matrix
% 3x3 identity matrix
\[
I_3 = \begin{pmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{pmatrix}
\]
% General n x n identity matrix
\[
I_n = \begin{pmatrix}
1 & 0 & \cdots & 0 \\
0 & 1 & \cdots & 0 \\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \cdots & 1
\end{pmatrix}
\]
% Symbols for the identity: I, bold I, blackboard 1 (needs the bbm or dsfont package)
$I$, $\mathbf{I}$, $\mathrm{Id}$Zero matrix
% Zero matrix, written O or bold 0
\[
O_{m \times n} = \mathbf{0} = \begin{pmatrix}
0 & 0 & \cdots & 0 \\
0 & 0 & \cdots & 0 \\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \cdots & 0
\end{pmatrix}
\]Diagonal matrix
% Diagonal matrix
\[
D = \begin{pmatrix}
d_1 & 0 & \cdots & 0 \\
0 & d_2 & \cdots & 0 \\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \cdots & d_n
\end{pmatrix}
\]
% Using \operatorname{diag}
\[
D = \operatorname{diag}(d_1, d_2, \ldots, d_n)
\]Triangular matrices
% Upper triangular matrix
\[
U = \begin{pmatrix}
u_{11} & u_{12} & u_{13} & \cdots & u_{1n} \\
0 & u_{22} & u_{23} & \cdots & u_{2n} \\
0 & 0 & u_{33} & \cdots & u_{3n} \\
\vdots & \vdots & \vdots & \ddots & \vdots \\
0 & 0 & 0 & \cdots & u_{nn}
\end{pmatrix}
\]
% Lower triangular matrix
\[
L = \begin{pmatrix}
l_{11} & 0 & 0 & \cdots & 0 \\
l_{21} & l_{22} & 0 & \cdots & 0 \\
l_{31} & l_{32} & l_{33} & \cdots & 0 \\
\vdots & \vdots & \vdots & \ddots & \vdots \\
l_{n1} & l_{n2} & l_{n3} & \cdots & l_{nn}
\end{pmatrix}
\]Matrix Operations: Transpose, Inverse, Multiplication
Transpose: ^{\mathsf{T}}, ^\top or ^{T}
There are three common ways to write the transpose, and all are superscripts on the matrix. ISO 80000-2 recommends an upright T, which \mathsf{T} gives; \top is the “tee” symbol ⊤; and a plain italic T is the simplest. Pick one and define a macro so the document is consistent:
\newcommand{\T}{\mathsf{T}} % then write A^{\T}
\[
A^{\mathsf{T}} \qquad A^\top \qquad A^{T} \qquad A^{\intercal} % amssymb
\]
% Transposing an explicit matrix
\[
\begin{bmatrix}
1 & 2 \\
3 & 4 \\
5 & 6
\end{bmatrix}^{\mathsf{T}}
=
\begin{bmatrix}
1 & 3 & 5 \\
2 & 4 & 6
\end{bmatrix}
\]
% Related: conjugate transpose, inverse transpose
\[
(AB)^{\mathsf{T}} = B^{\mathsf{T}} A^{\mathsf{T}} \qquad
A^{*} \quad A^{\dagger} \quad A^{H} \qquad
A^{-\mathsf{T}} = (A^{-1})^{\mathsf{T}}
\]Inverse and matrices inside \frac
A matrix can appear in a fraction or carry a superscript, but the notation must make mathematical sense. The inverse below exists only when the determinant is nonzero. LaTeX typesets the formula; it does not check invertibility or calculate entries.
% 2x2 inverse formula: a matrix inside \frac
\[
A^{-1} = \frac{1}{\det A}
\begin{pmatrix}
d & -b \\
-c & a
\end{pmatrix}
= \frac{1}{ad - bc}
\begin{pmatrix}
d & -b \\
-c & a
\end{pmatrix}
\]
% A matrix as the numerator, and a matrix raised to a power
\[
\mathbf{u} = \frac{\begin{pmatrix} 1 \\ 2 \end{pmatrix}}{\sqrt{5}}
\qquad
\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}^{-1}
\qquad
\frac{1}{2}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}
\]
% Inverse properties
\[
A A^{-1} = A^{-1} A = I \qquad (AB)^{-1} = B^{-1} A^{-1}
\]Matrix multiplication
Matrix products require matching inner dimensions. Load amssymb as well as amsmath for the real-number symbol \mathbb in the last display.
\[
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
\begin{pmatrix}
e & f \\
g & h
\end{pmatrix}
=
\begin{pmatrix}
ae + bg & af + bh \\
ce + dg & cf + dh
\end{pmatrix}
\]
% Matrix-vector multiplication
\[
\begin{bmatrix}
1 & 2 \\
3 & 4
\end{bmatrix}
\begin{bmatrix}
x \\
y
\end{bmatrix}
=
\begin{bmatrix}
x + 2y \\
3x + 4y
\end{bmatrix}
\]
% Dimensions and entry notation
\[
A \in \mathbb{R}^{m \times n}, \qquad A = (a_{ij})_{m \times n}, \qquad
\operatorname{tr}(A), \quad \operatorname{rank}(A)
\]Systems of Linear Equations
Matrices are the natural way to represent systems of linear equations in the compact form Ax = b. LaTeX can display both the expanded system and its matrix form side by side.
% System of equations in matrix form
\[
\underbrace{
\begin{bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33}
\end{bmatrix}
}_{A}
\underbrace{
\begin{bmatrix}
x_1 \\
x_2 \\
x_3
\end{bmatrix}
}_{\mathbf{x}}
=
\underbrace{
\begin{bmatrix}
b_1 \\
b_2 \\
b_3
\end{bmatrix}
}_{\mathbf{b}}
\]% Expanded system alongside matrix form
\[
\begin{cases}
2x + y - z = 8 \\
-3x - y + 2z = -11 \\
-2x + y + 2z = -3
\end{cases}
\quad \Longleftrightarrow \quad
\begin{bmatrix}
2 & 1 & -1 \\
-3 & -1 & 2 \\
-2 & 1 & 2
\end{bmatrix}
\begin{bmatrix}
x \\ y \\ z
\end{bmatrix}
=
\begin{bmatrix}
8 \\ -11 \\ -3
\end{bmatrix}
\]Block Matrices
Block matrices are large matrices composed of submatrix blocks. Use nested matrix environments, or array with | and \hline to draw the block boundaries.
% Block matrix with visual separation
\[
M = \left[\begin{array}{cc|cc}
A_{11} & A_{12} & B_{11} & B_{12} \\
A_{21} & A_{22} & B_{21} & B_{22} \\
\hline
C_{11} & C_{12} & D_{11} & D_{12} \\
C_{21} & C_{22} & D_{21} & D_{22}
\end{array}\right]
\]
% Block diagonal matrix
\[
\begin{bmatrix}
A & 0 \\
0 & B
\end{bmatrix}
=
\begin{bmatrix}
a_{11} & a_{12} & 0 & 0 \\
a_{21} & a_{22} & 0 & 0 \\
0 & 0 & b_{11} & b_{12} \\
0 & 0 & b_{21} & b_{22}
\end{bmatrix}
\]
% Block matrix notation
\[
M = \begin{pmatrix}
A & B \\
C & D
\end{pmatrix}
\quad \text{where } A, B, C, D \text{ are submatrices}
\]Matrix Sizing: More Than 10 Columns
Matrix entries are centered by default. For right-aligned negative numbers, load mathtools and use \begin{bmatrix*}[r], closing with \end{bmatrix*}. For a different alignment in each column, use an array specification such as rc instead. amsmath limits its matrix environments to 10 columns. An 11th column fails with Extra alignment tab has been changed to \cr. Raise the limit with the MaxMatrixCols counter in the preamble:
\usepackage{amsmath}
\setcounter{MaxMatrixCols}{20}
\[
\begin{pmatrix}
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12
\end{pmatrix}
\]A wide matrix may still overflow the line; reduce the font with \small before the display, use \cdots to abbreviate, or use fewer displayed columns. Switching to array removes the amsmath limit but does not shrink the result: its column specification still determines its width.
The nicematrix Package
When you need row and column labels, highlighted blocks, dotted lines that cross several cells, or exact control over rules, the nicematrix package extends every amsmath environment with a Nice variant and adds first-row and first-col for labels outside the brackets:
\usepackage{nicematrix}
\[
\begin{pNiceMatrix}
1 & 2 \\
3 & 4
\end{pNiceMatrix}
\qquad
\begin{bNiceArray}{cc|c} % augmented matrix with brackets built in
1 & 2 & 3 \\
4 & 5 & 6
\end{bNiceArray}
\qquad
\begin{pNiceMatrix}[first-row,first-col]
& x & y \\
a & 1 & 2 \\
b & 3 & 4
\end{pNiceMatrix}
\]nicematrix stores cell positions in the .aux file, so features that depend on them (dotted lines across cells, blocks, labels outside the brackets) can be misplaced on the first run; compile twice. The older blkarray package and plain TeX's \bordermatrix do the same job for labelled matrices with less flexibility.
Common Errors and Fixes
| Message or symptom | Cause | Fix |
|---|---|---|
| LaTeX Error: Environment pmatrix undefined | amsmath not loaded | \usepackage{amsmath} in the preamble |
| Missing $ inserted | Matrix environment used outside math mode | Wrap it in \[...\], $...$ or equation |
| Extra alignment tab has been changed to \cr | A row has too many &, or more than 10 columns | Fix the stray &, or \setcounter{MaxMatrixCols}{20} |
| Misplaced alignment tab character & | & outside any matrix, table or align | Check that the \begin is present; write \& for a literal ampersand |
| Missing \right. inserted / Extra \right | Unbalanced \left and \right around an array | Every \left needs a \right in the same line of the display; use \right. for an invisible one |
| Illegal character in array arg | Wrong column spec, e.g. \begin{array}{2} or a typo such as cc:c | For this example use cc|c; each letter declares a column, while | adds a rule |
| Brackets too tall, empty row at the bottom | An extra empty row or excessive row spacing | Remove doubled row breaks and unnecessary optional spacing |
| Inline matrix spreads the lines apart | Full-size pmatrix in $...$ | Use smallmatrix / psmallmatrix, or a display |
| Vertical line missing in augmented matrix | Used pmatrix, which has no column spec | \left(\begin{array}{cc|c} ... \end{array}\right) |
| Dots do not line up along the diagonal | Mixed \cdots, \vdots and \ddots in the wrong cells | \ddots only on the diagonal cell; \hdotsfor for a full row |
Frequently Asked Questions
How do I write a matrix in LaTeX?
Load amsmath and, inside math mode, use one of the matrix environments. Columns are separated by & and rows by \\: \[ \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \]. pmatrix gives round brackets, bmatrix square brackets, vmatrix vertical bars for a determinant, and matrix no brackets.
What is the difference between pmatrix and bmatrix?
Only the brackets. pmatrix wraps the matrix in parentheses ( ), bmatrix in square brackets [ ]. The capitalised Bmatrix gives curly braces { }, vmatrix single bars | | for determinants, and Vmatrix double bars for norms. The content syntax is identical.
How do I write a matrix inline in text?
Use smallmatrix inside \left( ... \right), or the mathtools shortcuts psmallmatrix and bsmallmatrix: $\begin{psmallmatrix} a & b \\ c & d \end{psmallmatrix}$. The matrix is set at a reduced size so it fits the line height.
How do I make an augmented matrix with a vertical line?
The amsmath matrix environments cannot draw internal lines, so use array with a | in the column specification and add the brackets yourself: \left[\begin{array}{cc|c} 1 & 2 & 3 \\ 4 & 5 & 6 \end{array}\right].
Why do I get “Extra alignment tab has been changed to \cr”?
A row has more & separators than the matrix allows. Either you have a stray & in one row, or the matrix has more than 10 columns, which is the amsmath default. Raise the limit in the preamble with \setcounter{MaxMatrixCols}{20}.
How do I write a 3x3 matrix in LaTeX?
Use bmatrix or pmatrix with three entries per row and three rows: \[ \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} \]. A 2x2 or 4x4 matrix is the same environment with two or four entries per row; amsmath allows up to 10 columns by default.
How do I write a determinant in LaTeX?
Use the vmatrix environment, which puts vertical bars around the entries: \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc. For the function form write \det(A) or \det A; \det is a predefined operator and is set upright with the correct spacing.
How do I write the transpose of a matrix?
Add a superscript to the matrix or its name: A^{\mathsf{T}} (upright sans-serif T, a common convention), A^\top (the ⊤ symbol), or plainly A^{T}. Use the same form throughout the document.
Next Steps
Now that you can create matrices in LaTeX, explore more mathematical typesetting topics:
- Brackets and Parentheses in LaTeX –
\left,\right, manual sizes and every delimiter you can put around a matrix - Mathematical Expressions – Comprehensive guide to writing math in LaTeX
- Multiline Equations – align, split and matrix equations over several lines
- LaTeX Tables – When the grid is data rather than a matrix
Free LaTeX Tools
- LaTeX Preview – Test your LaTeX code with live PDF preview
- Math to LaTeX – Convert handwritten equations to LaTeX
Ready to start writing?
Open a matrix example in Octree, ask AI chat about alignment or a compiler error, and check the entries and brackets in the resulting PDF.
Try Octree Free →