# \dd

Typesets a differential symbol in derivatives, integrals, and measure notation, optionally with an order in brackets and with an attached braced or parenthesized quantity.

https://texform.dev/latex/commands/dd

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Physics: derivatives](https://texform.dev/latex/topics/physics-derivatives) |
| Packages | physics |
| Allowed mode | math |
| Tags |  |
| Commonality | low |
| Kind | prefix |

## Syntax

### physics

Argument specification: `o d<(,)><{,}>`

Typesets a differential symbol in derivatives, integrals, and measure notation, optionally with an order in brackets and with an attached braced or parenthesized quantity.

## Examples

```latex
\dd
```

[Open in Playground](https://play.texform.dev/?input=%5Cdd)

```latex
\dd[n]{x}
```

[Open in Playground](https://play.texform.dev/?input=%5Cdd%5Bn%5D%7Bx%7D)

```latex
\dd(x)
```

[Open in Playground](https://play.texform.dev/?input=%5Cdd%28x%29)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| physics | full | none | full |

## Usage frequency

0% of formulas in the measured corpus contain this entry, rank 262 of 263 entries with frequency data.

## In TeXForm

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

## Equivalent forms

```latex
\differential
```

exact. Mapped to the same Differential parse method with the same operator parameter.

```latex
\mathrm{d}^{#1} #2
```

approximate. Approximates the physics differential operator, ignoring spacing and operator wrapping

## See also

- [\\differential](https://texform.dev/latex/commands/differential)
- [\\var](https://texform.dev/latex/commands/var)
- [\\variation](https://texform.dev/latex/commands/variation)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \dd | Positive: baseline | Pass | Fail | Pass |
| \dd[a] | Positive: vary:o[0] | Pass | Fail | Pass |
| \dd (a) | Positive: vary:d[1] | Pass | Fail | Pass |
| \dd[a](b) | Positive: maximal | Pass | Fail | Pass |
