---
title: "Changing Monomial Order"
canonical: "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/LocalPolynomialRings/change-order.html"
source: "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/LocalPolynomialRings/change-order.md"
part: "Commutative Algebra"
chapter: "Local Polynomial 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": "Local Polynomial Rings", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/LocalPolynomialRings/index-local-polynomial-rings.md"}
prev: {"title": "Changing Coefficient Ring", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/LocalPolynomialRings/change-ring.md"}
next: {"title": "Dimension of Ideals", "source": "https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/LocalPolynomialRings/dimension.md"}
intrinsics:
  - {"name": "ChangeOrder", "signature": "ChangeOrder(I, Q): RngMPolLoc, RngMPolLoc -> RngMPolLoc, Map"}
  - {"name": "ChangeOrder", "signature": "ChangeOrder(I, order): RngMPolLoc, ... -> RngMPolLoc, Map"}
---

# Changing Monomial Order

Often one wishes to change the monomial order of an ideal. Magma allows one to do this by use of the `ChangeOrder` function.

<a id="function-rngmpolloc-changeorder"></a>
## `ChangeOrder(I, Q): RngMPolLoc, RngMPolLoc -> RngMPolLoc, Map`

Given an ideal $I$ of the local polynomial ring $R = K[x_1, \ldots, x_n]$, together with a local polynomial ring $S$ of rank $n$ (with possibly a different order to that of $R$), return the ideal $J$ of $S$ corresponding to $J$ and the isomorphism $f$ from $R$ to $S$. The map $f$ simply maps $R.i$ to $S.i$ for each $i$.

<a id="function-changeorder-rngmpolloc"></a>
## `ChangeOrder(I, order): RngMPolLoc, ... -> RngMPolLoc, Map`

Given an ideal $I$ of the polynomial ring $P = R[x_1, \ldots, x_n]$, together with a monomial order order (see Section [Elements and Local Monomial Orders](https://docs.magma-maths.org/v2.30-1/CommutativeAlgebra/LocalPolynomialRings/elements-order.md#rngmpolloc-orders)), construct the polynomial ring $Q = R[x_1, \ldots, x_n]$ with order order, and then return the ideal $J$ of $Q$ corresponding to $I$ and the isomorphism $f$ from $P$ to $Q$. See the section on monomial orders for the valid values for the argument order. The map $f$ simply maps $P.i$ to $Q.i$ for each $i$.
