关于单位复根的笔记
Notes on the Complex Roots of Unity

原始链接: https://eli.thegreenplace.net/2026/notes-on-the-complex-roots-of-unity/

单位根是某正整数次幂等于 1 的复数。对于给定的 n,n 次单位根是 e^{2πik/n}(k=0,...,n−1),是单位圆上等间距的点。乘以一个单位根可绕圆旋转,连接单位根形成正多边形。共轭对是互逆单位根。n 次单位根在乘法下构成循环阿贝尔群,由指数与 n 互质的本原根生成。所有 n 次单位根之和为零;单位根幂之和在 n 整除指数时为 n,否则为零。单位根的幂作为向量相互正交,构成 C^n 的一组基,是离散傅里叶变换的基础。

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 关于单位复根的笔记 (thegreenplace.net) 7 分,由 sks_15 2小时前 隐藏 | 过去 | 收藏 | 讨论 帮助 考虑申请 YC 的 2027 年冬季批次!申请开放至 11 月 2 日。 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文
Tags Math

One of the most wonderful aspects of math is how deep we can get by studying seemingly trivial questions. Consider the roots of unity, where "unity" simply means the number 1.

Basics: roots of unity for real numbers

Studying the roots of unity usually begins in middle school: what is the square root of 1? Equivalently, what are the solutions to this equation?

Well, there are two answers: 1 and -1.

Similarly, we can ask the question for higher roots; the third roots are solutions to the equation:

And so on. When we’re only dealing with real numbers, that’s pretty much the whole story. For odd-degree roots of 1, the only answer is 1; for even-degree roots of 1, the answer is either 1 or -1.

When we extend our domain to the complex numbers, things become much more interesting.

Basics: roots of unity for complex numbers

By the formal definition, a root of unity is any complex number that yields 1 when raised to a positive integer power .

Rather than looking at all the possible roots of 1, it’s often more useful to discuss the roots for a specific given : complex numbers such that .

For example, let’s consider . We’ve already seen that the roots are 1 and -1; these are complex numbers with a zero imaginary part.

How about ? There are four roots: 1, -1, and . For , the three roots are 1, and . It’s easy enough to check that these indeed give 1 when raised to the third power, but how do we calculate them in the first place?

Calculating complex roots using polar coordinates

A complex number with magnitude 1 can be represented in polar coordinates as . If we raise to the -th power, we get:

The magnitude of is still 1, which is essential if we want to be a -th root of unity. Let’s equate to 1:

To find the solutions to this equation, we’ll first want to represent 1 itself in polar coordinates. Let’s use another variable for the angle:

What is the value of ? Thinking about the unit circle, is any integer multiple of - which we’ll express as for :

Back to :

Or:

So the -th roots of unity are :

Some basic examples

Let’s begin with . We have the following roots:

For :

As expected. It should be similarly simple to calculate the roots for ; give it a try.

Roots of unity and rotations on the unit circle

What happens when we multiply some root of unity by itself? Since the magnitude of the root is 1, multiplying by it is akin to a rotation along the unit circle by the root’s angle. For example, consider from the 3rd roots of unity:

Multiply by itself:

If the angle of is , the angle of is . Let’s multiply by once more:

The result is 1, as expected (after all, is a 3rd root of unity).

This visualization shows how roots of unity appear on the unit circle and how raising them to powers rotates the roots until finally :

Select first; this shows the -th roots as blue dots on the unit circle. Now you can click any of the roots, and see its powers in the lower plot - drag the slidebar to see the rotations. If you spend some time playing with this, you’ll notice that some roots - for example when - go back to 1 when raised to a smaller power than . We’ll revisit this outcome when we discuss the group-theoretic aspects of roots of unity.

Geometry: roots of unity and regular polygons

As we’ve seen, the roots of unity are evenly spaced along the unit circle on the complex plane. If we connect the roots with straight lines to their immediate neighbors, we’ll notice something interesting:

Adjacent nth roots of unity joined to form a regular polygon on the unit circle.