# 一元二次方程

一元二次方程是含一个变量的二次多项式方程，标准形式写作 \( ax^{2} + bx + c = 0 \)，其中系数为实数且 \( a \neq 0 \)。它的解称为根，可以通过因式分解、平方根性质、配方法或求根公式求得；而公式根号下的表达式 \( b^{2} - 4ac \)——即判别式——在尚未开始求解之前就已决定了根的个数与类型。<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup>

| 关键事实 | 详情 |
|---|---|
| 标准形式 | \( ax^{2} + bx + c = 0 \)，其中 \( a \)、\( b \)、\( c \) 为实数且 \( a \neq 0 \)<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup> |
| 求根公式 | \( x = \dfrac{-b \pm \sqrt{b^{2} - 4ac}}{2a} \)；可求解任何标准形式的一元二次方程<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup> |
| 判别式 \( b^{2} - 4ac = 0 \) | 一个有理根（二重根）<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup> |
| 判别式 \( > 0 \) | 两个不同的实根；若系数为有理数，则只有当判别式是完全平方数时两根才为有理数，否则为无理数<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup><sup> • </sup><sup>[14](https://onemathematicalcat.org/Math/Precalculus_obj/quadraticFormula.htm)</sup> |
| 判别式 \( < 0 \) | 两个复根<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup> |
| 已知最古老的解 | 巴比伦泥板 BM 13901 约成于公元前 2000 至前 1800 年，其中所载一元二次方程的解法换算成现代记号后与求根公式颇为相似<sup>[2](https://webspace.science.uu.nl/~wepst101/wisl901/goodpractices/2010-Khwarizmi.pdf)</sup> |
| 最早的系统处理 | 花拉子米（Al-Khwarizmi）的《还原与对消计算概要》（*The Compendious Book on Calculation by Completion and Reduction*，الكتاب المختصر في حساب الجبر و المقابلة）约于 825 年问世，按类型逐一求解一元二次方程<sup>[2](https://webspace.science.uu.nl/~wepst101/wisl901/goodpractices/2010-Khwarizmi.pdf)</sup> |

## 求根公式及其推导

求根公式是对一般方程施行配方法推导出来的。将常数项移到右边并除以 \( a \)，得 \( x^{2} + \frac{b}{a}x = -\frac{c}{a} \)。两边加上 \( \left(\frac{b}{2a}\right)^{2} = \frac{b^{2}}{4a^{2}} \)，左边便成为完全平方式：

\[ \left(x + \frac{b}{2a}\right)^{2} = \frac{b^{2} - 4ac}{4a^{2}} \]

应用平方根性质——即若 \( x^{2} = k \) 且 \( k \) 为非零实数，则 \( x = \pm\sqrt{k} \)——再经整理即得公式<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup>

\[ x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a} \]

由于推导对任意系数均成立，该公式可求解一切标准形式的一元二次方程；不过代入数值时，尤其是负数，需加括号以免符号出错。<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup>

## 解法

**因式分解**在适用时是最快的方法。把多项式改写为乘积并利用零积性质，即可直接得到根；例如 \( 16t^{2} - 96t + 80 = 0 \) 两边除以 16 得 \( t^{2} - 6t + 5 = 0 \)，分解为 \( (t-1)(t-5) = 0 \)，于是 \( t = 1 \)、\( t = 5 \)。<sup>[3](https://pd1.hk/M01/IMfEA.pdf)</sup> 因式分解只在存在合适因式时可行，因此并不通用。<sup>[4](https://www.varsitytutors.com/practice/subjects/math-2/lessons/choosing-quadratic-solution-methods)</sup>

**平方根性质**适用于不含一次项的方程：隔离出 \( x^{2} \) 后开平方，取 \( \pm \) 号，如 \( x^{2} = 8 \) 得 \( x = \pm 2\sqrt{2} \)。<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup>

**配方法**在两边（必要时先除以 \( a \)）加上 \( \left(\frac{b}{2}\right)^{2} \)，使左边成为完全平方三项式，再应用平方根性质。对 \( x^{2} - 3x - 5 = 0 \)，两边加上 \( \frac{9}{4} \) 得 \( \left(x - \frac{3}{2}\right)^{2} = \frac{29}{4} \)，故 \( x = \frac{3 \pm \sqrt{29}}{2} \)。<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup> 此法永远可行，而且与因式分解或公式不同，它还能把方程改写为顶点式，从而直接看出相应抛物线的顶点。<sup>[4](https://www.varsitytutors.com/practice/subjects/math-2/lessons/choosing-quadratic-solution-methods)</sup>

**图像法**由抛物线 \( y = ax^{2} + bx + c \) 的 \( x \) 轴截距给出近似解；方程的实根就是相应二次函数的零点。<sup>[4](https://www.varsitytutors.com/practice/subjects/math-2/lessons/choosing-quadratic-solution-methods)</sup><sup> • </sup><sup>[5](https://www.cde.ca.gov/be/cc/cd/documents/may2012item12catt2.pdf)</sup>

教学中常用的一条选择顺序是：有理根可能性大时先尝试因式分解；因式分解不明显时用求根公式；涉及顶点式或完全平方时用配方法。<sup>[6](https://calculatex.com/blog/quadratic-equations-which-method-to-use)</sup>

## 判别式

对实系数方程 \( ax^{2} + bx + c = 0 \)，判别式是求根公式根号下的表达式 \( b^{2} - 4ac \)。它告诉我们根是实数还是复数，以及每种各有多少个：<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup>

- \( b^{2} - 4ac = 0 \)：一个有理根，即二重根。
- \( b^{2} - 4ac > 0 \)：两个不同的实根；若系数为有理数且判别式是有理数的平方，则两根均为有理数。<sup>[14](https://onemathematicalcat.org/Math/Precalculus_obj/quadraticFormula.htm)</sup>
- \( b^{2} - 4ac > 0 \) 且不是有理数的平方：两个不同的实根；若系数为有理数，则它们是无理数。
- \( b^{2} - 4ac < 0 \)：两个复根。

例如，\( x^{2} + 4x + 4 = 0 \) 的判别式为 0，有一个二重有理根；\( 8x^{2} + 14x + 3 = 0 \) 的判别式为 100，是完全平方数，故有两个有理根；而 \( x^{2} + x + 2 = 0 \) 的判别式为 \( 1 - 8 = -7 \)，给出复根 \( \frac{-1 \pm i\sqrt{7}}{2} \)。<sup>[1](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)</sup> 每个方程有两个根（实根或复根），这是代数基本定理的一个特例；该定理指出，每个次数至少为 1 的复系数多项式方程至少有一个复根，而 \( n \) 次多项式按重数计恰有 \( n \) 个根。<sup>[7](https://mathworld.wolfram.com/FundamentalTheoremofAlgebra.html)</sup>

## 历史

二次问题属于最古老的已解数学问题之列。泥板 BM 13901 是最古老的巴比伦数学文献之一，约成于公元前 2000 至前 1800 年，其中所载一元二次方程的解法换算成现代记号后与求根公式颇为相似；该泥板用楔形文字写成，采用六十进制记数法，一切均以文字而非公式说明。<sup>[2](https://webspace.science.uu.nl/~wepst101/wisl901/goodpractices/2010-Khwarizmi.pdf)</sup> 1930 年，精密科学史家奥托·诺伊格鲍尔（Otto Neugebauer）发现了巴比伦人懂得解一元二次方程的证据，其基础是他们计算平方根的有效方法。<sup>[8](https://mast.queensu.ca/~murty/MathHistory-2.pdf)</sup> 他们的程序涵盖 \( x^{2} + bx = c \) 与 \( x^{2} - bx = c \) 两类（\( b \)、\( c \) 为正），相当于使用 \( x = \left(\left(\frac{b}{2}\right)^{2} + c\right) \mp \frac{b}{2} \)，并只取正根——在诸如由矩形面积及长宽之差求宽这类问题中，正根才合乎情理。<sup>[9](https://www.ms.uky.edu/~droyster/courses/fall06/PDFs/AppendixA.pdf)</sup> 一道典型的泥板题给出面积为 1,0（六十进制，即 60）、长比宽多 7 的矩形；书吏将 7 折半、平方、加上面积、开平方，再减去那一半，得宽为 5。<sup>[9](https://www.ms.uky.edu/~droyster/courses/fall06/PDFs/AppendixA.pdf)</sup>

系统的代数处理来自花拉子米，这位九世纪学者从事天文学与代数学，可能出生于花拉子模地区，大致即今乌兹别克斯坦一带。他的《还原与对消计算概要》（الكتاب المختصر في حساب الجبر و المقابلة）约于 825 年问世，把一元二次方程分为六类，因为他只用非负数计算，所以 \( x^{2} + ax = b \) 与 \( x^{2} + b = ax \) 之类形式算作不同类型，他对每一类都作了系统求解。<sup>[2](https://webspace.science.uu.nl/~wepst101/wisl901/goodpractices/2010-Khwarizmi.pdf)</sup> 他的论著《Kitab al-jabr wa'l-muqabalah》指出，所有一次与二次方程都可归结为六类：\( ax^{2} = bx \)、\( ax^{2} = b \)、\( ax = b \)、\( ax^{2} + bx = c \)、\( ax^{2} + c = bx \)、\( ax^{2} = bx + c \)，并给出所有类型的通解；他不接受负系数或零系数。<sup>[10](https://new.math.uiuc.edu/im2008/rogers/algebra.html)</sup> 尽管这些解法巴比伦人早已知道，花拉子米的系统分类却成为代数学科的基础。<sup>[2](https://webspace.science.uu.nl/~wepst101/wisl901/goodpractices/2010-Khwarizmi.pdf)</sup>

## 应用

一元二次方程遍及工程与物理科学。抛出的球的高度用二次式建模；某教科书例子中，以 96 英尺/秒向上抛出的球高度为 \( h(t) = 96t - 16t^{2} \) 英尺，令 \( h(t) = 80 \) 得方程 \( 16t^{2} - 96t + 80 = 0 \)，用因式分解、求根公式和配方法均可解得 \( t = 1 \) 秒与 \( t = 5 \) 秒，即球两次经过 80 英尺高度的时刻。<sup>[3](https://pd1.hk/M01/IMfEA.pdf)</sup> 抛体运动、商业利润函数以及农作物产量模型，都会引出二次函数，其截距与顶点承载着实际答案。<sup>[11](https://faculty.gordonstate.edu/gclement/Math1001/Resources/UnitV/Quadratic%20Apps.pdf)</sup>

## 数值上的注意事项

在浮点运算中，求根公式可能因相消而损失精度——相消指两个相近的数相减时有效数字的丢失。标准例子是计算二次方程的较小根，形如 \( x = 1 - \sqrt{1 - z} \)（\( z \) 很小）；一个代数等价的变形 \( x = \frac{z}{1 + \sqrt{1 - z}} \) 计算同一个值却不含减法，因而不会遭受相消。<sup>[12](https://www.cs.cornell.edu/courses/cs4220/2026sp/lec/2026-02-02.html)</sup> 因此数值库常常提供两种数学上等价、数值上却不同的求根公式实现。<sup>[13](https://cmna.jameshoward.us/zoo/quadratic-cancellation/)</sup>

## References

1. [2.5 Quadratic Equations, College Algebra 2e, OpenStax](https://openstax.org/books/college-algebra-2e/pages/2-5-quadratic-equations)
2. [Historical Background: Quadratic equations from Babylon to al-Khwarizmi (Utrecht University)](https://webspace.science.uu.nl/~wepst101/wisl901/goodpractices/2010-Khwarizmi.pdf)
3. [Rattan & Klingbeil, Introduction to Mathematics for Engineering, Chapter 2: Quadratic Equations in Engineering](https://pd1.hk/M01/IMfEA.pdf)
4. [Choosing Quadratic Solution Methods, Varsity Tutors](https://www.varsitytutors.com/practice/subjects/math-2/lessons/choosing-quadratic-solution-methods)
5. [Common Core State Standards for Mathematics Appendix A, California Department of Education](https://www.cde.ca.gov/be/cc/cd/documents/may2012item12catt2.pdf)
6. [Quadratic Equations: How to Know Which Method to Use, Calculatex](https://calculatex.com/blog/quadratic-equations-which-method-to-use)
7. [Fundamental Theorem of Algebra, Wolfram MathWorld](https://mathworld.wolfram.com/FundamentalTheoremofAlgebra.html)
8. [Mesopotamia (MathHistory notes, Queen's University)](https://mast.queensu.ca/~murty/MathHistory-2.pdf)
9. [Introduction to Babylonian Mathematics, University of Kentucky course notes](https://www.ms.uky.edu/~droyster/courses/fall06/PDFs/AppendixA.pdf)
10. [Islamic Mathematics: al-Khwarizmi's Kitab al-jabr wa'l-muqabalah, University of Illinois](https://new.math.uiuc.edu/im2008/rogers/algebra.html)
11. [Quadratic Applications, Gordon State College](https://faculty.gordonstate.edu/gclement/Math1001/Resources/UnitV/Quadratic%20Apps.pdf)
12. [CS 4220 Numerical Analysis lecture notes, Cornell University](https://www.cs.cornell.edu/courses/cs4220/2026sp/lec/2026-02-02.html)
13. [The cancellation-prone quadratic, Numerical Zoo, CMNA](https://cmna.jameshoward.us/zoo/quadratic-cancellation/)
14. [The Quadratic Formula Revisited; the Discriminant](https://onemathematicalcat.org/Math/Precalculus_obj/quadraticFormula.htm)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Algebraic structures › Abstract algebra — overview

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/quadratic-equation

English original: https://www.edgepedia.org/quadratic-equation
