Advanced maths

Cyclotomic field arithmetic calculator with exact norm and trace

Perform exact rational arithmetic in a cyclotomic field, reducing by its cyclotomic polynomial and reporting absolute trace and norm.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Perform exact rational arithmetic in a cyclotomic field, reducing by its cyclotomic polynomial and reporting absolute trace and norm.

THE FORMULAQ(ζn) ≅ Q[x]/(Φn(x)); Tr(a)=trace(Ma), N(a)=det(Ma).

A worked example

For n=3, ζ²+ζ+1=0. With a=ζ and b=1+ζ, ab=ζ+ζ²=−1. The product is the constant −1 (trailing zero coefficients may be omitted), with absolute trace −2 and absolute norm 1 in the degree-two field.

Good to know

Orders n≤24 with φ(n)≤12; bounded rational coefficient vectors and exact field reduction. Division rejects zero. Absolute trace and norm refer to Q(ζn) over Q, including rational elements viewed in that field. The complex embedding is approximate; no arbitrary number fields or ideal-class computations.

A field generated by a root of unity

The nth cyclotomic field is generated by a primitive nth root of unity ζn. Its exact algebraic relation is the cyclotomic polynomial Φn, and the field degree is Euler’s totient φ(n). Every element has a unique rational coefficient vector in the power basis 1,ζn,…,ζn^(φ(n)−1).

This is more than a complex-number approximation to a root on the unit circle. Exact reduction preserves identities that would otherwise show small floating residuals. The page handles the arithmetic of the selected field, not every algebraic number field and not an automatic proof that an arbitrary entered complex decimal equals a root of unity.

Roots-of-unity embeddings, coefficient reduction and conjugate products/sumsζζ²ζ² + ζ + 1 = 0ζ(1+ζ) = −1Trace −2; norm 1
Scroll across to see the full diagram.
In Q(ζ3), the two primitive embeddings lie on the unit circle and the exact relation reduces ζ(1+ζ) to −1.

Compare this with the Quadratic number field arithmetic calculator with norm and trace. Perform exact arithmetic in Q(zeta_n) using its cyclotomic polynomial and all conjugates, rather than a quadratic-only basis or a single character sum.

Read coefficient vectors in ascending order

A vector [a0,a1,a2] represents a0+a1ζn+a2ζn². Missing trailing entries are zero. Rational values should be entered with an explicit fraction syntax where supported, and the accepted vector length and coefficient size are bounded. The second vector participates in the chosen binary operation.

Using another primitive root, such as ζn raised to a coprime power, changes the embedding and the power-basis coordinates through a field automorphism. It does not change absolute trace or norm. Keep the chosen primitive root convention fixed when comparing exact coordinate vectors with another package.

Reduce arithmetic modulo Φn

Add and subtract coefficient vectors componentwise. Multiplication first forms a polynomial product, then divides by Φn and keeps the remainder. Because Φn is irreducible over the rationals, every nonzero remainder has an inverse modulo Φn, obtainable by the extended Euclidean algorithm.

A zero divisor input is not a difficult numerical case; it is mathematically undefined and must be rejected. Exact division should verify that multiplying the inverse by its denominator reduces to one. No floating complex reciprocal is used to decide equality, and coefficients are never rounded into the nearest rational after the calculation.

Trace and norm come from multiplication

Multiplication by an element a is a rational linear map on the φ(n)-dimensional field. Expressing that map on the power basis gives the multiplication matrix Ma. Its matrix trace is the absolute field trace of a, and its determinant is the absolute field norm. Both are exact rational quantities.

These values depend on the ambient extension degree even when the element itself is rational. A rational c inside a degree-d field has trace dc and norm c^d. Using its smaller minimal-polynomial degree instead would compute a different extension’s trace and norm, so the page states the ambient field explicitly.

Calculate the cubic-root example

For n=3, Φ3(x)=x²+x+1 and the field has degree two. The default vectors represent a=ζ and b=1+ζ. Their polynomial product is ζ+ζ². Substituting ζ²=−ζ−1 leaves −1, with exact reduced coefficient vector [−1], equivalently [−1,0] when padded to the field degree.

Multiplication by −1 is minus the two-by-two identity matrix. Its trace is −2 and determinant is one, giving the displayed absolute trace and norm. The approximate complex product should lie near the real number −1, but that plot is a supplementary embedding check rather than the basis of the exact simplification.

Check conjugates and embeddings

The field embeddings send ζn to ζn^k for k coprime to n. Summing the images of an element gives its trace, while multiplying them gives its norm. This offers an independent numerical comparison with the exact multiplication-matrix calculation, subject to ordinary floating error.

Complex conjugation sends ζn to ζn^−1. Real elements are fixed by that map, but an approximately tiny imaginary part alone does not establish exact reality. Compare exact reduced vectors under conjugation when that property matters. The explanatory unit-circle figure illustrates embeddings and should not be mistaken for exact rational output.

Interpret exact and approximate outputs separately

The reduced coefficient vector, multiplication checks, trace and norm belong to exact rational arithmetic. The real and imaginary coordinates of the selected complex embedding are approximations for orientation and visualization. Small plotted residuals do not weaken a verified exact identity, and a pleasing plot does not validate an incorrect coefficient reduction.

The page does not compute ideal factorization, units of the full integer ring, class groups or arbitrary field isomorphisms. Its supported order and coefficient bounds protect interactive exact computation. For a larger field, preserve the polynomial and basis convention when moving to a dedicated number-theory system rather than comparing only rounded complex decimals.

A few questions, answered

Why is the trace of −1 equal to −2?

The selected field has degree two over Q, so multiplication by −1 has two diagonal entries −1.

Are the complex coordinates exact?

No. The coefficient vector and rational invariants are exact; the chosen complex embedding is approximate.

Can I divide by zero?

No. A zero reduced field element has no inverse and is rejected.

Does changing the primitive root change trace and norm?

No. Coprime-power primitive-root choices are field automorphisms and preserve the absolute trace and norm.

Find your calculator

Start typing to explore the library.