187

I occasionally come across a new piece of notation so good that it makes life easier by giving a better way to look at something. Some examples:

  • Iverson introduced the notation [X] to mean 1 if X is true and 0 otherwise; so for example Σ1≤n<x [n prime] is the number of primes less than x, and the unmemorable and confusing Kronecker delta function δn becomes [n=0]. (A similar convention is used in the C programming language.)

  • The function taking x to x sin(x) can be denoted by x ↦ x sin(x). This has the same meaning as the lambda calculus notation λx.x sin(x) but seems easier to understand and use, and is less confusing than the usual convention of just writing x sin(x), which is ambiguous: it could also stand for a number.

  • I find calculations with Homs and ⊗ easier to follow if I write Hom(A,B) as A→B. Similarly writing BA for the set of functions from A to B is really confusing, and I find it much easier to write this set as A→B.

  • Conway's notation for orbifolds almost trivializes the classification of wallpaper groups.

Has anyone come across any more similar examples of good notation that should be better known? (Excluding standard well known examples such as commutative diagrams, Hindu-Arabic numerals, etc.)

Tom LaGatta
  • 8,372
  • 13
    In set theory we write ${}^B A$ for the set of functions from $B$ to $A$. – Andrés E. Caicedo Oct 20 '10 at 20:54
  • 6
    Knuth made an argument for Iverson's notation in http://arxiv.org/abs/math/9205211 . – lhf Oct 20 '10 at 21:17
  • 32
    I've always assumed that the notation $A^B$ is because of the "exponential law" $(A^B)^C = A^{B\times C}$ ... – Kevin H. Lin Oct 20 '10 at 23:18
  • 2
    I guess, in terms of lambda calculus, this is called "currying" ... – Kevin H. Lin Oct 20 '10 at 23:19
  • 12
    Yes, among other things. Also $A^B\times A^C=A^{B+C}$, where $+$ is disjoint union. But all the great reasons for it don't help for our mind thinking that maps start with the source and end with the image, not the other way round. – darij grinberg Oct 20 '10 at 23:20
  • 7
    I still find it terribly annoying that I have to write things like "where $[Q]$ is an Iversonian bracket" every time I use it. I wish it reaches the point where it should only have to be explained in introductory work. On the other hand, since brackets get used a lot for other things as well, maybe someone should develop specific enclosures like what was done for floor and ceiling I suppose... – J. M. isn't a mathematician Oct 21 '10 at 00:59
  • 4
    (a version of) the Iverson bracket notation is common in categorical logic: we write them like $[![ \mathrm{this} ]!]$, i.e. [![ … ]!], and call them “Scott brackets”. Besides the examples already given, it extends beautifully to more general models with some other lattice of truth-values; but I guess that's of less general interest :-) – Peter LeFanu Lumsdaine Oct 21 '10 at 03:05
  • 27
    Arabic numerals ? Ah yes, they were transmitted to Europe by the Arabs. – Chandan Singh Dalawat Oct 21 '10 at 03:29
  • 18
    Isn't $x \mapsto f(x)$ commonplace? As for homomorphisms, they are not simply maps, and $\mathrm{Hom}(A, B)$ denotes the whole class, while $A \to B$ denotes a single mapping. – Aleksei Averchenko Oct 21 '10 at 03:38
  • 9
    For those who missed the point of Chandan's comment: it's "Hindu-Arabic numerals". ;) – J. M. isn't a mathematician Oct 21 '10 at 04:56
  • @Peter: I've always heard them called "Oxford brackets" -- I've never heard the name Scott brackets before. I wouldn't mind attributing them to Scott though, if he invented them. – Neel Krishnaswami Oct 21 '10 at 08:18
  • 4
    How about the notation $x^n$ itself? Initially for positive integers $n$ (and even then Euler still wrote $xx$ and $xxx$ on occasion) but suggesting fruitful generalization where $n$ might be negative, fractional, etc. and eventually even $x$ might "live" somewhere other than the real or complex numbers. – Noam D. Elkies Jul 02 '11 at 21:35
  • 3
    I would say the second bullet is completely standard. – timur Feb 05 '12 at 17:50
  • 3
    @Peter LeFanu Lumsdaine, there's no need to do that spacing manually; stmaryrd (http://www.ctan.org/tex-archive/fonts/stmaryrd) includes \llbracket and \rrbracket. – LSpice Jun 14 '12 at 18:48
  • 1
    (1) I only know the Kronecker delta with two indices, yielding $\delta_{ij} = [i = j]$ - but this is better anyhow! (2) I always found the notation $A^B$ useful since the number of functions from $B$ to $A$ is - in the finite case - just $|A|^{|B|}$ (3) I believe it's a matter of taste: for me $A\rightarrow B$ indicates one morphism from $A$ to $B$, not all of them. – Hans-Peter Stricker Oct 16 '12 at 14:34
  • 4
    Well, if X is a set, then the Cartesian product $X^n$ is the set of functions from $[n] = {1, 2, \ldots, n}$ to X, so naturally $X^A$ is the set of functions $A \to X$. – Daniel McLaury Dec 10 '12 at 01:13
  • Re the comments on $B^A$: like you are likely to know, a useful and usual alternative notation for $B^A$, coming from category theory, is $[A,B]$, often referred to as the "internal-hom". In the category $\mathsf{C}$ of sets, we have $B^A = \mathsf{C}(A,B) = [A,B]$. The notation somewhat clashes with Iverson brackets, of course; and then again...one can perhaps reconcile the two with a suitable interpretation. – Peter Heinig Jul 15 '17 at 11:29
  • I invented my own function $\delta(n, k)$ which simply means the sum of the digits of $n$ in base $k$ since $\delta$ looks like an $S$ in english but corresponds to a $d$ in greek ..... until I read this post and found out there was already a similar delta function (sigh). – Mr Pie Jan 27 '18 at 21:11
  • I don't have enough reputation on this one to post an answer, so I'll do mine as a comment:
    1. The second derivative written so that it can be used as a fraction:

    $\frac{d^2y}{dx^2} - \frac{dy}{dx}\frac{d^2x}{dx^2}$. See https://arxiv.org/abs/1801.09553 for more details on this approach.

    1. Partial differentials written so that they can be used as a fraction: The partial derivative of $u$ with respect to $x$ where $x$ is the only variable allowed to independently vary written as $\frac{\partial_x u}{dx}$.

    Both of these allow differentials to more freely be used as fractions.

    – johnnyb Mar 05 '18 at 14:55
  • I also don't have enough reputation on this one to post an answer, so I'll do mine as a comment: In basic linear algebra, N.Vavilov suggests $[u\leadsto v]$ for the transition matrix from basis $u$ to basis $v$. That makes much easier and more natural and more memorizable formulas like $u[u\leadsto v]=v$ and for coordinates columns $x,y$: $a=ux=vy=(u[u\leadsto v])y=u([u\leadsto v]y)=ux$. Sure $[v\leadsto u]=[u\leadsto v]^{-1}$, and one never needs a transpose matrix. – firtree Nov 20 '19 at 14:43
  • The notation $\delta_P$ is also used for a formula $P$, and if $A$ is a set then $\delta_A$ is the characteristic function of $A$. So $[n]=\delta_{n=0}=\delta_0(n)$. In comparison to $[n]$, this makes it easier to view this as a function. This is also more general than the traditional $\delta$. – François Brunault Dec 19 '21 at 09:51
  • If you want an undergraduate to understand why you call a function $x\mapsto x\sin x$ instead of just calling it $x\sin x,$ point out that $x\mapsto(x+2y)^2$ and $y\mapsto(x+2y)^2$ are two different functions. $\qquad$ – Michael Hardy Dec 22 '21 at 04:58

81 Answers81

119

Among recent introductions, I like the notation and names (introduced by Kenneth Iverson and popularized by Donald Knuth) for the ceiling function $\lceil x\rceil$ and floor function $\lfloor x\rfloor$. Compare with the heavy "approximation by excess/defect"...

Pietro Majer
  • 56,550
  • 4
  • 116
  • 260
  • 15
    According to Knuth, this notation and these names were introduced by Iverson in his book "A programming language" in 1962. – Richard Borcherds Oct 20 '10 at 20:25
  • 1
    But I have also seen some people call these "Gaussian Brackets" --- any reason why that is so? – Suvrit Dec 15 '10 at 13:56
  • @Suvrit: I have learned (in a German school) that Gauss used ordinary brackets [x] to denote the floor function, thus called Gauss bracket. However, I know of no source but guess that it is easily found in Gauss' works. – Konrad Voelkel Dec 19 '11 at 11:10
  • 4
    They are life-savers... – Felix Goldberg Jan 24 '13 at 12:15
  • 4
    To add, I also like the notation $\lfloor x\rceil$ for rounding $x$ to the nearest integer $($but mainly because I use $\left\lbrack x\right\rbrack$ to denote ${1,2,\ldots,x})$, but I have seen $| x|$, however $|$ can mean other things $($I mean, I have used the command \| to generate it, but another command is \parallel$)$ :P – Mr Pie Oct 06 '18 at 09:18
  • I have had occasion to use the notation $$ \begin{align} & \lfloor k \rfloor_\text{even} \ {} \ = {} & \text{the “even floor” of } k \ {} \ = {} & \text{the greatest even integer not exceeding } k \ {} \ = {} & 2\lfloor k/2\rfloor. \ {} \ {} \end{align} $$ – Michael Hardy Dec 15 '21 at 17:49
  • @MrPie : The commands \| and \parallel do not yield identical results. Consider $a|b$ versus $a\parallel b.$ The latter has the horizontal spacing appropriate to a binary relation symbol. To fail to object to the former is akin to being insensitive to gross spelling errors. – Michael Hardy Dec 18 '21 at 01:45
  • 1
    While people commonly complain about running out of letters (despite having Roman, Greek, Cyrillic, and Hebrew to get started with), one much more quickly runs out of delimiters (), [], {}, <>. It is fantastic that a new pair has been invented. – Allen Knutson Oct 29 '23 at 12:38
104

I like notation such as $2^X$ for the set of subsets of $X$ and ${X\choose k}$ for the set of $k$-element subsets. Also $[x^n]F(x)$ for the coefficient of $x^n$ in the power series $F(x)$, and multivariate notation like $x^\alpha$ for $x_1^{\alpha_1}\cdots x_n^{\alpha_n}$, where $x=(x_1,\dots,x_n)$ and $\alpha=(\alpha_1,\dots,\alpha_n)$.

  • 5
    I find the projection $[x^n]F(x)$ indeed very useful. – Quadrescence Oct 21 '10 at 17:23
  • 4
    And, in the spirit of the latter notation, the multivariate version $[x^\alpha]F(x)$ for polynomials in several variables. – Pietro Majer Oct 23 '10 at 19:14
  • 27
    I particularly like $X \choose k$ when X is say an algebraic variety and so $\chi {X \choose k} = {\chi(X) \choose k}$, where $\chi$ is the Euler characteristic... – Vivek Shende Oct 29 '10 at 02:29
  • I find the notation $[x^n]F(x)$ incredibly prolix, cumbersome, and difficult to understand. Far superior is inner product notation, $(x^n, F)$, which has several advantages: it is symmetric and bilinear, and is actually correct when dealing with pre-Hilbert spaces of polynomials and the natural inner product. – David Handelman Sep 04 '20 at 15:21
  • 2
    @DavidHandelman: perhaps it is just a matter of taste or context. I think of $[x^n]$ as a linear operator on the space of power series. If $A\colon V\to W$ is a linear transformation and $v\in V$, is it always preferable to write $(v,A)$ rather than $A(v)$ or $Av$? A nitpicking further point: why is the notation prolix? $[x^n]F$ uses one less character than $(x^n,F)$. – Richard Stanley Sep 05 '20 at 18:36
  • The only problem I have had with this notation is the inflexibility of some combinatorialists in not accepting the standard hierarchy of bracketing $ ; ; [ ; ( \cdots) ;]$ for readability of semi-complicated expressions. – Tom Copeland Jun 18 '21 at 00:22
  • More generally in structural Ramsey theory one writes $\binom{A}{B}$ for the set of substructures of $A$ isomorphic to $B$ – Alessandro Codenotti Dec 17 '21 at 19:12
88

Bourbaki dangerous bend symbol alt text to mark dangerous or difficult ideas.

Glorfindel
  • 2,743
Andrey Rekalo
  • 21,997
87

I like $A \hookrightarrow B$ and $A \twoheadrightarrow B$ for "$A$ injects into $B$" and "$A$ surjects onto $B$" respectively.

  • I like this but I am confused what to use for bijections. – Marcel Bischoff Dec 18 '10 at 12:59
  • 4
    A two-headed hooked right arrow. I don't know how to do it in normal LaTeX but you can easily do it using the xymatrix package, and obviously it's easy to write on a chalkboard. – Tom LaGatta Dec 18 '10 at 23:25
  • These two commands work for me for the "bijetion"-arrow described by Tom: \newcommand\longbijects{\ensuremath{\lhook\joinrel\relbar\joinrel\twoheadrightarrow}} \newcommand\bijects{\ensuremath{\lhook\joinrel\twoheadrightarrow}} – Marcel Bischoff Jan 21 '11 at 21:50
  • 8
    @Marcel - $\stackrel{\sim}{\to}$, a combination of the map and the isomorphism sign. – David Roberts Nov 24 '11 at 23:12
  • This is also useful to denote epi/mono, and in general factorisation systems, e.g cofibrations/fibrations in homotopy theory. – Simon Pepin Lehalleur Dec 23 '13 at 17:09
  • 7
    Add to this the notation $\looparrowright$ for immersions. – Manuel Bärenz Mar 25 '14 at 16:27
  • What about \mathbin{\rightarrowtail \hspace{-8pt} \twoheadrightarrow}, i.e. $\mathbin{\rightarrowtail \hspace{-8pt} \twoheadrightarrow}$? :D – Mr Pie Oct 06 '18 at 09:06
  • See https://mathoverflow.net/questions/344464/notation-for-the-set-of-all-injections-from-a-into-b for a discussion regarding notation for injections. – user76284 Nov 08 '19 at 01:32
73

$D_j f$ to denote the partial derivative of a function between Euclidean spaces, w.r.t. the $j$'th coordinate. For some reason Jacobi's notation $\frac{\partial f}{\partial x_j}$ has become more popular. Jacobi's notation tends to cause much ambiguity and confusion, a point which is emphasized in the book "Multidimensional Real Analysis" by Duistermaat & Kolk. For instance (this example is taken from their book), let $e_1,e_2$ be the standard basis for $\mathbb{R}^2$ and define a new basis by $e'_1 = e_1 + e_2, e'_2 = e_2$. The passage from one basis to another is as follows: If $x_1 e_1 + x_2 e_2 = y_1 e'_1 + y_2 e'_2$ then $y_1 = x_1, y_2 = x_2 -x_1$. Now the meaning of $\frac{\partial y_2}{\partial y_1}$ is ambiguous: If one interprets $y_1$ and $y_2$ as independent coordinate functions, then $\frac{\partial y_2}{\partial y_1} = 0$. On the other hand, $\frac{\partial y_2}{\partial y_1} = \frac{\partial (x_2 -x_1)}{\partial x_1} = -1$, right? This was the source of much confusion for me when I was taught multivariate calculus and the notation $D_j f$ would have eliminated this confusion entirely.

Mark
  • 4,804
  • 6
    Another reason to prefer $D_j$ or $\nabla_j$ over $\partial/\partial x_j$ is that when you're expressing tensors using the Einstein "index gymnastics notation," the derivative $\nabla_j$ has a lower index, as it should, whereas the same operator in Leibniz notation is $\partial/\partial x^j$, which looks like it transforms as an upper-index tensor. –  Oct 15 '12 at 20:39
  • 7
    Regarding differential geometry: If $f:M\to\mathbb R$ is a smooth function on a manifold and $x:M\to\mathbb R^n$ is a chart, I prefer $\left(\frac{\partial f}{\partial x}\right)_j$ or $\left(\frac\partial{\partial x}\right)_j f$ (or even $\partial_j f$ if the choice of the particular chart is clear or irrelevant). Because the notation $\frac{\partial f}{\partial x^j}$ suggests that $\frac{\partial f}{\partial g}$ could be defined using only $g$, and in fact you need to know that you are restricting to the curve along which the other coordinates $x^i$ are constant. – Marcos Cossarini Jan 24 '13 at 21:03
  • 1
    @Ben, the index in the coordinate expression $\frac{\partial f}{\partial x^j}$ for the 1-form $df$ is clearly in the low position! In fact, this is the main reason that I see for having to put the indexes of the coordinates in the high position as we do, instead of doing everything in the opposite way, which would be better in some way: we could write $f=x_1^2+x_3$ instead of $f=(x^1)^2+x^3$. – Marcos Cossarini Jan 24 '13 at 21:14
  • 1
    Jacobi was aware of this problem when he introduced the $\partial$ notation. Unfortunately his choice of notation for avoiding this ambiguity might have led to more confusion. – Michael Bächtold Nov 26 '17 at 15:41
  • In PDE, one often uses $\partial_j$, and $\partial^\alpha=\partial_1^{\alpha_1}\cdots \partial_n^{\alpha_n}$ for a multi-index $\alpha$. (They reserve $D_j$ for $-i\partial_j$ which is convenient for Fourier transform.) In some cases I seem to like writing $D_\xi$ for $\xi\in V$ (without choosing a basis), and it acts on $f(x)$ where $x$ somehow is an element of $V^*$. – liuyao Jan 28 '18 at 15:44
  • 7
    How would $D_j$ eliminate any confusion? You seem to assert that $D_1 y_2$ would be somehow unambiguous. But it is just as ambiguous as $\partial y_2 / \partial y_1$. If $D_1$ means differentiation with respect to $y_1$, holding $y_2$ constant, then $D_1 y_2 = 0$. If $D_1$ means differentiation with respect to $x_1$, holding $x_2$ constant, then $D_1 y_2 = -1$. More generally, there is no symbol or notation involving only one single coordinate function --- not $D_1$, not $\frac{\partial}{\partial y_1}$, nothing --- that can possibly convey full information about a coordinate chart. – Zach Teitler Feb 09 '21 at 10:31
60

String diagram-notation makes for example adjoint functors, monads, tensor categories,... much clearer.

Jan Weidner
  • 12,846
52

I recommend the notation $$ a \equiv_n b $$ in place of $a \equiv b \pmod{n}$. It's much less verbose. The meaning is clear. And the $n$ is where it really belongs, next to the $\equiv$ it is describing.

We're stuck with $a \equiv b \pmod{n}$ as the standard notation (for now!), because that's what Gauss came up with. I've got nothing against Gauss for not using a subscript $\equiv_n$. It seems to me that Disquisitiones Arithmeticae doesn't have subscripts anywhere. Subscripts must have been outside the graphic design space or something. So I don't blame him for resorting to $a \equiv b \pmod{n}$. Gauss did a great thing by popularizing $n \mid a-b$ as an equivalence relation of $a$ and $b$. But if we were to invent the notation today, I dare say $a \equiv_n b$ would be the modern choice. (See this post on Math.SE, where Alexander Gruber suggests the same thing in a comment.)

Of course, if there's no ambiguity, you can still just write plain $a \equiv b$. I'm talking about the cases where you need to or want to indicate the modulus $n$. It may not seem like much, but "(mod n)" is surprisingly verbose to physically write. If you're hand-writing pages or blackboards full of congruences, chances are you've already succumbed to abbreviating "(mod n)" somehow. I've seen lots of different shorthand, based on dropping the parenthesis, or some or all of the text "mod" (which is itself an abbreviation of "modulo", or if you really go by Gauss's Latin, "secundum modulum" - be thankful you're not writing that): \begin{align} a &\equiv b \quad \mathrm{mod}\ n \\ a &\equiv b \quad (\mathrm{m}\ n) \\ a &\equiv b \quad (n) \\ \end{align}

I've seen all of these used before, as well as $a \equiv_n b$. Certainly $a \equiv_n b$ is the cleanest notation.

As a free bonus, you get a cool-looking Fermat's theorem: $$ a^p\!\equiv_p\!a. $$

  • this notation has the advantage that it chains nicely: although we all know what it means, there is (I think) no logical sense in which $a \equiv b \equiv c \pmod n$ is the result of concatenating $a \equiv b \pmod n$ and $b \equiv c \pmod n$; whereas $a \equiv_n b \equiv_n c$ clearly is. One drawback: It may lead to useless chains like $1 \equiv_2 5 \equiv_3 2$. – LSpice May 18 '15 at 19:31
  • I still like this though... :) – Mr Pie Jan 27 '18 at 22:06
  • 4
    That is indeed a cool looking Fermat's theorem. – Jim Conant Jan 28 '18 at 04:42
  • Similar notation I've used is to put the (n) over the congruence symbol. – JoshuaZ May 21 '20 at 11:16
49

I like $f\colon\thinspace M\looparrowright N$ to denote an immersion of smooth manifolds.

Mark Grant
  • 35,004
  • 2
    I use exactly this arrow to denote an operation of a group M on a space N. – Jan Weidner Oct 20 '10 at 21:39
  • 11
    I prefer the notation $\alpha: G \curvearrowright X$ for an action $\alpha$ of $G$ on $X$ (see my answer). – Qfwfq Oct 20 '10 at 22:57
  • 12
    ... And I also like the "self intersecting arrow" to denote immersions that are possibly not embeddings. – Qfwfq Oct 20 '10 at 22:58
49

The notation $M^{\oplus n}$ and $M^{\otimes n} $ to denote, respectively, nth direct sum and nth tensor product.

The notation $X \mathbin{\pi} Y$ to denote product of objects in an abstract category, and the analogous with the "upside down $\pi$" for coproduct. I once have seen this being used by B.Keller in a talk. It'd be nice to have a smaller $\Pi$ (resp. $\amalg$) symbol instead.

Qfwfq
  • 22,715
  • 7
    $\sqcap$ resp. $\sqcup$? – Max Nov 08 '10 at 18:39
  • 1
    You can get your smaller Π sign with a bit of a hack. This isn't exactly robust, though, since the size is constant relative to the surrounding size (but can be fixed if one looks up the right command): $X \mathbin{\scriptsize{\Pi}} Y$ and $X \mathbin{\scriptsize{\amalg}} Y$ – Quadrescence Nov 24 '11 at 21:08
  • 22
    I prefer to use the same notation as in arithmetic: $\times$ for binary product, $\prod$ for product of an arbitrary family, $+$ for binary coproduct, $\sum$ of coproduct of an arbitrary family. A small pi-like symbol for binary product seems to me to be a step in the wrong direction. – Tom Leinster Dec 10 '12 at 00:28
  • 3
    Yeah I agree; I much prefer $\times$ and $+$ for categorical product and coproduct. – ಠ_ಠ Jul 15 '17 at 02:53
  • I also use $×$ and $\prod$ and $+$ and $\sum$, but whenever a category has a sufficiently nice functor to $\mathrm{Set}$ preserving / reflecting / creating colimits, I switch to $\coprod$. For example I don’t use $+$ in $\mathrm{Top}$ or $\mathrm{Meas}$. (And I’d probably also use $\coprod$ for toposes …) – k.stm Jul 15 '17 at 04:26
  • Actually, though the small ⊓ and ⊔ are kind of cool, I think I too prefer the notation suggested by Tom Leinster (except maybe the $+$) – Qfwfq Jul 15 '17 at 10:04
49

I am fond of subscripting asymptotic notation with the parameters that the implied constant is allowed to depend on (and on the asymptotic parameter, if needed). e.g.

  • $X = O_k(Y)$ (or $X \ll_k Y$, or $Y \gg_k X$) means that $|X| \leq C_k Y$ for some $C_k$ depending only on $k$.
  • $X = o_{n \to \infty; k}(Y)$ means that $|X| \leq c_k(n) Y$ for some function $c_k(n)$ of both $k$ and $n$, which goes to zero as $n \to \infty$ for fixed $k$.
  • (Rarer) $X = O_{n \to \infty; k}(Y)$ means that $|X| \leq C_k Y$ whenever $n \geq N_k$, for some $C_k$ and $N_k$ depending only on $k$.

Of course, if there is a parameter that influences all the constants (e.g. the ambient dimension) then it is better to explicitly state at the beginning that all constants will depend on this parameter so that one does not have to put in the explicit subscripts in all the time.

It can be instructive to rewrite some basic notions in analysis in this sort of notation, just to get a slightly different perspective. For instance, if $f: {\bf R} \to {\bf R}$ is a function, then:

  • $f$ is continuous iff one has $f(y) = f(x) + o_{y \to x; f,x}(1)$ for all $x,y \in {\bf R}$
  • $f$ is uniformly continuous iff one has $f(y) = f(x) + o_{|y-x| \to 0; f}(1)$ for all $x,y \in {\bf R}$
  • A sequence $F = (f_n)_{n \in {\bf N}}$ of functions is equicontinuous if one has $f_n(y) = f_n(x) + o_{y \to x; F,x}(1)$ for all $x,y \in {\bf R}$ and $n \in {\bf N}$ (note that the implied constant depends on the family $F$, but not on the specific function $f_n$ or on the index $n$)
  • A sequence $F = (f_n)_{n \in {\bf N}}$ of functions is uniformly equicontinuous if one has $f_n(y) = f_n(x) + o_{|y-x| \to 0; F}(1)$ for all $x,y \in {\bf R}$ and $n \in {\bf N}$
  • $f$ is differentiable iff one has $f(y) = f(x) + (y-x) f'(x) + o_{y \to x; f,x}(|y-x|)$ for all $x,y \in {\bf R}$;
  • (similarly for uniformly differentiable, equidifferentiable, etc.)

(These formulations are close to the nonstandard analysis formulations of these concepts, which uses similar but not quite identical asymptotic notation, but that is another story.)

Terry Tao
  • 108,865
  • 31
  • 432
  • 517
  • 2
    The subscripts seem a little bulky. Couldn't you just write, e.g. $f(y) = f(x) + o_{y \to x; f,x}(1)$? I guess it's not really changing much. – Ryan Reich Oct 21 '10 at 17:18
  • Fair enough. I did it the other way initially to compare the uniform and non-uniform notions, but I've edited the non-uniform notions to reflect the more intuitive subscripting you propose. – Terry Tao Oct 21 '10 at 17:21
  • 38
    Maybe it's time for you to go to really big-O notation: $X=\underset{n\to\infty}{\overset{k}{\LARGE\mathcal O}} Y$ for $O(\cdot)$ and then $f_n(y)=f_n(x)+\underset{|y-x|\to 0}{\overset{F}{\LARGE\mathrm O}} 1$. for $o(\cdot)$. :D – Quadrescence Oct 21 '10 at 17:34
  • 1
    The "really" big-O notation is a little bit confusing; since normally we write summation like this with $Y$ depends on the parameter $k$, but here we have the constant $C_k$ depends on it instead. – Hsien-Chih Chang 張顯之 Oct 22 '10 at 01:07
  • 1
    Chang: definite sums can depend on their upper index. – Quadrescence Oct 22 '10 at 06:08
  • 5
    I think O-o notation is one of the worse. It does not worth to improve --- better to start from scratch. – Anton Petrunin Jan 30 '13 at 19:18
  • Why does the sense of the big-$O$ notation switch between $X = O_k(Y)$ ($\lvert X\rvert$ is majorised by a constant multiple of $Y$) and $X = O_{n \to \infty; k}(Y)$ ($\lvert X\rvert$ is minorised by a constant multiple of $Y$)? – LSpice Dec 17 '21 at 05:17
  • 1
    Oops, somehow that typo got missed for a decade. Fixed now. – Terry Tao Dec 17 '21 at 16:20
47

$a \vee b$ and $a \wedge b$ to denote the maximum and minimum of the numbers $a$ and $b$. (This seems to be well-known only among probabilists.)

Michael Lugo
  • 13,858
  • 18
    This notation is also used in a lattice or Boolean algebra for least-upper-bound and greatest-lower-bound, which agrees with your meaning in a total order, such as the reals. – Joel David Hamkins Oct 20 '10 at 21:01
  • Andy Browder uses this notation for real functions in the textbook I'm currently teaching from. – Tom Goodwillie Oct 20 '10 at 22:29
  • 6
    Sometimes I have seen $a \cup b$ and $a \cap b$ for the greatest common divisor and least common multiple of positive integers $a, b$. Much better than $(a, b)$. – Arend Bayer Oct 21 '10 at 03:59
  • 25
    AByer, it's by analogy with $\cup$ and $\cap$ that I remember that $\vee$ is maximum and $\wedge$ is minimum. (Otherwise I tend to think that since $\vee$ points down, it must be the minimum.) – Michael Lugo Oct 21 '10 at 04:20
  • 38
    Actually, I find this notation incredibly frustrating for the reason Michael mentions in his comment; $a\vee b$ is "clearly" a cartoon of a point lying below both $a$ and $b$. – JBL Oct 22 '10 at 13:19
  • 6
    $[a \vee b] = [a] \vee [b]$ – Arend Bayer Oct 22 '10 at 20:03
  • 1
    @JBL: Maybe we should think temporally: lesser elements are earlier ("in the beginning there was the empty set"), and greater elements come later; then it makes sense to imagine a lattice with the least element at the beginning (top) of the page, and the greatest element at the end (bottom).

    The alternative would be to decide that we have been using the wrong partial order on subsets and swap the notation for maximum and minimum (intersections increase information, unions reduce it).

    – David MJC Nov 14 '10 at 00:14
  • ...so what is one supposed to do if one needs to say something involving AND's and OR's? I like to reserve $\wedge$ and $\vee$ for logical statements. – Ketil Tveiten Nov 16 '10 at 09:31
  • @Ketil Tveiten, what about & and | for logical connectives? – LSpice Jun 14 '12 at 19:20
  • 2
    @JBL and @David MJC. What does the set of all upper bounds of ${a,b}$ look like in a lattice? A cone with vertex pointing downwards $\vee$. The vertex is the supremum (least upper bound). What does the set of all lower bounds of ${a,b}$ look like in a lattice? A cone with vertex pointing upwards $\wedge$. The vertex is the infimum (greatest lower bound). – Rabee Tourky Jan 24 '13 at 23:24
  • @L Spice: also $||$ could be used for "OR" in logical formulas (as in the program Mathematica, if I'm not mistaken) – Qfwfq Dec 25 '13 at 00:23
  • @Qfwfq, that's a better idea—I hadn't considered how poor my suggestion would be at expressing disjunctions of statements involving divisions. – LSpice May 18 '15 at 19:10
  • APL uses $A\mathbin{\lceil}B$ and $A\mathbin{\lfloor}B$ for thesse which I believe are much more intuitive. – FUZxxl Dec 02 '15 at 21:42
  • 3
    @ArendBayer: re "much better than $(a,b)$". The notation "$(a,b)$" has a saving grace though: it is not only a notation definitionally equal to $\mathrm{gcd}(a,b)$ but it is in tune with standard commutative algebra: if we interpret $(,)$ in the usual way as "indeal generated by", then $(a,b) = (\mathrm{gcd}(a,b) ) {\mathbb{Z}}$. For example, $(4,6) = (2) = (\mathrm{gcd}(4,6)){\mathbb{Z}}$. Works more generally for principal ideal domains such as the Gaussian integers. – Peter Heinig Jul 15 '17 at 07:40
  • I write that $a\land b$ is read as "$a$ and $b$" (because a command for $\land$ is \land though it can be \wedge); and $a\lor b$ is read as "$a$ or $b$" (because a command for $\lor$ is \lor though it can be \vee). Then $a\barwedge b$ is read as "greatest common divisor of $a$ and $b$" and $a\veebar b$ is read as "lowest common multiple of $a$ and $b$". – Mr Pie Oct 06 '18 at 09:23
  • For greatest common divisor and least common multiple, I use $\curlywedge$ and $\curlyvee$, respectively, and I use $\preceq$ for the divides relation usualy denoted by | because I prefer an assymetric symbol for an order relation. – Pedro G. Mattos Jan 17 '21 at 14:48
  • @KetilTveiten You could just say "cap" and "cup", with the implied specification that you mean the "triangular cap" and "triangular cup". – Pedro G. Mattos Jan 17 '21 at 15:09
44

Instead of $[X]$ one often sees $\mathbf 1_{X}$ (especially in probability work?). This is neat because it literally is 1 on $X$. Also it has the advantage over $[X]$ that you can write things like $(2+\mathbf 1_{X})^2$ for the function that is $9$ when $X$ occurs and $4$ otherwise; $(2+[X])^2$ would be less appealing here. On the other hand, if there is a lot of notation replacing "$X$" this is not so good: $$\mathbf 1_{n_k\in \{n: n\text{ prime}\}}.$$

43

I once came across the notation $\underline{n}$ for the set $\lbrace 1,2,\dots,n\rbrace$. It came in very handy to write $i \in \underline{n}$ instead of $1\leq i \leq n$ or $i \in \lbrace 1,2,\dots,n\rbrace$.

  • 71
    Sometimes people write ${}[n]$ for this. I agree, a shorthand of this kind is quite useful. – Andrés E. Caicedo Oct 20 '10 at 20:51
  • I've seen this often as $[n]$. – Greg Muller Oct 20 '10 at 20:51
  • 30
    In set theory, every ordinal number is equal to the set of smaller ordinal numbers (a definition due to von Neumann), and this makes for infinitely many conveniences similar to the ones you mention. Thus, n={0,1,...,n-1} and in general $\alpha={\beta | \beta\lt\alpha}$. – Joel David Hamkins Oct 20 '10 at 21:04
  • 2
    In Ramsey theory, sometimes it actually matters to use ${1,\dots,n}$ rather than ${0,\dots,n-1}$, so the ${}[n]$ notation is useful (even though I would much like to just use the set theoretic $n$) but I have found ${\bf n}$ may be better sometimes. For example, one also uses interval notation, so ${}[a,b]={i\in{\mathbb N}\mid a\le i\le b}$, and using both may look confusing. Plus, the beloved $[X]^k$ (the collection of $k$-sized subsets of $X$) now gets really confusing. I've seen Di Prisco use $X^{[k]}$, probably to avoid this issue. – Andrés E. Caicedo Oct 20 '10 at 21:32
  • Thanks everyone for the comments. I guess the reason why the notation $[n]$ did not arise is that this was in the context of Lie-like algebras where the square brackets were used for the multiplication. – José Figueroa-O'Farrill Oct 20 '10 at 22:11
  • I like both notations (underlined $n$ and $[n]$). – Qfwfq Oct 20 '10 at 23:46
  • 3
    Note also that the logicians would denote the set {$0, \cdots , n-1$} simply with the symbol $n$ (thought of as a finite ordinal). – Qfwfq Oct 20 '10 at 23:48
  • 4
    In numerical linear algebra MATLAB notation is sometimes (ab)used, e.g. 1:n. – J. M. isn't a mathematician Oct 21 '10 at 02:42
  • 1
    I like $i = \overline{1, n}$ – Aleksei Averchenko Oct 21 '10 at 03:45
  • 5
    This can be confusing though, since the topologist's simplex $[n]$ is the ordered set ${0<...<n}$. The rationale is that $n$ counts the number of arrows. – Harry Gindi Oct 21 '10 at 04:52
  • 2
    Also, if I'm not mistaken, enumerative algebraic geometers use $[n]$ to denote {$1, \cdots , n$}. – Qfwfq Oct 21 '10 at 11:35
  • 4
    @Andres Caicedo, see also Richard Stanley's answer: $\binom{X}{k}$ is a nice notation for the $k$-subsets of a set $X$, mirroring the binomial coefficient $\binom{x}{k}$. – JBL Oct 22 '10 at 13:22
  • 3
    I like too the notation/definition n:={0,1,..,n-1} but note that it becomes problematic outside the ordinal category. If e.g. $f:n\to m$ is any map between $n$ and $m$, how to distinguish the value f(k) from the image of the subset k:={0,1,..,k-1}? – Pietro Majer Sep 06 '11 at 22:27
  • 3
    @Pietro: that's not a problem of the "ordinal" notation, it's a problem of the $f(A)$ notation for denoting images os subsets $A \subseteq X$ of the domain of an $f:X\to Y$. Logicians solve this problem using square brackets as in $f[A]\subseteq Y$. Personally, I would prefer the notation $f_(A)$ for images of subsets and $f^{}(B)$ for preimages. – Qfwfq Nov 25 '11 at 00:17
  • 2
    @J.M. That "Matlab notation" actually first appeared in ALGOL and FORTRAN in the 60s. – Federico Poloni Dec 13 '14 at 18:37
  • I've often seen the notation $\mathbb{E}_n$ for this. – 5th decile Jan 27 '18 at 23:36
  • $\left\lbrack n\right\rbrack$ might be more appropriate, as it relates to congruence classes (see here). But I like $\underline n$ better because I might use $\left\lbrack n\right\rbrack$ to denote substitutions; e.g. $x+y=\left\lbrack 3\right\rbrack + \left\lbrack 5\right\rbrack = 8$. Say I had $ax+y$ and used circular brackets instead, I get $a(3)+(5)$ and now $a$ looks like a function, not a value. – Mr Pie Oct 06 '18 at 09:52
  • 1
    @JoelDavidHamkins The ordinal definition is a great convenience for notation because it means you can treat $A^n$ as literally $n \rightarrow A$. For example, the application of an elementwise function $f : K \rightarrow K$ to a vector $x \in K^n$ is just $f \circ x$. These and other notational conveniences have brought me around to the belief that natural numbers should indeed be treated as sets. – user76284 Oct 27 '19 at 16:07
43
  1. For rising and falling factorials: $x^{\overline{n}}$ and $x^{\underline{n}}$ à la Knuth. Much better than the traditional way to write the Pochhammer symbol: $(x)_n := x^{\overline{n}}$. In a book I'm writing, I use the notation $x^{\uparrow n}$ and $x^{\downarrow n}$, which I find much less clumsy (consider $(2x+1)^{\overline{6k-2}}$ vs $(2x+1)^{\uparrow6k-2}$). Anyway, the utility in either of these notations is seen in the umbral calculus; it makes the connection to "ordinary" calculus much more apparent, such as with $$\Delta x^{\uparrow n} = n x^{\uparrow n-1}\qquad\text{compared to}\qquad D x^n = nx^{n-1}.$$

  2. The simple idea of omitting parentheses for function application: $f\,x$ as opposed to $f(x)$. I think this often makes some mathematics look cleaner, especially when the argument isn't especially complex. It also allows for some nice (= convenient) abuse of notation, such as in $$\left[ (-1)^{p - m - n} z \prod_{j = 1}^p \left( z D_z - a_j + 1 \right) - \prod_{j = 1}^q \left( z D_z - b_j \right) \right] G(z) = 0,$$ where $D_z:=d/dz$. Note this equation isn't a product (entirely); upon expansion, we'd have $D_z G(z)$ terms.

  3. Do fractions count? Imagine having to write $$\sqrt{(x^2 + 2x + 1)\div (5x^3 - 3x^2 + 2x - 7)}$$ instead of $$\sqrt{\frac{x^2 + 2x + 1}{5x^3 - 3x^2 + 2x - 7}}.$$

  4. Big-O notation. Though often abused, this is a much less clumsy way to express boundedness and asymptotics and errors and even lets you begin to do some algebra with them (provided you're careful). I don't think doing such is as obvious when you write it all out manually.

  5. $\square(x)$ for the square wave, $\triangle(x)$ for the triangle wave, $Ш(x)$ for the Dirac comb (seriously, see Appel's "Mathematics for Physics and Physicists"). These are more cute than explicitly useful.

  6. Notation used with musical isomorphisms as a way to do raising and lowering of indices. We have $X^\sharp$ which raises the index (in the context of Einstein summation) and $X^\flat$ which lowers the index. Here, $\flat$ and $\sharp$ are isomorphisms between tangent $TM$ and cotangent bundles $T^*M$: $\flat:TM\to T^*M$ and $\sharp:T^*M\to TM$.

  7. Using $\operatorname{cis}\theta = \cos\theta + \mathrm{i}\sin\theta$ (cosine i sine), which is nice for obvious reasons (yes, $\omega = e^{\mathrm{i}\theta}$ is nice too) and $\operatorname{cas}\theta = \cos\theta + \sin\theta$ (cosine and sine), which is used in e.g., the Hartley transform.

  8. Notations for hypergeometric functions $${}_pF_q \!\left( \left. \begin{matrix} a_1, \dots, a_p \\\\ b_1, \dots, b_q \end{matrix} \; \right| \, z \right) = {}_pF_q(\mathbf{a},\mathbf{b};z)$$ and Meijer-$G$ functions: $$G_{p,q}^{m,n} \!\left( \left. \begin{matrix} a_1, \dots, a_p \\\\ b_1, \dots, b_q \end{matrix} \; \right| \, z \right)=G_{p,q}^{m,n} \!\left( \left. \begin{matrix} \mathbf{a} \\\\ \mathbf{b} \end{matrix} \; \right| \, z \right)$$

  9. Notation for general continued fractions: $$\underset{j=1}{\overset{\infty}{\LARGE\mathrm K}}\frac{a_j}{b_j}=\cfrac{a_1}{b_1+\cfrac{a_2}{b_2+\cfrac{a_3}{b_3+\ddots}}}.$$ The $\mathrm{K}$ comes from German's "Kettenbruch", which is "continued fraction."

I think that's good for now. There are probably lots more. :)

To end, I'll say one notation I do not like: the use of fraktur. Most of the time it just looks ugly and no one can actually write fraktur letters.

  • I use overbars for conjugating complex numbers so I'm still discomfited by Knuth's suggestion on Pochhammer. I have to agree that there should be a better notation that calls to mind the analogy between the rising/falling factorials and ordinary powers.
  • – J. M. isn't a mathematician Oct 21 '10 at 04:48
  • I think it was Bracewell who first used these.
  • – J. M. isn't a mathematician Oct 21 '10 at 04:49
  • I'm starting to agree with some authorities that the $p$ and $q$ subscripts for hypergeometric functions are superfluous; just setting of the the numerator and denominator parameters in a two-row array suffices. On the other hand, if you're constrained to write on one line, then it is a great help to have those subscripts, and large enough delimiters to separate the numerator parameters, the denominator parameters, and the argument.
  • – J. M. isn't a mathematician Oct 21 '10 at 04:52