History / Arabic-language scholarship in the Islamic world

Algebra in Baghdad

Completing a square in words and areas

Baghdad · early ninth century CE

How can a diagram perform an algebraic transformation?

Rebuild x² + 10x = 39 as an area, complete its missing corner and compare the positive geometric answer with both modern roots.

Historical evidence, a modern reconstruction, and the mathematics connecting them.

Begin exploring ↓
x²5x5x25area 64; side 8
Al-Khwārizmī’s Algebra
early ninth century CE · historical text discussed in MAA Convergence

The symbolic equation and area figure are original modern translations and reconstructions. They are not a manuscript image or a quotation of historical notation.

View the source record ↗

Historical evidence

An equation stated in words

Around 825, Muḥammad ibn Mūsā al-Khwārizmī wrote an Arabic book on calculation by restoration and reduction in Baghdad. The cited studies discuss rhetorical algebra: types of equations are expressed in words rather than in the compact symbolism used here.

The example now written x² + 10x = 39 is accompanied in historical teaching by a geometric demonstration. This page identifies its symbols and animation stages as modern translations.[ALGEBRA][ALGEBRA-39]

Historical evidence

Squares, roots and quantities

A square, roots and a known quantity name kinds of magnitude in the rhetorical procedure. For positive magnitudes, an area arrangement makes the transformation visible.

The Atlas writes x, b and c so readers can vary the example. That general symbolic notation is a modern layer and should not be mistaken for the wording of the Arabic text.[ALGEBRA]

Reconstruction

Complete the square

Begin with x² and split bx into two equal strips. Their L-shaped arrangement is missing a corner of area (b/2)². Add that corner to both sides and the left side becomes a square with side x + b/2.

Use the stage buttons or Back and Next, then vary positive b and c. With b = 10 and c = 39, the completed square has area 64 and positive side 8, so x = 3.[ALGEBRA-39]

Reconstruction · positive magnitudes

Assemble the square

x²bx/2bx/2(b/2)²

Modern area reconstruction. Negative lengths are not drawn.

Stage 4 of 4
Modern symbolic reading(x + 5)² = 64 · positive x = 3

The historical positive-area diagram yields x = 3. Modern symbolic algebra also gives x = -13; that negative root lies outside this length diagram.

Derivation

The modern identity

Taking the positive geometric length gives x = √(c + (b/2)²) − b/2. Substitution into the original equation checks the result independently.

Modern symbolic algebra also returns −√(c + (b/2)²) − b/2. The live result reports this second root outside the historical positive-area diagram rather than drawing a negative length.[ALGEBRA-39]

x2+bx=c⇒(x+b2)2=c+(b2)2x^2+bx=c\Rightarrow\left(x+\frac b2\right)^2=c+\left(\frac b2\right)^2

Open question

Scope of the reconstruction

The geometric reconstruction depends on positive lengths and areas. Its clarity comes with that boundary.

The title “algebra in Baghdad” locates this example in a scholarly setting. It does not reduce the varied mathematics of the Islamic world to one author, city or line of descent.[ALGEBRA][ALGEBRA-39]

A classroom area model demonstrates the positive case shown. It does not by itself represent modern signed coefficients, complex roots or every equation type treated in later algebra.

Historical evidence

Writing, translation and reception

The word algebra has a history tied to the Arabic title, while the mathematical practices around equations have many earlier and later settings. Describing al-Khwārizmī as the sole inventor or father of algebra would overstate the evidence.

The Atlas transmission view names documented translations into Latin and keeps translation distinct from the broader history of influence and reception.[ALGEBRA]

Open question

Why the area argument matters

Completing the square is more than a symbolic trick: the added term is exactly the corner required to turn an L-shaped area into a square. The diagram exposes why the same quantity must be added to both sides.

Continue to Geometry for area and metric reasoning, or to equations and transmission in the historical Atlas.[ALGEBRA-39]

Continue through the Atlas

Sources & further reading

  1. Historical scholarship

    Completing the Square: From the Roots of Algebra

    Daniel E. Otero. 2019. MAA Convergence.

    Provenance and reuse

    Linked source; no third-party media reproduced. Atlas diagrams are original explanatory reconstructions. Consult the publisher or holding institution before reusing source images.

    Accessed 2026-09-20.

  2. Historical scholarship

    Completing the Square

    Barnabas Hughes. MAA Convergence.

    Provenance and reuse

    Linked source; no third-party media reproduced. Atlas diagrams are original explanatory reconstructions. Consult the publisher or holding institution before reusing source images.

    Accessed 2026-09-20.

Diagrams and teaching explanations are original Atlas reconstructions unless otherwise identified. Source checking and automated tests do not imply a recorded human historical review.