---
title: "Eisenstein Series"
canonical: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/eisenstein-series.html"
source: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/eisenstein-series.md"
part: "Modular Arithmetic Geometry"
chapter: "Modular Forms"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Modular Arithmetic Geometry", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/index-modular-arithmetic-geometry.md"}
  - {"title": "Modular Forms", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/index-modular-forms.md"}
prev: {"title": "Operators", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/operators.md"}
next: {"title": "Weight Half Forms", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/weight-half-forms.md"}
intrinsics:
  - {"name": "EisensteinSeries", "signature": "EisensteinSeries(M): ModFrm -> List"}
  - {"name": "IsEisensteinSeries", "signature": "IsEisensteinSeries(f): ModFrmElt -> BoolElt"}
  - {"name": "EisensteinData", "signature": "EisensteinData(f): ModFrmElt -> Tup"}
examples:
  - "ex-bee467"
---

<a id="sec-eisenstein"></a>
<a id="id1"></a>
# Eisenstein Series

The intrinsics below require that the base ring of $M$ has characteristic $0$. To compute mod $p$ eigenforms, use the `Reduction` intrinsic (see Section [Reductions and Embeddings](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularForms/reductions-embeddings.md#sec-reductions-and-embeddings)).

<a id="function-eisensteinseries-modfrm"></a>
## `EisensteinSeries(M): ModFrm -> List`

List of the Eisenstein series associated to the modular forms space $M$. By “associated to” we mean that the Eisenstein series lies in $M{\otimes}{\mathbb{C}}$.

<a id="function-iseisensteinseries-modfrmelt-2"></a>
## `IsEisensteinSeries(f): ModFrmElt -> BoolElt`

Returns `true` if the modular form $f$ was created using `EisensteinSeries`.

<a id="function-eisensteindata-modfrmelt"></a>
## `EisensteinData(f): ModFrmElt -> Tup`

The data $<\chi, \psi, t, \chi', \psi'>$ that defines the Eisenstein series (modular form) $f$. Here $\chi$ is a primitive character of conductor $S$, $\psi$ is primitive of conductor $M$, and $MSt$ divides $N$, where $N$ is the level of $f$. (The additional characters $\chi'$ and $\psi'$ are equal to $\chi$ and $\psi$ respectively, except they take values in the big field ${\mathbb{Q}}(\zeta_{\phi(N)})^*$ instead of ${\mathbb{Q}}(\zeta_{n})^*$, where $n$ is the order of $\chi$ or $\psi$.) The Eisenstein series associated to $(\chi,\psi,t)$ has $q$-expansion

$$
c_0 + \sum_{m\geq 1} \left(\sum_{n|m}\psi(n)n^{k-1}\chi(m/n)\right)q^{mt},
$$

where $c_0=0$ if $S>1$ and $c_0=L(1-k,\psi)/2$ if $S=1$.

<a id="example-ex-bee467"></a>
## `Example: Eisenstein Series of Weight 3 and Level 12 (ex-bee467)`

We illustrate the above intrinsics by computing the Eisenstein series in $M_3(\Gamma_1(12))$.

```magma
> M := ModularForms(Gamma1(12),3); M;
Space of modular forms on Gamma_1(12) of weight 3 and dimension 13
over Integer Ring.
> E := EisensteinSubspace(M); E;
Space of modular forms on Gamma_1(12) of weight 3 and dimension 10
over Integer Ring.
> s := EisensteinSeries(E); s;
[*
-1/9 + q - 3*q^2 + q^3 + 13*q^4 - 24*q^5 - 3*q^6 + 50*q^7 + O(q^8),
-1/9 + q^2 - 3*q^4 + q^6 + O(q^8),
-1/9 + q^4 + O(q^8),
-1/4 + q + q^2 - 8*q^3 + q^4 + 26*q^5 - 8*q^6 - 48*q^7 + O(q^8),
-1/4 + q^3 + q^6 + O(q^8),
q + 3*q^2 + 9*q^3 + 13*q^4 + 24*q^5 + 27*q^6 + 50*q^7 + O(q^8),
q^2 + 3*q^4 + 9*q^6 + O(q^8),
q^4 + O(q^8),
q + 4*q^2 + 8*q^3 + 16*q^4 + 26*q^5 + 32*q^6 + 48*q^7 + O(q^8),
q^3 + 4*q^6 + O(q^8)
*]
> a := EisensteinData(s[1]); a;
<1, $.1, 1, 1, $.2>
> Parent(a[2]);
Group of Dirichlet characters of modulus 3 over Rational Field
> Order(a[2]);
2
> Parent(a[5]);
Group of Dirichlet characters of modulus 12 over Cyclotomic Field of
order 4 and degree 2
> Parent(s[1]);
Space of modular forms on Gamma_1(12) of weight 3 and dimension 10
over Rational Field.
> IsEisensteinSeries(s[1]);
true
```
