Brahmagupta's Equations: Solving What Europe Couldn't
How a 7th-century Indian solved problems Europe tackled 1,000 years later
Explore Brahmagupta's systematic methods for solving linear and quadratic equations in his Brahmasphutasiddhanta.
The Verse That Surprised Calcutta
In a high-ceilinged office in Calcutta, sometime in the early years of the nineteenth century, the British East India Company judge Henry Thomas Colebrooke sets down his copy of the Brahmasphutasiddhanta and reads the next sūtra aloud, in Sanskrit, twice.

Colebrooke is in his forties, a senior official of the Sadar Diwani Adalat, and quietly the most accomplished Sanskritist in the British administration. He has spent two decades translating mathematical and legal works from the original. The text in front of him is more than a thousand years old. The room is hot. A fan-puller dozes in the corridor outside. A pile of palm-leaf manuscripts sits beside the inkwell, weighted down with a brass paperweight. Colebrooke is alone with the verse and his pen.
The verse is sūtra 18.44 of the Brahmasphutasiddhanta, composed by an astronomer named Brahmagupta in the year 628 CE. Translated literally into English, it reads: 'To the absolute number multiplied by four times the coefficient of the square, add the square of the coefficient of the middle term. The square root of the same, less the coefficient of the middle term, being divided by twice the coefficient of the square, is the value.'
Colebrooke pauses. He has been taught, like every English schoolboy of his generation, that the general quadratic formula was a triumph of European mathematics. Girolamo Cardano had written it down in his Ars Magna in Milan in 1545. Before Cardano, no one. After Cardano, every algebra textbook in Europe.
Translated into modern symbols, what Brahmagupta is saying is that for the equation ax² + bx = c, the unknown x equals the square root of (4ac + b²), minus b, all divided by 2a. That is, exactly, the quadratic formula. It is general. It works for any positive coefficients. It produces an exact root every time. And it was written nine hundred and seventeen years before Cardano's Ars Magna, on the western edge of the Indian subcontinent, by a thirty-year-old astronomer working in a city named Bhillamala.
Colebrooke writes a line that will appear in the preface of his book when it is published in London in 1817: 'It will surprise the reader, perhaps, to learn that the rules for the resolution of equations of the second degree, which are commonly considered the invention of European algebraists, were familiar to the Hindus more than twelve hundred years ago.' That sentence will force the European history of algebra to be partly rewritten.
This is the story of what Brahmagupta wrote, why it was so far ahead of its time, and how the world finally caught up.
A Thirty Year Old Astronomer at Bhillamala

Brahmagupta was born in 598 CE, probably in the city of Bhillamala in the region of Gurjaradeśa, modern Bhinmal in southern Rajasthan. Bhillamala was at the time a major center of astronomical observation under the Cāpa dynasty, with a working observatory and a library of older Siddhāntas. By the age of thirty, Brahmagupta had been appointed its chief astronomer, and in 628 CE he composed his magnum opus, the Brahmasphutasiddhanta, the Correctly Established Doctrine of Brahmā. It is a twenty five chapter work written in compressed Sanskrit verse. Most of it is astronomical. But chapters 12 and 18 are pure mathematics, and chapter 18, the Kuṭṭakādhyāya, the chapter on the pulverizer, is the world's first systematic treatise on algebra in something close to the modern sense.
The Universal Quadratic, Written in Verse
Sūtra 18.44 of the Brahmasphutasiddhanta gives the rule for solving any quadratic equation. In the literal translation by H.T. Colebrooke from 1817: 'To the absolute number multiplied by four times the coefficient of the square, add the square of the coefficient of the middle term. The square root of the same, less the coefficient of the middle term, being divided by twice the coefficient of the square, is the value.' Translated into modern symbols, Brahmagupta is saying that for ax² + bx = c, the unknown x equals the square root of (4ac + b²), minus b, all divided by 2a. That is precisely the quadratic formula. It is general. It works for any positive coefficients. It produces an exact root every time. And it was written nine hundred years before Cardano's Ars Magna and almost a thousand years before any European book contained an equivalent rule.
Two Roots, Not One
Brahmagupta did something else that Europe would not catch up to for nearly a millennium. He recognized that a quadratic equation has two roots, not one. In the surrounding sūtras he notes that the same rule with a sign flip yields a second value of x. This may sound like a small footnote. It is not. European mathematics through the sixteenth century routinely considered only the positive root of a quadratic and treated the second root as either nonexistent or absurd. Brahmagupta accepted both. And he did so in a culture that had no taboo against negative numbers, because he had already worked out, in the same chapter, how to add, subtract, multiply, and divide them.
Negative Numbers as Debt, Positive Numbers as Wealth
In sūtras 18.30 to 18.35, Brahmagupta gives the world's first complete arithmetic of negative numbers. He calls them ṛṇa, debt, in contrast with dhana, wealth. The sum of two debts is a debt. The product of two debts is a wealth. The product of a debt and a wealth is a debt. Zero added to a debt is a debt. Zero divided by anything other than zero is zero. The rules are exact, complete, and modern. Where Diophantus three centuries earlier had recoiled from negative roots and called them absurd, Brahmagupta accepted them as ordinary numbers, gave them a vocabulary drawn from commercial life, and built them into his equation solving toolkit. By the time he reaches the quadratic in sūtra 18.44, the sign of a root holds no terror for him at all.
Linear Equations and Beyond
The quadratic is the most famous result of chapter 18, but it is not the only one. Earlier sūtras give general methods for solving systems of linear equations in several unknowns, indeterminate linear equations of the form ax + by = c, and the foundational work that would become the kuṭṭaka or pulverizer algorithm for finding integer solutions. Brahmagupta also gives, in sūtra 18.64 and following, the first known method for the indeterminate quadratic Nx² + 1 = y², the equation that European mathematics would much later misname after John Pell. He did not solve every case. Bhāskara II would complete the work in 1150 CE in his own Bījagaṇita. But Brahmagupta opened the door, and the door he opened led directly to algebra in its modern abstract sense.
A Thousand Year Lead
Cardano's Ars Magna appeared in 1545 CE. Viète's symbolic algebra arrived in the 1590s. The quadratic formula in its modern letter form did not appear until the seventeenth century. Brahmagupta was nine hundred to a thousand years ahead of all of them. The lead is not a matter of a single insight. It is a matter of an entire toolkit, complete with negative numbers, two roots, indeterminate equations, and a working notation in compressed verse, all assembled in one book in 628 CE. When Indian astronomers brought the Brahmasphutasiddhanta to Baghdad in the 770s and the Arabs translated it as the Sindhind, this is the toolkit they received. When al-Khwārizmī wrote his Kitāb al-Jabr in the early ninth century, this is the toolkit he was working from. The word algebra comes from his title. The substance is largely Brahmagupta's.
Why the Name Did Not Survive
Brahmagupta's name did not travel with his algebra into European textbooks for the same structural reason Baudhāyana's did not travel with the right triangle theorem. The transmission was real but unattributed. The Arabs cited their Indian sources. The Latin translators of the Arabs cited the Arabs. The European mathematicians who built on the Latin translators cited each other. By the time the chain reached the modern classroom, only the most recent links had names attached. Restoring the original author is not a small act of correction. It is the recognition that the most used algebraic identity in the modern world has been quietly anonymous for far too long, and that the man who wrote it down first deserves to be named whenever his formula is taught.
What Brahmagupta Asks of Us
The correction does not require renaming the formula. Names propagate by inertia and rarely change cleanly. What it requires is honesty in the telling. Stephen Hawking's 2007 anthology God Created the Integers: The Mathematical Breakthroughs that Changed History devotes a full chapter to Brahmagupta, placing him alongside Archimedes, Newton, and Gauss as one of the great mathematicians who reshaped human thought. The Princeton historian of mathematics Kim Plofker opens her 2009 book Mathematics in India with the same priority claim, treated not as a controversy but as a settled fact. The recognition is real in the academy. It just has not yet reached the high school whiteboard.
When you next see x = (-b ± √(b² - 4ac)) / 2a written on a board, you are looking at a sūtra written in Sanskrit verse on the western edge of the Indian subcontinent in 628 CE, by a thirty-year-old astronomer who also wrote down the rules of negative numbers and the foundations of indeterminate analysis in the same volume. Brahmagupta was not a precursor to algebra. He was its first systematic author. The world has been using his book ever since, mostly without knowing whose book it is.
Back in the Calcutta office, Colebrooke closes the manuscript. The verse has waited eleven hundred years for an English reader to recognise it. He picks up his pen to begin the next sūtra.
Key figures
Brahmagupta
598 to 668 CE, Bhillamala (modern Bhinmal, Rajasthan), Gurjaradeśa
Henry Thomas Colebrooke
1765 to 1837 CE, England and British India
Muḥammad ibn Mūsā al-Khwārizmī
c. 780 to 850 CE, Khwārezm and Baghdad
Case studies
Brahmagupta at Bhillamala: A Verse Written in 628 CE
In the year 628 CE, in the walled city of Bhillamala on the western edge of the Indian subcontinent, a thirty year old astronomer named Brahmagupta sits in the observatory of the Cāpa dynasty kings and composes the eighteenth chapter of the work that will make him immortal. The chapter is called the Kuṭṭakādhyāya, the chapter on the pulverizer. It contains, in the compressed Sanskrit verse form known as the ārya, the world's first systematic treatment of algebra. Brahmagupta has at his desk a palm leaf manuscript, an inkwell of carbon ink, and the cumulative work of half a dozen previous Indian astronomers whose Siddhāntas line the shelves of the observatory library. He has just finished giving the rules for the arithmetic of zero and of negative numbers. He now writes down the rule for the quadratic. The rule is general. It works for any quadratic ax² + bx = c. It produces an exact root every time. He writes it as a single verse, knows it is correct, and moves on to the next problem in the same calm hand.
This is svādhyāya, self study and private composition, performed at the highest level. Brahmagupta is not seeking a patron or a prize. He is correcting and extending the work of his predecessors because that is what an astronomer of his lineage does. The Kuṭṭakādhyāya is part of an astronomical treatise, and the algebra it contains exists because algebra is needed to compute planetary positions, eclipse timings, and pañcāṅga calendars. The quadratic formula is not a stand alone theorem in Brahmagupta's mind. It is a working tool for the actual problem of astronomy. The fact that it also happens to be the most general algebraic identity ever written down in human history is a side effect of doing the astronomy properly.
The Brahmasphutasiddhanta would become the most influential Indian astronomical text of the early classical period. Within a generation it was studied across the subcontinent. Within a century and a half it had reached Baghdad, where it became the Sindhind. Within four centuries it had reached al-Andalus and through there the Latin West. The quadratic formula in sūtra 18.44 has been continuously in use, somewhere in the world, for almost fourteen hundred years without interruption. No other algebraic identity in history can claim a longer unbroken record of practical service.
The most consequential mathematics is often written in the calmest hand. Brahmagupta did not announce his quadratic formula as a breakthrough. He simply stated the rule and moved on. The work was its own reward, and the result was so cleanly stated that it survived three civilizations of transmission and a thousand years of translation without losing its shape.
Brahmagupta wrote the Brahmasphutasiddhanta in 628 CE at the age of thirty. The general quadratic formula in sūtra 18.44 predates Cardano's Ars Magna by 917 years.
Baghdad 770 CE: The Embassy That Carried Algebra West
In or around the year 770 CE, an Indian astronomical delegation arrives at the court of the Abbasid Caliph al-Manṣūr in the new city of Baghdad. The leader of the embassy carries among his manuscripts a copy of the Brahmasphutasiddhanta of Brahmagupta, by then nearly a century and a half old but still the leading astronomical and mathematical reference text of the Indian world. Al-Manṣūr is fascinated. He commissions a translation of the work into Arabic and assigns it the name Sindhind, an Arabic rendering of Siddhānta. The translation team includes the Arab astronomer al-Fazārī. Within a generation the Sindhind has become the foundational Indian source for an entire emerging Arabic scientific tradition. Al-Khwārizmī, born around 780 CE, will spend his career at the Bayt al-Ḥikma working with this very text and the texts that grew out of it. From his Kitāb al-Jabr wa al-Muqābalah, eventually translated into Latin in the twelfth century, the European tradition would inherit the algebra it later believed it had invented.
The transmission was real. The Arabs were honest about their sources. Al-Khwārizmī's companion volume on arithmetic is explicitly titled Kitāb al-Ḥisāb al-Hindī, the Book of Indian Reckoning. The Sindhind is named for what it is, a Sanskrit Siddhānta in Arabic dress. The break in attribution did not happen in Baghdad. It happened later, in Latin Europe, where the Arab citations to India were quietly dropped and the Arab transmitters became, in European memory, the original authors. The man whose verse in 628 CE sat at the head of this entire chain, Brahmagupta of Bhillamala, dropped out of the European telling of algebra altogether for almost a thousand years until Colebrooke's translation in 1817 forced him back in.
From the 770 CE Baghdad translation onward, the line of inheritance is unbroken. Brahmagupta to al-Khwārizmī, al-Khwārizmī to the Latin algebraists of the twelfth century, the Latin algebraists to Cardano and Viète, Cardano and Viète to the modern textbook. Every link in the chain is documented. The substance of the modern quadratic formula is a literal Latin translation of an Arabic translation of a Sanskrit verse. The Sanskrit verse is Brahmagupta's. The chain is fourteen hundred years long and it has never been broken, only forgotten.
Knowledge travels by translation, but credit travels by citation. The Indian originators were generous with their text and the Arab transmitters were honest with their sources. The break came when later civilizations stopped asking who had taught their teachers. The lesson is to keep asking, and to follow the chain back as far as it goes.
The Arabic translation of the Brahmasphutasiddhanta, known as the Sindhind, was completed in Baghdad around 771 CE under Caliph al-Manṣūr, roughly fifty years before al-Khwārizmī wrote the Kitāb al-Jabr that gave algebra its modern name.
Every High School in the World: The Quadratic Formula Has an Author
On any school day in 2026, in classrooms from Lagos to Lima to Lucknow to Los Angeles, a teacher writes the same equation on the whiteboard. x equals minus b plus or minus the square root of b squared minus four a c, all divided by two a. The students copy it down. They use it on their homework that night. They will use it again on a midterm, on a final, on an SAT, on a college entrance exam, in an engineering class, in a physics lab, in a finance spreadsheet, in a video game collision check, in a self driving car simulation. None of them is told the formula has an author. The textbook calls it 'the quadratic formula'. The teacher calls it 'the quadratic formula'. It is treated as a fact of nature, like the law of gravity, that nobody in particular discovered. The fact that it was first written down, in a single Sanskrit verse, by a thirty year old astronomer in 628 CE in a city most of these students have never heard of, is information their textbook does not contain.
This is what an unattributed inheritance looks like at its largest scale. The quadratic formula is, by some estimates, used several billion times a day across the global education and engineering systems combined. Every single one of those uses is, mathematically, a re-execution of Brahmagupta sūtra 18.44. The cultural cost of the missing attribution is not borne by Brahmagupta. It is borne by the millions of Indian students who learn the formula without ever being told that it was first written down by their own civilization, in their own classical language, more than thirteen centuries ago. The correction is small, requires no rewriting of any code, no renaming of any function, no editing of any spreadsheet. It only requires that the textbook, the teacher, and the student all know one extra fact: this formula has a name, and the name is Brahmagupta.
The path to correction is through education. A growing number of Indian textbooks now name Brahmagupta when introducing the quadratic formula. NCERT class 10 mathematics, in its more recent editions, includes a sidebar on Brahmagupta's contribution. December 22, India's National Mathematics Day, observed on Ramanujan's birthday, increasingly features public lectures and school programs that trace the genealogy of the quadratic formula back to Bhillamala in 628 CE. Internationally the work is slower, but historians of mathematics including Kim Plofker, George Gheverghese Joseph, and Bibhutibhushan Datta before them have firmly placed Brahmagupta in the standard chronology of algebra. The quadratic formula now has an author in the academic literature. The next step is for that author's name to reach the high school whiteboard.
The most powerful place to restore an attribution is in the classroom where the result is first taught. A single sentence, added to a single textbook, naming Brahmagupta when the quadratic formula is introduced, is worth more than a hundred academic papers. Every student deserves to know that the most useful equation in elementary algebra was written by a thirty year old in Bhillamala in 628 CE, and that the world has been using his rule, with or without his name, ever since.
By conservative estimate, the quadratic formula is invoked, by hand or by computer, several billion times each day across global classrooms, engineering pipelines, and software systems. Each invocation is a literal re-application of Brahmagupta sūtra 18.44 from 628 CE.
Historical context
The early classical period of Indian mathematics, the seventh century CE, under the late Gupta successor states and the Cāpa dynasty of Gurjaradeśa
Seventh century India was the early classical age of mathematical astronomy. The Gupta empire had fragmented into successor kingdoms, but its scientific institutions had not. Observatories at Bhillamala, Ujjain, Pāṭaliputra, and other centers continued the tradition begun by Āryabhaṭa in 499 CE. Brahmagupta worked first at Bhillamala under the Cāpa dynasty and later at Ujjain. His main task was practical astronomy, the computation of pañcāṅga, the prediction of eclipses, the determination of the lunar month and the solar year. Algebra, including the quadratic formula, existed in his world as a tool for this astronomical work. The fact that the tool turned out to be the foundation of an entire discipline was, at the time, a side benefit of doing the astronomy carefully.
This lesson relocates the moment of origin of general algebra from sixteenth century Italy to seventh century western India. The shift is not a matter of national pride. It is a matter of historical accuracy in the most foundational area of school mathematics. The quadratic formula every modern student learns is a Sanskrit verse from 628 CE, not a European Renaissance discovery. Knowing this changes the story of where modern algebra came from, who built it, and what cultures contributed to its assembly. It also restores an author to a tool that has been quietly anonymous for centuries.
Living traditions
Brahmagupta's algebra is the silent infrastructure of modern computation. The quadratic formula in sūtra 18.44 runs inside every numerical solver, every physics simulation, every kinematic calculation, every projectile trajectory, every option pricing model that uses the Black Scholes equation, every machine learning loss minimization that requires a closed form quadratic root. The arithmetic of negative numbers in sūtras 18.30 to 18.35 is the foundation of every accounting system, every double entry ledger, every banking transaction. India's National Mathematics Day on December 22 increasingly features public events that name Brahmagupta as the original author of the quadratic formula. Scholars including Kim Plofker, George Gheverghese Joseph, Bibhutibhushan Datta, and Avadhesh Narayan Singh have placed Brahmagupta firmly in the standard chronology of world algebra. The work of restoring his name to the high school whiteboard continues, one textbook footnote at a time.
- Sanskrit Algebra in Modern Indian Mathematics Education: A small but growing movement within Indian mathematics education includes Brahmagupta's name and verse alongside the modern quadratic formula in classroom teaching. NCERT, the Indian national curriculum body, now mentions Brahmagupta and Bhāskara II in its class 10 mathematics textbook in connection with the quadratic. State boards in Karnataka, Tamil Nadu, Kerala, and Maharashtra have similar references. Specialized institutions such as the Inter University Centre for Astronomy and Astrophysics in Pune and the Tirumala Tirupati Devasthanams Sri Venkateswara Vedic University in Tirupati teach the original Sanskrit verses to students who want to read Brahmagupta in his own language.
- Pañcāṅga Calculation and Living Astronomical Tradition: Brahmagupta's astronomical methods, including the algebraic techniques for which his name should be remembered, are still in active use in the calculation of the traditional Hindu pañcāṅga, the lunar solar calendar that governs religious dates, festivals, and rituals in Hindu households across India and the diaspora. Modern almanacs published by traditional pañcāṅga makers in Maharashtra, Andhra Pradesh, Karnataka, and Tamil Nadu are direct descendants of computational lineages that begin with the Brahmasphutasiddhanta. The quadratic methods of chapter 18 are part of the underlying toolkit, even if most pañcāṅga readers never see the algebra that produces their date.
- Bhinmal: Brahmagupta's Birthplace: Bhinmal, the modern name of ancient Bhillamala, is a small town in southern Rajasthan that was once the capital of the Cāpa dynasty and the home of Brahmagupta. The town today is a quiet pilgrimage site for historians of Indian mathematics. There is a small commemorative installation acknowledging Brahmagupta as the town's most famous son, and the surrounding countryside still preserves traces of the medieval city wall. A visit to Bhinmal is the closest physical contact with the place where the world's first general quadratic formula was written down.
- Ujjain: Brahmagupta's Later Observatory: Ujjain has been one of the great astronomical centers of India for more than two thousand years. Brahmagupta moved there later in his life and headed the observatory. The same city was later home to Bhāskara II's predecessors and to the eighteenth century Jantar Mantar built by Sawai Jai Singh II, which still stands today. Visiting the Jantar Mantar at Ujjain and the surrounding traditional astronomical sites gives a tangible sense of the institutional continuity that connects Brahmagupta to modern Indian observational astronomy.
Reflection
- Brahmagupta called the unknown 'avyakta', the unmanifest. Modern algebra calls it 'x'. What is lost, and what is gained, when the philosophical resonance of a word is replaced by an abstract symbol?
- Brahmagupta wrote the world's most useful equation as a single calm verse and moved on to the next problem. Where in your own work could you do something correctly, name it once with care, and then let go of the desire to be remembered for it?
- Pick a tool you use every day, software, formula, recipe, technique. Find out who first wrote it down. What did that exercise reveal about the gap between the inheritance you receive and the names you remember?