Notation of the differential operator [duplicate]

I see the differential operator both with upright and italic d in different books/articles. So I'm curious about $$ \int x^2 \, dx \quad \text{vs.} \quad \int x^2\, \mathrm{d}x,$$ and $$\frac{d}{dx}f(x) \quad \text{vs.} \quad \frac{\mathrm{d}}{\mathrm{d}x}f(x).$$

Is there a convention which of these notations should be used?


This is more of an extended comment than an answer, but with regards to typesetting in $\LaTeX$, let me point out that typing \mathrm{d} should not take longer than typing d, as you shouldn't be doing either throughout your paper!

The semantically correct thing to do is to define a macro representing your desired differential operator, for example, \newcommand{\dv}[1]{\frac{\mathrm{d}}{\mathrm{d} #1}}. Then, whenever you need to typeset $\frac{\mathrm{d}}{\mathrm{d}x}$ or $\frac{\mathrm{d}}{\mathrm{d}t}$, you simply use \dv{x} or \dv{t}, which is even easier than the non-standards-conforming \frac{d}{dx}.

This has the added benefit that, should you find yourself submitting to a publisher whose house style requires italic $d$'s, you need only change the definition of your macro instead of modifying every differential operator by hand.


Many excellent journals and books use $d$ in the italics form, such as the Journal of the American Mathematical Society (e.g., recent article by Terence Tao), London Mathematical Society Proceedings (e.g., equations 74 and 75 of this recent paper) and Spivak's Calculus.

Given that reference quality publications use $d$--and that it is faster and cleaner to typeset it that way--the italics form is more than respectable.


Quick answer: there is a standard to follow.

Longer answer: while physicists write differential operators in upright fonts (because they follow the standards), mathematicians tend to typeset differential operators as variables (because we are lazy). I am joking, but it should be clear that $dx$ is not $d \cdot x$, and that $d$ is essentially an operator: therefore it is always preferable to write $\mathrm{d}x$ instead. Many journals change $dx$ to $\mathrm{d}x$ after accepting a manuscript for publications.


There is no difference between them. It merely comes as a result of a choice in LaTeX formatting; specifically, some people write "\text{d}" (or some equivalent) for the upright formatting, but many other people don't do this for the sake of speed, and instead just write "d".


In Germany, there is the DIN 1338 standard, according to which the differntial operator d, as, e.g., e for the Euler number, should be typeset as an upright letter.

According to Wikipedia, these letters are typeset in italic if AMS conventions are used.