# \fderivative

Alternative abbreviated physics-package command for functional or variational derivatives.

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

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

Alternative abbreviated physics-package command for functional or variational derivatives.

## Examples

```latex
\fderivative{F}
```

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

```latex
\fderivative{F}{x}
```

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

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

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

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

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

→

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

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

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

Collapse long functional derivative names to the fdv command.

Level: authoring. Fidelity: render.

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

→

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

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

→

```latex
\fdv{S[\phi]}{\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
\fdv
```

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)
- [\\fdv](https://texform.dev/latex/commands/fdv)
- [\\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 |
| --- | --- | --- | --- | --- |
| \fderivative{a} | Positive: baseline | Pass | Fail | Pass |
| \fderivative*{a} | Positive: vary:s[0] | Pass | Fail | Pass |
| \fderivative[a]{b} | Positive: vary:o[1] | Pass | Fail | Pass |
| \fderivative{a}{b} | Positive: vary:g[3] | Pass | Fail | Pass |
| \fderivative*[a]{b}{c} | Positive: maximal | Pass | Fail | Pass |
| \fderivative a | Positive: bare[2] | Pass | Fail | Pass |
