KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesComplex Multiplication and Class NumbersEngineering · Engineering MathematicsLesson 841/884← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Jogincomplex multiplicationclass numberHilbert class polynomialj-invariant
On this page

Ask about this page

KEVOS AIComplex Multiplication and Class Numbers

KEVOS knowledge first · trusted web sources when needed

Elliptic Curves

Complex Multiplication and Class Numbers

The link between curves with complex multiplication and class groups of imaginary quadratic orders, and the Hilbert class polynomial.

Engineering / MathematicsElliptic Curves2 min readKV-MATH-0639

Curves with complex multiplication by an imaginary quadratic order are in bijection with the ideal classes of that order. This is one of the most striking links in the subject and it is directly computational.

The correspondence

For a fixed imaginary quadratic order, the curves with that endomorphism ring correspond to the ideal classes. The number of such curves, up to isomorphism, is the class number.

Number of CM curves with endomorphism ring O = h(O)The class number of the order.

Key point

The correspondence is via lattices. An ideal of the order is a lattice in the complex plane, hence a curve; equivalent ideals give homothetic lattices, hence isomorphic curves. The class group acts simply transitively on the set of curves.

The Hilbert class polynomial

The j-invariants of these curves are algebraic integers, and they are the roots of a single polynomial with integer coefficients — the Hilbert class polynomial of the discriminant.

The Hilbert class polynomial
PropertyValue
DegreeThe class number of the order
CoefficientsRational integers, and very large
Splitting fieldThe Hilbert class field of the imaginary quadratic field
RootsThe j-invariants of the CM curves

Caution

The coefficients grow extremely quickly with the class number. For class numbers in the hundreds the polynomial is already very large, which is why alternative class invariants with smaller polynomials are used in practice.

Computing it

Computing the Hilbert class polynomial

  1. Enumerate reduced formsOf the given discriminant — see form reduction.
  2. Compute j-invariantsNumerically from each form, via the corresponding lattice.
  3. Form the productMultiply the linear factors numerically.
  4. RoundThe coefficients are integers; round and verify.

Pitfall

The precision required grows with the size of the coefficients, which grow with the class number. Insufficient precision gives wrong integers after rounding, and the result looks entirely plausible. The verification step is essential — see dependence detection.

Alternative class invariants

Weber functions and other modular functions give class invariants whose minimal polynomials have substantially smaller coefficients while generating the same field. Converting back to j-invariants is a simple algebraic step, so these are always preferred in practice.

The application

Constructing a curve with known group order over a finite field is done by choosing a discriminant, computing the class polynomial, and finding a root modulo the prime. This is the engine of ECPP.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 7.2.4. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Related pages

  • Detecting Algebraic and Linear Dependence with LLL
  • Imaginary Quadratic Class Numbers by Counting Reduced Forms
  • Atkin-Morain Elliptic Curve Primality Proving
  • Isogenies and Endomorphism Rings
  • Modular Equations and the j-Invariant

Continue learning

Isogenies and Endomorphism RingsArticle · Engineering MathematicsNEXT LESSON →Modular Equations and the j-InvariantArticle · Engineering MathematicsLattices, Complex Tori and the Weierstrass p-FunctionArticle · Engineering MathematicsZeta Functions of Elliptic CurvesArticle · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®