Quadratic equations in early Baghdad

In the 8th century (CE) Baghdad was a new city with a lively culture. The 'father of algebra', al-Khwarizmi, lived there. He wrote a book called "al-jabr wa'l muqabala" from which we get the word 'algebra'. In his book he solved equations such as . However he didn't have the notation we now use. Instead, he stated this problem as: "A square and ten roots are equal to thirty-nine dirhems", in Arabic of course, not in English! He outlined a method (now called an algorithm, after him) in Arabic text accompanied by a diagram like the one below.