Al-Khwarizmi's square and ten roots: the answer is 3

The problem that named the subject, printed with a second root his book threw away.

Equations and algebra · Level: Classic result · Updated on 2026-11-10

Solve x² + 10x − 39 = 0 and the answer line reads x₁ = 3, x₂ = -13. The 3 is the answer a Baghdad textbook gave around 820 CE, obtained without any letters: halve the ten to 5, add its square 25 to the 39 to get 64, take the root 8, subtract the 5. Al-Khwarizmi wrote this out in words and drew a figure for it; the −13 is ours — his book set negative solutions aside as untrue rather than missing them.

The word algebra comes from al-jabr in that book's title, and algorithm from the author's name in Latin. The completing-the-square the solver performs is also where the quadratic formula comes from: run the same three steps with letters instead of 10 and 39 and the 5 becomes b/2a, the 64 becomes the expression under the root sign, and the final ± is exactly the two numbers on the screen. Check the root the way the book did it — 3² + 10 × 3 — and it comes back 39.

Answer

x₁ = 3, x₂ = -13

How to read it

The solver's answer line. Only the 3 was acceptable in 820 CE; the −13 is the second root the same equation always has.

Source

Al-Khwarizmi, al-Kitab al-mukhtasar fi hisab al-jabr wa-l-muqabala (c. 820 CE), the standard example: a square and ten of its roots equal 39

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.