- Trigonometry in Galois fields
In
mathematics , the theory ofquadratic extension s offinite field s supports analogies withtrigonometry .The main motivation to deal with a finite field trigonometry is the power of the discrete transforms, which play an important role in engineering and mathematics. Significant examples are the well-known discrete trigonometric transforms (DTT), namely the
discrete cosine transform anddiscrete sine transform , which have found many applications in the fields of digital signal andimage processing . In the real DTTs, inevitably, rounding is necessary, because the elements of its transformation matrices are derived from the calculation of sines and cosines. This is the main motivation to define the cosine transform over primefinite fields . In this case, all the calculation is done using integer arithmetic.In order to construct a finite field transform that holds some resemblance with a DTT or with a discrete transform that uses
trigonometric function s as its kernel, like thediscrete Hartley transform , it is firstly necessary to establish the equivalent of the cosine and sine functions over a finite structure.Trigonometry over a Galois field
The set G("q") of
gaussian integer s over GF("q") plays an important role in the trigonometry over finite fields (hereafter the symbol := denotes "equal by definition").: G("q") := {"a" + "jb", "a", "b" ∈ GF("q")} "q" = "p""r",
"r" being a positive integer, "p" being an odd prime for which "j"2 = −1 is a
quadratic non-residue in GF("q"); it is a field isomorphic to GF("q"2).Trigonometric functions over the elements of a
Galois field can be defined as follows:Let be an element of
multiplicative order "N" in GI("q"), "q" = pr, "p" an odd prime such that "p" 3 (mod 4). The GI("q")-valued "k"-trigonometric functions of () in GI("q") (by analogy, the trigonometric functions of "k" times the "angle" of the "complex exponential" i) are defined as:
:
for "i, k" = 0, 1,...,"N" − 1. We write cosk("i") and sink ("i") as cos"k"("i") and sin"k"("i"), respectively. The trigonometric functions above introduced satisfy properties P1-P12 below, in GI("p").
P1. Unit circle: .
P2. Even/Odd: i) . ii)
P3. Euler formula:
P4. Addition of arcs:
i)
ii)
P5. Double arc:
i)
ii)
P6. Symmetry:
i)
ii)
P7. Complementary symmetry: with ,
i)
ii)
P8. Periodicity:
i)
ii)
P9. Complement: with
i)
ii)
P10. summation:
P11. summation:
P12. Orthogonality:
Examples
i) With ζ = 3, a primitive element of GF(7), then cos"k"("i") and sin"k"("i") functions take the following values in GI(7):
:::"Table I - Finite field cosine and sine functions over GI(7)."
Figure 1 illustrates the 12 roots of unity in GF(112). Clearly, G1 is
isomorphic to C12, the group of proper rotations of a regulardodecagon . =8+j6 is agroup generator corresponding to a counter-clockwise rotation of 2π/12 = 30o. Symbols of the same colour indicate elements of same order, which occur in conjugate pairs.Polar form
Let "G""r" and "G"θ be
subgroup s of the multiplicative group of the nonzero elements of GI("p"), of orders ("p" − 1)/2 and 2("p" + 1), respectively. Then all nonzero elements of GI("p") can be written in the form ζ = α·β, where α ∈ "G"r and β ∈ "G"θ.Considering that any element of a
cyclic group can be written as an integral power of agroup generator , it is possible to set "r" = α and εθ = β, where ε is a generator of . The powers εθ of this element play the role of "e""j"θ over the complex field. Thus, the polar representation assumes the desired form, , where "r" plays the role of the modulus of ζ. Therefore, it is necessary to define formally the modulus of an element in a finite field. Considering the nonzero elements of GF("p"), it is a well-known factFact|date=August 2008 that half of them arequadratic residues of "p". The other half, those that do not possess square root, are thequadratic non-residue (in the field of real numbers, the elements are divided into positive and negative numbers, which are, respectively, those that possess and do not possess a square root).The standard modulus operation (
absolute value ) in always gives a positive result.By analogy, the modulus operation in GF("p") is such that it always results in a quadratic residue of "p".
The modulus of an element , where "p" = 4"k" + 3, is
:
The modulus of an element of GF("p") is a quadratic residue of "p".
The modulus of an element a+jb GI("p"), where "p" = 4"k" + 3, is
:
In the continuum, such expression reduces to the usual norm of a complex number, since both, a2+b2 and the square root operation, produce only nonnegative numbers.
* The group of modulus of GI("p"), denoted by Gr, is the subgroup of order ("p" − 1)/2 of GI("p").
* The group of phases of GI("p"), denoted by G, is the subgroup of order 2("p" + 1) of GI("p").An expression for the phase as a function of a and b can be found by normalising the element (that is, calculating ), and then solving the
discrete logarithm problem of /"r" in the base over GF("p"). Thus, the conversion rectangular to polar form is possible.The similarity with the trigonometry over the field of real numbers is now evident: the modulus belongs to GF("p") (the modulus is a real number) and is a quadratic residue (a positive number), and the exponential component ) has modulus one and belongs to GI("p") (e also has modulus one and belongs to the complex field ).
The "Z" plane in a Galois field
The complex "Z" plane (
Argand diagram ) in GF("p") can be constructed from the supra-unimodular set of GI("p"):* The supra-unimodular set of GI("p"), denoted Gs, is the set of elements ζ = ("a" + "jb") ∈ GI("p"), such that ("a"2 + "b"2) −1 (mod "p").
* The structures,*>, is a cyclic group of order 2("p" + 1), called the supra-unimodular group of GI("p"). The elements ζ = "a" + "jb" of the supra-unimodular group "G""s" satisfy ("a"2 + "b"2)21 (mod "p") and all have modulus 1. "G""s" is precisely the group of phases .
* If "p" is a
Mersenne prime ("p" = 2"n" − 1, "n" > 2), the elements ζ = "a" + "jb" such that "a"2 + "b"2 −1 (mod "p") are the generators of Gs.Examples
* Let "p" = 31, a Mersenne prime, and ζ = 6 + "j"16. Then
Wikimedia Foundation. 2010.