Brahmagupta's identity


In algebra, Brahmagupta's identity says that the product of two numbers of the form is itself a number of that form. In other words, the set of such numbers is closed under multiplication. Specifically:
Both and can be verified by expanding each side of the equation. Also, can be obtained from, or from, by changing b to −b.
This identity holds in both the ring of integers and the ring of rational numbers, and more generally in any commutative ring.

History

The identity is a generalization of the so-called Fibonacci identity which is actually found in Diophantus' Arithmetica.
That identity was rediscovered by Brahmagupta, an Indian mathematician and astronomer, who generalized it and used it in his study of what is now called Pell's equation. His Brahmasphutasiddhanta was translated from Sanskrit into Arabic by Mohammad al-Fazari, and was subsequently translated into Latin in 1126. The identity later appeared in Fibonacci's Book of Squares in 1225.

Application to Pell's equation

In its original context, Brahmagupta applied his discovery to the solution of what was later called Pell's equation, namely x2Ny2 = 1. Using the identity in the form
he was able to "compose" triples and that were solutions of x2Ny2 = k, to generate the new triple
Not only did this give a way to generate infinitely many solutions to x2Ny2 = 1 starting with one solution, but also, by dividing such a composition by k1k2, integer or "nearly integer" solutions could often be obtained. The general method for solving the Pell equation given by Bhaskara II in 1150, namely the chakravala method, was also based on this identity.