---
title: "Standard Functions and Forms"
canonical: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/SmallModularCurves/fns_frms_small_mod_crv.html"
source: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/SmallModularCurves/fns_frms_small_mod_crv.md"
part: "Modular Arithmetic Geometry"
chapter: "Small Modular Curves"
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": "Small Modular Curves", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/SmallModularCurves/index-small-modular-curves.md"}
prev: {"title": "Cusps and Rational Points", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/SmallModularCurves/cusps_small_mod_crv.md"}
next: {"title": "Parametrized Structures", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/SmallModularCurves/isogs_sm_mod_crvs.md"}
intrinsics:
  - {"name": "jInvariant", "signature": "jInvariant(CN, N): Crv, RngIntElt -> FldFunRatMElt"}
  - {"name": "jFunction", "signature": "jFunction(CN, N): Crv, RngIntElt -> FldFunFracSchElt"}
  - {"name": "jInvariant", "signature": "jInvariant(p, N): Pt, RngIntElt -> RngElt"}
  - {"name": "jInvariant", "signature": "jInvariant(p, N): PlcCrvElt, RngIntElt -> RngElt"}
  - {"name": "jNInvariant", "signature": "jNInvariant(p, N): Pt, RngIntElt -> RngElt"}
  - {"name": "jNInvariant", "signature": "jNInvariant(p, N): PlcCrvElt, RngIntElt -> RngElt"}
  - {"name": "E2NForm", "signature": "E2NForm(CN, N): Crv, RngIntElt -> DiffCrvElt"}
  - {"name": "E4Form", "signature": "E4Form(CN, N): Crv, RngIntElt -> FldFunFracSchElt, DiffCrvElt"}
  - {"name": "E6Form", "signature": "E6Form(CN, N): Crv, RngIntElt -> FldFunFracSchElt, DiffCrvElt"}
---

# Standard Functions and Forms

This section contains intrinsics that return the $j$-invariant as a rational function and normalised Eisenstein forms as meromorphic $k$-differentials on the small database models of $X_0(N)$. Standard variants of these can be obtained by pulling back by Atkin-Lehner involutions or pulling back the corresponding objects from lower level curves by the projection or $r$-projection maps.

The database actually only contains precomputed expressions for $E_2^{(N)}$ (see below), $E_4$, and $E_6$ for prime levels $N$ and reconstructs everything else from these objects using projection maps.

<a id="function-jinvariant-crv-rngintelt"></a>
## `jInvariant(CN, N): Crv, RngIntElt -> FldFunRatMElt`

<a id="function-jfunction-crv-rngintelt"></a>
## `jFunction(CN, N): Crv, RngIntElt -> FldFunFracSchElt`

The curve $CN$ should be a base change of the small modular database curve of level $N$ to a field of characteristic 0. These intrinsics return the $j$-invariant $j(z)$ as a rational function on $CN$. The second returns it as an element of the function field of $CN$. The first returns it as an element in the field of fractions of the coordinate ring of the ambient of $CN$, which is sometimes more convenient to use.

<a id="function-jinvariant-pt-rngintelt"></a>
## `jInvariant(p, N): Pt, RngIntElt -> RngElt`

<a id="function-jinvariant-plccrvelt-rngintelt"></a>
## `jInvariant(p, N): PlcCrvElt, RngIntElt -> RngElt`

The point or place $p$ is a non-cuspidal point or a non-cuspidal place on a base change $CN$ of the small modular database curve of level $N$ to a field of characteristic 0. Returns the value of $j(z)$ at $p$, the value lying in $L$ if $p$ is a point in $CN(L)$ or in the residue class field of $p$ if $p$ is a place of $CN$. If $p$ is a point, it should be non-singular. However, if the $j$ function is defined at $p$, the intrinsic will still return a value.

<a id="function-jninvariant-pt-rngintelt"></a>
## `jNInvariant(p, N): Pt, RngIntElt -> RngElt`

<a id="function-jninvariant-plccrvelt-rngintelt"></a>
## `jNInvariant(p, N): PlcCrvElt, RngIntElt -> RngElt`

Exactly as `jInvariant` above, except that the intrinsic gives the value of rational function $j(Nz)$ at the point or place. This is equivalent to computing the $j$-invariant value on the image of $p$ under the Fricke involution $w_N$.

<a id="function-e2nform-crv-rngintelt"></a>
## `E2NForm(CN, N): Crv, RngIntElt -> DiffCrvElt`

The curve $CN$ should be a base change of the small modular database curve of level $N$ to a field of characteristic 0. $E_2^{(N)}(z)=NE_2(Nz)-E_2(z)$ is a weight 2 integral form for $\Gamma_0(N)$ where $E_2(z)=1-24e^{2\pi iz}+\ldots$ is the normalised weight 2 Eisenstein series. $E_2^{(N)}(z)$ corresponds to a meromorphic differential (defined over **Q**) on $X_0(N)$. The intrinsic returns $E_2^{(N)}(z)$ as a meromorphic differential in the function field of $CN$.

<a id="function-e4form-crv-rngintelt"></a>
## `E4Form(CN, N): Crv, RngIntElt -> FldFunFracSchElt, DiffCrvElt`

The curve $CN$ should be a base change of the small modular database curve of level $N$ to a field of characteristic 0. Returns a rational function $f$ and a differential form $\omega$ in the function field of $CN$ such that the Eisenstein series $E_4(z)=1+240e^{2\pi iz}+\ldots$ as a meromorphic 2-differential on $CN$ is given by $f\omega^2$.

<a id="function-e6form-crv-rngintelt"></a>
## `E6Form(CN, N): Crv, RngIntElt -> FldFunFracSchElt, DiffCrvElt`

The curve $CN$ should be a base change of the small modular database curve of level $N$ to a field of characteristic 0. Returns a rational function $f$ and a differential form $\omega$ in the function field of $CN$ such that the Eisenstein series $E_6(z)=1-504e^{2\pi iz}+\ldots$ as a meromorphic 3-differential on $CN$ is given by $f\omega^3$. Note that the same differential $\omega$ is returned by the `E4Form` intrinsic.
