r/learnmath • New User • 13h ago

Primitive nth roots of unity.

I'm pretty much a newbie in math (undergraduate student) and I'm struggling a lot with the concept of the primitive nth roots of unity. I've been reading the material they gave us for class but the teacher didn't even explain it. I haven't been able to find something that explains it clearly. I asked AI and some friends but i seem to get more confused.

I understand that a primitive root is like you grab a number, say -i, and elevate it to the power of 1, and then 2, and so on until you end up getting 1. So for -i it took 4 times so it's a primitive n-th root of order 4. Then in my book I have a demonstration that for a certain order n, there are as many primitive roots of that order as there are numbers that are coprimes with n and <n (which i did not understand lol).

Can somebody link a resource when this is explained in more simple terms or maybe a video or something? Or explain it to me if you can? Please.

4 Upvotes

12 comments sorted by

•

u/AutoModerator 13h ago

ChatGPT and other large language models are not designed for calculation and will frequently be /r/confidentlyincorrect in answering questions about mathematics; even if you subscribe to ChatGPT Plus and use its Wolfram|Alpha plugin, it's much better to go to Wolfram|Alpha directly.

Even for more conceptual questions that don't require calculation, LLMs can lead you astray; they can also give you good ideas to investigate further, but you should never trust what an LLM tells you.

To people reading this thread: DO NOT DOWNVOTE just because the OP mentioned or used an LLM to ask a mathematical question.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/Uli_Minati Desmos 😚 13h ago edited 13h ago

First, you should remember a few key facts:

Roots are defined through multiplication. This means:

x  is a nth root of  y
        iff
     xⁿ  =  y

Multiplication of complex numbers is much easier with the polar form.

  z₁ = r₁ exp(i θ₁)
  z₂ = r₂ exp(i θ₂)

z₁z₂ = r₁r₂ exp(i (θ₁+θ₂))
"Multiply magnitudes, add polar angles"

This can be extrapolated to exponentiation of complex numbers.

(r exp(i θ))ⁿ  =  rⁿ exp(i θn)
"Multiply all n magnitudes, add all n polar angles"

And the inverse of that would be taking roots. Careful, we need the stipulation that 0≤θ<2π here! We will see why later on

ⁿ√(r exp(i θ))  =  ⁿ√r exp(i θ/n)
"nth root of magnitude, divide polar angle"

Polar form is periodic with period 2π.

exp(i 2π) = 1    Important!

z = r exp(i θ)
  = r exp(i θ) · 1
  = r exp(i θ) · exp(i 2π)
  = r exp(i θ + i 2π)
  = r exp(i (θ + 2π))
"You can freely add 2π to the polar angle"

Now let's try to find some nth roots of 1.

x  is a nth root of  1

xⁿ = 1
xⁿ = 1 exp(i 0)
x  = 1 exp(i 0/n)

xⁿ = 1
xⁿ = 1 exp(i 2π)
x  = 1 exp(i 2π/n)

xⁿ = 1
xⁿ = 1 exp(i 4π)
x  = 1 exp(i 4π/n)

xⁿ = 1
xⁿ = 1 exp(i 6π)
x  = 1 exp(i 6π/n)

...

And so on. Since we can write "1" in infinite different ways by just adding 2π over and over and over, we could expect to get infinite roots.

x = 1 exp(i 2π k/n)    for all integers k

But are they really all different? Consider a specific example, let's say n=3. For k=0 through 2, we get three different complex numbers:

x  =  1 exp(i 2π 0/3)  =  1
x  =  1 exp(i 2π 1/3)  =  cos(2π/3) + i sin(2π/3)
x  =  1 exp(i 2π 2/3)  =  cos(4π/3) + i sin(4π/3)

Now let's go k=3 and higher:

x  =  1 exp(i 2π 3/3)
   =  cos(6π/3) + i sin(6π/3)
   =  cos(2π) + i sin(2π)
   =  1 + 0i
   same as k=0

x  =  1 exp(i 2π 4/3)
   =  cos(8π/3) + i sin(8π/3)
   =  cos(2π + 2π/3) + i sin(2π + 2π/3)
   =  cos(2π/3) + i sin(2π/3)
   same as k=1

x  =  1 exp(i 2π 5/3)
   =  cos(10π/3) + i sin(10π/3)
   =  cos(2π + 4π/3) + i sin(2π + 4π/3)
   =  cos(4π/3) + i sin(4π/3)
   same as k=2

They start repeating! (This also happens for k<0.) But is this really a surprise?

If n=3, then for k≥3 you start getting mixed fractions k/n. This lets you split off whole amounts of 2π. Cosine and sine are both 2π-periodic, so these 2π can be removed. Only the fractional part of k/n matters: only 0/3, 1/3, 2/3. For n=5: only 0/5, 1/5, 2/5, 3/5, 4/5. (You can also do 1/5 through 5/5).

2

u/ProofFromTheBook New User 11h ago edited 8h ago

It's straightforward if you draw the unit circle in the complex plane and radii to it so that the circle is broken into n sectors or slices (I've put a picture here someone made for 12th roots of unity).

The number on the far right of the circles is 1, the top is i the left is -1.

Every number the radii touch on the edge of the circle are 12th roots of unity. But some of them are not primitive. Like ei2pi*2/12. Because this is 2 "notches" past 1, and there are 12 "notches" altogether, that means you could make jumps of 2 notches at a time (what happens when you raise it to a power) and it would only take 6 jumps to get back to 1 instead of 12 jumps. Same if we started 3 notches in, we could make 4 jumps of 3 notches to complete the 12 steps, so it wouldn't be a primitive root. But if we start somewhere that has no common factors with 12, like 1 or 5 or 7 or 11, then it will take 12 jumps and so those will be the primitive roots.

Sorry if this is jumbled -- wrote it on my phone -- hope it helps.

2

u/LongLiveTheDiego New User 13h ago

Consider e.g. -1. It is a 4th root of unity but not a primitive one because (-1)² = 1. That works precisely because 2 is a factor of 4.

In general consider ω = e2iπ / n (you may also find it being denoted as ξ or ζ in different textbooks), it turns out all nth roots of 1 are just the powers of ω and so they're all of the shape x = e2iπ * m/n, for n > m ≥ 0. Now consider what happens if m is coprime to n, and what happens if it isn't. If it's coprime to n, then raising x to any power less than n will not get you a whole number of 2iπ's in the exponent and so the result will not be 1, the first such instance is only possible for xn = e2iπ * m = 1.

If m is not coprime to n, then we can reduce that fraction m/n to p/q with q < n, then xq = e2iπ * p = 1 and so x can't be a primitive nth root, it's at best a primitive qth root.

In that example with n=4 we have ω = i and so the two primitive 4th roots are i = i¹ and -i = i³, while 1 = i⁰ and -1 = i².

2

u/OutrageousPair2300 New User 7h ago

Others have explained how they work algebraically, but there's also a neat geometric way of finding them that's pretty satisfying.

If you draw lines connecting the roots of unity in the complex plane, you end up with the regular polygons. The third roots of unity are the coordinates of the vertices of an equilateral triangle, with one vertex at (1, 0) = 1 + 0c = 1. The fourth roots of unity make a square, the fifth roots a regular pentagon, etc. The vertices are all somewhere on the unit circle centered at (0, 0) = 0 + 0c = 0.

1

u/vendric New User 13h ago

Z is a root of unity if there is an n such that zn = 1. So for example 2 is not a root of unity.

Take i. We have i4 = 1 and no lower power of i is equal to 1. i, -1, -i, 1 is the full sequence.

But notice: every entry in that sequence is also a root of unity.

The sequence for 1 is just: 1

The sequence for -i is: -i, -1, i, 1

The sequence for -1 is: -1, 1

And the sequence for i is already written above.

Notice that the length of the sequences are all divisors of 4, and that -i = i3 is the only sequence that generates the entire original sequence. That's because 3 and 4 have no divisors in common other than 1.

1

u/ruidh Actuary 13h ago

Consider the set of the nth roots for a given n and visualize them as vectors from the origin. 1: They lie on the unit circle and 2: they all occur regularly Round the circle at equal angles.

So, for example, the 4th roots are 1, i, -1 and -i. Now, consider them as representing rotations around the origin. Take the unit vector and multiply it by i 4 times. That's the same as 4 counterclockwise rotations by 90°. They take you back to the unit circle. Next, multiply by -1 4 times. That rotates twice around the origin again ending at the unit vector. The same for -i. It goes around 3 times.

1

u/doiwantacookie New User 11h ago

Truly DA is a really good resource to read about primitive roots

1

u/AlterEgo5695 New User 11h ago

The idea of "primitive root" is much deeper than this -- it comes from cyclic groups in abstract algebra. Roots of unity in "C" are just an example/application of the concept.

A group has a "primitive root" iff we may represent every element in that group as an integer power of the primitive root. To understand why some roots of unity are primitive while others are not, you need some basic modular arithmetic up to Bézout's Identity. Are you comfortable with that?

1

u/Illustrious_Try478 New User 7h ago edited 7h ago

I'm going to approach this slightly differently, with a little elementary algebra. But it does get into something a little advanced.

An Nth root of unity is a root of x^n-1 = 0. It's a primitive root if it's not also an Mth root of unity for any m<n.

But x^n-1 can be factored for any n > 1.

For example:

  • x^2-1 = (x-1)(x+1).
  • x^3-1 = (x-1)(x^2+x+1).

The second one has an analogue for any odd n >1. You can always factor out an x-1.

What's more, for any prime factor of n (i.e. p s.t. n=pq), you can reimagine y=x^p, come up with a qth degree polynomial y^q-1 and factor that.

Substituting the definition of y back into the original equation, you get two polynomials in x: one of degree p , and one of degree n-p.

Each factorization pulls a smaller-degree polynomial out of the original equation. The roots of those polynomials are also nth roots of unity, but also for a smaller number than our n.

That is, they're not primitive nth roots of unity.

But eventually, the factors of n are used up, and this leaves a big polynomial (of degree φ(n)) that you can't factor any more (it's irreducible).

The roots of this polynomial (the nth cyclotomic polynomial) captures the φ(n) leftover (primitive) nth roots of unity.

(φ(n) is Euler's totient function that gives us the count of numbers that don't share a factor with (i.e. are relatively prime to) n).

1

u/MathMaddam New User 13h ago

The primitive roots of unity of order n are directly connected to the generators of the cyclic group Z/nZ, as all cyclic groups of order n are isomorphic (look at what the exponents do when you multiply powers of e.g. i). a is a generator of this group if a*k has all n different remainders mod n for k going from 0 to n-1.

4

u/InternetSandman New User 11h ago

Y'know I don't think explaining it in terms of group theory is gonna help a newbie in math understand this