# Weyl algebra

In abstract algebra, the Weyl algebras are abstracted from the ring of differential operators with polynomial coefficients. They are named after Hermann Weyl, who introduced them to study the Heisenberg uncertainty principle in quantum mechanics.
In the simplest case, these are differential operators. Let $F$ be a field, and let $F[x]$ be the ring of polynomials in one variable with coefficients in $F$. Then the corresponding Weyl algebra consists of differential operators of form
    $f_{m}(x)\partial _{x}^{m}+f_{m-1}(x)\partial _{x}^{m-1}+\cdots +f_{1}(x)\partial _{x}+f_{0}(x)$
This is the first Weyl algebra $A_{1}$. The n-th Weyl algebra $A_{n}$ are constructed similarly.
Alternatively, $A_{1}$ can be constructed as the quotient of the free algebra on two generators, q and p, by the ideal generated by $([p,q]-1)$. Similarly, $A_{n}$ is obtained by quotienting the free algebra on 2n generators by the ideal generated by$([p_{i},q_{j}]-\delta _{i,j}),\quad \forall i,j=1,\dots ,n$where $\delta _{i,j}$ is the Kronecker delta.
More generally, let $(R,\Delta )$ be a partial differential ring with commuting derivatives $\Delta =\lbrace \partial _{1},\ldots ,\partial _{m}\rbrace$. The Weyl algebra associated to $(R,\Delta )$ is the noncommutative ring $R[\partial _{1},\ldots ,\partial _{m}]$ satisfying the relations $\partial _{i}r=r\partial _{i}+\partial _{i}(r)$ for all $r\in R$. The previous case is the special case where $R=F[x_{1},\ldots ,x_{n}]$ and $\Delta =\lbrace \partial _{x_{1}},\ldots ,\partial _{x_{n}}\rbrace$ where $F$ is a field.
This article discusses only the case of $A_{n}$ with underlying field $F$ characteristic zero, unless otherwise stated.
The Weyl algebra is an example of a simple ring that is not a matrix ring over a division ring. It is also a noncommutative example of a domain, and an example of an Ore extension.

## Motivation

The Weyl algebra arises naturally in the context of quantum mechanics and the process of canonical quantization. Consider a classical phase space with canonical coordinates $(q_{1},p_{1},\dots ,q_{n},p_{n})$. These coordinates satisfy the Poisson bracket relations:$\{q_{i},q_{j}\}=0,\quad \{p_{i},p_{j}\}=0,\quad \{q_{i},p_{j}\}=\delta _{ij}.$In canonical quantization, one seeks to construct a Hilbert space of states and represent the classical observables (functions on phase space) as self-adjoint operators on this space. The canonical commutation relations are imposed:$[{\hat {q}}_{i},{\hat {q}}_{j}]=0,\quad [{\hat {p}}_{i},{\hat {p}}_{j}]=0,\quad [{\hat {q}}_{i},{\hat {p}}_{j}]=i\hbar \delta _{ij},$where $[\cdot ,\cdot ]$ denotes the commutator. Here, ${\hat {q}}_{i}$ and ${\hat {p}}_{i}$ are the operators corresponding to $q_{i}$ and $p_{i}$ respectively. Erwin Schrödinger proposed in 1926 the following:
* ${\hat {q_{j}}}$ with multiplication by $x_{j}$.
* ${\hat {p}}_{j}$ with $-i\hbar \partial _{x_{j}}$.
With this identification, the canonical commutation relation holds.

## Constructions

The Weyl algebras have different constructions, with different levels of abstraction.

### Representation

The Weyl algebra $A_{n}$ can be concretely constructed as a representation.
In the differential operator representation, similar to Schrödinger's canonical quantization, let $q_{j}$ be represented by multiplication on the left by $x_{j}$, and let $p_{j}$ be represented by differentiation on the left by $\partial _{x_{j}}$.
In the matrix representation, similar to the matrix mechanics, $A_{1}$ is represented by$P={\begin{bmatrix}0&1&0&0&\cdots \\0&0&2&0&\cdots \\0&0&0&3&\cdots \\\vdots &\vdots &\vdots &\vdots &\ddots \end{bmatrix}},\quad Q={\begin{bmatrix}0&0&0&0&\ldots \\1&0&0&0&\cdots \\0&1&0&0&\cdots \\\vdots &\vdots &\vdots &\vdots &\ddots \end{bmatrix}}$

### Generator

$A_{n}$ can be constructed as a quotient of a free algebra in terms of generators and relations. One construction starts with an abstract vector space V (of dimension 2n) equipped with a symplectic form ω. Define the Weyl algebra W(V) to be
    $W(V):=T(V)/(\!(v\otimes u-u\otimes v-\omega (v,u),{\text{ for }}v,u\in V)\!),$
where T(V) is the tensor algebra on V, and the notation $(\!\!)$ means "the ideal generated by".
In other words, W(V) is the algebra generated by V subject only to the relation vu − uv = ω(v, u). Then, W(V) is isomorphic to A$_n$ via the choice of a Darboux basis for ω.
$A_{n}$ is also a quotient of the universal enveloping algebra of the Heisenberg algebra, the Lie algebra of the Heisenberg group, by setting the central element of the Heisenberg algebra (namely [q, p]) equal to the unit of the universal enveloping algebra (called 1 above).

### Quantization

The algebra W(V) is a quantization of the symmetric algebra Sym(V). If V is over a field of characteristic zero, then W(V) is naturally isomorphic to the underlying vector space of the symmetric algebra Sym(V) equipped with a deformed product – called the Groenewold–Moyal product (considering the symmetric algebra to be polynomial functions on V$^∗$, where the variables span the vector space V, and replacing iħ in the Moyal product formula with 1).
The isomorphism is given by the symmetrization map from Sym(V) to W(V)
    $a_{1}\cdots a_{n}\mapsto {\frac {1}{n!}}\sum _{\sigma \in S_{n}}a_{\sigma (1)}\otimes \cdots \otimes a_{\sigma (n)}~.$
If one prefers to have the iħ and work over the complex numbers, one could have instead defined the Weyl algebra above as generated by q$_i$ and iħ∂$_{qi}$ (as per quantum mechanics usage).
Thus, the Weyl algebra is a quantization of the symmetric algebra, which is essentially the same as the Moyal quantization (if for the latter one restricts to polynomial functions), but the former is in terms of generators and relations (considered to be differential operators) and the latter is in terms of a deformed multiplication.
Stated in another way, let the Moyal star product be denoted $f\star g$, then the Weyl algebra is isomorphic to $(\mathbb {C} [x_{1},\dots ,x_{n}],\star )$.
In the case of exterior algebras, the analogous quantization to the Weyl one is the Clifford algebra, which is also referred to as the orthogonal Clifford algebra.
The Weyl algebra is also referred to as the symplectic Clifford algebra. Weyl algebras represent for symplectic bilinear forms the same structure that Clifford algebras represent for non-degenerate symmetric bilinear forms.

### D-module

The Weyl algebra can be constructed as a D-module. Specifically, the Weyl algebra corresponding to the polynomial ring $R[x_{1},...,x_{n}]$ with its usual partial differential structure is precisely equal to Grothendieck's ring of differential operations $D_{\mathbb {A} _{R}^{n}/R}$.
More generally, let $X$ be a smooth scheme over a ring $R$. Locally, $X\to R$ factors as an étale cover over some $\mathbb {A} _{R}^{n}$ equipped with the standard projection. Because "étale" means "(flat and) possessing null cotangent sheaf", this means that every D-module over such a scheme can be thought of locally as a module over the $n^{\text{th}}$ Weyl algebra.
Let $R$ be a commutative algebra over a subring $S$. The ring of differential operators $D_{R/S}$ (notated $D_{R}$ when $S$ is clear from context) is inductively defined as a graded subalgebra of $\operatorname {End} _{S}(R)$:
* $D_{R}^{0}=R$
* $D_{R}^{k}=\left\{d\in \operatorname {End} _{S}(R):[d,a]\in D_{R}^{k-1}{\text{ for all }}a\in R\right\}.$
Let $D_{R}$ be the union of all $D_{R}^{k}$ for $k\geq 0$. This is a subalgebra of $\operatorname {End} _{S}(R)$.
In the case $R=S[x_{1},...,x_{n}]$, the ring of differential operators of order $\leq n$ presents similarly as in the special case $S=\mathbb {C}$ but for the added consideration of "divided power operators"; these are operators corresponding to those in the complex case which stabilize $\mathbb {Z} [x_{1},...,x_{n}]$, but which cannot be written as integral combinations of higher-order operators, i.e. do not inhabit $D_{\mathbb {A} _{\mathbb {Z} }^{n}/\mathbb {Z} }$. One such example is the operator $\partial _{x_{1}}^{[p]}:x_{1}^{N}\mapsto {N \choose p}x_{1}^{N-p}$.
Explicitly, a presentation is given by
    $D_{S[x_{1},\dots ,x_{\ell }]/S}^{n}=S\langle x_{1},\dots ,x_{\ell },\{\partial _{x_{i}},\partial _{x_{i}}^{[2]},\dots ,\partial _{x_{i}}^{[n]}\}_{1\leq i\leq \ell }\rangle$
with the relations
    $[x_{i},x_{j}]=[\partial _{x_{i}}^{[k]},\partial _{x_{j}}^{[m]}]=0$
    $[\partial _{x_{i}}^{[k]},x_{j}]=\left\{{\begin{matrix}\partial _{x_{i}}^{[k-1]}&{\text{if }}i=j\\0&{\text{if }}i\neq j\end{matrix}}\right.$
    $\partial _{x_{i}}^{[k]}\partial _{x_{i}}^{[m]}={k+m \choose k}\partial _{x_{i}}^{[k+m]}~~~~~{\text{when }}k+m\leq n$
where $\partial _{x_{i}}^{[0]}=1$ by convention. The Weyl algebra then consists of the limit of these algebras as $n\to \infty$.$^{:Ch.IV.16.II}$
When $S$ is a field of characteristic 0, then $D_{R}^{1}$ is generated, as an $R$-module, by 1 and the $S$-derivations of $R$. Moreover, $D_{R}$ is generated as a ring by the $R$-subalgebra $D_{R}^{1}$. In particular, if $S=\mathbb {C}$ and $R=\mathbb {C} [x_{1},...,x_{n}]$, then $D_{R}^{1}=R+\sum _{i}R\partial _{x_{i}}$. As mentioned, $A_{n}=D_{R}$.

## Properties of A$_n$

Many properties of $A_{1}$ apply to $A_{n}$ with essentially similar proofs, since the different dimensions commute.

### General Leibniz rule

Theorem (general Leibniz rule) — $p^{k}q^{m}=\sum _{l=0}^{k}{\binom {k}{l}}{\frac {m!}{(m-l)!}}q^{m-l}p^{k-l}=q^{m}p^{k}+mkq^{m-1}p^{k-1}+\cdots$
Under the $p\mapsto x,q\mapsto \partial _{x}$ representation, this equation is obtained by the general Leibniz rule. Since the general Leibniz rule is provable by algebraic manipulation, it holds for $A_{1}$ as well.
In particular, [q, q$^m$p$^n$]=−nq$^m$p$^{n−1}${\textstyle [q, q^{m}p^{n}]=-nq^{m}p^{n-1}} and [p, q$^m$p$^n$]=mq$^{m−1}$p$^n${\textstyle [p, q^{m}p^{n}]=mq^{m-1}p^{n}}.
Corollary — The center of Weyl algebra $A_{n}$ is the underlying field of constants $F$.
If the commutator of $f$ with either of $p,q$ is zero, then by the previous statement, $f$ has no monomial $p^{n}q^{m}$ with $n>0$ or $m>0$.

### Degree

Theorem — $A_{n}$ has a basis $\{q^{m}p^{n}:m,n\geq 0\}$.
By repeating the commutator relations, any monomial can be equated to a linear sum of these. It remains to check that these are linearly independent. This can be checked in the differential operator representation. For any linear sum $\sum _{m,n}c_{m,n}x^{m}\partial _{x}^{n}$ with nonzero coefficients, group it in descending order: $p_{N}(x)\partial _{x}^{N}+p_{N-1}(x)\partial _{x}^{N-1}+\cdots +p_{M}(x)\partial _{x}^{M}$, where $p_{M}$ is a nonzero polynomial. This operator applied to $x^{M}$ results in $M!p_{M}(x)\neq 0$.
This allows $A_{1}$ to be a graded algebra, where the degree of $\sum _{m,n}c_{m,n}q^{m}p^{n}$ is $\max(m+n)$ among its nonzero monomials. The degree is similarly defined for $A_{n}$.
Theorem — For $A_{n}$:
* $\deg(g+h)\leq \max(\deg(g),\deg(h))$
* $\deg([g,h])\leq \deg(g)+\deg(h)-2$
* $\deg(gh)=\deg(g)+\deg(h)$
We prove it for $A_{1}$, as the $A_{n}$ case is similar.
The first relation is by definition. The second relation is by the general Leibniz rule. For the third relation, note that $\deg(gh)\leq \deg(g)+\deg(h)$, so it is sufficient to check that $gh$ contains at least one nonzero monomial that has degree $\deg(g)+\deg(h)$. To find such a monomial, pick the one in $g$ with the highest degree. If there are multiple such monomials, pick the one with the highest power in $q$. Similarly for $h$. These two monomials, when multiplied together, create a unique monomial among all monomials of $gh$, and so it remains nonzero.
Theorem — $A_{n}$ is a simple domain.
That is, it has no two-sided nontrivial ideals and has no zero divisors.
Because $\deg(gh)=\deg(g)+\deg(h)$, it has no zero divisors.
Suppose for contradiction that $I$ is a nonzero two-sided ideal of $A_{1}$, with $I\neq A_{1}$. Pick a nonzero element $f\in I$ with the lowest degree.
If $f$ contains some nonzero monomial of form $xx^{m}\partial ^{n}=x^{m+1}\partial ^{n}$, then $[\partial ,f]=\partial f-f\partial$ contains a nonzero monomial of form $\partial x^{m+1}\partial ^{n}-x^{m+1}\partial ^{n}\partial =(m+1)x^{m}\partial ^{n}.$ Thus $[\partial ,f]$ is nonzero, and has degree $\leq \deg(f)-1$. As $I$ is a two-sided ideal, we have $[\partial ,f]\in I$, which contradicts the minimality of $\deg(f)$.
Similarly, if $f$ contains some nonzero monomial of form $x^{m}\partial ^{n}\partial$, then $[x,f]=xf-fx$ is nonzero with lower degree.

### Derivation

Theorem — The derivations of A$_n${\textstyle A_{n}} are in bijection with the elements of A$_n${\textstyle A_{n}} up to an additive scalar.
That is, any derivation D{\textstyle D} is equal to [⋅, f]{\textstyle [\cdot , f]} for some f∈A$_n${\textstyle f\in A_{n}}; any f∈A$_n${\textstyle f\in A_{n}} yields a derivation [⋅, f]{\textstyle [\cdot , f]}; if f, f$^′$∈A$_n${\textstyle f, f'\in A_{n}} satisfies [⋅, f]=[⋅, f$^′$]{\textstyle [\cdot , f]=[\cdot , f']}, then f−f$^′$∈F{\textstyle f-f'\in F}.
The proof is similar to computing the potential function for a conservative polynomial vector field on the plane.

## Representation theory
### Zero characteristic

In the case that the ground field F has characteristic zero, the nth Weyl algebra is a simple Noetherian domain. It has global dimension n, in contrast to the ring it deforms, Sym(V), which has global dimension 2n.
It has no finite-dimensional representations. Although this follows from simplicity, it can be more directly shown by taking the trace of σ(q) and σ(Y) for some finite-dimensional representation σ (where [q,p] = 1).
    $\mathrm {tr} ([\sigma (q),\sigma (Y)])=\mathrm {tr} (1)~.$
Since the trace of a commutator is zero, and the trace of the identity is the dimension of the representation, the representation must be zero dimensional.
In fact, there are stronger statements than the absence of finite-dimensional representations. To any finitely generated A$_n$-module M, there is a corresponding subvariety Char(M) of V × V$^∗$ called the 'characteristic variety' whose size roughly corresponds to the size of M (a finite-dimensional module would have zero-dimensional characteristic variety). Then Bernstein's inequality states that for M non-zero,
    $\dim(\operatorname {char} (M))\geq n$
An even stronger statement is Gabber's theorem, which states that Char(M) is a co-isotropic subvariety of V × V$^∗$ for the natural symplectic form.

### Positive characteristic

The situation is considerably different in the case of a Weyl algebra over a field of characteristic p > 0.
In this case, for any element D of the Weyl algebra, the element D$^p$ is central, and so the Weyl algebra has a very large center. In fact, it is a finitely generated module over its center; even more so, it is an Azumaya algebra over its center. As a consequence, there are many finite-dimensional representations which are all built out of simple representations of dimension p.

## Generalizations

The ideals and automorphisms of $A_{1}$ have been well-studied. The moduli space for its right ideal is known. However, the case for $A_{n}$ is considerably harder and is related to the Jacobian conjecture.
For more details about this quantization in the case n = 1 (and an extension using the Fourier transform to a class of integrable functions larger than the polynomial functions), see Wigner–Weyl transform.
Weyl algebras and Clifford algebras admit a further structure of a *-algebra, and can be unified as even and odd terms of a superalgebra, as discussed in CCR and CAR algebras.

### Affine varieties

Weyl algebras also generalize in the case of algebraic varieties. Consider a polynomial ring
    $R={\frac {\mathbb {C} [x_{1},\ldots ,x_{n}]}{I}}.$
Then a differential operator is defined as a composition of $\mathbb {C}$-linear derivations of $R$. This can be described explicitly as the quotient ring
    ${\text{Diff}}(R)={\frac {\{D\in A_{n}\colon D(I)\subseteq I\}}{I\cdot A_{n}}}.$