# Correct typography for using Leibniz Notation

What is the correct way of writing derivatives in notation form? Should the 'd' be upright or italic, that is $\mathrm d$ or $d\,$? As an example, should we write: $$\frac {\mathrm dy}{\mathrm dx}\qquad\text{or}\qquad \frac {dy}{dx} \, \text ?$$

I feel the first method (upright 'd') is correct, since italic letters are generally used for variables, but most people (and Wikipedia) use the italic 'd'. Which is actually more correct?

Also, how do we use this notation on notebooks (writing by hand), while avoiding potential confusion in a variable $d$ and the differential symbol? Since mostly we write variables upright on notebooks, so $\displaystyle \mathrm{\frac{dd}{dt}}$ in a notebook would be potentially confusing. (Of course, we could avoid a variable 'd', but still, what would be another way out of this?)

• I can't imagine a situation where it would make a difference. It should be clear from context regardless of if the letters are italicized or not. Mar 27, 2016 at 15:30
• The esdiff package does it by default (including for partial derivatives) and has a simple syntax, useful for higher order derivatives. Often people use italic letters by pure laziness. Mar 27, 2016 at 15:30
• The vast majority of mathematics journals and books use italic $d$, I think. But there exists an international standard for notation in technical and engineering fields that specifies the upright $\mathrm{d}$ for this purpose, and similarly for $\mathrm{i}=\sqrt{-1}$ and $\mathrm{e}=2.71828…$ (sorry, I don't have the reference on hand). Mar 27, 2016 at 15:33
• Not only for technical and engineering fields. It's been used in French mathematics for many years. Mar 27, 2016 at 15:47
• Sooner or later you'll have to pay for using the upright ${\rm d}$, because it's ISO-certified. Mar 27, 2016 at 15:50

It is most common to use italic $d$, probably at least in part because that's the default LaTeX does. I have adopted a habit of handwriting with cursive to help distinguish symbols.
I write mostly in print, but I write $dx$ cursive and conjoined, which emphasizes that the two letters form one mathematical symbol. I write the differential operator as a cursive $d$ not conjoined with the following text.