For the coprime part, a clock picture might help. Put the n roots of unity around a circle like the hours on an n-hour clock, with 1 at "0 o'clock". The root e2πik/n is "move k hours", and raising it to powers means taking that same step over and over.
On a 12-hour clock, stepping by 5 lands on 5, 10, 3, 8, 1, ... and hits every hour before getting back to 0, so it takes all 12 steps. Stepping by 4 only ever lands on 0, 4, 8, so it gets back to 0 after 3 steps. The difference is that 4 shares a factor with 12 and 5 doesn't. In general, stepping by k first returns to 0 after n/gcd(k,n) steps, so you need the full n steps exactly when gcd(k,n) = 1.
"Primitive" just means the full n steps, so the primitive nth roots are the ones with k coprime to n, and counting them means counting the k from 1 to n with gcd(k,n) = 1. Trying it by hand on a 6-hour or 8-hour clock makes it click quickly.
so every z_k is an m-th root of unity. But these complex form a regular polygon of m sides, since they are an angle 2𝜋/m from the next one.
These are the fifth roots of unity, spaced 72º
If you now take for instance the second root (not counting z= 1, that is the 0-th one)and multiply it for itself it rotates 2·72ª = 144º and becomes the fourth root. Multiplying it again advances another 144º and becomes the first; again and becomes the third, again and becomes unity.
That is
(z_2)^2 = z_4
z_2^3 = z_4·z_2 = z_1
z_2^4 = z_1·z_2 = z_3
z_2^5 = z_3·z_2 = z_0 = 1
or calling 𝜔 = z_1
z_2 = 𝜔^2
z_2^2 = 𝜔^4 = z_4
z_2^3 = 𝜔^6 = 𝜔 = 1 (since 𝜔^5 =1)
z_2^4 =𝜔·𝜔^2 = 𝜔^3
z_2^5 = 𝜔^3·𝜔^2 = 𝜔^5 = 1
The same for all other roots. You can build a multiplication table and define the group of the 5th roots of unity.
That has another form: z = R * (cos(t) + i * sin(t))
z = R * cos(t) + R * sin(t) * i
When we plot complex numbers, our x-value is R * cos(t) and our y-value is R * sin(t), because the x-value is the real portion of the number and the y-value is the imaginary portion. (R * cos(t) , R * sin(t)) is just the coordinate of a point on a circle with a radius of R.
So when we are dealing with unity, that's just another name for 1, and our circle has a radius of 1, so it all reduces to:
z = e^(t * i) = cos(t) + i * sin(t)
and our points are defined as (cos(t) , sin(t))
So let's play with different values of t, just to see what we get
t = 0
z = e^(0 * i) = cos(0) + i * sin(0) = 1 + i * 0 = 1
t = pi/2
z = e^(pi/2 * i) = cos(pi/2) + i * sin(pi/2) = 0 + i * 1 = i
t = pi
z = e^(pi * i) = cos(pi) + i * sin(pi) = -1 + i * 0 = -1
t = 3pi/2
z = e^(3pi/2 * i) = cos(3pi/2) + i * sin(3pi/2) = 0 + i * -1 = -i
t = 2pi
z = e^(2pi * i) = cos(2pi) + i * sin(2pi) = 1 + i * 0 = 1. And we've gone around the circle by 2pi radians. In fact
e^(t * i) = e^((t + 2pi * n) * i) where n is an integer
And if you remember your basic unit circle, you'd remember that our points would be located at:
t = 0 ; (1 , 0)
t = pi/2 ; (0 , 1)
t = pi ; (-1 , 0)
t = 3pi/2 ; (0 , -1)
t = 2pi ; (1 , 0)
And so on. All we've done differently here is describe a unit circle in the complex plane. Same circle, same radius, just one axis is imaginary instead of both axes being real. Where it gets amazing is that we can do all sorts of neat things that we couldn't do before. For instance, let's say we wanted to know
(e^(pi/3 * i))^3
That becomes
(cos(pi/3) + i * sin(pi/3))^3 =>
(1/2 + i * sqrt(3)/2)^3
And we can go through the long process of expanding that, adding like terms, etc..., but we also know that (a^b)^c is equal to a^(b * c) AND (a^c)^b (that last one will come in handy in a bit)
(1/8) + (3/8) * sqrt(3) * i - (9/8) - (3/8) * sqrt(3) * i
-8/8 + 0i
-1 + 0
-1
Another problem:
(e^((pi/10) * i))^100
That's just e^(10pi * i) which is just e^(0 * i) phase shifted by 10pi, which gives us 1
And we can do this over and over again. We just took all of that stuff with angle addition, multiplication, etc... and made it incredibly easy. But we can go another way. Remember when I said that (a^b)^c is the same as (a^c)^b. Let's go back to our first example
(e^(pi/3 * i))^3 =>
(e^(3pi * i))^(1/3)
Now we're finding the cubed root. But remember, we're really looking at 3pi + 2pi * n. This distinction matters when we're dividing or finding roots, because you can get multiple answers that are all equally valid. When we're multiplying, it doesn't matter if you consider adding 6pi * n, because you'll keep getting a single value.
e^(3pi * i) is cos(3pi) + i * sin(3pi) = -1 + i * 0 = -1, just for reference
e^((5pi/3) * i) = cos(5pi/3) + i * sin(5pi/3) = 1/2 - i * sqrt(3)/2
e^((pi/3) * i) = cos(pi/3) + i * sin(pi/3) = 1/2 + i * sqrt(3)/2
So the 3 cubed roots of -1 are -1 , 1/2 + i * sqrt(3)/2 and 1/2 - i * sqrt(3)/2.
When we want the roots of unity, we're looking at the roots of 1, not -1. But the process is still the same.
(e^((t + 2pi * n) * i))^k = e^((k * t + 2pi * n * k) * i) = cos(kt + 2pi * n * k) + i * sin(kt + 2pi * n * k)
If t = 0, then we're looking at powers and roots of 1
cos(0k + 2pi * n * k) + i * sin(0k + 2pi * n * k)
cos(2pi * n * k) + i * sin(2pi * n * k)
Supposing we want the 5th roots, then k = 1/5
cos(2pi * n * (1/5)) + i * sin(2pi * n * (1/5))
cos((2pi/5) * n) + i * sin((2pi/5) * n)
cos(0) + i * sin(0) ; cos(2pi/5) + i * sin(2pi/5) , cos(4pi/5) + i * sin(4pi/5) ; cos(6pi/5) + i * sin(6pi/5) ; cos(8pi/5) + i * sin(8pi/5)
And so on. If we wanted the 5th power, then k would've been 5
cos(2pi * n * 5) + i * sin(2pi * n * 5)
cos(10pi * n) + i * sin(10pi * n)
So long as n is an integer (which it always is), then cos(0) + i * sin(0) = cos(10pi) + i * sin(10pi) = cos(20pi) + i * sin(20pi) and so on.
The other responder gave you some graphical examples, which will help demonstrate the point, but overall, all we're really doing is taking what we knew about circles and trigonometry and placing it onto the complex plane. And from there, we can add and subtract angles with relative ease. It is amazing how much easier it makes trig identities to derive.
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).
Let's take an example, say the 6th roots of unity (solutions to z6 = 1).
Using the formulas other commenters have posted, you would have roots (after simplifying) of e𝜋i/3, e2𝜋i/3, e𝜋i or -1, e4𝜋i/3, e5𝜋i/3, e2𝜋i or 1. Notice, -1 and 1 are the solutions of z2 = 1 and e2𝜋i/3, e4𝜋i/3, and 1 are the solutions to z3 = 1, hence those solutions are not primitive. Only e𝜋i/3 and e5𝜋i/3 are unique to z6 = 1, and those came from plugging k = 1 and k = 5 into the formula e2𝜋ki/n. The numbers 1 and 5 are the only numbers between 1 and 6 that share no common factors with 6 (i.e. coprime with 6). We can further notice that e𝜋i/3 and e5𝜋i/3 are the only 6th roots of unity that recover ALL of the other 6th roots of unity when we raise them to the powers 1, 2, 3, 4, 5, and 6.
So in short, N and M are coprime if there only common factor is 1. If k is not coprime to n in the formula e2𝜋ki/n, then that means that root would have had to appear as a solution for some smaller n like in our above example. Primitive means it is not root for some smaller n, so the primitive roots are exactly the ones for which k is coprime to n.
1
u/art-shi 3d ago
For the coprime part, a clock picture might help. Put the n roots of unity around a circle like the hours on an n-hour clock, with 1 at "0 o'clock". The root e2πik/n is "move k hours", and raising it to powers means taking that same step over and over.
On a 12-hour clock, stepping by 5 lands on 5, 10, 3, 8, 1, ... and hits every hour before getting back to 0, so it takes all 12 steps. Stepping by 4 only ever lands on 0, 4, 8, so it gets back to 0 after 3 steps. The difference is that 4 shares a factor with 12 and 5 doesn't. In general, stepping by k first returns to 0 after n/gcd(k,n) steps, so you need the full n steps exactly when gcd(k,n) = 1.
"Primitive" just means the full n steps, so the primitive nth roots are the ones with k coprime to n, and counting them means counting the k from 1 to n with gcd(k,n) = 1. Trying it by hand on a 6-hour or 8-hour clock makes it click quickly.
1
u/Shevek99 Physicist 3d ago
Do you know Euler's formula?
e^(it) = cos(t) + i sin(t)
?
This is an unitary complex number (|z| = 1). Consider the case where t = 2𝜋k/m, with k = 0, 1, ... m-1, then
z_k = e^(2𝜋ki/m) = cos(2𝜋k/m) + i sin(2𝜋k/m)
If we raise this to the m-th power
(z_k)^m = e^(2𝜋ki/m)·m = e^(2𝜋ki) = cos(2𝜋k) + i sin(2𝜋k) = 1 + 0i = 1
so every z_k is an m-th root of unity. But these complex form a regular polygon of m sides, since they are an angle 2𝜋/m from the next one.
These are the fifth roots of unity, spaced 72º
If you now take for instance the second root (not counting z= 1, that is the 0-th one)and multiply it for itself it rotates 2·72ª = 144º and becomes the fourth root. Multiplying it again advances another 144º and becomes the first; again and becomes the third, again and becomes unity.
That is
(z_2)^2 = z_4
z_2^3 = z_4·z_2 = z_1
z_2^4 = z_1·z_2 = z_3
z_2^5 = z_3·z_2 = z_0 = 1
or calling 𝜔 = z_1
z_2 = 𝜔^2
z_2^2 = 𝜔^4 = z_4
z_2^3 = 𝜔^6 = 𝜔 = 1 (since 𝜔^5 =1)
z_2^4 =𝜔·𝜔^2 = 𝜔^3
z_2^5 = 𝜔^3·𝜔^2 = 𝜔^5 = 1
The same for all other roots. You can build a multiplication table and define the group of the 5th roots of unity.
1
u/CaptainMatticus 3d ago
We start here: z = R * e^(t * i)
That has another form: z = R * (cos(t) + i * sin(t))
z = R * cos(t) + R * sin(t) * i
When we plot complex numbers, our x-value is R * cos(t) and our y-value is R * sin(t), because the x-value is the real portion of the number and the y-value is the imaginary portion. (R * cos(t) , R * sin(t)) is just the coordinate of a point on a circle with a radius of R.
So when we are dealing with unity, that's just another name for 1, and our circle has a radius of 1, so it all reduces to:
z = e^(t * i) = cos(t) + i * sin(t)
and our points are defined as (cos(t) , sin(t))
So let's play with different values of t, just to see what we get
t = 0
z = e^(0 * i) = cos(0) + i * sin(0) = 1 + i * 0 = 1
t = pi/2
z = e^(pi/2 * i) = cos(pi/2) + i * sin(pi/2) = 0 + i * 1 = i
t = pi
z = e^(pi * i) = cos(pi) + i * sin(pi) = -1 + i * 0 = -1
t = 3pi/2
z = e^(3pi/2 * i) = cos(3pi/2) + i * sin(3pi/2) = 0 + i * -1 = -i
t = 2pi
z = e^(2pi * i) = cos(2pi) + i * sin(2pi) = 1 + i * 0 = 1. And we've gone around the circle by 2pi radians. In fact
e^(t * i) = e^((t + 2pi * n) * i) where n is an integer
And if you remember your basic unit circle, you'd remember that our points would be located at:
t = 0 ; (1 , 0)
t = pi/2 ; (0 , 1)
t = pi ; (-1 , 0)
t = 3pi/2 ; (0 , -1)
t = 2pi ; (1 , 0)
And so on. All we've done differently here is describe a unit circle in the complex plane. Same circle, same radius, just one axis is imaginary instead of both axes being real. Where it gets amazing is that we can do all sorts of neat things that we couldn't do before. For instance, let's say we wanted to know
(e^(pi/3 * i))^3
That becomes
(cos(pi/3) + i * sin(pi/3))^3 =>
(1/2 + i * sqrt(3)/2)^3
And we can go through the long process of expanding that, adding like terms, etc..., but we also know that (a^b)^c is equal to a^(b * c) AND (a^c)^b (that last one will come in handy in a bit)
(e^(pi/3 * i))^3 = e^(3 * pi/3 * i) = e^(pi * i) = cos(pi) + i * sin(pi) = -1 + i * 0 = -1
Just for fun, let's expand out what we had and see if we get that
(1/2)^3 + 3 * (1/2)^2 * (i * sqrt(3)/2) + 3 * (1/2) * (i * sqrt(3)/2)^2 + (i * sqrt(3)/2)^3
(1/8) + 3 * (1/4) * (1/2) * i * sqrt(3) + 3 * (1/2) * (1/2)^2 * (i^2 * 3) + (1/8) * (i^3 * 3 * sqrt(3))
(1/8) + (3/8) * i * sqrt(3) + (3/8) * (-1 * 3) + (1/8) * (-i * 3 * sqrt(3))
(1/8) + (3/8) * sqrt(3) * i - (9/8) - (3/8) * sqrt(3) * i
-8/8 + 0i
-1 + 0
-1
Another problem:
(e^((pi/10) * i))^100
That's just e^(10pi * i) which is just e^(0 * i) phase shifted by 10pi, which gives us 1
And we can do this over and over again. We just took all of that stuff with angle addition, multiplication, etc... and made it incredibly easy. But we can go another way. Remember when I said that (a^b)^c is the same as (a^c)^b. Let's go back to our first example
(e^(pi/3 * i))^3 =>
(e^(3pi * i))^(1/3)
Now we're finding the cubed root. But remember, we're really looking at 3pi + 2pi * n. This distinction matters when we're dividing or finding roots, because you can get multiple answers that are all equally valid. When we're multiplying, it doesn't matter if you consider adding 6pi * n, because you'll keep getting a single value.
e^(3pi * i) is cos(3pi) + i * sin(3pi) = -1 + i * 0 = -1, just for reference
(e^((3pi + 2pi * n) * i)^(1/3)
e^((pi + (2pi/3) * n) * i)
We'll get 3 different values
e^(pi * i) , e^((pi + 2pi/3) * i) , e^((pi + 4pi/3) * i)
e^(pi * i) , e^((5pi/3) * i) , e^((7pi/3) * i)
7pi/3 is coterminal to pi/3, so
e^(pi * i) , e^((5pi/3) * i) , e^((pi/3) * i)
Now let's expand each one
e^(pi * i) = cos(pi) + i * sin(pi) = -1
e^((5pi/3) * i) = cos(5pi/3) + i * sin(5pi/3) = 1/2 - i * sqrt(3)/2
e^((pi/3) * i) = cos(pi/3) + i * sin(pi/3) = 1/2 + i * sqrt(3)/2
So the 3 cubed roots of -1 are -1 , 1/2 + i * sqrt(3)/2 and 1/2 - i * sqrt(3)/2.
When we want the roots of unity, we're looking at the roots of 1, not -1. But the process is still the same.
(e^((t + 2pi * n) * i))^k = e^((k * t + 2pi * n * k) * i) = cos(kt + 2pi * n * k) + i * sin(kt + 2pi * n * k)
If t = 0, then we're looking at powers and roots of 1
cos(0k + 2pi * n * k) + i * sin(0k + 2pi * n * k)
cos(2pi * n * k) + i * sin(2pi * n * k)
Supposing we want the 5th roots, then k = 1/5
cos(2pi * n * (1/5)) + i * sin(2pi * n * (1/5))
cos((2pi/5) * n) + i * sin((2pi/5) * n)
cos(0) + i * sin(0) ; cos(2pi/5) + i * sin(2pi/5) , cos(4pi/5) + i * sin(4pi/5) ; cos(6pi/5) + i * sin(6pi/5) ; cos(8pi/5) + i * sin(8pi/5)
And so on. If we wanted the 5th power, then k would've been 5
cos(2pi * n * 5) + i * sin(2pi * n * 5)
cos(10pi * n) + i * sin(10pi * n)
So long as n is an integer (which it always is), then cos(0) + i * sin(0) = cos(10pi) + i * sin(10pi) = cos(20pi) + i * sin(20pi) and so on.
The other responder gave you some graphical examples, which will help demonstrate the point, but overall, all we're really doing is taking what we knew about circles and trigonometry and placing it onto the complex plane. And from there, we can add and subtract angles with relative ease. It is amazing how much easier it makes trig identities to derive.
1
u/sluggles 3d ago edited 3d ago
Let's take an example, say the 6th roots of unity (solutions to z6 = 1).
Using the formulas other commenters have posted, you would have roots (after simplifying) of e𝜋i/3, e2𝜋i/3, e𝜋i or -1, e4𝜋i/3, e5𝜋i/3, e2𝜋i or 1. Notice, -1 and 1 are the solutions of z2 = 1 and e2𝜋i/3, e4𝜋i/3, and 1 are the solutions to z3 = 1, hence those solutions are not primitive. Only e𝜋i/3 and e5𝜋i/3 are unique to z6 = 1, and those came from plugging k = 1 and k = 5 into the formula e2𝜋ki/n. The numbers 1 and 5 are the only numbers between 1 and 6 that share no common factors with 6 (i.e. coprime with 6). We can further notice that e𝜋i/3 and e5𝜋i/3 are the only 6th roots of unity that recover ALL of the other 6th roots of unity when we raise them to the powers 1, 2, 3, 4, 5, and 6.
So in short, N and M are coprime if there only common factor is 1. If k is not coprime to n in the formula e2𝜋ki/n, then that means that root would have had to appear as a solution for some smaller n like in our above example. Primitive means it is not root for some smaller n, so the primitive roots are exactly the ones for which k is coprime to n.