# physics/fdv-to-frac-delta

Expand fdv forms to explicit delta-based derivative fractions.

https://texform.dev/rules/physics/fdv-to-frac-delta

## Metadata

| Field | Value |
| --- | --- |
| Key | physics/fdv-to-frac-delta |
| Level | faithful |
| Fidelity | render |
| Enabled by packages | physics |
| Profiles | Faithful, Corpus, Equiv |

## Rewrite patterns

### fdv-two-argument

From:

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

To:

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

### fdv-operator

From:

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

To:

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

### fdv-order

From:

```latex
\fdv[#1]{#2}{#3}
```

To:

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

### fdv-star

From:

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

To:

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

## Examples

Examples show the rule in isolation, not a complete normalization profile.

### fdv euler lagrange

Before:

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

After this rule:

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

Packages: base, physics.

Rendering verified with the declared packages.

### fdv operator form

Before:

```latex
\fdv{\phi(x)} S
```

After this rule:

```latex
\frac{\delta}{\delta \phi(x)} S
```

Packages: base, physics.

Rendering verified with the declared packages.

### fdv second order

Before:

```latex
\fdv[2]{S}{\phi}
```

After this rule:

```latex
\frac{\delta^{2} S}{\delta \phi^{2}}
```

Packages: base, physics.

Rendering verified with the declared packages.

### fdv star flatfrac

Before:

```latex
\fdv*{S}{\phi}
```

After this rule:

```latex
\flatfrac{\delta S}{\delta \phi}
```

Packages: base, physics.

Rendering verified with the declared packages.

## Triggers

- [\\fdv](https://texform.dev/latex/commands/fdv)

## Eliminates

- [\\fdv](https://texform.dev/latex/commands/fdv)

## Produces

- [\\frac](https://texform.dev/latex/commands/frac)
- [\\flatfrac](https://texform.dev/latex/commands/flatfrac)
- [\\delta](https://texform.dev/latex/symbols/delta)

## Upstream

- [physics/functional-derivative-to-fdv](https://texform.dev/rules/physics/functional-derivative-to-fdv): Collapse long functional derivative names to the fdv command.

## Same family

- [physics/derivative-to-dv](https://texform.dev/rules/physics/derivative-to-dv): Collapse derivative to the compact dv command.
- [physics/functional-derivative-to-fdv](https://texform.dev/rules/physics/functional-derivative-to-fdv): Collapse long functional derivative names to the fdv command.
- [physics/partial-derivative-to-pdv](https://texform.dev/rules/physics/partial-derivative-to-pdv): Collapse long partial derivative names to the pdv command.
- [physics/vectorarrow-to-va](https://texform.dev/rules/physics/vectorarrow-to-va): Collapse vectorarrow to the short va helper.
- [physics/vectorbold-to-vb](https://texform.dev/rules/physics/vectorbold-to-vb): Collapse vectorbold to the short vb helper.
- [physics/vectorunit-to-vu](https://texform.dev/rules/physics/vectorunit-to-vu): Collapse vectorunit to the short vu helper.
- [physics/dv-to-frac-d](https://texform.dev/rules/physics/dv-to-frac-d): Expand dv forms to explicit d-based derivative fractions.
- [physics/pdv-to-frac-partial](https://texform.dev/rules/physics/pdv-to-frac-partial): Expand pdv forms to explicit partial-derivative fractions.
- [physics/va-to-vec-mathbf](https://texform.dev/rules/physics/va-to-vec-mathbf): Canonicalize va to an explicit vec-wrapped mathbf form.
- [physics/vb-to-mathbf](https://texform.dev/rules/physics/vb-to-mathbf): Canonicalize vb to an explicit mathbf wrapper.
- [physics/vu-to-hat-mathbf](https://texform.dev/rules/physics/vu-to-hat-mathbf): Canonicalize vu to an explicit hat-wrapped mathbf form.

## Notes

Covers the two-argument functional derivative, one-argument operator form, optional [n] order, and star branch. The star branch follows MathJax physics by expanding to \flatfrac rather than \frac.

## Disable this rule

```python
TransformEngine(profile="corpus", disable_rules=["physics/fdv-to-frac-delta"])
```

```javascript
new TransformEngine({ profile: 'corpus', disableRules: ['physics/fdv-to-frac-delta'] })
```

[Open in Playground](https://play.texform.dev/?input=%5Cfdv%7BS%5B%5Cphi%5D%7D%7B%5Cphi%28x%29%7D%3D0)
