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.