数学史

花拉子米与配方法

在九世纪的代数论著中,花拉子米用配方法解 x² + bx = c。本演示画出正方形与四个矩形,可调节 b 与 c,并显示补全后的边长、新增面积与正根。

6 分钟难度 2/3交互演示区域不展示广告。
b6c16Half of b3Added corner area9.00Completed side5.000Positive root x2.000
x²1.50x1.50x1.50x1.50x1.501.501.501.50completed side = x + b/2 = 5.000

(x + b/2)² = c + b²/4 = 16 + 9.00 = 25.00 · x = √(c + b²/4) − b/2 = 2.0000

Geometric identityx² + b·x + b²/4 = (x + b/2)². The four rectangles supply b·x; the four corner squares supply b²/4. Only the positive root is shown, because the historical problem is a length.
Al-Khwarizmi, 9th centuryIn his algebra treatise, al-Khwarizmi solved x² + bx = c by completing the square. His method was rhetorical: it described the construction in words and used numbers, without symbolic notation. The modern formula above is a compact restatement of his procedure.

The green square is x². Four blue rectangles each have area (b/4)·x, adding b·x. Four amber corner squares each have area (b/4)², adding b²/4. Together they form a square of side x + b/2, so (x + b/2)² = c + b²/4. The positive root x = √(c + b²/4) − b/2 is the only one shown.

你看到的是什么

1

先画边长为 x、面积为 x² 的正方形,再在四周加上四个面积为 (b/4)·x 的矩形,合计 b·x。

2

四个角上的小正方形面积为 (b/4)²,补上缺口,新增 b²/4。整体就成为边长为 x + b/2 的正方形。

3

面积相等给出 (x + b/2)² = c + b²/4,因此正根为 x = √(c + b²/4) − b/2。演示只显示这个正的长度。

为什么重要

花拉子米的论著把代数方法传入欧洲,“algebra”一词即源于其书名。配方法至今仍是推导二次公式的标准途径。

复杂度与细节

每次调节只需重算 O(1) 个值。绘制方块为 O(1);方法本身是固定的几何构造。

常见问题

花拉子米写过这样的公式吗?+

没有。他的论述是文字式的,用具体数字描述构造过程。符号恒等式 (x + b/2)² = c + b²/4 只是对其方法的现代改写。

为什么只显示一个根?+

几何问题要求的是长度,因此舍去负根。花拉子米处理的是正的量,负根不在他的讨论范围内。