---
title: "Structure Operations on Differential Operator Rings"
canonical: "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/DifferentialRings/structure-operations-diff-op-rings.html"
source: "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/DifferentialRings/structure-operations-diff-op-rings.md"
part: "Commutative Algebra"
chapter: "Differential Rings"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Commutative Algebra", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/index-commutative-algebra.md"}
  - {"title": "Differential Rings", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/DifferentialRings/index-differential-rings.md"}
prev: {"title": "Differential Operator Rings", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/DifferentialRings/creation-diff-op-rings.md"}
next: {"title": "Element Operations on Differential Operators", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/DifferentialRings/element-operations-diff-op-rings.md"}
intrinsics:
  - {"name": "Category", "signature": "Category(R): RngDiffOp -> RngDiffOp"}
  - {"name": "Type", "signature": "Type(R): RngDiffOp -> RngDiffOp"}
  - {"name": "Parent", "signature": "Parent(R): RngDiffOp -> PowStr"}
  - {"name": "BaseRing", "signature": "BaseRing(R): RngDiffOp -> Rng"}
  - {"name": "CoefficientRing", "signature": "CoefficientRing(R): RngDiffOp -> Rng"}
  - {"name": "ConstantRing", "signature": "ConstantRing(R): RngDiffOp -> Rng"}
  - {"name": "Derivation", "signature": "Derivation(R): RngDiffOp -> Map"}
  - {"name": "Differential", "signature": "Differential(R): RngDiffOp -> DiffFunElt"}
  - {"name": "eq", "signature": "R eq F: RngDiffOp, RngDiffOp -> BoolElt"}
  - {"name": "IsIdentical", "signature": "IsIdentical(R, F): RngDiffOp, RngDiffOp -> BoolElt"}
  - {"name": "IsDifferentialOperatorRing", "signature": "IsDifferentialOperatorRing(R): . -> BoolElt"}
  - {"name": "HasProjectiveDerivation", "signature": "HasProjectiveDerivation(R): RngDiffOp -> BoolElt"}
  - {"name": "HasZeroDerivation", "signature": "HasZeroDerivation(R): RngDiffOp -> BoolElt"}
  - {"name": "RelativePrecisionOfDerivation", "signature": "RelativePrecisionOfDerivation(R): RngDiffOp -> RngElt"}
examples:
  - "ex-fcdd49"
  - "ex-74f01d"
  - "ex-f354a2"
  - "ex-1465b5"
---

# Structure Operations on Differential Operator Rings

## Category and Parent

Differential Operator Rings form the Magma category `RngDiffOp`. The notional power structures exist as parents of differential operator rings.

<a id="function-category-rngdiffop"></a>
### `Category(R): RngDiffOp -> RngDiffOp`

<a id="function-type-rngdiffop"></a>
### `Type(R): RngDiffOp -> RngDiffOp`

The category, or type, of the differential operator ring $R$.

<a id="function-parent-rngdiffop"></a>
### `Parent(R): RngDiffOp -> PowStr`

The power structure of the differential operator ring $R$.

## Related Structures

As outlined in the introduction, a differential operator ring $R$ is of the form $F[D]$, for a differential ring $F$. The ring $F$ is called the *base ring* or *coefficient ring* of $R$.

<a id="function-basering-rngdiffop"></a>
### `BaseRing(R): RngDiffOp -> Rng`

<a id="function-coefficientring-rngdiffop"></a>
### `CoefficientRing(R): RngDiffOp -> Rng`

The base ring, or coefficient ring, of the differential operator ring $R$.

<a id="function-constantring-rngdiffop"></a>
### `ConstantRing(R): RngDiffOp -> Rng`

The constant ring of the differential ring operator $R$.

## Derivation and Differential

By construction the variable $D$ of a differential operator ring $F[D]$ is related to the derivation $\delta_F$. That is why $\delta_F$ is also considered to be the derivation of $R$.

<a id="function-derivation-rngdiffop"></a>
### `Derivation(R): RngDiffOp -> Map`

The derivation of the differential operator ring $R$.

<a id="function-differential-rngdiffop"></a>
### `Differential(R): RngDiffOp -> DiffFunElt`

The differential belonging to the derivation of the differential operator ring $R$. The derivation must have been constructed in such a way that it is defined by a differential.

<a id="example-ex-fcdd49"></a>
### `Example: Related Structures of an Operator Ring (ex-fcdd49)`

```magma
> F<z> := RationalDifferentialField(Rationals());
> R<D> := DifferentialOperatorRing(F);
> BaseRing(R) eq F;
true
> Derivation(R);
Mapping from: RngDiff: F to RngDiff: F given by a rule [no inverse]
> Differential(R);
(1) d(z)
```

## Predicates and Booleans

<a id="operation-op-eq-rngdiffop-rngdiffop"></a>
### `R eq F: RngDiffOp, RngDiffOp -> BoolElt`

Returns `true` if and only if the differential operator rings $R$ and $F$ are the same.

<a id="function-isidentical-rngdiffop-rngdiffop"></a>
### `IsIdentical(R, F): RngDiffOp, RngDiffOp -> BoolElt`

Returns `true` if and only if the differential operator rings $R$ and $F$ are identical.

<a id="function-isdifferentialoperatorring"></a>
### `IsDifferentialOperatorRing(R): . -> BoolElt`

Returns `true` if and only if the given argument is a differential operator ring.

<a id="function-hasprojectivederivation-rngdiffop"></a>
### `HasProjectiveDerivation(R): RngDiffOp -> BoolElt`

Returns `true` iff $R$ is defined over a ring $F$ with derivation weakly of the form $(F.1)\cdot d/d(F.1)$.

<a id="function-haszeroderivation-rngdiffop"></a>
### `HasZeroDerivation(R): RngDiffOp -> BoolElt`

Returns `true` iff the base ring of $R$ is an algebraic differential field or a differential series ring $F$ such that the derivation of $R$ acts as a (weak) zero derivation on $F.1$.

<a id="example-ex-74f01d"></a>
### `Example: Predicates for Operator Rings (ex-74f01d)`

```magma
> F<z> := RationalDifferentialField(Rationals());
> R<D> := DifferentialOperatorRing(F);
> IsDifferentialOperatorRing(F);
false
> IsDifferentialOperatorRing(R);
true
> Derivation(R)(z);
1
> HasProjectiveDerivation(R);
false
> HasProjectiveDerivation(ChangeDerivation(R,z));
true
> HasZeroDerivation(R);
false
```

<a id="example-ex-f354a2"></a>
### `Example: Predicates for Operator Rings over Series (ex-f354a2)`

```magma
> S<t> := DifferentialLaurentSeriesRing(Rationals());
> V<W> := DifferentialOperatorRing(S);
> IsDifferentialOperatorRing(V);
true
> Derivation(V)(t);
t
> HasProjectiveDerivation(V);
true
> HasZeroDerivation(V);
false
> P<Q>, mp := ChangeDerivation(V,3/t);
> IsDifferentialOperatorRing(P);
true
> HasProjectiveDerivation(P);
false
> X<y> := BaseRing(P);
> Q*y;
y*Q + 3
```

## Precision

<a id="function-relativeprecisionofderivation-rngdiffop"></a>
### `RelativePrecisionOfDerivation(R): RngDiffOp -> RngElt`

The relative precision of the derivation of an operator ring over a Laurent series ring.

<a id="example-ex-1465b5"></a>
### `Example: Relative Precision of an Operator Ring (ex-1465b5)`

This example illustrates the relative precision of derivations of differential operatorrings.

```magma
> S<t>:=DifferentialLaurentSeriesRing(Rationals());
> RS<DS> := DifferentialOperatorRing(S);
> RelativePrecisionOfDerivation(RS);
Infinity
> RV<DV> := ChangeDerivation(RS, t^2+O(t^8));
> relprec := RelativePrecisionOfDerivation(RV);
> relprec;
6
> RelativePrecisionOfDerivation(BaseRing(RV)) eq relprec;
true
```
