# \pderivative

Alternative abbreviated physics-package command for partial derivatives and mixed partials.

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

## 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: `s o m g g`

Alternative abbreviated physics-package command for partial derivatives and mixed partials.

## Examples

```latex
\pderivative{f}
```

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

```latex
\pderivative{f}{x}
```

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

```latex
\pderivative{f}{x}{y}
```

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

```latex
\pderivative[3]{f}
```

[Open in Playground](https://play.texform.dev/?input=%5Cpderivative%5B3%5D%7Bf%7D)

```latex
\pderivative*{f}{x}
```

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

## Renderer support

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

## In TeXForm

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

### Expands to (physics)

```latex
\pderivative{#1}{#2}
```

→

```latex
\frac{\partial #1}{\partial #2}
```

Internal reparse. Star uses \flatfrac. Single argument expands to \frac{\partial}{\partial #1}.

### [physics/partial-derivative-to-pdv](https://texform.dev/rules/physics/partial-derivative-to-pdv)

Collapse long partial derivative names to the pdv command.

Level: authoring. Fidelity: render.

```latex
\partialderivative{#1}{#2}
```

→

```latex
\pdv{#1}{#2}
```

```latex
J=\pderivative{f}{x}+\pderivative{g}{y}
```

→

```latex
J=\pdv{f}{x}+\pdv{g}{y}
```

## Equivalent forms

```latex
\partialderivative
```

exact. PhysicsMappings registers all three names to the same Derivative handler with argMax=3 and op='\\partial'.

```latex
\pdv
```

exact. PhysicsMappings registers all three names to the same Derivative handler with argMax=3 and op='\\partial'.

## See also

- [\\derivative](https://texform.dev/latex/commands/derivative)
- [\\dv](https://texform.dev/latex/commands/dv)
- [\\fderivative](https://texform.dev/latex/commands/fderivative)
- [\\fdv](https://texform.dev/latex/commands/fdv)
- [\\functionalderivative](https://texform.dev/latex/commands/functionalderivative)
- [\\partialderivative](https://texform.dev/latex/commands/partialderivative)
- [\\pdv](https://texform.dev/latex/commands/pdv)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \pderivative{a} | Positive: baseline | Pass | Fail | Pass |
| \pderivative*{a} | Positive: vary:s[0] | Pass | Fail | Pass |
| \pderivative[a]{b} | Positive: vary:o[1] | Pass | Fail | Pass |
| \pderivative{a}{b} | Positive: vary:g[3] | Pass | Fail | Pass |
| \pderivative*[a]{b}{c}{d} | Positive: maximal | Pass | Fail | Pass |
| \pderivative a | Positive: bare[2] | Pass | Fail | Pass |
