# \fdv

Shorthand physics-package command for functional or variational derivatives, especially in field-theory notation.

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

## 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`

Shorthand physics-package command for functional or variational derivatives, especially in field-theory notation.

## Examples

```latex
\fdv{F}
```

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

```latex
\fdv{F}{x}
```

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

```latex
\fdv[2]{F}
```

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

```latex
\fdv*{F}{x}
```

[Open in Playground](https://play.texform.dev/?input=%5Cfdv*%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
\fdv{#1}{#2}
```

→

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

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

### [physics/fdv-to-frac-delta](https://texform.dev/rules/physics/fdv-to-frac-delta)

Expand fdv forms to explicit delta-based derivative fractions.

Level: faithful. Fidelity: render.

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

→

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

```latex
\fdv{S[\phi]}{\phi(x)}=0
```

→

```latex
\frac{\delta S[\phi]}{\delta \phi(x)}=0
```

## Equivalent forms

```latex
\functionalderivative
```

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

```latex
\fderivative
```

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

## See also

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

## Test cases

### physics

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