# 平方（代数）

在代数中，一个数或表达式的**平方**是它自身与自身相乘的结果：\( x \) 的平方是 \( x^{2} \)，读作“x 的平方”。这个名称和上标 2 来自几何学，因为边长为 \( s \) 的正方形面积为 \( s^{2} \)，即一条边与自身相乘的积。<sup>[1](https://www.ece.gov.nt.ca/sites/ece/files/resources/asm_-_math_module_1_web.pdf)</sup> 平方是以 2 为指数的幂运算，在指数序列中位列第二，其后是立方（指数 3）及更高次幂。<sup>[1](https://www.ece.gov.nt.ca/sites/ece/files/resources/asm_-_math_module_1_web.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 要把一个数平方，就将它与自身相乘；\( x \) 的平方写作 \( x^{2} \)，小数字 2（指数）写在右上角。<sup>[1](https://www.ece.gov.nt.ca/sites/ece/files/resources/asm_-_math_module_1_web.pdf)</sup> |
| 符号 | 对任何实数而言，平方永远不会是负数：\( (3)^{2} = 9 \)，\( (-3)^{2} = 9 \)。<sup>[2](https://www.mathcentre.ac.uk/resources/leaflets/sigma/complex_numbers/sigma-complex1-2009-1.pdf)</sup> |
| 几何意义 | 边长为 \( s \) 的正方形面积是 \( s^{2} \)；边长为 \( s \) 的立方体体积是 \( s^{3} \)。<sup>[1](https://www.ece.gov.nt.ca/sites/ece/files/resources/asm_-_math_module_1_web.pdf)</sup> |
| 复数 | 没有实数的平方为负，这促成了虚数单位 \( i \) 的引入，其定义为 \( i^{2} = -1 \)。<sup>[2](https://www.mathcentre.ac.uk/resources/leaflets/sigma/complex_numbers/sigma-complex1-2009-1.pdf)</sup> |
| 术语 | 二次多项式方程被称为“二次的”（quadratic），源自拉丁语 *quadratum*（正方形），因为边长为 \( x \) 的正方形面积是 \( x^{2} \)。<sup>[3](https://mathworld.wolfram.com/Quadratic.html)</sup> |
| 历史记法 | 9 世纪的花拉子米（al-Khwarizmi）将平方称为 *māl*（“财产”），把平方数想象成一块土地的面积；到 15 世纪，伊斯兰数学家将其写作字母 mīm。<sup>[4](https://wi.kifa.st/en/Exponentiation)</sup> |

## 基本性质

平方就是普通的乘法，因此同样适用于整数、分数和小数：\( 4^{2} = 16 \)，\( (1/4)^{2} = 1/16 \)，\( 2.45^{2} = 6.0025 \)。<sup>[1](https://www.ece.gov.nt.ca/sites/ece/files/resources/asm_-_math_module_1_web.pdf)</sup> 其决定性的符号规则是负负得正，所以负数的平方为正：\( (-5) \times (-5) = +25 \)。<sup>[5](https://www.mathsisfun.com/algebra/exponents-squaring-negative.html)</sup> 因此，任何实数的平方都是零或正数，且仅在零处等于零。<sup>[2](https://www.mathcentre.ac.uk/resources/leaflets/sigma/complex_numbers/sigma-complex1-2009-1.pdf)</sup>

这种单向的符号特性，正是平方在实数上按通常意义不可逆的原因。3 和 −3 的平方都是 9，所以方程 \( x^{2} = 9 \) 有两个实数解。相比之下，对平方根再平方则还原为原值，因为对非负的 \( a \) 有 \( (\sqrt{a})^{2} = a \)。<sup>[6](https://www.mathsisfun.org/algebra/square-root)</sup>

在复数范围内，符号限制消失了。由于 \( i^{2} = -1 \)，复数可以有负的平方，方程 \( x^{2} = -3 \) 便有了解 \( \pm i\sqrt{3} \)。<sup>[2](https://www.mathcentre.ac.uk/resources/leaflets/sigma/complex_numbers/sigma-complex1-2009-1.pdf)</sup>

## 方程与图形中的平方

平方运算界定了何谓二次。由于 *quadratum* 在拉丁语中意为正方形，而边长为 \( x \) 的正方形面积为 \( x^{2} \)，次数为二的多项式方程便是二次（“类方形”）方程；同理，次数为三的方程称为三次方程，次数为四的方程称为四次方程。<sup>[3](https://mathworld.wolfram.com/Quadratic.html)</sup>

平方函数 \( f(x) = x^{2} \) 是二次函数族的母函数。其图像是一条顶点在原点的 U 形抛物线，而每个二次函数 \( f(x) = ax^{2} + bx + c \) 的图像都是抛物线，当 \( a > 0 \) 时开口向上，当 \( a < 0 \) 时开口向下。<sup>[7](https://openstax.org/books/college-algebra-2e/pages/5-1-quadratic-functions)</sup> 通过配方法将二次函数改写为 \( f(x) = a(x-h)^{2} + k \) 的形式，可直接显示顶点 \( (h, k) \)，并表明其图像是 \( y = x^{2} \) 的平移与伸缩。<sup>[7](https://openstax.org/books/college-algebra-2e/pages/5-1-quadratic-functions)</sup><sup> • </sup><sup>[8](https://openstax.org/books/intermediate-algebra-2e/pages/9-7-graph-quadratic-functions-using-transformations)</sup> 平方也出现在距离公式中，以及在推导抛物线的标准方程时：将 \( \sqrt{x^{2} + (y-p)^{2}} = y + p \) 两边平方并化简，得到 \( x^{2} = 4py \)。<sup>[9](https://openstax.org/books/college-algebra-2e/pages/8-3-the-parabola)</sup>

## 平方为何在测量与统计中占主导地位

许多量是将平方值而非绝对值组合起来的。数 \( x_{1}, \ldots, x_{n} \) 的均方根是其平方均值的平方根，\[ x_{\mathrm{RMS}} = \sqrt{\frac{x_{1}^{2} + x_{2}^{2} + \cdots + x_{n}^{2}}{n}}, \] 它是幂平均的特例 \( M_{2} \)。<sup>[10](https://mathworld.wolfram.com/Root-Mean-Square.html)</sup> 在统计学中，方差由各值与均值的偏差平方计算得出：总体为 \( \sum (x_{i} - m)^{2} / N \)，样本为 \( \sum (x_{i} - \bar{x})^{2} / (N-1) \)，标准差则通过最后开平方得到。<sup>[11](https://esports.bluefield.edu/textbooks-048/college-algebra-quadratic-equations-in-statistics.pdf)</sup>

在此类情形中，有两个实际理由使平方优于绝对值。

## 计算：反复平方法

平方也是快速幂运算的引擎。平方-乘法算法，又称二进制幂或反复平方法，通过反复平方一个中间结果，并在指数的二进制位需要时将其乘入答案来计算幂。<sup>[12](https://arxiv.org/abs/2606.00958)</sup> 它是实现包括 RSA、迪菲—赫尔曼、埃尔加马勒和椭圆曲线协议在内的公钥密码系统的关键要素，并在素性检验以及肖尔的因式分解与离散对数量子算法中发挥关键作用。<sup>[12](https://arxiv.org/abs/2606.00958)</sup> 已知最早关于该方法的工作出现在约公元前 200 年古印度平伽拉（Pingala）的韵律学研究中，其中包含了利用正整数二进制表示的概念基础；欧几里迪西（al-Uqlidisi）和比鲁尼（al-Biruni）将逐次平方用于具体计算，而贾姆希德·卡西（Jamshid al-Kashi）15 世纪的《Miftah al-Hisab》明确将该算法表述为一般方法，并声称这是他自己的创新。<sup>[12](https://arxiv.org/abs/2606.00958)</sup>

## 术语与记法的历史

平方与几何之间的联系由来已久。欧几里得（Euclid）以几何方式思考，对他而言“平方”是几何正方形，而非一个数自乘；他说两个量“幂可通约”是指它们的平方可通约。1570 年欧几里得著作的首位英文译者亨利·比林斯利（Henry Billingsley）给出了精确的定义：“一条线的幂就是同一条线的平方。”<sup>[13](https://mathshistory.st-andrews.ac.uk/Extras/Mathematical_notation/)</sup> 在这一传统中，*幂*（power）一词最初用于指平方，后来才扩展到更高指数；塞缪尔·杰克（Samuel Jeake）1696 年的《算术》（写于 1674 年）用“指数”（indices）表示幂次，用“幂”（powers）表示大于 2 的指数。<sup>[13](https://mathshistory.st-andrews.ac.uk/Extras/Mathematical_notation/)</sup>

在中世纪伊斯兰代数中，9 世纪的花拉子米用 *māl*（“财产”或“所有物”）表示平方，因为那个时代的数学家将平方数视为面积的描绘，尤其是土地面积，并用 *Kaʿbah*（“立方体”）表示立方；后来的伊斯兰数学家将这些表示为字母 mīm 和 kāf，15 世纪阿布·哈桑·伊本·阿里·卡拉萨迪（Abu'l-Hasan ibn Ali al-Qalasadi）的著作中可见此用法。<sup>[4](https://wi.kifa.st/en/Exponentiation)</sup> 在欧洲，尼古拉·舒凯（Nicolas Chuquet）15 世纪晚期的《Triparty》用 \( 5, 5^{1}, 5^{2}, 5^{3} \) 表示现代记法中的 \( 5, 5x, 5x^{2}, 5x^{3} \)，尽管该著作直到 1880 年才出版；西蒙·斯蒂文（Simon Stevin）1594 年的《L'Arithmétique》使用了一种介于 cossic 记法（用不同符号表示未知数、其平方和其立方）与笛卡尔（Descartes）开创的指数记法之间的幂记法。<sup>[13](https://mathshistory.st-andrews.ac.uk/Extras/Mathematical_notation/)</sup><sup> • </sup><sup>[14](https://www.math.stonybrook.edu/~tony/whatsnew/oct20/square.html)</sup>

## References

1. [Bases, Exponents and Square Roots, NWT Foundations Math Module 1](https://www.ece.gov.nt.ca/sites/ece/files/resources/asm_-_math_module_1_web.pdf)
2. [Complex Numbers, MathCentre sigma leaflet](https://www.mathcentre.ac.uk/resources/leaflets/sigma/complex_numbers/sigma-complex1-2009-1.pdf)
3. [Quadratic, Wolfram MathWorld](https://mathworld.wolfram.com/Quadratic.html)
4. [Exponentiation, wi.kifa.st](https://wi.kifa.st/en/Exponentiation)
5. [Exponents of Negative Numbers, Math is Fun](https://www.mathsisfun.com/algebra/exponents-squaring-negative.html)
6. [Squares and Square Roots in Algebra, Math is Fun](https://www.mathsisfun.org/algebra/square-root)
7. [5.1 Quadratic Functions, College Algebra 2e, OpenStax](https://openstax.org/books/college-algebra-2e/pages/5-1-quadratic-functions)
8. [9.7 Graph Quadratic Functions Using Transformations, Intermediate Algebra 2e, OpenStax](https://openstax.org/books/intermediate-algebra-2e/pages/9-7-graph-quadratic-functions-using-transformations)
9. [8.3 The Parabola, College Algebra 2e, OpenStax](https://openstax.org/books/college-algebra-2e/pages/8-3-the-parabola)
10. [Root-Mean-Square, Wolfram MathWorld](https://mathworld.wolfram.com/Root-Mean-Square.html)
11. [College Algebra Quadratic Equations in Statistics](https://esports.bluefield.edu/textbooks-048/college-algebra-quadratic-equations-in-statistics.pdf)
12. [On the History of the Square and Multiply Algorithm, arXiv](https://arxiv.org/abs/2606.00958)
13. [Mathematical Notation, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Extras/Mathematical_notation/)
14. [Stevin's notation for powers, Stony Brook Mathematics](https://www.math.stonybrook.edu/~tony/whatsnew/oct20/square.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Elementary and formal arithmetic › Elementary arithmetic operations

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/square-algebra

English original: https://www.edgepedia.org/square-algebra
