13

Below is a list that tries to be exhaustive about the usage of square brackets. I tried to arrange them so that more common usages come first. Maybe such a list can never be complete, but are there uses other than these below?

  1. Closed Intervals like $[a,b] = \{x\in\Bbb R\mid a\leqslant x\leqslant b\}$. Open or half-open intervals are usually written with parentheses at the respective end, i.e. $(a,b)$, $(a,b]$ or $[a,b)$. Sometimes reverse brackets are used: $]a,b[$, $]a,b]$ and $[a,b[$ which might have non-matching brackets, a feature that should be avoided, IMHO.

  2. $R[x]$ or $R[x,y]$ for polynomials in $x$ resp. in $x$ and $y$ with coefficients in $R$. In most cases, $R$ is a ring, an integral domain or even a field, and $R[x]$ and $R[x,y]$ etc. denote Polynomial Rings. Similar notation is $R[[x]]$ to denote (formal) Power Series over $R$.

  3. $E[X]$ for the Expected Value of a random variable or probability distribution $X$, but notations like $EX$ and $E(X)$ are also used. Frequently $\Bbb E$ is used instead of $E$. $E[X|Y]$ denotes expectation value for conditional probability. Sometimes completely different notation is used like $\bar X$ or $\overline X$ in physics.

  4. With sub- and superscript for the difference of respective two function values like in $$\int_a^b\!\! f(x)\,dx = \big[F(x)\big]_{x=a}^{x=b} = F(b)-F(a)$$

  5. With subscript used to indicate that a (complicated) function or expression is evaluated at that specific point, like in $$\left[\frac{\partial}{\partial x} f(x, \dot x, t)\right]_{t=1}$$

  6. To denote the Equivalence Class of elements that are equivalent to an element $x$: $$[x] = \{y\mid y\sim x\}$$ where $\sim$ is an equivalence relation.

  7. To denote the Homogeneous Coordinates of, say, a point in projective space $P\Bbb R^2$ as $[x:y:z]$ or $(x:y:z)$.

  8. Stirling Numbers of the 1st Kind as $\begin{bmatrix}n\\k\end{bmatrix}$

  9. For Simple Continued Fractions $$[a_0;a_1,a_2,\ldots] ~=~ a_0+ \underset{i=1}{\overset{\infty}{\Large\text{K}}}\,\frac1{a_i} ~=~ a_0+\cfrac{1}{a_1+\cfrac{1}{a_2+\cdots}}$$

  10. $[a,b]$ for the Least Common Multiple, similar to the notation $(a,b)$ for the Greatest Common Divisor.

  11. $f[x]$ for a function that's defined on a discrete set like on $\Bbb Z$ or $\Bbb N$ or for a Time-Discrete Signal, for example in the context of signal analysis and Z-Transform like ${\cal Z}\{x[n]\}$ for the ${\cal Z}$-Transform of time-discrete signal $x$.

  12. For the Value of a Functional at a specific place like ${\cal F}[f]$ for the Fourier transform of $f$. More common are notations ${\cal F}\{f\}$, ${\cal F}(f)$ or just ${\cal F}f$.

  13. $[a,b]$ for the Lie Bracket in a Lie algebra or Lie ring.

  14. The Lie Bracket of a vector field. Like the Lie bracket in a Lie algebra it's a binary operation that's bilinear, anti-symmetric and obeys the Jacobi identity $[x,[y,z]] + [z,[x,y]] + [y,[z,x]] = 0$.

  15. $[a,b]=ab-ba$ for the Commutator in Group and Ring theory that measures the degree of non-commutativity of an operation. In a group (where there's only one operation) it is $[a,b] = a^{-1}b^{-1}ab$.

  16. $[X]$ for the Iverson Bracket, a generalization of Kronecker δ. For some expression / predicate $X$ that bracket evaluates to $1$ when $X$ is true, and to $0$ when $X$ is false. Kronecker δ represents as $\delta_{ij}=[i=j]$ for example.

  17. $[n]_q$ for the q-Analog of $n$, also called q-bracket or q-number.

  18. As Gauss Bracket $[x]$ to denote the greatest integer not greater than $x$, in programming sometimes called floor function. Iverson's notation $\lfloor x\rfloor$ is clearer and removes ambiguity due to the sheer number of different usages of $[~]$.

  19. $[a,b,c] = (ab)c-a(bc)$ for the Associator that measures the degree of non-associativity of an operation.

  20. For matrices and vectors. Some authors use $\begin{bmatrix} a&b\\c&d\end{bmatrix}$ instead of $\begin{pmatrix} a&b\\c&d\end{pmatrix}$ and $\begin{bmatrix} x\\y\end{bmatrix}$ instead of $\begin{pmatrix} x\\y\end{pmatrix}$ etc.

  21. Instead of parentheses $()$ in order to to "override" the conventions for Precedence of Operations and operators and to determine in which order to evaluate an expression, like in $p(x)=x[1 + x(1+x)]$ instead of $p(x)=x(1 + x(1+x))$. Sometimes even mixed with braces $\{\}$ to add more confusion.


I am not really sure about the "Matrices and Vectors" point and that they really mean the same. So is that just an author's preference, some typographic consideration or even different semantics?

emacs drives me nuts
  • 10,390
  • 2
  • 12
  • 31
  • @Dietrich Burde: Never saw that notation before. Are there other references? For example in your first link, $\operatorname{lcm}$ is used in the question in throughout all answers. – emacs drives me nuts Aug 12 '22 at 16:31
  • Yes, there are several references. In fact, most of the books on elementary number theory I have seen have this notation. For example, the book by Ireland and Rosen, Definition on page 4. But of course I believe you, that you haven't seen it. Otherwise you would have mentioned it. – Dietrich Burde Aug 12 '22 at 16:50
  • 1
    The $q-$analog of a number $[n]_q=1+q+\cdots +q^{n-1}$. – Phicar Aug 12 '22 at 17:14
  • Mixing the $()[]{}$ grouping symbols has the advantage of making pairs easier to see, especially when they happen to have similar sizes. Of course, we would use them only when other meanings of $[]$ and ${}$ aren't in the context. (Or possibly in a context with a meaning that requires a comma, with other factors that make the two meanings somewhat obvious.) – aschepler Aug 12 '22 at 17:15
  • 1
    German notation for closed line segments - generalizes closed interval notation well. – Thomas Preu Aug 12 '22 at 17:40
  • 1
    If $X$ is an elliptic curve or other commutative structure in algebraic geometry, the map $\Bbb Z\to\text{End}(X)$ is often denoted $n\mapsto[n]$ or $[n]_X$. – Lubin Aug 12 '22 at 17:47
  • [] means molar concentration as well… – ArthD21 Aug 12 '22 at 17:48
  • 1
    The equivalence class $x$ falls into under some equivalence relation $\sim$ is sometimes denoted by $[x]$ (e.g., the image $[x]$ of $x$ under a quotient map of groups $G \to G/N$ or of rings $R \to R/I$; the homotopy class $[\gamma]$ associated to a loop $\gamma$, the cohomology class $[\omega]$ associated to a differential form $\omega$, etc.) – anomaly Aug 12 '22 at 17:54
  • 1
    Continued fractions are generally written $[a_0; a_1, a_2, \dots]$. – anomaly Aug 12 '22 at 17:55
  • 1
    For (say, based) spaces $X$ and $Y$, the set of maps $X \to Y$ modulo homotopy is denoted by $[X, Y]$. – anomaly Aug 12 '22 at 17:57
  • 1
    $[n]$ is often used to represent the set of the first $n$ natural numbers, ${1,2,...,n}$. – David P Aug 12 '22 at 18:11
  • 2
    For stochastic processes (martingales) there is the predictable quadratic variation which is denoted by $\langle M\rangle$ and also the quadratic variation which is denoted by $[M]$. When $M$ is discontinuous the are different in general. – Kurt G. Aug 12 '22 at 18:27
  • 3
    If you follow it with a pipe, a colon, an ndash, and a right parenthesis you get an emoticon of a man wearing a pork-pie hat: [|:-) – fleablood Aug 12 '22 at 18:37
  • 3
    Many years ago I saw them used for the floor function. Nowadays it is more common to use $\lfloor \bullet \rfloor.$ – md2perpe Aug 12 '22 at 20:18
  • Here is another one for you: https://math.stackexchange.com/questions/4519572/what-is-vecr-veca-vecb The answer is in the comment. – Suzu Hirose Aug 27 '22 at 12:50